/* Every process, although has its own address space, sees the same
list of shared libraries. There's no "main executable" in DICOS,
so this accounts for all code. */
- set_gdbarch_has_global_solist (gdbarch, 1);
+ set_gdbarch_has_global_solist (gdbarch, true);
/* The DICOS breakpoint API takes care of magically making
breakpoints visible to all inferiors. */
- set_gdbarch_has_global_breakpoints (gdbarch, 1);
+ set_gdbarch_has_global_breakpoints (gdbarch, true);
/* There's no (standard definition of) entry point or a guaranteed
text location with a symbol where to place the call dummy, so we
gdbarch_dtrace_probe_is_enabled_ftype *dtrace_probe_is_enabled = nullptr;
gdbarch_dtrace_enable_probe_ftype *dtrace_enable_probe = nullptr;
gdbarch_dtrace_disable_probe_ftype *dtrace_disable_probe = nullptr;
- int has_global_solist = 0;
- int has_global_breakpoints = 0;
+ bool has_global_solist = false;
+ bool has_global_breakpoints = false;
gdbarch_has_shared_address_space_ftype *has_shared_address_space = default_has_shared_address_space;
gdbarch_fast_tracepoint_valid_at_ftype *fast_tracepoint_valid_at = default_fast_tracepoint_valid_at;
gdbarch_guess_tracepoint_registers_ftype *guess_tracepoint_registers = default_guess_tracepoint_registers;
gdbarch->dtrace_disable_probe = dtrace_disable_probe;
}
-int
+bool
gdbarch_has_global_solist (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
void
set_gdbarch_has_global_solist (struct gdbarch *gdbarch,
- int has_global_solist)
+ bool has_global_solist)
{
gdbarch->has_global_solist = has_global_solist;
}
-int
+bool
gdbarch_has_global_breakpoints (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
void
set_gdbarch_has_global_breakpoints (struct gdbarch *gdbarch,
- int has_global_breakpoints)
+ bool has_global_breakpoints)
{
gdbarch->has_global_breakpoints = has_global_breakpoints;
}
an address space, will see the same set of symbols at the same
addresses. */
-extern int gdbarch_has_global_solist (struct gdbarch *gdbarch);
-extern void set_gdbarch_has_global_solist (struct gdbarch *gdbarch, int has_global_solist);
+extern bool gdbarch_has_global_solist (struct gdbarch *gdbarch);
+extern void set_gdbarch_has_global_solist (struct gdbarch *gdbarch, bool has_global_solist);
/* On some targets, even though each inferior has its own private
address space, the debug interface takes care of making breakpoints
visible to all address spaces automatically. For such cases,
this property should be set to true. */
-extern int gdbarch_has_global_breakpoints (struct gdbarch *gdbarch);
-extern void set_gdbarch_has_global_breakpoints (struct gdbarch *gdbarch, int has_global_breakpoints);
+extern bool gdbarch_has_global_breakpoints (struct gdbarch *gdbarch);
+extern void set_gdbarch_has_global_breakpoints (struct gdbarch *gdbarch, bool has_global_breakpoints);
/* True if inferiors share an address space (e.g., uClinux). */
an address space, will see the same set of symbols at the same
addresses.
""",
- type="int",
+ type="bool",
name="has_global_solist",
- predefault="0",
+ predefault="false",
invalid=False,
)
visible to all address spaces automatically. For such cases,
this property should be set to true.
""",
- type="int",
+ type="bool",
name="has_global_breakpoints",
- predefault="0",
+ predefault="false",
invalid=False,
)