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 macros/22467] New: No way to undefine defined function


https://sourceware.org/bugzilla/show_bug.cgi?id=22467

            Bug ID: 22467
           Summary: No way to undefine defined function
           Product: gdb
           Version: 8.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: macros
          Assignee: unassigned at sourceware dot org
          Reporter: hi-angel at yandex dot ru
  Target Milestone: ---

gdb has lots of shortcuts, and sometimes user-defined functions overlaps with
them. E.g. I was just experimenting with printing within a live debugging
session, and without any backthought I defined a function named "p". This
effectively made all my commands on breakpoints that using "p" as a shortcut to
"print" invalid, and worsened experience because I can't use the single letter
anymore; and there's no way to revert this change other than quitting the
session or defining a function "p" with a loop for passing arguments to the
actual "print".

There should be a way to undefine user-defined functions.

There's also a question on SO:
https://stackoverflow.com/questions/32378107/delete-user-defined-commands-in-gdb

-- 
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]