ppc: use "trap" ("tw, 31, 0, 0") as breakpoint instruction
authorJan Vrany <jan.vrany@labware.com>
Wed, 8 Dec 2021 10:46:49 +0000 (10:46 +0000)
committerJan Vrany <jan.vrany@labware.com>
Wed, 8 Dec 2021 10:46:49 +0000 (10:46 +0000)
commit44f3c3c212f9b568a6b3cff0444b6750e3d8680f
tree6f795ccfca317b5e990a5298bffc9c449daceed8
parenta619b58721f0a03fd91c27670d3e4c2fb0d88f1e
ppc: use "trap" ("tw, 31, 0, 0") as breakpoint instruction

Power ISA 3.0 B spec [1], sections 3.3.11 "Fixed-Point Trap Instructions"
and section C.6 "Trap Mnemonics" specify "tw, 31, 0, 0" (encoded as
0x7fe00008) as canonical unconditional trap instruction.

This commit changes the breakpoint instruction used by GDB from
"tw 12, r2, r2" to unconditional "trap".

[1]: https://openpowerfoundation.org/?resource_lib=power-isa-version-3-0
gdb/rs6000-tdep.c