Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Markus.Grunwald@pruftechnik.com
To: gdb@sourceware.org
Subject: gdb continues when I want "next"
Date: Fri, 02 Mar 2007 13:44:00 -0000	[thread overview]
Message-ID: <OF5D4B2DFE.92CE6F75-ONC1257292.004AD15D-C1257292.004B7C22@pruftechnik.com> (raw)

Hello,

Using gdb 6.3 (where the version doesn't matter that much. I had the same 
trouble with 6.6) on an up to date debian etch I have (at least) two 
errors:

1) I set (exactly) one breakpoint. gdb stops on it. But more often then 
not when you issue a "next" or "finish" command, the program just 
continues without halt and breaks at this breakpoint agin. The program 
that is debugged is multi threaded.
I _suspect_ that this only happens the first time that I debug the 
program: When the program ends and I type "run" for the second (and more) 
time, I can degub quite fine.


2) Conditions as above, but: Sometimes, I get this when reaching the 
breakpoint for the first time:

Breakpoint 1, CPTLinearGraphic::CalculateLinLines (this=0x9251de0)
    at 
/home/gru/projects/vxp/branches/branch-0-2-10-X/Dafit_Code/drawdevices/CPTLinearGraphic.cpp:1640
(gdb) n
(gdb) n
Detaching after fork from child process 29873.
[Thread -1863816272 (LWP 29869) exited]

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread -1863816272 (LWP 29869)]
0xb7446891 in __nptl_death_event () from 
/lib/tls/i686/cmov/libpthread.so.0
(gdb) fin
Run till exit from #0  0xb7446891 in __nptl_death_event ()
   from /lib/tls/i686/cmov/libpthread.so.0
0x90e86490 in ?? ()
(gdb) 
Run till exit from #0  0x90e86490 in ?? ()
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x0: Input/output error.


I really need some help, since my colleagues are starting to kill me 
because thay can't debug...
One more note: The debugged program is compiled with gcc 2.95.4. Ancient, 
but we have no other choice at the moment... :(


P.S. Sorry to Daniel, I should have postet this to the list the first time 
...

Best regards

Markus Grunwald
Softwareentwicklung

PRÜFTECHNIK Condition Monitoring GmbH
Oskar-Messter-Straße 19-21
85737 Ismaning
www.pruftechnik.com
Tel: +49 (0)89 99616177
Fax: +49 (0)89 99616200

PRÜFTECHNIK Condition Monitoring GmbH
Sitz Ismaning / HRB 145655 München 
Geschäftsführer: Johann Lösl, Roland Schühle

Ein Unternehmen der PRÜFTECHNIK-Gruppe


             reply	other threads:[~2007-03-02 13:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-02 13:44 Markus.Grunwald [this message]
2007-03-02 13:57 ` Daniel Jacobowitz
2007-03-07 19:09 ` Michael Snyder
2007-03-08 14:50   ` Markus.Grunwald
2007-03-08 15:01     ` Daniel Jacobowitz
2007-03-07 11:20 Markus.Grunwald
2007-03-07 12:13 ` 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=OF5D4B2DFE.92CE6F75-ONC1257292.004AD15D-C1257292.004B7C22@pruftechnik.com \
    --to=markus.grunwald@pruftechnik.com \
    --cc=gdb@sourceware.org \
    /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