diff options
author | Tom de Vries <tdevries@suse.de> | 2020-06-11 14:10:05 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-06-11 14:10:05 +0200 |
commit | a8baf0a32b8f8fe151762c6c0136fef4bae2facd (patch) | |
tree | b47647ab8cf287aec9c59115234a340e121d22bd /gdb/solib-darwin.c | |
parent | 14962256b310efddf677ff4f5c9fa41047f48c39 (diff) | |
download | gdb-a8baf0a32b8f8fe151762c6c0136fef4bae2facd.zip gdb-a8baf0a32b8f8fe151762c6c0136fef4bae2facd.tar.gz gdb-a8baf0a32b8f8fe151762c6c0136fef4bae2facd.tar.bz2 |
[gdb/testsuite] Make gdb.base/dbx.exp more robust
Test-case gdb.base/dbx.exp overrides:
- the GDBFLAGS variable
- the gdb_file_cmd proc
There's code at the end of the test-case to restore both, but that's not
guaranteed to be executed.
Fix this by:
- using save_vars to restore GDBFLAGS
- using a new proc with_override to restore gdb_file_cmd
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2020-06-11 Tom de Vries <tdevries@suse.de>
* lib/gdb.exp (with_override): New proc, factored out of ...
* gdb.base/dbx.exp: ... here. Use with_override and save_vars.
Diffstat (limited to 'gdb/solib-darwin.c')
0 files changed, 0 insertions, 0 deletions