This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Remove underscore from 'start' label in h8300 disasm tests


I've just committed the patch below.   It fixes regressions caused by
defining elf_symbol_leading_char for h8300 in bfd.  See:

    http://sourceware.org/ml/binutils/2010-06/msg00199.html

(Note that the testsuite/gdb.asm/t01_*.exp files are all h8300 specific.)

Kevin

gdb/testsuite/ChangeLog:

	* gdb.disasm/t01_mov.exp, gdb.disasm/t02_mova.exp,
	gdb.disasm/t03_add.exp, gdb.disasm/t04_sub.exp,
	gdb.disasm/t05_cmp.exp, gdb.disasm/t06_ari2.exp,
	gdb.disasm/t07_ari3.exp, gdb.disasm/t08_or.exp,
	gdb.disasm/t09_xor.exp, gdb.disasm/t10_and.exp,
	gdb.disasm/t11_logs.exp, gdb.disasm/t12_bit.exp,
	gdb.disasm/t13_otr.exp: Examine instruction at label `start' instead
	of `_start'.

Index: testsuite/gdb.disasm/t01_mov.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t01_mov.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t01_mov.exp
--- testsuite/gdb.disasm/t01_mov.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t01_mov.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x/i _start" "mov.b	#0x12(:8|),r3h" \
+gdb_test "x/i start" "mov.b	#0x12(:8|),r3h" \
 	"mov.b	#0x12:8,r3h"
 gdb_test "x" "mov.b	#0x12(:8|),@er3" \
 	"mov.b	#0x12:8,@er3"
Index: testsuite/gdb.disasm/t02_mova.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t02_mova.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t02_mova.exp
--- testsuite/gdb.disasm/t02_mova.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t02_mova.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x /i _start" "mova/b.l\t@\\(0x1234(:16|),r3l.b\\),er1" \
+gdb_test "x /i start" "mova/b.l\t@\\(0x1234(:16|),r3l.b\\),er1" \
 	"mova/b.c @(0x1234:16,r3l.b),er1"
 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),r3.w\\),er1" \
 	"mova/b.c @(0x1234:16,r3.w),er1"
Index: testsuite/gdb.disasm/t03_add.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t03_add.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t03_add.exp
--- testsuite/gdb.disasm/t03_add.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t03_add.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x /i _start" "add.b\t#0x12(:8|),r1h" \
+gdb_test "x /i start" "add.b\t#0x12(:8|),r1h" \
 	"add.b #0x12:8,r1h"
 gdb_test "x" "add.b\t#0x12(:8|),@er1" \
 	"add.b #0x12:8,@er1"
Index: testsuite/gdb.disasm/t04_sub.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t04_sub.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t04_sub.exp
--- testsuite/gdb.disasm/t04_sub.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t04_sub.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x /i _start" "sub.b\t#0x12(:8|),@er1" \
+gdb_test "x /i start" "sub.b\t#0x12(:8|),@er1" \
 	"sub.b #0x12:8,@er1"
 gdb_test "x" "sub.b\t#0x12(:8|),@\\(0x3(:2|),er1\\)" \
 	"sub.b #0x12:8,@(0x3:2,er1)"
Index: testsuite/gdb.disasm/t05_cmp.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t05_cmp.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t05_cmp.exp
--- testsuite/gdb.disasm/t05_cmp.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t05_cmp.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x /i _start" "cmp.b\t@er3,@er1" \
+gdb_test "x /i start" "cmp.b\t@er3,@er1" \
 	"cmp.b @er3,@er1"
 gdb_test "x" "cmp.b\t@er3,@\\(0x3(:2|),er1\\)" \
 	"cmp.b @er3,@(0x3:2,er1)"
