diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-10-08 01:16:29 +0000 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-19 10:57:51 -0400 |
commit | 98107b0b17acd9d2c28829cbe93a75b72677d220 (patch) | |
tree | fcbc63a8764ed76342d61e040e92cc2f61a8764e /gdb/solist.h | |
parent | 200b85632a99e749e14d1c026b7e24c15a5e2776 (diff) | |
download | gdb-98107b0b17acd9d2c28829cbe93a75b72677d220.zip gdb-98107b0b17acd9d2c28829cbe93a75b72677d220.tar.gz gdb-98107b0b17acd9d2c28829cbe93a75b72677d220.tar.bz2 |
gdb: make so_list::{so_original_name,so_name} std::strings
Change these two fields, simplifying memory management and copying.
Change-Id: If2559284c515721e71e1ef56ada8b64667eebe55
Approved-By: Pedro Alves <pedro@palves.net>
Reviewed-By: Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb/solist.h')
-rw-r--r-- | gdb/solist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solist.h b/gdb/solist.h index 671f881..9320acb 100644 --- a/gdb/solist.h +++ b/gdb/solist.h @@ -65,10 +65,10 @@ struct so_list which needs to be looked up in LD_LIBRARY_PATH, etc. We use it to tell which entries in the inferior's dynamic linker's link map we've already loaded. */ - char so_original_name[SO_NAME_MAX_PATH_SIZE] {}; + std::string so_original_name; /* Shared object file name, expanded to something GDB can open. */ - char so_name[SO_NAME_MAX_PATH_SIZE] {}; + std::string so_name; /* The following fields of the structure are built from information gathered from the shared object file itself, and |