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_auto_wide_charset_ftype *auto_wide_charset = default_auto_wide_charset;
- int has_dos_based_file_system = 0;
+ bool has_dos_based_file_system = false;
gdbarch_gen_return_address_ftype *gen_return_address = default_gen_return_address;
gdbarch_info_proc_ftype *info_proc = nullptr;
gdbarch_core_info_proc_ftype *core_info_proc = nullptr;
gdbarch->auto_wide_charset = auto_wide_charset;
}
-int
+bool
gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
void
set_gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch,
- int has_dos_based_file_system)
+ bool has_dos_based_file_system)
{
gdbarch->has_dos_based_file_system = has_dos_based_file_system;
}
is, absolute paths include a drive name, and the backslash is
considered a directory separator. */
-extern int gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch);
-extern void set_gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch, int has_dos_based_file_system);
+extern bool gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch);
+extern void set_gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch, bool has_dos_based_file_system);
/* Generate bytecodes to collect the return address in a frame.
Since the bytecodes run on the target, possibly with GDB not even
is, absolute paths include a drive name, and the backslash is
considered a directory separator.
""",
- type="int",
+ type="bool",
name="has_dos_based_file_system",
- predefault="0",
+ predefault="false",
invalid=False,
)
if (!tdesc_has_registers (info.target_desc))
tdep->tdesc = i386_target_description (X86_XSTATE_X87_MASK, false);
- set_gdbarch_has_dos_based_file_system (gdbarch, 1);
+ set_gdbarch_has_dos_based_file_system (gdbarch, true);
set_gdbarch_wchar_bit (gdbarch, 16);
set_gdbarch_wchar_signed (gdbarch, false);
/* Canonical paths on this target look like
`c:\Program Files\Foo App\mydll.dll', for example. */
- set_gdbarch_has_dos_based_file_system (gdbarch, 1);
+ set_gdbarch_has_dos_based_file_system (gdbarch, true);
set_gdbarch_make_solib_ops (gdbarch, make_windows_solib_ops);