aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcall.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-05-16 17:04:13 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-07-15 14:34:12 -0400
commitd1e4438fa183c92487d18b7ccfbe0c10166709d9 (patch)
treefa5b21bbe5b9d0dfe7546bc96c509ff8c341c72b /gdb/infcall.c
parentb7513ebd18f4d930e8ff806609be1bf75a7b9b9a (diff)
downloadgdb-d1e4438fa183c92487d18b7ccfbe0c10166709d9.zip
gdb-d1e4438fa183c92487d18b7ccfbe0c10166709d9.tar.gz
gdb-d1e4438fa183c92487d18b7ccfbe0c10166709d9.tar.bz2
gdb: pass program space to entry_point_address
Make the current program space reference bubble up one level. Change-Id: Ifc9b8186abaefb10caf99f79ae09e526fa65c882 Approved-By: Tom Tromey <tom@tromey.com> Reviewed-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r--gdb/infcall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index edac9a7..559fcb7 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -1271,7 +1271,7 @@ call_function_by_hand_dummy (struct value *function,
CORE_ADDR dummy_addr;
real_pc = funaddr;
- dummy_addr = entry_point_address ();
+ dummy_addr = entry_point_address (current_program_space);
/* A call dummy always consists of just a single breakpoint, so
its address is the same as the address of the dummy.