This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fixes testsuit/gdb.base/annota1.exp to deal with 'Breakpoint address adjusted'
- From: Paul Gilliam <pgilliam at us dot ibm dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: Daniel Jacobowitz <drow at false dot org>
- Date: Fri, 15 Apr 2005 15:38:04 -0800
- Subject: [PATCH] Fixes testsuit/gdb.base/annota1.exp to deal with 'Breakpoint address adjusted'
- References: <200504071025.11668.pgilliam@us.ibm.com> <20050414193642.GB19792@nevyn.them.org>
- Reply-to: pgilliam at us dot ibm dot com
OK. ?this is in partial responce to:
????????http://sourceware.org/ml/gdb-patches/2005-04/msg00145.html
There were two problems with gdb.base/annota1.exp. This patch is only for the first one.
The problem here is that, in some architectures, a breakpoints in a shared object will be
adjusted once the shared object is loaded. This cause two messages not accounted
for by gdb.base/annota1.exp:
Breakpoint address adjusted from ....
Breakpoint <n> address previously adjusted from ...
-=# Paul #=-
--
2005-04-15 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.base/annota1.exp : Deal with messages caused by breakpoints in
shared objects being adjusted.
Index: gdb.base/annota1.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota1.exp,v
retrieving revision 1.16
diff -c -3 -p -r1.16 annota1.exp
*** gdb.base/annota1.exp 20 Jul 2004 00:24:41 -0000 1.16
--- gdb.base/annota1.exp 21 Sep 2004 20:42:29 -0000
*************** send_gdb "break printf\n"
*** 229,234 ****
--- 229,236 ----
gdb_expect {
-re "\r\n\032\032post-prompt\r\n\r\n\032\032breakpoints-invalid\r\nBreakpoint.*at $hex.*$gdb_prompt$" \
{ pass "breakpoint printf" }
+ -re "\r\n\032\032post-prompt\r\nwarning: Breakpoint address adjusted from $hex to $hex.\r\n\r\n\032\032breakpoints-invalid\r\nBreakpoint.*at $hex.*$gdb_prompt$" \
+ { pass "breakpoint printf"}
-re ".*$gdb_prompt$" { fail "break printf" }
timeout { fail "break printf (timeout)" }
}
*************** send_gdb "continue\n"
*** 240,245 ****
--- 242,249 ----
gdb_expect {
-re "\r\n\032\032post-prompt\r\nContinuing.\r\n\r\n\032\032starting\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032breakpoint 3\r\n\r\nBreakpoint 3, \r\n\032\032frame-begin 0 $hex\r\n\r\n(\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n)*\032\032frame-function-name\r\nprintf\r\n\032\032frame-args\r\n.*\032\032frame-end\r\n\r\n\032\032stopped\r\n$gdb_prompt$" \
{ pass "continue to printf" }
+ -re "\r\n\032\032post-prompt\r\nContinuing.\r\n\r\n\032\032starting\r\n\r\n\032\032frames-invalid\r\nwarning: Breakpoint 3 address previously adjusted from $hex to $hex.\r\n\r\n\032\032breakpoint 3\r\n\r\nBreakpoint 3, \r\n\032\032frame-begin 0 $hex\r\n\r\n(\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n)*.*\032\032frame-function-name\r\n.printf\r\n\032\032frame-args\r\n.*\032\032frame-end\r\n\r\n\032\032stopped\r\n$gdb_prompt$" \
+ { pass "continue to printf" }
-re ".*$gdb_prompt$" { fail "continue to printf" }
timeout { fail "continue to printf (timeout)" }
}