Examine instruction at label start' instead of _start'.

This commit is contained in:
Kevin Buettner 2010-06-14 19:21:11 +00:00
parent 84477db9a3
commit df0f48365c
14 changed files with 24 additions and 13 deletions

View File

@ -1,3 +1,14 @@
2010-06-14 Kevin Buettner <kevinb@redhat.com>
* 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'.
2010-06-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gdb.mi/mi-nonstop.exp: Do not call perror if non-stop mode is

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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)"

View File

@ -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)"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"