* gdb.base/step-test.exp: Allow MIPS to return to the line of a
function call.
This commit is contained in:
parent
b51c15537d
commit
f4f00b1fe5
@ -1,3 +1,8 @@
|
|||||||
|
2002-12-03 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
* gdb.base/step-test.exp: Allow MIPS to return to the line of a
|
||||||
|
function call.
|
||||||
|
|
||||||
2002-11-25 Jim Blandy <jimb@redhat.com>
|
2002-11-25 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
* lib/mi-support.exp (mi_delete_breakpoints): Change name of
|
* lib/mi-support.exp (mi_delete_breakpoints): Change name of
|
||||||
|
@ -78,7 +78,8 @@ gdb_test "step" ".*${decimal}.*myglob.*" "step into"
|
|||||||
# On PA64, we end up at a different instruction than PA32.
|
# On PA64, we end up at a different instruction than PA32.
|
||||||
# On IA-64, we also end up on callee instead of on the next line due
|
# On IA-64, we also end up on callee instead of on the next line due
|
||||||
# to the restoration of the global pointer (which is a caller-save).
|
# to the restoration of the global pointer (which is a caller-save).
|
||||||
if { [istarget "hppa2.0w-hp-hpux*"] || [istarget "ia64-*-*"]} {
|
# Similarly on MIPS PIC targets.
|
||||||
|
if { [istarget "hppa2.0w-hp-hpux*"] || [istarget "ia64-*-*"] || [istarget "mips*-*-*"]} {
|
||||||
send_gdb "finish\n"
|
send_gdb "finish\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re ".*${decimal}.*a.*5.*= a.*3.*$gdb_prompt $" { pass "step out 1" }
|
-re ".*${decimal}.*a.*5.*= a.*3.*$gdb_prompt $" { pass "step out 1" }
|
||||||
@ -176,8 +177,11 @@ gdb_expect {
|
|||||||
# On PA64, we end up at a different instruction than PA32.
|
# On PA64, we end up at a different instruction than PA32.
|
||||||
# On IA-64, we end up on callee instead of on the following line due
|
# On IA-64, we end up on callee instead of on the following line due
|
||||||
# to the restoration of the global pointer.
|
# to the restoration of the global pointer.
|
||||||
if { [istarget "hppa2.0w-hp-hpux*"] || [istarget "ia64-*-*"] } {
|
# Similarly on MIPS PIC targets.
|
||||||
|
if { [istarget "hppa2.0w-hp-hpux*"] || [istarget "ia64-*-*"] || [istarget "mips*-*-*"] } {
|
||||||
pass "stepi: finish call 2"
|
pass "stepi: finish call 2"
|
||||||
|
test_i "stepi: past call" "stepi" \
|
||||||
|
".*${decimal}.*callee.*STEPI" ".*${decimal}.*callee.*NEXTI"
|
||||||
} else {
|
} else {
|
||||||
fail "stepi: finish call 2"
|
fail "stepi: finish call 2"
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user