gdb/testsuite/
* gdb.trace/entry-values.exp: Modify regular expression to scan for 'bl' instruction instead of 'call' for ARM and AArch64 targets.
This commit is contained in:
parent
901461f8eb
commit
3f983d475a
|
@ -1,3 +1,8 @@
|
||||||
|
2013-10-02 Vidya Praveen <vidyapraveen@arm.com>
|
||||||
|
|
||||||
|
* gdb.trace/entry-values.exp: Modify regular expression to scan for
|
||||||
|
'bl' instruction instead of 'call' for ARM and AArch64 targets.
|
||||||
|
|
||||||
2013-10-02 Pedro Alves <palves@redhat.com>
|
2013-10-02 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* gdb.dwarf2/dw2-reg-undefined.exp <pattern_rax_rbx_rcx_print,
|
* gdb.dwarf2/dw2-reg-undefined.exp <pattern_rax_rbx_rcx_print,
|
||||||
|
|
|
@ -75,10 +75,16 @@ gdb_test_multiple $test $test {
|
||||||
set bar_length ""
|
set bar_length ""
|
||||||
set bar_call_foo ""
|
set bar_call_foo ""
|
||||||
|
|
||||||
|
if { [istarget "arm*-*-*"] || [istarget "aarch64*-*-*"] } {
|
||||||
|
set call_insn "bl"
|
||||||
|
} else {
|
||||||
|
set call_insn "call"
|
||||||
|
}
|
||||||
|
|
||||||
# Calculate the offset of the last instruction from the beginning.
|
# Calculate the offset of the last instruction from the beginning.
|
||||||
set test "disassemble bar"
|
set test "disassemble bar"
|
||||||
gdb_test_multiple $test $test {
|
gdb_test_multiple $test $test {
|
||||||
-re ".*$hex <\\+$decimal>:\[ \t\]+call\[^\r\n\]+\r\n\[ \]+$hex <\\+($decimal)>:" {
|
-re ".*$hex <\\+$decimal>:\[ \t\]+$call_insn\[^\r\n\]+\r\n\[ \]+$hex <\\+($decimal)>:" {
|
||||||
set bar_call_foo $expect_out(1,string)
|
set bar_call_foo $expect_out(1,string)
|
||||||
exp_continue
|
exp_continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue