]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdbserver: dump 'xx...x' in collect_register_as_string for unavailable register
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Thu, 9 Jan 2025 08:06:00 +0000 (09:06 +0100)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Thu, 9 Jan 2025 08:06:00 +0000 (09:06 +0100)
commit60d95017ec97801b96181a29d1554e2ec69905cf
tree8d064876140332aa24e6b1d0d4e4efae0f12d8fb
parent42bcf692abd52ec1cb9d4bf3eca545e3b33fe536
gdbserver: dump 'xx...x' in collect_register_as_string for unavailable register

Fix 'collect_register_as_string' so that unavailable registers are
dumped as 'xx...x' instead of arbitrary values, in particular when
reporting expedited registers in a resume reply packet.  This change
gives the opportunity that we can reuse 'collect_register_as_string'
in 'registers_to_string' for additional code simplification.

Reviewed-By: Luis Machado <luis.machado@arm.com>
Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdbserver/regcache.cc