diff options
author | Andrew Burgess <aburgess@redhat.com> | 2023-09-24 13:37:06 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2023-10-05 12:21:46 +0100 |
commit | b09dba5a5fcf061bf93c1e5a5c9fd56928c6340c (patch) | |
tree | 77d9fcd92c4e4662ad6ae6a7b0e6a601fdf32989 /gdb/symfile.c | |
parent | 95cb8bf72b6f75e5b672131389ff7496bfa47ebe (diff) | |
download | gdb-b09dba5a5fcf061bf93c1e5a5c9fd56928c6340c.zip gdb-b09dba5a5fcf061bf93c1e5a5c9fd56928c6340c.tar.gz gdb-b09dba5a5fcf061bf93c1e5a5c9fd56928c6340c.tar.bz2 |
gdb: remove use of a static buffer for building error strings
I noticed in procfs.c that we use a static buffer for building error
strings when we could easily use std::string and string_printf to
achieve the same result, this commit does that.
I ran into this while performing a further refactor/cleanup that will
be presented in a later patch in this series, and thought this was
worth splitting out into its own patch.
As far as I can tell, only Solaris uses procfs.c, so I did a test
build on a Solaris machine, and I don't believe that I've broken
anything.
There should be no user visible changes after this commit.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/symfile.c')
0 files changed, 0 insertions, 0 deletions