diff options
author | Tom Tromey <tromey@adacore.com> | 2023-06-14 06:09:23 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-07-10 13:17:30 -0600 |
commit | 5b86f10883d37e46aeeafa2818e227737d068dff (patch) | |
tree | 73eb2ca4ca737742fa8b253a887e112fed568b28 /gdb/testsuite/gdb.dap/scopes.c | |
parent | f921fe93188991bf20fa2b9b5e7de6e591097b72 (diff) | |
download | binutils-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.c | 3 |
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 */ } } |