This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/testsuite] Adjust step-bt testcase
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 10 Aug 2006 09:05:32 -0400
- Subject: Re: [RFA/testsuite] Adjust step-bt testcase
- References: <20060810041258.GD15936@adacore.com>
On Wed, Aug 09, 2006 at 09:12:58PM -0700, Joel Brobecker wrote:
> Hello Daniel,
>
> re: http://www.sourceware.org/ml/gdb/2006-08/msg00079.html
>
> Would the attached patch fix your problem?
Nope - the "in" is apparently optional too. I tested and committed
this variant.
--
Daniel Jacobowitz
CodeSourcery
2006-08-10 Joel Brobecker <brobecker@adacore.com>
Daniel Jacobowitz <dan@codesourcery.com>
* gdb.base/step-bt.exp: Make hexadecimal address optional in
expected output of the backtrace commands.
Index: step-bt.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/step-bt.exp,v
retrieving revision 1.1
diff -u -p -r1.1 step-bt.exp
--- step-bt.exp 8 Aug 2006 21:50:54 -0000 1.1
+++ step-bt.exp 10 Aug 2006 13:03:19 -0000
@@ -63,7 +63,7 @@ gdb_test "stepi" \
"step first instruction"
gdb_test "bt" \
- "#0 +0x\[0-9a-z\]+ in hello .*#1 +0x\[0-9a-z\]* in main.*" \
+ "#0 +(0x\[0-9a-z\]+ in )?hello .*#1 +(0x\[0-9a-z\]* in )?main.*" \
"backtrace after first instruction step"
gdb_test "stepi" \
@@ -71,6 +71,6 @@ gdb_test "stepi" \
"step second instruction"
gdb_test "bt" \
- "#0 +0x\[0-9a-z\]+ in hello .*#1 +0x\[0-9a-z\]* in main.*" \
+ "#0 +(0x\[0-9a-z\]+ in )?hello .*#1 +(0x\[0-9a-z\]* in )?main.*" \
"backtrace after second instruction step"