forked from Imagelibrary/binutils-gdb
gdb: add program_space parameter to mark_breakpoints_out
Make the current_program_space reference bubble up one level. Change-Id: Idc8ed78d23bf3bb2969f6963d8cc049f26901c29 Approved-By: Andrew Burgess <aburgess@redhat.com>
This commit is contained in:
committed by
Simon Marchi
parent
38065394e9
commit
c72348e3b4
@@ -4216,13 +4216,13 @@ remove_breakpoint (struct bp_location *bl)
|
||||
return remove_breakpoint_1 (bl, REMOVE_BREAKPOINT);
|
||||
}
|
||||
|
||||
/* Clear the "inserted" flag in all breakpoints. */
|
||||
/* See breakpoint.h. */
|
||||
|
||||
void
|
||||
mark_breakpoints_out (void)
|
||||
mark_breakpoints_out (program_space *pspace)
|
||||
{
|
||||
for (bp_location *bl : all_bp_locations ())
|
||||
if (bl->pspace == current_program_space)
|
||||
if (bl->pspace == pspace)
|
||||
bl->inserted = 0;
|
||||
}
|
||||
|
||||
@@ -4248,7 +4248,7 @@ breakpoint_init_inferior (enum inf_context context)
|
||||
if (gdbarch_has_global_breakpoints (current_inferior ()->arch ()))
|
||||
return;
|
||||
|
||||
mark_breakpoints_out ();
|
||||
mark_breakpoints_out (pspace);
|
||||
|
||||
for (breakpoint &b : all_breakpoints_safe ())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user