diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-05-16 17:01:47 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-07-15 14:34:12 -0400 |
commit | b7513ebd18f4d930e8ff806609be1bf75a7b9b9a (patch) | |
tree | 6e33996071156ac4cbb849be25cc8f9820cf082d /gdb/objfiles.h | |
parent | da2732476dbd1b8a71510d999b6d18754d7ea58a (diff) | |
download | gdb-b7513ebd18f4d930e8ff806609be1bf75a7b9b9a.zip gdb-b7513ebd18f4d930e8ff806609be1bf75a7b9b9a.tar.gz gdb-b7513ebd18f4d930e8ff806609be1bf75a7b9b9a.tar.bz2 |
gdb: pass program space to entry_point_address_query
Make the current program space bubble up one level.
Change-Id: Ic3ad0869ca1afe41854f605a6f7eb092fca29ff8
Approved-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 6a4724a..45a06ec 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -912,7 +912,11 @@ obj_section::set_offset (CORE_ADDR offset) /* Declarations for functions defined in objfiles.c */ -extern int entry_point_address_query (CORE_ADDR *entry_p); +/* If there is a valid and known entry point in PSPACE, fill *ENTRY_P with it + and return non-zero. */ + +extern int entry_point_address_query (program_space *pspace, + CORE_ADDR *entry_p); extern CORE_ADDR entry_point_address (void); |