]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
arc: Take into account the REGNUM in supply/collect gdb hooks
authorShahab Vahedi <shahab@synopsys.com>
Tue, 10 Nov 2020 18:34:57 +0000 (19:34 +0100)
committerShahab Vahedi <shahab@synopsys.com>
Tue, 22 Dec 2020 11:16:17 +0000 (12:16 +0100)
commit46023bbe81355230b4e7b76d3084337823d02362
treebbdc7000a47c4c145664381126987bf30b99a559
parentd4af727286e3a9f177ba11677fbd3a012d36558a
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.
gdb/ChangeLog
gdb/arc-linux-tdep.c