diff options
author | Tom Tromey <tromey@adacore.com> | 2019-08-01 09:34:40 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-10-02 09:53:17 -0600 |
commit | 1dd588507782591478882a891f64945af9e2b86c (patch) | |
tree | ecd664c126fdab1a950c0bba67e35c3e2e5bccad /gdb/symmisc.c | |
parent | 5c281dbb2458be9d58355e865f527e96b40bcd8c (diff) | |
download | gdb-1dd588507782591478882a891f64945af9e2b86c.zip gdb-1dd588507782591478882a891f64945af9e2b86c.tar.gz gdb-1dd588507782591478882a891f64945af9e2b86c.tar.bz2 |
Make current_source_* per-program-space
This changes current_source_symtab and current_source_line to be
per-program-space. This ensures that switching inferiors will
preserve the current "list" location for that inferior, and also
ensures that the default expression evaluation context always comes
with the current inferior.
No test case, because the latter problem crops up with an existing
gdb.multi test case once this entire series has been applied.
gdb/ChangeLog
2019-10-02 Tom Tromey <tromey@adacore.com>
* source.c (struct current_source_location): New.
(current_source_key): New global.
(current_source_symtab, current_source_line)
(current_source_pspace): Remove.
(get_source_location): New function.
(get_current_source_symtab_and_line)
(set_default_source_symtab_and_line)
(set_current_source_symtab_and_line)
(clear_current_source_symtab_and_line, select_source_symtab)
(info_source_command, print_source_lines_base)
(info_line_command, search_command_helper, _initialize_source):
Update.
Diffstat (limited to 'gdb/symmisc.c')
0 files changed, 0 insertions, 0 deletions