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/break-catch-load.c | |
parent | 200b85632a99e749e14d1c026b7e24c15a5e2776 (diff) | |
download | binutils-98107b0b17acd9d2c28829cbe93a75b72677d220.zip binutils-98107b0b17acd9d2c28829cbe93a75b72677d220.tar.gz binutils-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/break-catch-load.c')
-rw-r--r-- | gdb/break-catch-load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/break-catch-load.c b/gdb/break-catch-load.c index 94d8b42..76a7ce5 100644 --- a/gdb/break-catch-load.c +++ b/gdb/break-catch-load.c @@ -120,7 +120,7 @@ solib_catchpoint::check_status (struct bpstat *bs) for (so_list *iter : current_program_space->added_solibs) { if (!regex - || compiled->exec (iter->so_name, 0, NULL, 0) == 0) + || compiled->exec (iter->so_name.c_str (), 0, nullptr, 0) == 0) return; } } |