* infrun.c (_initialize_infrun): Alias `i handle' == `i signals'.
authorJohn Gilmore <gnu@cygnus>
Tue, 22 Sep 1992 02:33:11 +0000 (02:33 +0000)
committerJohn Gilmore <gnu@cygnus>
Tue, 22 Sep 1992 02:33:11 +0000 (02:33 +0000)
* stabsread.c (read_struct_type): Simplify complicated expression
for dumb DECstation compiler.

gdb/ChangeLog
gdb/infrun.c
gdb/stabsread.c

index 82e75a0..cd1108f 100644 (file)
@@ -1,3 +1,9 @@
+Mon Sep 21 19:23:05 1992  John Gilmore  (gnu@cygnus.com)
+
+       * infrun.c (_initialize_infrun):  Alias `i handle' == `i signals'.
+       * stabsread.c (read_struct_type): Simplify complicated expression
+       for dumb DECstation compiler.
+
 Mon Sep 21 14:54:35 1992  Ian Lance Taylor  (ian@cygnus.com)
 
        * m68k-pinsn (print_insn_arg, fetch_arg): added support for
index a6af733..b846444 100644 (file)
@@ -1946,6 +1946,7 @@ _initialize_infrun ()
   add_info ("signals", signals_info,
            "What debugger does when program gets various signals.\n\
 Specify a signal number as argument to print info on that signal only.");
+  add_info_alias ("handle", "signals", 0);
 
   add_com ("handle", class_run, handle_command,
           "Specify how to handle a signal.\n\
index 832d9c3..6bf29f4 100644 (file)
@@ -1327,8 +1327,21 @@ read_struct_type (pp, type, objfile)
       ALLOCATE_CPLUS_STRUCT_TYPE(type);
 
       n_baseclasses = read_number (pp, ',');
+      /* Some stupid compilers have trouble with the following, so break
+        it up into simpler expressions.  */
+#if 0
       TYPE_FIELD_VIRTUAL_BITS (type) = (B_TYPE *)
        TYPE_ALLOC (type, B_BYTES (n_baseclasses));
+#else
+      {
+       int num_bytes = B_BYTES (n_baseclasses);
+       char *pointer;
+       
+       pointer = (char *) TYPE_ALLOC (type, num_bytes);
+       TYPE_FIELD_VIRTUAL_BITS (type) = (B_TYPE *) pointer;
+      }
+#endif /* 0 */
+
       B_CLRALL (TYPE_FIELD_VIRTUAL_BITS (type), n_baseclasses);
 
       for (i = 0; i < n_baseclasses; i++)