gdb: make use of std::string in dbxread.c and xcoffread.c
authorAndrew Burgess <aburgess@redhat.com>
Sat, 19 Feb 2022 13:08:32 +0000 (13:08 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 21 Feb 2022 11:40:39 +0000 (11:40 +0000)
commit9c6c44713f31f7b27bfe6921de378fa69127a048
treea92572af687abed7335d56c0dd8942c9d721d5b8
parentdc5483c989f29fc9c7934965071ae1bb80cff902
gdb: make use of std::string in dbxread.c and xcoffread.c

While taking a look through dbxread.c I spotted a couple of places
where making use of std::string would remove the need for manual
memory allocation and memcpy.

During review Simon pointed out that the same code exists in
xcoffread.c, so I've applied the same fix there too.

There should be no user visible changes after this commit.
gdb/dbxread.c
gdb/xcoffread.c