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/source.h | |
parent | 9c067e28448f0314d1b0440945e16382a226fd7b (diff) | |
download | fsf-binutils-gdb-3bae94c0fb82d5eb9c36c926534fced6db198d82.zip fsf-binutils-gdb-3bae94c0fb82d5eb9c36c926534fced6db198d82.tar.gz fsf-binutils-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/source.h')
-rw-r--r-- | gdb/source.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/source.h b/gdb/source.h index 4eb1793..541ee3b 100644 --- a/gdb/source.h +++ b/gdb/source.h @@ -23,6 +23,7 @@ struct program_space; struct symtab; +struct symtab_and_line; /* See openp function definition for their description. */ @@ -108,7 +109,8 @@ extern int get_lines_to_list (void); /* Return the current source file for listing and next line to list. NOTE: The returned sal pc and end fields are not valid. */ -extern struct symtab_and_line get_current_source_symtab_and_line (void); +extern symtab_and_line get_current_source_symtab_and_line + (program_space *pspace); /* If the current source file for listing is not set, try and get a default. Usually called before get_current_source_symtab_and_line() is called. |