aboutsummaryrefslogtreecommitdiff
path: root/gdb/proc-api.c
diff options
context:
space:
mode:
authorAntoine Tremblay <antoine.tremblay@ericsson.com>2015-10-21 11:13:42 -0400
committerAntoine Tremblay <antoine.tremblay@ericsson.com>2015-10-21 11:26:05 -0400
commitb0b4b5019484fbf1dd074527270f193703411498 (patch)
tree6a3a49b010c06e9641f05892330dbea02623fb1c /gdb/proc-api.c
parent8689682cc375f6f30d65f1583b3aaa3e6a1e4d63 (diff)
downloadgdb-b0b4b5019484fbf1dd074527270f193703411498.zip
gdb-b0b4b5019484fbf1dd074527270f193703411498.tar.gz
gdb-b0b4b5019484fbf1dd074527270f193703411498.tar.bz2
Refactor the breakpoint definitions in linux-arm-low.c.
Before arm_sw_breakpoint_from_kind would use an #ifdef to return the right arm_breakpoint from the abi or eabi breakpoint type. arm_breakpoint_at would also check for the arm_breakpoint || arm_eabi_breakpoint. Thus the selected arm_breakpoint would be what arm_sw_breakpoint_from_kind returned and arm_breakpoint was arm_abi_breakpoint. This patch makes it more clear by naming those for what they are : 2 separate entities: arm_abi_breakpoint and arm_eabi_breakpoint and set the current used one as arm_breakpoint. This allows a cleaner arm_sw_breakpoint_from_kind as it just returns arm_breakpoint rather than having the #ifdef in that function. Any other reference to the arm_breakpoint can now also be clear of #ifdefs... No regressions on Ubuntu 14.04 on ARMv7 and x86. With gdbserver-{native,extended} / { -marm -mthumb } gdb/gdbserver/ChangeLog: * linux-arm-low.c: Refactor breakpoint definitions. (arm_breakpoint_at): Adjust for arm_abi_breakpoint. (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
Diffstat (limited to 'gdb/proc-api.c')
0 files changed, 0 insertions, 0 deletions