From: Jim Blandy <jimb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: RFA: Adapt linux-dp.exp to NPTL with debugging info
Date: Wed, 27 Oct 2004 23:46:00 -0000 [thread overview]
Message-ID: <vt2wtxbg21x.fsf@zenia.home> (raw)
I'm not sure this is the best approach to this. If either Michael can
give me a push in the right direction, I'll do my best.
gdb/testsuite/ChangeLog:
2004-10-27 Jim Blandy <jimb@redhat.com>
* gdb.threads/linux-dp.exp: Fix output regexp to handle output
under NPTL when there is debugging info available for libpthread.
Index: gdb/testsuite/gdb.threads/linux-dp.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/linux-dp.exp,v
retrieving revision 1.9
diff -c -r1.9 linux-dp.exp
*** gdb/testsuite/gdb.threads/linux-dp.exp 14 May 2003 19:36:56 -0000 1.9
--- gdb/testsuite/gdb.threads/linux-dp.exp 27 Oct 2004 23:45:21 -0000
***************
*** 117,123 ****
# Try setting a thread-specific breakpoint.
gdb_breakpoint "print_philosopher thread 5"
gdb_continue_to_breakpoint "thread 5's print"
! gdb_test "where" "print_philosopher.*philosopher.* from .*libpthread.*" \
"first thread-specific breakpoint hit"
# Make sure it's catching the right thread. Try hitting the
--- 117,129 ----
# Try setting a thread-specific breakpoint.
gdb_breakpoint "print_philosopher thread 5"
gdb_continue_to_breakpoint "thread 5's print"
! # When there is no debugging info available for the thread library,
! # the backtrace entry for philosopher's caller looks like:
! # #1 0x4001c548 in pthread_create () from /lib/libpthread.so.0
! # If you do have debug info, the output obviously depends more on the
! # exact library in use; under NPTL, you get:
! # #2 0x0012b7fc in start_thread (arg=0x21) at pthread_create.c:264
! gdb_test "where" "print_philosopher.*philosopher.* \(from .*libpthread\|at pthread_create\).*" \
"first thread-specific breakpoint hit"
# Make sure it's catching the right thread. Try hitting the
next reply other threads:[~2004-10-27 23:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-27 23:46 Jim Blandy [this message]
2004-12-07 21:17 ` Jim Blandy
2004-12-13 20:02 ` Michael Snyder
2004-12-15 21:12 ` Jim Blandy
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=vt2wtxbg21x.fsf@zenia.home \
--to=jimb@redhat.com \
--cc=gdb-patches@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