This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/15830] New: upgrade "maint demangle" to a regular user command.


http://sourceware.org/bugzilla/show_bug.cgi?id=15830

            Bug ID: 15830
           Summary: upgrade "maint demangle" to a regular user command.
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: palves at redhat dot com

GDB has all the bits necessary internally already for doing the equivalent
of:

  $ echo _ZNSt16nested_exceptionD2Ev | c++filt
  std::nested_exception::~nested_exception()

In fact, it already has such a command -- "maint demangle".
Demangling is something a user will reasonable want to do.  IBWN to expose this
functionality as a regular user command.

-----

>From <http://sourceware.org/ml/gdb/2013-08/msg00052.html>:

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> On 08/09/2013 11:22 AM, Jan Kratochvil wrote:
>> (gdb) maintenance demangle _ZNSt16nested_exceptionD2Ev
>> std::nested_exception::~nested_exception()

Pedro> Interesting.  It seems a pity this is a maintenance
Pedro> command.  Shouldn't we "upgrade" it to a regular user command?

Yeah, though the command as currently formulated is a bit of a pain.  At
least, I usually forget to "set lang c++" first and then have to go
back.  Similarly, sometimes it would be nice to be able to specify the
language as an argument.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]