From 16041d5304aedb49116e142e16f4f30ba3c858bb Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Sun, 15 Jan 1995 23:17:43 +0000 Subject: [PATCH] Sun Jan 15 14:36:19 1995 Steve Chamberlain * breakpoint.h (disable_breakpoint, enable_breakpoint): New declarations. (enum bpdisp): Change name of 'delete' member to 'del'. (struct bpstat): Changed name to 'bpstats'. * breakpoint.c (disable_breakpoint, enable_breakpoint, breakpoint_chain): Made globally visible. (bpstat_stop_status): Use new name for bpstat. (break_command_1, watch_command_1, catch_command_1, breakpoint_auto_delete, denable_delete_breakpoint): Use 'del' instead of 'delete'. (set_breakpoint_sal): New function. * defs.h (registers_changed_hook): New declaration. * infcmd.c (run_stack_dummy): 'delete' is now 'del'. * inflow.c (new_tty): Treat WIN32 in same way as __GO32__ * main.c (main): Don't scan options when in WIN32 and exit without entering main loop. * m2-exp.y (m2_elx): Member 'class' is now 'aclass'. * symtab.h (struct symbol, struct partial_symbol): Changed name of member 'class' to 'aclass'. (SYMBOL_CLASS, PSYMBOL_CLASS): Reflect change. * top.c (registers_changed_hook): New definition. * utils.c (quit, notice_quit, initialize_utils): Treate WIN32 in same way as __GO32__. * value.h (c_typedef_print): Rename 'new' argument. --- gdb/ChangeLog | 27 +++++++++++++++++++++++++++ gdb/defs.h | 3 ++- gdb/m2-exp.y | 4 ++-- gdb/top.c | 7 ++++++- 4 files changed, 37 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7d038193ef9..1d9d8edfc07 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,30 @@ +Sun Jan 15 14:36:19 1995 Steve Chamberlain + + * breakpoint.h (disable_breakpoint, enable_breakpoint): + New declarations. + (enum bpdisp): Change name of 'delete' member to 'del'. + (struct bpstat): Changed name to 'bpstats'. + * breakpoint.c (disable_breakpoint, enable_breakpoint, + breakpoint_chain): Made globally visible. + (bpstat_stop_status): Use new name for bpstat. + (break_command_1, watch_command_1, catch_command_1, + breakpoint_auto_delete, denable_delete_breakpoint): Use 'del' + instead of 'delete'. + (set_breakpoint_sal): New function. + * defs.h (registers_changed_hook): New declaration. + * infcmd.c (run_stack_dummy): 'delete' is now 'del'. + * inflow.c (new_tty): Treat WIN32 in same way as __GO32__ + * main.c (main): Don't scan options when in WIN32 and exit + without entering main loop. + * m2-exp.y (m2_elx): Member 'class' is now 'aclass'. + * symtab.h (struct symbol, struct partial_symbol): Changed name of + member 'class' to 'aclass'. + (SYMBOL_CLASS, PSYMBOL_CLASS): Reflect change. + * top.c (registers_changed_hook): New definition. + * utils.c (quit, notice_quit, initialize_utils): Treate WIN32 + in same way as __GO32__. + * value.h (c_typedef_print): Rename 'new' argument. + Sat Jan 14 11:18:11 1995 Jim Kingdon * infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1, diff --git a/gdb/defs.h b/gdb/defs.h index 05d591069bf..7979a2928ab 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -1,5 +1,5 @@ /* Basic, host-specific, and target-specific definitions for GDB. - Copyright (C) 1986, 1989, 1991, 1992, 1993, 1994 + Copyright (C) 1986, 1989, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. This file is part of GDB. @@ -855,6 +855,7 @@ extern void (*delete_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); extern void (*enable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); extern void (*disable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); extern void (*interactive_hook) PARAMS ((void)); +extern void (*registers_changed_hook) PARAMS ((void)); extern int (*dis_asm_read_memory_hook) PARAMS ((bfd_vma memaddr, bfd_byte *myaddr, int len, disassemble_info *info)); diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y index bbbdda48f77..57b6abe1730 100644 --- a/gdb/m2-exp.y +++ b/gdb/m2-exp.y @@ -1,5 +1,5 @@ /* YACC grammar for Modula-2 expressions, for GDB. - Copyright (C) 1986, 1989, 1990, 1991, 1993, 1994 + Copyright (C) 1986, 1989, 1990, 1991, 1993, 1994, 1995 Free Software Foundation, Inc. Generated from expread.y (now c-exp.y) and contributed by the Department of Computer Science at the State University of New York at Buffalo, 1991. @@ -1087,7 +1087,7 @@ yylex () if(sym) { - switch(sym->class) + switch(sym->aclass) { case LOC_STATIC: case LOC_REGISTER: diff --git a/gdb/top.c b/gdb/top.c index acc2066264c..d37762c86ef 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -1,5 +1,5 @@ /* Top level stuff for GDB, the GNU debugger. - Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994 + Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. This file is part of GDB. @@ -399,6 +399,11 @@ void (*disable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); void (*interactive_hook) PARAMS ((void)); +/* Called when the registers have changed, as a hint to a GUI + to minimize window update. */ + +void (*registers_changed_hook) PARAMS ((void)); + /* Called when going to wait for the target. Usually allows the GUI to run while waiting for target events. */ -- 2.30.2