aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-25 16:39:10 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-25 16:39:10 +0000
commit364648978f43664a24edd6b396c0937d1601f938 (patch)
treeaa88096c50a928127fb5fe2f61dc513b5160dc7f
parent1b30bebf859a32fc54c0def218535f437f24c515 (diff)
downloadgdb-364648978f43664a24edd6b396c0937d1601f938.zip
gdb-364648978f43664a24edd6b396c0937d1601f938.tar.gz
gdb-364648978f43664a24edd6b396c0937d1601f938.tar.bz2
* 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.
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/main.c6
-rw-r--r--gdb/paread.c2
3 files changed, 16 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fb76447..7f83202 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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):
diff --git a/gdb/main.c b/gdb/main.c
index 1dafb9f..8270f12 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -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)
diff --git a/gdb/paread.c b/gdb/paread.c
index efc8b2b..686bed6 100644
--- a/gdb/paread.c
+++ b/gdb/paread.c
@@ -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.