aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch_components.py
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-03-21 11:15:56 -0600
committerTom Tromey <tromey@adacore.com>2024-03-22 13:17:43 -0600
commitc05dd51122c2d654031b04e02ad0ea5b53ffe5e2 (patch)
treedf883998b862b998f58d2b1edefa8bc96a84c725 /gdb/gdbarch_components.py
parentaf25053d5f9e1867bd0df1d5f168c803e1d7d015 (diff)
downloadbinutils-c05dd51122c2d654031b04e02ad0ea5b53ffe5e2.zip
binutils-c05dd51122c2d654031b04e02ad0ea5b53ffe5e2.tar.gz
binutils-c05dd51122c2d654031b04e02ad0ea5b53ffe5e2.tar.bz2
Use std::string for disassembler options
I noticed that the disassembler_options code uses manual memory management. It seemed simpler to replace this with std::string. Approved-By: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'gdb/gdbarch_components.py')
-rw-r--r--gdb/gdbarch_components.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbarch_components.py b/gdb/gdbarch_components.py
index 762d48a..7d913ad 100644
--- a/gdb/gdbarch_components.py
+++ b/gdb/gdbarch_components.py
@@ -2711,7 +2711,7 @@ Functions for allowing a target to modify its disassembler options.
)
Value(
- type="char **",
+ type="std::string *",
name="disassembler_options",
invalid=False,
printer="pstring_ptr (gdbarch->disassembler_options)",