int
breakpoints_should_be_inserted_now (void)
{
- if (gdbarch_has_global_breakpoints (target_gdbarch ()))
+ if (gdbarch_has_global_breakpoints (current_inferior ()->arch ()))
{
/* If breakpoints are global, they should be inserted even if no
thread under gdb's control is running, or even if there are
to select an inferior to insert breakpoint to. In fact, even
if we aren't attached to any process yet, we should still
insert breakpoints. */
- if (!gdbarch_has_global_breakpoints (target_gdbarch ())
+ if (!gdbarch_has_global_breakpoints (current_inferior ()->arch ())
&& (inferior_ptid == null_ptid || !target_has_execution ()))
continue;
to select an inferior to insert breakpoint to. In fact, even
if we aren't attached to any process yet, we should still
insert breakpoints. */
- if (!gdbarch_has_global_breakpoints (target_gdbarch ())
+ if (!gdbarch_has_global_breakpoints (current_inferior ()->arch ())
&& (inferior_ptid == null_ptid || !target_has_execution ()))
continue;
/* If breakpoint locations are shared across processes, then there's
nothing to do. */
- if (gdbarch_has_global_breakpoints (target_gdbarch ()))
+ if (gdbarch_has_global_breakpoints (current_inferior ()->arch ()))
return;
mark_breakpoints_out ();
/* For backward compatibility, don't display inferiors in CLI unless
there are several. Always display for MI. */
if (allflag
- || (!gdbarch_has_global_breakpoints (target_gdbarch ())
+ || (!gdbarch_has_global_breakpoints (current_inferior ()->arch ())
&& (program_spaces.size () > 1
|| number_of_inferiors () > 1)
/* LOC is for existing B, it cannot be in
breakpoint_address_match (const address_space *aspace1, CORE_ADDR addr1,
const address_space *aspace2, CORE_ADDR addr2)
{
- return ((gdbarch_has_global_breakpoints (target_gdbarch ())
+ return ((gdbarch_has_global_breakpoints (current_inferior ()->arch ())
|| aspace1 == aspace2)
&& addr1 == addr2);
}
int len1, const address_space *aspace2,
CORE_ADDR addr2)
{
- return ((gdbarch_has_global_breakpoints (target_gdbarch ())
+ return ((gdbarch_has_global_breakpoints (current_inferior ()->arch ())
|| aspace1 == aspace2)
&& addr2 >= addr1 && addr2 < addr1 + len1);
}
const address_space *aspace,
CORE_ADDR addr, int len)
{
- if (gdbarch_has_global_breakpoints (target_gdbarch ())
+ if (gdbarch_has_global_breakpoints (current_inferior ()->arch ())
|| bl->pspace->aspace == aspace)
{
int bl_len = bl->length != 0 ? bl->length : 1;