]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Convert tdesc's expedite_regs to a string vector
authorLuis Machado <luis.machado@arm.com>
Mon, 11 Sep 2023 11:42:00 +0000 (12:42 +0100)
committerLuis Machado <luis.machado@arm.com>
Wed, 4 Oct 2023 15:23:39 +0000 (16:23 +0100)
commit6a65998a8a94abaaae7ca4ff0ab9c3f25dc2e766
tree0f54ed9f908f46e885e081fbfbeb6263793c2a4c
parentca65640ff724f330e90e63ae0b14a195be79b4f6
Convert tdesc's expedite_regs to a string vector

Right now the list of expedited registers is stored as an array of char *,
with a nullptr element at the end to signal its last element.

Convert expedite_regs to a std::vector of std::string so it is easier to
manage the elements and the storage is handled automatically.

Eventually we might want to convert all the target functions so they pass a
std::vector of std::string as well. Or maybe expose an interface that target can
use to add expedited registers on-by-one depending on the target description
discovery needs, as opposed to just a static list of char *.

Reviewed-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Approved-By: Tom Tromey <tom@tromey.com>
gdbserver/remote-utils.cc
gdbserver/tdesc.cc
gdbserver/tdesc.h