2011-05-18 Pedro Alves <pedro@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / arm-symbian-tdep.c
index 264c00f50fb3b6fe4aa689d6f82dde8865648cdb..034488183e95f8d6083878b5b25fac0689a09b0d 100644 (file)
@@ -1,7 +1,6 @@
 /* ARM Symbian OS target support.
 
-   Copyright (C) 2008, 2009, 2010
-   Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -69,6 +68,19 @@ arm_symbian_init_abi (struct gdbarch_info info,
   /* Shared library handling.  */
   set_gdbarch_skip_trampoline_code (gdbarch, arm_symbian_skip_trampoline_code);
 
+  /* On this target, the toolchain outputs ELF files, with `sym' for
+     filename extension (e.g., `FOO.sym'); these are post-linker
+     processed into PE-ish DLLs (e.g., `FOO.dll'), and it's these that
+     are actually copied to and run on the target.  Naturally, when
+     listing shared libraries, Symbian stubs report the DLL filenames.
+     Setting this makes it so that GDB automatically looks for the
+     corresponding ELF files on the host's filesystem.  */
+  set_gdbarch_solib_symbols_extension (gdbarch, "sym");
+
+  /* Canonical paths on this target look like `c:\sys\bin\bar.dll',
+     for example.  */
+  set_gdbarch_has_dos_based_file_system (gdbarch, 1);
+
   set_solib_ops (gdbarch, &solib_target_so_ops);
 }
 
This page took 0.024888 seconds and 4 git commands to generate.