aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64-tdep.h
diff options
context:
space:
mode:
authorPierre Langlois <pierre.langlois@arm.com>2015-09-21 15:01:05 +0100
committerYao Qi <yao.qi@linaro.org>2015-09-21 15:01:05 +0100
commit4f51c22aca0d53526e65954b99d1ab3abfbb8bc8 (patch)
tree375046bfd173a633f320d51c668563df5bb6ee66 /gdb/sparc64-tdep.h
parent7041adf41fc291659fa4d102b50539946403f97e (diff)
downloadgdb-4f51c22aca0d53526e65954b99d1ab3abfbb8bc8.zip
gdb-4f51c22aca0d53526e65954b99d1ab3abfbb8bc8.tar.gz
gdb-4f51c22aca0d53526e65954b99d1ab3abfbb8bc8.tar.bz2
Add a gdb.trace test for instruction relocation
This test case makes sure that relocating PC relative instructions does not change their behaviors. All PC relative AArch64 instructions are covered. While call and jump (32 bit relative) instructions are covered on x86. The test case creates a static array of function pointers for each supported architecture. Each function in this array tests a specific instruction using inline assembly. They all need to contain a symbol in the form of 'set_point\[0-9\]+' and finish by either calling pass or fail. The number of 'set_pointN' needs to go from 0 to (ARRAY_SIZE - 1). The test will: - look up the number of function pointers in the static array. - set fast tracepoints on each 'set_point\[0-9\]+' symbol, one in each functions from 0 to (ARRAY_SIZE - 1). - run the trace experiment and make sure the pass function is called for every function. gdb/testsuite/ChangeLog: * gdb.arch/insn-reloc.c: New file. * gdb.arch/ftrace-insn-reloc.exp: New file.
Diffstat (limited to 'gdb/sparc64-tdep.h')
0 files changed, 0 insertions, 0 deletions