Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Grant Schoep" <gschoep@digitalglobe.com>
To: <gdb@sources.redhat.com>
Subject: Problem setting breakpoints
Date: Fri, 30 Apr 2004 03:23:00 -0000	[thread overview]
Message-ID: <9BFBCD030602DE4A98B0C0850B91534F205A43@COMAIL02.digitalglobe.com> (raw)

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


             reply	other threads:[~2004-04-29 23:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-30  3:23 Grant Schoep [this message]
2004-04-30 23:10 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9BFBCD030602DE4A98B0C0850B91534F205A43@COMAIL02.digitalglobe.com \
    --to=gschoep@digitalglobe.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox