]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: use std::string for internalvar::name
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 14 Feb 2023 19:23:25 +0000 (14:23 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 15 Feb 2023 16:37:17 +0000 (11:37 -0500)
commitf251cb9bae76441b43b3ea0b030086052eb54524
tree4e1b8f34ce9ed34f33f5b48d9c128e669eb3046f
parent81b86eced24f905545b58aa6c27478104c364976
gdb: use std::string for internalvar::name

Change internalvar::name to std::string, automating memory management.
It becomes necessary to allocate internalvar with new instead of XNEW.

I didn't find how to trigger the code in complete_internalvar.  It is
called from condition_completer, so it should be by using the
"condition" command, but I never managed to get in the right code path.

Change-Id: I814d61361663e7becb8f3fb5f58c0180cdc414bc
Approved-By: Tom Tromey <tom@tromey.com>
gdb/value.c