aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-lang.c
diff options
context:
space:
mode:
authorShahab Vahedi <shahab@synopsys.com>2020-11-10 19:34:57 +0100
committerShahab Vahedi <shahab@synopsys.com>2020-12-22 12:16:17 +0100
commit46023bbe81355230b4e7b76d3084337823d02362 (patch)
treebbdc7000a47c4c145664381126987bf30b99a559 /gdb/c-lang.c
parentd4af727286e3a9f177ba11677fbd3a012d36558a (diff)
downloadbinutils-46023bbe81355230b4e7b76d3084337823d02362.zip
binutils-46023bbe81355230b4e7b76d3084337823d02362.tar.gz
binutils-46023bbe81355230b4e7b76d3084337823d02362.tar.bz2
arc: Take into account the REGNUM in supply/collect gdb hooks
All the arc_linux_supply_*() target operations and the arc_linux_collect_v2_regset() in arc-linux-tdep.c were supplying/collecting all the registers in regcache as if the REGNUM was set to -1. The more efficient behavior is to examine the REGNUM and act accordingly. That is what this patch does. gdb/ChangeLog: * arc-linux-tdep.c (supply_register): New. (arc_linux_supply_gregset, arc_linux_supply_v2_regset, arc_linux_collect_v2_regset): Consider REGNUM.
Diffstat (limited to 'gdb/c-lang.c')
0 files changed, 0 insertions, 0 deletions