gdb.arch/ppc64-atomic-inst.exp: Improve error handling.
gdb/testsuite/ 2014-04-01 Anton Blanchard <anton@samba.org> * gdb.arch/ppc64-atomic-inst.exp: Use untested. Make test messages unique.
This commit is contained in:
parent
3114cea14b
commit
98d1b8dcd8
|
@ -1,3 +1,8 @@
|
||||||
|
2014-04-01 Anton Blanchard <anton@samba.org>
|
||||||
|
|
||||||
|
* gdb.arch/ppc64-atomic-inst.exp: Use untested. Make test
|
||||||
|
messages unique.
|
||||||
|
|
||||||
2014-04-01 Anton Blanchard <anton@samba.org>
|
2014-04-01 Anton Blanchard <anton@samba.org>
|
||||||
|
|
||||||
* gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile,
|
* gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile,
|
||||||
|
|
|
@ -33,26 +33,26 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug quiet}]
|
||||||
}
|
}
|
||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "Couldn't run to breakpoint"
|
untested "could not run to main"
|
||||||
continue
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
set bp1 [gdb_get_line_number "lwarx"]
|
set bp1 [gdb_get_line_number "lwarx"]
|
||||||
gdb_breakpoint "$bp1" "Breakpoint $decimal at $hex" \
|
gdb_breakpoint "$bp1" "Breakpoint $decimal at $hex" \
|
||||||
"Set the breakpoint at the start of the sequence"
|
"Set the breakpoint at the start of the lwarx/stwcx sequence"
|
||||||
|
|
||||||
set bp2 [gdb_get_line_number "ldarx"]
|
set bp2 [gdb_get_line_number "ldarx"]
|
||||||
gdb_breakpoint "$bp2" "Breakpoint $decimal at $hex" \
|
gdb_breakpoint "$bp2" "Breakpoint $decimal at $hex" \
|
||||||
"Set the breakpoint at the start of the sequence"
|
"Set the breakpoint at the start of the ldarx/stdcx sequence"
|
||||||
|
|
||||||
gdb_test continue "Continuing.*Breakpoint $decimal.*" \
|
gdb_test continue "Continuing.*Breakpoint $decimal.*" \
|
||||||
"Continue until breakpoint"
|
"Continue until lwarx/stwcx start breakpoint"
|
||||||
|
|
||||||
gdb_test nexti "bne.*1b" \
|
gdb_test nexti "bne.*1b" \
|
||||||
"Step through the lwarx/stwcx sequence"
|
"Step through the lwarx/stwcx sequence"
|
||||||
|
|
||||||
gdb_test continue "Continuing.*Breakpoint $decimal.*" \
|
gdb_test continue "Continuing.*Breakpoint $decimal.*" \
|
||||||
"Continue until breakpoint"
|
"Continue until ldarx/stdcx start breakpoint"
|
||||||
|
|
||||||
gdb_test nexti "bne.*1b" \
|
gdb_test nexti "bne.*1b" \
|
||||||
"Step through the lwarx/stwcx sequence"
|
"Step through the ldarx/stdcx sequence"
|
||||||
|
|
Loading…
Reference in New Issue