From: Markus Deuling <deuling@de.ibm.com>
To: GDB Discuss <gdb@sources.redhat.com>
Subject: Bug#2199: Problem in gdb-6.5 (remote) while stepping over pthread_create() on x86 and powerpc
Date: Wed, 29 Nov 2006 18:21:00 -0000 [thread overview]
Message-ID: <456DCF95.7010509@de.ibm.com> (raw)
Hello,
I found a bug in gdb and opened a bug report on
http://sources.redhat.com/cgi-bin/gnatsweb.pl?database=gdb
(Bug #2199)
I found the bug when stepping over pthread_create(). The 'next' over
pthread_create() looses its breakpoint after returning. This only seems
to occur if the new Thread uses a shared library using dlopen()/dlsym().
This appears both on x86 and powerpc while remote debugging. I added a
testcases to the bug report which shows this result.
Here is a dump of the gdb session on powerpc. I used gdb-6.5 vanilla:
(gdb) target remote :1111
Remote debugging using :1111
0x0ffd60f0 in ?? ()
(gdb) br main
Breakpoint 1 at 0x10000684: file main.c, line 16.
(gdb) c
Continuing.
[New thread 6635]
[Switching to thread 6635]
Breakpoint 1, main () at main.c:16
16 for (cnt = 0; cnt < max_nr; cnt++)
(gdb) n
18 val = pthread_create (&thread_id[cnt], NULL, &test, NULL);
(gdb)
[New thread 6636]
[New thread 6638]
[New thread 6639]
Program exited normally.
(gdb)
Here you can see that gdb doesn't stop after next'ing over the first
pthread_create() as it should.
This is reproducible on x86.
Has someone an idea what went wrong ?
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
next reply other threads:[~2006-11-29 18:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 18:21 Markus Deuling [this message]
2006-11-29 18:32 ` 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=456DCF95.7010509@de.ibm.com \
--to=deuling@de.ibm.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