* solib.c (solib_find): Replace extension if
[deliverable/binutils-gdb.git] / gdb / gdbarch.sh
index 441c515966c1967f772e271740b4d0834ada2446..28851675c517149d9dedefece728f7bc50dc4e4c 100755 (executable)
@@ -774,6 +774,14 @@ v:const char *:qsupported:::0:0::0:gdbarch->qsupported
 f:const char *:auto_charset:void::default_auto_charset:default_auto_charset::0
 # Return the "auto" target wide charset.
 f:const char *:auto_wide_charset:void::default_auto_wide_charset:default_auto_wide_charset::0
+
+# 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.
+v:const char *:solib_symbols_extension:::::::pstring (gdbarch->solib_symbols_extension)
 EOF
 }
 
@@ -1245,6 +1253,14 @@ pformat (const struct floatformat **format)
     return format[0]->name;
 }
 
+static const char *
+pstring (const char *string)
+{
+  if (string == NULL)
+    return "(null)";
+  return string;
+}
+
 EOF
 
 # gdbarch open the gdbarch object
This page took 0.025951 seconds and 4 git commands to generate.