This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/19750] New: defining hook(post)-where produces "'hook(post)-where' command does not hook any existing command"
- From: "r.l.bongers at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 01 Mar 2016 16:17:28 +0000
- Subject: [Bug gdb/19750] New: defining hook(post)-where produces "'hook(post)-where' command does not hook any existing command"
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19750
Bug ID: 19750
Summary: defining hook(post)-where produces "'hook(post)-where'
command does not hook any existing command"
Product: gdb
Version: 7.10
Status: NEW
Severity: minor
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: r.l.bongers at gmail dot com
Target Milestone: ---
Defining hook-where or hookpost-where produces the message that where is not an
existing command.
>(gdb) define hook-where
>Warning: Your new `hook-where' command does not hook any existing command.
>Proceed? (y or n)
>(gdb) define hookpost-where
>Warning: Your new `hookpost-where' command does not hook any existing command.
>Proceed? (y or n)
Where is indeed defined as a command.
>gdb helloworld.c
>b main
>r
>where
>#0 0x00000000004004ea in main ()
hook-(cmd) and hookpost-(cmd) work for other functions.
>(gdb) define hook-print
>>echo hook\n
>>end
>(gdb) print "test string"
>hook
>$1 = "test string"
Hooks for where cannot be defined in .gdbinit files or using the -x command on
scripts either.
Temporary solution if you only need basic where ability:
>define where
>frame
>end
>define hook-frame
>...
>end
--
You are receiving this mail because:
You are on the CC list for the bug.