diff options
author | Yao Qi <yao@codesourcery.com> | 2014-12-30 14:40:49 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2015-01-08 11:45:51 +0800 |
commit | acc018ac031c9e03e012d7d2f3871bfe6b16168d (patch) | |
tree | f8595aa7b2c11a60994ba181aafacd37e72d77e6 /gdb/probe.h | |
parent | 1e508ea5e14eab82759a3f3272cc0456b4928a53 (diff) | |
download | gdb-acc018ac031c9e03e012d7d2f3871bfe6b16168d.zip gdb-acc018ac031c9e03e012d7d2f3871bfe6b16168d.tar.gz gdb-acc018ac031c9e03e012d7d2f3871bfe6b16168d.tar.bz2 |
Recognize branch instruction on MIPS in gdb.trace/entry-values.exp
The test entry-values.exp doesn't recognize the call instructions
on MIPS, such as JAL, JALS and etc, so this patch sets call_insn
to match various jump and branch instructions first.
Currently, we assume the next instruction address of call instruction
is the address returned from foo, however it is not correct on MIPS
which has delay slot. We extend variable call_insn to match one
instruction after jump or branch instruction, so that
$returned_from_foo is correct on MIPS.
All tests in entry-values.exp are PASS.
gdb/testsuite:
2015-01-08 Yao Qi <yao@codesourcery.com>
* gdb.trace/entry-values.exp: Set call_insn for MIPS target.
Diffstat (limited to 'gdb/probe.h')
0 files changed, 0 insertions, 0 deletions