aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-inferior.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-10-03 22:20:18 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-05 13:20:50 -0400
commitaa9be61e7d4097f62813c216b4dc2288b8b402d5 (patch)
tree17d2c74b0cd14f28b02c9e84fa0a9e9fd081c57c /gdb/python/py-inferior.c
parenta49d37f32e445f8d72085150889db3fbf11503f6 (diff)
downloadbinutils-aa9be61e7d4097f62813c216b4dc2288b8b402d5.zip
binutils-aa9be61e7d4097f62813c216b4dc2288b8b402d5.tar.gz
binutils-aa9be61e7d4097f62813c216b4dc2288b8b402d5.tar.bz2
gdb: add program_space parameter to emit_clear_objfiles_event
Add program_space space parameters to emit_clear_objfiles_event and create_clear_objfiles_event_object, making the reference to current_program_space bubble up a bit. Change-Id: I5fde2071712781e5d45971fa0ab34d85d3a49a71 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-inferior.c')
-rw-r--r--gdb/python/py-inferior.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c
index 906d402..e7a9d82 100644
--- a/gdb/python/py-inferior.c
+++ b/gdb/python/py-inferior.c
@@ -196,7 +196,7 @@ python_new_objfile (struct objfile *objfile)
if (objfile == NULL)
{
- if (emit_clear_objfiles_event () < 0)
+ if (emit_clear_objfiles_event (current_program_space) < 0)
gdbpy_print_stack ();
}
else