This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug macros/22467] New: No way to undefine defined function
- From: "hi-angel at yandex dot ru" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 21 Nov 2017 02:34:34 +0000
- Subject: [Bug macros/22467] New: No way to undefine defined function
- Auto-submitted: auto-generated
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.