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>
This commit is contained in:
Simon Marchi
2023-10-03 22:20:18 -04:00
parent a49d37f32e
commit aa9be61e7d
3 changed files with 6 additions and 6 deletions

View File

@ -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