* solib.c (solib_find): Replace extension if
[deliverable/binutils-gdb.git] / gdb / arm-symbian-tdep.c
index 264c00f50fb3b6fe4aa689d6f82dde8865648cdb..32f65f40a50aeccc8dc3ed894188dbd376f8050d 100644 (file)
@@ -69,6 +69,15 @@ 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");
+
   set_solib_ops (gdbarch, &solib_target_so_ops);
 }
 
This page took 0.031194 seconds and 4 git commands to generate.