www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/11/18/01:35:01

From: twohandle AT hotmail DOT com (twohandle)
Newsgroups: comp.os.msdos.djgpp
Subject: Why GDB always work like this?
Date: 17 Nov 2001 21:56:07 -0800
Organization: http://groups.google.com/
Lines: 42
Message-ID: <e72ec54b.0111172156.290bbbe3@posting.google.com>
NNTP-Posting-Host: 61.142.200.20
X-Trace: posting.google.com 1006062967 30485 127.0.0.1 (18 Nov 2001 05:56:07 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 18 Nov 2001 05:56:07 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

GDB for djgpp


| C:\...>gdb test
|
| GNU gdb 5.0
| Copyright 2000 Free Software Foundation, Inc.
| GDB is free software, covered by the GNU General Public License, and
you are
| welcome to change it and/or distribute copies of it under certain
conditions.
| Type "show copying" to see the conditions.
| There is absolutely no warranty for GDB.  Type "show warranty" for
details.
| This GDB was configured as "i386-pc-msdosdjgpp"...
|
| (gdb) l
| 1       #include "xxx.h"
| 2
| 3       int main(void)
| 4       {
| 5               ... ;
| 6               ... ;
| 7
| 8               cout<<"?" ;
| 9               ... ;
| 10              ... ;
|
| (gdb) break 8
| Breakpoint 1 at 0x3430: file test.cpp, line 8.
|
| (gdb) r
| Starting program: c:/.../test.exe
|
| /** The result after running **/
|
| Program exited normally.
|
| (gdb)

It runs all programs like this. And the Breakpoint had no use of all.
Could you tell me why and how to resolve it, please?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019