]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Handle StackFrameFormat in DAP
authorTom Tromey <tromey@adacore.com>
Fri, 6 Oct 2023 19:40:39 +0000 (13:40 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 17 Nov 2023 14:09:36 +0000 (07:09 -0700)
commit1920148904fe5ca0035c1addf2376f9ab13ffd3d
tree69a13a377af5b457744e81be80a2f82aeb5581b5
parent74affa1bc070ff0530b2a1b92d8d9fbcae6024ec
Handle StackFrameFormat in DAP

DAP specifies a StackFrameFormat object that can be used to change how
the "name" part of a stack frame is constructed.  While this output
can already be done in a nicer way (and also letting the client choose
the formatting), nevertheless it is in the spec, so I figured I'd
implement it.

While implementing this, I discovered that the current code does not
correctly preserve frame IDs across requests.  I rewrote frame
iteration to preserve this, and it turned out to be simpler to combine
these patches.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30475
gdb/python/lib/gdb/dap/bt.py
gdb/python/lib/gdb/dap/frames.py
gdb/python/lib/gdb/dap/scopes.py
gdb/testsuite/gdb.dap/stack-format.c [new file with mode: 0644]
gdb/testsuite/gdb.dap/stack-format.exp [new file with mode: 0644]
gdb/testsuite/gdb.dap/stack-format.py [new file with mode: 0644]