diff options
author | Tom Tromey <tromey@adacore.com> | 2022-11-01 12:48:27 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2025-04-26 15:03:00 -0600 |
commit | e5e619acf9922bd4c7be05d944eae34cc4fa413b (patch) | |
tree | 05db1521873b4c2e22405aef326d8858499bf0a4 /gdb/doc | |
parent | 8f9b303e68d1e5b48b253b0a215ef7761422fb8a (diff) | |
download | binutils-e5e619acf9922bd4c7be05d944eae34cc4fa413b.zip binutils-e5e619acf9922bd4c7be05d944eae34cc4fa413b.tar.gz binutils-e5e619acf9922bd4c7be05d944eae34cc4fa413b.tar.bz2 |
Add "maint canonicalize" command
This adds a new "maint canonicalize" command that can be used to see
the canonical form of a C++ name. I've needed this a few times when
debugging gdb.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Reviewed-By: Tom de Vries <tdevries@suse.de>
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/gdb.texinfo | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 362e6e7..9b4aa5b 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -41632,6 +41632,13 @@ into remote agent bytecodes and display them as a disassembled list. This command is useful for debugging the agent version of dynamic printf (@pxref{Dynamic Printf}). +@kindex maint canonicalize +@item maint canonicalize @var{name} +Print the canonical form of @var{name}, a C@t{++} name. Because a +C@t{++} name may have multiple possible spellings, @value{GDBN} +computes a canonical form of a name for internal use. For example, +@code{short int} and @code{short} are two ways to name the same type. + @kindex maint info breakpoints @anchor{maint info breakpoints} @item maint info breakpoints |