diff options
author | Pedro Alves <palves@redhat.com> | 2010-04-24 13:12:56 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-04-24 13:12:56 +0000 |
commit | ab38a727c990476872ac4995792fc0d38d922d7f (patch) | |
tree | 9005fd3fefc5d3ab38663bba14fcebf841041a64 /gdb/gdbarch.c | |
parent | 9a83a5533e5c082e2555505e7290456e4eb6afcb (diff) | |
download | binutils-gdb-ab38a727c990476872ac4995792fc0d38d922d7f.tar.gz |
* defs.h: Adjust comment.
* filesystem.h, filesystem.c: New files.
* Makefile.in (SFILES): Add filesystem.c.
(COMMON_OBS): Add filesystem.o.
* solib.c (solib_find): Handle DOS-based filesystems. Handle
different target and host path flavours.
* arm-symbian-tdep.c (arm_symbian_init_abi): Set
has_dos_based_file_system on the gdbarch.
* arm-wince-tdep.c (arm_wince_init_abi): Ditto.
* i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
* i386-tdep.c (i386_go32_init_abi): Ditto.
* gdbarch.sh (has_dos_based_file_system): New.
* gdbarch.h, gdbarch.c: Regenerate.
* NEWS: Mention improved support for remote targets with DOS-based
filesystems. Mention new `set/show target-file-system-kind'
commands.
gdb/doc/
* gdb.texinfo (Commands to specify files): Describe what how GDB
looks up DOS-based filesystem paths on the system root. Document
the new `set/show target-file-system-kind' commands.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 9aa6111c6f3..fa08fe02c40 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -264,6 +264,7 @@ struct gdbarch gdbarch_auto_charset_ftype *auto_charset; gdbarch_auto_wide_charset_ftype *auto_wide_charset; const char * solib_symbols_extension; + int has_dos_based_file_system; }; @@ -411,6 +412,7 @@ struct gdbarch startup_gdbarch = default_auto_charset, /* auto_charset */ default_auto_wide_charset, /* auto_wide_charset */ 0, /* solib_symbols_extension */ + 0, /* has_dos_based_file_system */ /* startup_gdbarch() */ }; @@ -682,6 +684,7 @@ verify_gdbarch (struct gdbarch *gdbarch) /* Skip verify of qsupported, invalid_p == 0 */ /* Skip verify of auto_charset, invalid_p == 0 */ /* Skip verify of auto_wide_charset, invalid_p == 0 */ + /* Skip verify of has_dos_based_file_system, invalid_p == 0 */ buf = ui_file_xstrdup (log, &length); make_cleanup (xfree, buf); if (length > 0) @@ -927,6 +930,9 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) "gdbarch_dump: get_syscall_number = <%s>\n", host_address_to_string (gdbarch->get_syscall_number)); fprintf_unfiltered (file, + "gdbarch_dump: has_dos_based_file_system = %s\n", + plongest (gdbarch->has_dos_based_file_system)); + fprintf_unfiltered (file, "gdbarch_dump: has_global_breakpoints = %s\n", plongest (gdbarch->has_global_breakpoints)); fprintf_unfiltered (file, @@ -3676,6 +3682,23 @@ set_gdbarch_solib_symbols_extension (struct gdbarch *gdbarch, gdbarch->solib_symbols_extension = solib_symbols_extension; } +int +gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch) +{ + gdb_assert (gdbarch != NULL); + /* Skip verify of has_dos_based_file_system, invalid_p == 0 */ + if (gdbarch_debug >= 2) + fprintf_unfiltered (gdb_stdlog, "gdbarch_has_dos_based_file_system called\n"); + return gdbarch->has_dos_based_file_system; +} + +void +set_gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch, + int has_dos_based_file_system) +{ + gdbarch->has_dos_based_file_system = has_dos_based_file_system; +} + /* Keep a registry of per-architecture data-pointers required by GDB modules. */ |