* tracepoint.c (trace_save): Call the writer's start method.
[deliverable/binutils-gdb.git] / gdb / rs6000-aix-tdep.c
index b4fc931d2b399eb346e0eb6e62fd0c8ccb194e8d..0b70ad1670c903c509f80fe0736cadb40999f72b 100644 (file)
@@ -1,6 +1,6 @@
 /* Native support code for PPC AIX, for GDB the GNU debugger.
 
-   Copyright (C) 2006-2012 Free Software Foundation, Inc.
+   Copyright (C) 2006-2013 Free Software Foundation, Inc.
 
    Free Software Foundation, Inc.
 
@@ -35,6 +35,7 @@
 #include "rs6000-tdep.h"
 #include "ppc-tdep.h"
 #include "exceptions.h"
+#include "xcoffread.h"
 
 /* Hook for determining the TOC address when calling functions in the
    inferior under AIX.  The initialization code in rs6000-nat.c sets
@@ -739,6 +740,13 @@ rs6000_aix_osabi_sniffer (bfd *abfd)
 {
   gdb_assert (bfd_get_flavour (abfd) == bfd_target_xcoff_flavour);
 
+  /* The only noticeable difference between Lynx178 XCOFF files and
+     AIX XCOFF files comes from the fact that there are no shared
+     libraries on Lynx178.  On AIX, we are betting that an executable
+     linked with no shared library will never exist.  */
+  if (xcoff_get_n_import_files (abfd) <= 0)
+    return GDB_OSABI_UNKNOWN;
+
   return GDB_OSABI_AIX;
 }
 
This page took 0.026036 seconds and 4 git commands to generate.