* infrun.c (_initialize_infrun): Alias `i handle' == `i signals'.
* stabsread.c (read_struct_type): Simplify complicated expression for dumb DECstation compiler.
This commit is contained in:
parent
2238768372
commit
6b50c5c242
|
@ -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)
|
Mon Sep 21 14:54:35 1992 Ian Lance Taylor (ian@cygnus.com)
|
||||||
|
|
||||||
* m68k-pinsn (print_insn_arg, fetch_arg): added support for
|
* m68k-pinsn (print_insn_arg, fetch_arg): added support for
|
||||||
|
|
|
@ -1946,6 +1946,7 @@ _initialize_infrun ()
|
||||||
add_info ("signals", signals_info,
|
add_info ("signals", signals_info,
|
||||||
"What debugger does when program gets various signals.\n\
|
"What debugger does when program gets various signals.\n\
|
||||||
Specify a signal number as argument to print info on that signal only.");
|
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,
|
add_com ("handle", class_run, handle_command,
|
||||||
"Specify how to handle a signal.\n\
|
"Specify how to handle a signal.\n\
|
||||||
|
|
|
@ -1327,8 +1327,21 @@ read_struct_type (pp, type, objfile)
|
||||||
ALLOCATE_CPLUS_STRUCT_TYPE(type);
|
ALLOCATE_CPLUS_STRUCT_TYPE(type);
|
||||||
|
|
||||||
n_baseclasses = read_number (pp, ',');
|
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_FIELD_VIRTUAL_BITS (type) = (B_TYPE *)
|
||||||
TYPE_ALLOC (type, B_BYTES (n_baseclasses));
|
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);
|
B_CLRALL (TYPE_FIELD_VIRTUAL_BITS (type), n_baseclasses);
|
||||||
|
|
||||||
for (i = 0; i < n_baseclasses; i++)
|
for (i = 0; i < n_baseclasses; i++)
|
||||||
|
|
Loading…
Reference in New Issue