aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dap/scopes.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-06-14 06:09:23 -0600
committerTom Tromey <tromey@adacore.com>2023-07-10 13:17:30 -0600
commit5b86f10883d37e46aeeafa2818e227737d068dff (patch)
tree73eb2ca4ca737742fa8b253a887e112fed568b28 /gdb/testsuite/gdb.dap/scopes.c
parentf921fe93188991bf20fa2b9b5e7de6e591097b72 (diff)
downloadbinutils-5b86f10883d37e46aeeafa2818e227737d068dff.zip
binutils-5b86f10883d37e46aeeafa2818e227737d068dff.tar.gz
binutils-5b86f10883d37e46aeeafa2818e227737d068dff.tar.bz2
Reimplement DAP stack traces using frame filters
This reimplements DAP stack traces using frame filters. This slightly simplifies the code, because frame filters and DAP were already doing some similar work. This also renames RegisterReference and ScopeReference to make it clear that these are private (and so changes don't have to worry about other files). Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30468
Diffstat (limited to 'gdb/testsuite/gdb.dap/scopes.c')
-rw-r--r--gdb/testsuite/gdb.dap/scopes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dap/scopes.c b/gdb/testsuite/gdb.dap/scopes.c
index ce87db1..a9ad4d8 100644
--- a/gdb/testsuite/gdb.dap/scopes.c
+++ b/gdb/testsuite/gdb.dap/scopes.c
@@ -30,6 +30,7 @@ int main ()
{
const char *inner = "inner block";
- return 0; /* BREAK */
+ /* Make sure to use 'scalar'. */
+ return scalar - 23; /* BREAK */
}
}