* paread.c (read_unwind_info): Just assign to objfile->obj_private,
authorJim Kingdon <jkingdon@engr.sgi.com>
Tue, 25 Jan 1994 16:39:10 +0000 (16:39 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Tue, 25 Jan 1994 16:39:10 +0000 (16:39 +0000)
not OBJ_UNWIND_INFO.  Assigning to a cast is a GCC-ism which
the HP compiler in ANSI mode doesn't like.

* main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
based on USG, rather than defining HAVE_SIGSETMASK to an expression
containing defined.  This is for the HP compiler in ANSI mode.

gdb/ChangeLog
gdb/main.c
gdb/paread.c

index fb76447cb908f4b7e3568816d47432794eccb3f2..7f83202082c0a9e5b2e20ace255557a08676760a 100644 (file)
@@ -1,3 +1,13 @@
+Tue Jan 25 11:31:53 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * paread.c (read_unwind_info): Just assign to objfile->obj_private,
+       not OBJ_UNWIND_INFO.  Assigning to a cast is a GCC-ism which
+       the HP compiler in ANSI mode doesn't like.
+
+       * main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
+       based on USG, rather than defining HAVE_SIGSETMASK to an expression
+       containing defined.  This is for the HP compiler in ANSI mode.
+
 Mon Jan 24 20:51:29 1994  John Gilmore  (gnu@cygnus.com)
 
        * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
index 1dafb9f03b7bdb323c165ec45ef41ce551ab2d8e..8270f124b4152cbfc68d0b14486a8bf1e09a5c27 100644 (file)
@@ -324,7 +324,11 @@ static void stop_sig PARAMS ((int));
 
 /* Some System V have job control but not sigsetmask(). */
 #if !defined (HAVE_SIGSETMASK)
-#define HAVE_SIGSETMASK !defined (USG)
+#if !defined (USG)
+#define HAVE_SIGSETMASK 1
+#else
+#define HAVE_SIGSETMASK 0
+#endif
 #endif
 
 #if 0 == (HAVE_SIGSETMASK)
index efc8b2bcb3b2e9b8860306d8fb7ef3ff0ca16a22..686bed6d0054cb757b650c8a7b545bd33a626306 100644 (file)
@@ -400,7 +400,7 @@ read_unwind_info (objfile)
         compare_unwind_entries);
 
   /* Keep a pointer to the unwind information.  */
-  OBJ_UNWIND_INFO (objfile) = ui;
+  objfile->obj_private = (PTR) ui;
 }
 
 /* Scan and build partial symbols for a symbol file.
This page took 0.027113 seconds and 4 git commands to generate.