aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-03-08 19:28:27 +0000
committerPedro Alves <palves@redhat.com>2010-03-08 19:28:27 +0000
commit081058572de4f2c063bfbe76017134a9d8fd9907 (patch)
tree696e5bf63f919faf20ad6e98c777394acb0f619f /gdb/gdbarch.h
parent7c953934352840c28dcda0c8a6a18660aa1e3ab9 (diff)
downloadgdb-081058572de4f2c063bfbe76017134a9d8fd9907.zip
gdb-081058572de4f2c063bfbe76017134a9d8fd9907.tar.gz
gdb-081058572de4f2c063bfbe76017134a9d8fd9907.tar.bz2
* solib.c (solib_find): Replace extension if
solib_symbols_extension is set in the target gdbarch. * arm-symbian-tdep.c (arm_symbian_init_abi): Set solib_symbols_extension to "sym". * gdbarch.sh (solib_symbols_extension): New variable. (pstring): New function. * gdbarch.h, gdbarch.c: Regenerate.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 83281f4..ec5f9d8 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -940,6 +940,16 @@ typedef const char * (gdbarch_auto_wide_charset_ftype) (void);
extern const char * gdbarch_auto_wide_charset (struct gdbarch *gdbarch);
extern void set_gdbarch_auto_wide_charset (struct gdbarch *gdbarch, gdbarch_auto_wide_charset_ftype *auto_wide_charset);
+/* If non-empty, this is a file extension that will be opened in place
+ of the file extension reported by the shared library list.
+
+ This is most useful for toolchains that use a post-linker tool,
+ where the names of the files run on the target differ in extension
+ compared to the names of the files GDB should load for debug info. */
+
+extern const char * gdbarch_solib_symbols_extension (struct gdbarch *gdbarch);
+extern void set_gdbarch_solib_symbols_extension (struct gdbarch *gdbarch, const char * solib_symbols_extension);
+
/* Definition for an unknown syscall, used basically in error-cases. */
#define UNKNOWN_SYSCALL (-1)