aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-hooks.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-05-16 16:50:22 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-07-15 14:34:12 -0400
commit3bae94c0fb82d5eb9c36c926534fced6db198d82 (patch)
treea0e9eb77343407a84b9f4d1d8c8694b6ef55ba88 /gdb/tui/tui-hooks.c
parent9c067e28448f0314d1b0440945e16382a226fd7b (diff)
downloadgdb-3bae94c0fb82d5eb9c36c926534fced6db198d82.zip
gdb-3bae94c0fb82d5eb9c36c926534fced6db198d82.tar.gz
gdb-3bae94c0fb82d5eb9c36c926534fced6db198d82.tar.bz2
gdb: pass program space to get_current_source_symtab_and_line
Make the current program space reference bubble up one level. Change-Id: I6ba6dc4a2cb188720cbb61b84ab5c954aac105c6 Approved-By: Tom Tromey <tom@tromey.com> Reviewed-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Diffstat (limited to 'gdb/tui/tui-hooks.c')
-rw-r--r--gdb/tui/tui-hooks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index e6673ab..25358d0 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -127,7 +127,8 @@ tui_refresh_frame_and_register_information ()
/* Make sure that the source window is displayed. */
tui_add_win_to_layout (SRC_WIN);
- struct symtab_and_line sal = get_current_source_symtab_and_line ();
+ symtab_and_line sal
+ = get_current_source_symtab_and_line (current_program_space);
tui_update_source_windows_with_line (sal);
}
}