summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vrany <jan.vrany@labware.com>2021-12-08 10:46:49 +0000
committerJan Vrany <jan.vrany@labware.com>2021-12-08 10:46:49 +0000
commit2bd64d21094f9527c9a6019f668c16ca897b2631 (patch)
tree8cc6fda87a0ccdc6011237b1ce30876661a5698f /gdb/disasm.c
parentppc: use "trap" ("tw, 31, 0, 0") as breakpoint instruction (diff)
downloadbinutils-gdb-2bd64d21094f9527c9a6019f668c16ca897b2631.tar.gz
binutils-gdb-2bd64d21094f9527c9a6019f668c16ca897b2631.tar.bz2
binutils-gdb-2bd64d21094f9527c9a6019f668c16ca897b2631.zip
ppc: recognize all program traps
Permanent program breakpoints (ones inserted into the code) other than the one GDB uses for POWER (0x7fe00008) did not result in stop but caused GDB to loop infinitely. This was because GDB did not recognize trap instructions other than "trap". For example, "tw 12, 4, 4" was not be recognized, causing GDB to loop forever. This commit fixes this by providing POWER specific hook (gdbarch_program_breakpoint_here_p) recognizing all tw, twi, td and tdi instructions. Tested on Linux on PowerPC e500 and on QEMU PPC64le.
Diffstat (limited to 'gdb/disasm.c')
0 files changed, 0 insertions, 0 deletions