This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] testsuite: Fix gdb.arch/i386-bp_permanent.exp regression
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Date: Sun, 24 Jan 2010 05:32:58 +0100
- Subject: [obv] testsuite: Fix gdb.arch/i386-bp_permanent.exp regression
Hi,
fixed
Running ./gdb.arch/i386-bp_permanent.exp ...
-FAIL: gdb.arch/i386-bp_permanent.exp: Disassemble function 'standard'
-FAIL: gdb.arch/i386-bp_permanent.exp: Disassemble failed, skipping entire test.
+PASS: gdb.arch/i386-bp_permanent.exp: Stop at the 'standard' start breakpoint (fetching esp).
+PASS: gdb.arch/i386-bp_permanent.exp: Stop at permanent breakpoint.
+PASS: gdb.arch/i386-bp_permanent.exp: Single stepping past permanent breakpoint.
+PASS: gdb.arch/i386-bp_permanent.exp: ESP value does not match - step_permanent_breakpoint wrong.
due to
[patch] Omit function name when disassembling one function [Was: Re: [RFC][patch] Allow to disassemble line.]
http://sourceware.org/ml/gdb-patches/2009-10/msg00505.html
http://sourceware.org/ml/gdb-cvs/2009-10/msg00161.html
according to the approved adjustment there:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.asm/asm-source.exp.diff?cvsroot=src&r1=1.74&r2=1.75
Regards,
Jan
http://sourceware.org/ml/gdb-cvs/2010-01/msg00203.html
--- src/gdb/testsuite/ChangeLog 2010/01/22 17:06:49 1.2099
+++ src/gdb/testsuite/ChangeLog 2010/01/24 04:29:32 1.2100
@@ -1,3 +1,8 @@
+2010-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.arch/i386-bp_permanent.exp (Disassemble function '$function'):
+ Adjust it for DISASSEMBLY_OMIT_FNAME.
+
2010-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
PR symtab/11199:
--- src/gdb/testsuite/gdb.arch/i386-bp_permanent.exp 2010/01/01 07:32:00 1.3
+++ src/gdb/testsuite/gdb.arch/i386-bp_permanent.exp 2010/01/24 04:29:32 1.4
@@ -62,7 +62,7 @@
set function standard
set retcode [gdb_test_multiple "disassemble $function" "Disassemble function '$function'" {
- -re ".*($hex) <$function\\+0>.*($hex) <$function\\+4>.*($hex) <$function\\+5>.*($hex) <$function\\+6>.*$gdb_prompt $" {
+ -re ".*($hex) <\\+0>.*($hex) <\\+4>.*($hex) <\\+5>.*($hex) <\\+6>.*$gdb_prompt $" {
set function_start $expect_out(1,string);
set address $expect_out(2,string);
set address1 $expect_out(3,string);