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)
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.


No differences found
This page took 0.026309 seconds and 4 git commands to generate.