Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Problem setting breakpoints
@ 2004-04-30  3:23 Grant Schoep
  2004-04-30 23:10 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Grant Schoep @ 2004-04-30  3:23 UTC (permalink / raw)
  To: gdb

Using:
Solaris 9
gcc 3.3.2
gdb 6.1

Hopefully I'm just doing something stupid here. I'm much more familer
with Sun's dbx debugger, but now I'm living in the happy free world.

I am trying to set a break point at a line in a file, the line does have
functioning code at it(not a comment or something)

So lets say the file name is FmtDef.cxx, the line number is 82
(Code at that line is as follows
 fileStream.getline(charBuffer, 255);

So I start the app in gdb(here's the output).

gdb ./TEST
(gdb) break FmtDef.cxx:82
Breakpoint 1 at 0x11ed0: file FmtDef.cxx, line 82.
(gdb) run
(gdb) run
Starting program: /home/qb3/prog/TEST 

Program exited normally.
(gdb)

So its not stopping at that breakpoint.

This code is in a constructor. I can set a breakpoint on the
constructor, but not at a line in the constructor... oh... I think I
know the problem after I typed that last sentence. I kind of recall
reading something about this not working?

... I guess hopefully someone can confirm if this is the case or not.

Thanks
-grant


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-30  3:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-30  3:23 Problem setting breakpoints Grant Schoep
2004-04-30 23:10 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox