diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-05-16 16:50:22 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-07-15 14:34:12 -0400 |
commit | 3bae94c0fb82d5eb9c36c926534fced6db198d82 (patch) | |
tree | a0e9eb77343407a84b9f4d1d8c8694b6ef55ba88 /gdb/python | |
parent | 9c067e28448f0314d1b0440945e16382a226fd7b (diff) | |
download | binutils-3bae94c0fb82d5eb9c36c926534fced6db198d82.zip binutils-3bae94c0fb82d5eb9c36c926534fced6db198d82.tar.gz binutils-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/python')
-rw-r--r-- | gdb/python/python.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index e9092b4..d86a031 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -963,7 +963,7 @@ gdbpy_decode_line (PyObject *self, PyObject *args) else { set_default_source_symtab_and_line (); - def_sal = get_current_source_symtab_and_line (); + def_sal = get_current_source_symtab_and_line (current_program_space); sals = def_sal; } } |