1999-05-10 DJ Delorie <dj@cygnus.com>
[deliverable/binutils-gdb.git] / bfd / cisco-core.c
index 3008dbaf3d34872b521a0c27591878b49d626b52..11c9bbd49453fc393ef8ffa643c4a7dd9e4e5be0 100644 (file)
@@ -24,6 +24,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 /* core_file_failing_signal returns a host signal (this probably should
    be fixed).  */
 #include <signal.h>
+
+/* for MSVC builds */
+#ifndef SIGTRAP
+# define SIGTRAP 5
+#endif
+#ifndef SIGEMT
+# define SIGEMT 6
+#endif
+#ifndef SIGBUS
+# define SIGBUS 10
+#endif
 \f
 #define CRASH_INFO (0xffc)
 #define CRASH_MAGIC 0xdead1234
@@ -184,6 +195,9 @@ cisco_core_file_p (abfd)
          /* NAN                 */
        case 54: abfd->tdata.cisco_core_data->sig = SIGFPE;  break;
        default:
+#ifndef SIGEMT
+#define SIGEMT SIGTRAP
+#endif
          /* "software generated"*/
          abfd->tdata.cisco_core_data->sig = SIGEMT;
        }
@@ -268,8 +282,8 @@ const bfd_target cisco_core_vec =
   {
     "trad-core",
     bfd_target_unknown_flavour,
-    true,                      /* target byte order */
-    true,                      /* target headers byte order */
+    BFD_ENDIAN_BIG,            /* target byte order */
+    BFD_ENDIAN_BIG,            /* target headers byte order */
     (HAS_RELOC | EXEC_P |      /* object flags */
      HAS_LINENO | HAS_DEBUG |
      HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
This page took 0.023796 seconds and 4 git commands to generate.