diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-08-17 13:29:22 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-09-07 15:10:37 +0100 |
commit | 747656685b3e8477868478cd927fbb2834937aff (patch) | |
tree | 029d92127ea0f6b4a181712a606fe23e1b090e69 /gdb/arm-netbsd-tdep.c | |
parent | 64dbf74d428e97de737c13f42767dab88493f187 (diff) | |
download | gdb-747656685b3e8477868478cd927fbb2834937aff.zip gdb-747656685b3e8477868478cd927fbb2834937aff.tar.gz gdb-747656685b3e8477868478cd927fbb2834937aff.tar.bz2 |
gdb: make use of std::string in utils.c
Replace some of the manual string management (malloc/free) with
std::string when creating commands in utils.c.
Things are a little bit messy as, creating the prefix commands (using
add_basic_prefix_cmd and add_show_prefix_cmd), doesn't copy the doc
string, while creating the actual set/show commands (using
add_setshow_enum_cmd) does copy the doc string.
As a result, I have retained the use of xstrprintf when creating the
prefix command doc strings, but switched to using std::string when
creating the actual set/show commands.
There should be no user visible changes after this commit.
Diffstat (limited to 'gdb/arm-netbsd-tdep.c')
0 files changed, 0 insertions, 0 deletions