gdb: new 'maint print frame-id' command
authorAndrew Burgess <aburgess@redhat.com>
Tue, 16 Aug 2022 15:48:01 +0000 (16:48 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 24 Aug 2022 13:44:20 +0000 (14:44 +0100)
commit70175292616118bad315296ba6180f375326bb6c
treed8d27502ccae432ab24e068dc659f864546e7089
parent42bd5254fb5f52f045796e1d9cce07102881d3b1
gdb: new 'maint print frame-id' command

When debugging a certain class of GDB bug, I often end up wanting to
know what GDB thinks the frame-id is in a particular frame.  It's
not too hard to pull this from some debug output, but I thought it
might be nice if there was a maintenance command that could tell us.

This commit adds 'maint print frame-id' which prints the frame-id of
the currently selected frame.  You can also pass a frame level number
to find the frame-id for a specific frame.

There's a new test too.
gdb/NEWS
gdb/doc/gdb.texinfo
gdb/frame.c
gdb/testsuite/gdb.base/maint-print-frame-id.c [new file with mode: 0644]
gdb/testsuite/gdb.base/maint-print-frame-id.exp [new file with mode: 0644]