From: John Gilmore Date: Tue, 22 Sep 1992 02:33:11 +0000 (+0000) Subject: * infrun.c (_initialize_infrun): Alias `i handle' == `i signals'. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b50c5c2428aa5a204cd4a28028f3853620fe336;p=binutils-gdb.git * infrun.c (_initialize_infrun): Alias `i handle' == `i signals'. * stabsread.c (read_struct_type): Simplify complicated expression for dumb DECstation compiler. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 82e75a0d9d4..cd1108fdded 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/infrun.c b/gdb/infrun.c index a6af733ee9d..b8464443ce9 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -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\ diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 832d9c3c1c4..6bf29f4e9e2 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -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++)