From: Randolph Chung <randolph@tausq.org>
To: gdb-patches@sources.redhat.com
Subject: [patch/rfa] Allow breakpoing to be added after inferior has started
Date: Sat, 22 May 2004 02:31:00 -0000 [thread overview]
Message-ID: <20040522023133.GG7207@tausq.org> (raw)
The shlib-call.exp test fails on hppa (also ia64) because it tries to
add a breakpoint before the inferior is started, so there's no where
to put the breakpoint. gdb can handle this case if we allow pending
breakpoints in the test.
this only works on x86 and some other architectures because they put
instructions into the plt; but some architectures put addresses in the
plt.
ok to commit?
randolph
2004-05-21 Randolph Chung <tausq@debian.org>
* gdb.base/shlib-call.exp: Allow breakpoint to be added after inferior
has started.
Index: testsuite/gdb.base/shlib-call.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/shlib-call.exp,v
retrieving revision 1.8
diff -u -p -r1.8 shlib-call.exp
--- testsuite/gdb.base/shlib-call.exp 2 Feb 2004 21:14:33 -0000 1.8
+++ testsuite/gdb.base/shlib-call.exp 22 May 2004 02:18:34 -0000
@@ -291,17 +291,17 @@ send_gdb "set width 0\n" ; gdb_expect -r
# PR's 16495, 18213
# test that we can re-set breakpoints in shared libraries
-gdb_breakpoint "shr1"
+gdb_breakpoint "shr1" "allow-pending"
# FIXME: should not send "run" explicitly. Non-portable.
if ![is_remote target] {
- gdb_test "run" "Starting program:.*Breakpoint 1,.*" \
+ gdb_test "run" "Starting program:.*Breakpoint .,.*" \
"run to bp in shared library"
gdb_test "cont" ".*Program exited normally..*"
- gdb_test "run" "Starting program:.*Breakpoint 1,.*" \
+ gdb_test "run" "Starting program:.*Breakpoint .,.*" \
"re-run to bp in shared library (PR's 16495, 18213)"
gdb_test "cont" ".*Program exited normally..*"
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
next reply other threads:[~2004-05-22 2:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-22 2:31 Randolph Chung [this message]
2004-05-25 18:17 ` Andrew Cagney
2004-05-25 18:30 ` Randolph Chung
2004-06-07 3:04 ` Randolph Chung
2004-06-07 15:20 ` 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=20040522023133.GG7207@tausq.org \
--to=randolph@tausq.org \
--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