Index: testsuite/gdb.disasm/t06_ari2.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t06_ari2.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t06_ari2.exp
--- testsuite/gdb.disasm/t06_ari2.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t06_ari2.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x /i _start" "addx(.b|)\t#0x12(:8|),r1h" \
+gdb_test "x /i start" "addx(.b|)\t#0x12(:8|),r1h" \
 	"addx.b #0x12:8,r1h"
 gdb_test "x" "addx(.b|)\t#0x12(:8|),@er1" \
 	"addx.b #0x12:8,@er1"
Index: testsuite/gdb.disasm/t07_ari3.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t07_ari3.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t07_ari3.exp
--- testsuite/gdb.disasm/t07_ari3.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t07_ari3.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x /i _start" "neg.b\tr1h" \
+gdb_test "x /i start" "neg.b\tr1h" \
 	"neg.b r1h"
 gdb_test "x" "neg.b\t@er1" \
 	"neg.b @er1"
Index: testsuite/gdb.disasm/t08_or.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t08_or.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t08_or.exp
--- testsuite/gdb.disasm/t08_or.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t08_or.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x /i _start" "or.b\t#0x12(:8|),r1h" \
+gdb_test "x /i start" "or.b\t#0x12(:8|),r1h" \
 	"or.b #0x12:8,r1h"
 gdb_test "x" "or.b\t#0x12(:8|),@er1" \
 	"or.b #0x12:8,@er1"
Index: testsuite/gdb.disasm/t09_xor.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t09_xor.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t09_xor.exp
--- testsuite/gdb.disasm/t09_xor.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t09_xor.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x /i _start" "xor.b\t#0x12(:8|),r1h" \
+gdb_test "x /i start" "xor.b\t#0x12(:8|),r1h" \
 	"xor.b #0x12:8,r1h"
 gdb_test "x" "xor.b\t#0x12(:8|),@er1" \
 	"xor.b #0x12:8,@er1"
Index: testsuite/gdb.disasm/t10_and.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t10_and.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t10_and.exp
--- testsuite/gdb.disasm/t10_and.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t10_and.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x /i _start" "and.b\t#0x12(:8|),r1h" \
+gdb_test "x /i start" "and.b\t#0x12(:8|),r1h" \
 	"and.b #0x12:8,r1h"
 gdb_test "x" "and.b\t#0x12(:8|),@er1" \
 	"and.b #0x12:8,@er1"
Index: testsuite/gdb.disasm/t11_logs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t11_logs.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t11_logs.exp
--- testsuite/gdb.disasm/t11_logs.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t11_logs.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x /i _start" "not.b\tr1h" \
+gdb_test "x /i start" "not.b\tr1h" \
 	"not.b r1h"
 gdb_test "x" "not.b\t@er1" \
 	"not.b @er1"
Index: testsuite/gdb.disasm/t12_bit.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t12_bit.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t12_bit.exp
--- testsuite/gdb.disasm/t12_bit.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t12_bit.exp	14 Jun 2010 18:57:38 -0000
@@ -48,7 +48,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
 
-gdb_test "x /i _start" "bset\t#0x7,r1h" \
+gdb_test "x /i start" "bset\t#0x7,r1h" \
 	"bset #0x7,r1h"
 gdb_test "x" "bset\t#0x7,@er1" \
 	"bset #0x7,@er1"
Index: testsuite/gdb.disasm/t13_otr.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.disasm/t13_otr.exp,v
retrieving revision 1.9
diff -u -p -r1.9 t13_otr.exp
--- testsuite/gdb.disasm/t13_otr.exp	5 May 2010 18:06:59 -0000	1.9
+++ testsuite/gdb.disasm/t13_otr.exp	14 Jun 2010 18:57:38 -0000
@@ -50,7 +50,7 @@ gdb_load $binfile
 
 global hex
 
-gdb_test "x /i _start" "bra\t.\\+18 \\($hex\\)" \
+gdb_test "x /i start" "bra\t.\\+18 \\($hex\\)" \
 	"bra .+18"
 gdb_test "x" "brn\t.\\+18 \\($hex\\)" \
 	"brn .+18"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]