gcc -Wall lint:
* breakpoint.c (watchpoint_check): Remove unused variable b.
* stack.c (print_frame_info): Move sp and buf inside #if.
* eval.c (evaluate_subexp): Remove unused variables pp,
mangle_ptr, ptr, and mangle_tstr.
* valarith.c (value_x_binop): Remove unused variables mangle_tstr
and mangle_ptr.
* symtab.c (lookup_symtab): Put variable copy inside #if.
(decode_line_1): Put variable q1 inside #if 0.
* target.h: Declare target_link.
* infrun.c (wait_for_inferior): Remove unused variables signame.
* remote.c (remote_resume): Remove unused variable name.
* c-exp.y (parse_number): Parenthesize operand of shift.
* dbxread.c (record_minimal_symbol): Parenthesize operand of &&
(this is a semantic change, the warning seems to have detected a bug).
* dbxread.c (end_psymtab): Move variable p1 inside #if.
* coffread.c: Move variable temptype inside #if.
* ch-typeprint.c (chill_type_print_base): Remove unused variable
name.
* ch-valprint.c: #include typeprint.h and ch-lang.h.
(chill_val_print): Remove unused variable in_range.
(chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
(chill_val_print): Add default case for switch.
* stabsread.h: Declare stabsect_build_psymtabs.
* os9kread.c (read_minimal_symbols): Make this return void.
(os9k_symfile_read): Remove unused variables stb_exist and val.
(os9k_symfile_init): Remove unused variable val.
(fill_sym): Remove unused variable id.
(read_os9k_psymtab): Put variable back_to inside #if 0. Remove
unused variable nsl.
Remove unused variable symfile_bfd.
#if 0 unused variables lbrac_unmatched_complaint and
lbrac_mismatch_complaint.
Remove declaration for non-existent function os9k_next_symbol_text.
* annotate.c, annotate.h: New files, containing a function for
each annotation which outputs it.
* Move breakpoints_changed from breakpoint.c to annotate.c.
* breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
printcmd.c, source.c, stack.c, utils.c, valprint.c:
Use annotate.c functions to output annotations.
* Makefile.in (OBS): Add annotate.o.
1994-05-13 20:18:57 +02:00
|
|
|
/* Annotation routines for GDB.
|
|
|
|
Copyright 1986, 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
This file is part of GDB.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
1995-08-02 05:41:12 +02:00
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
gcc -Wall lint:
* breakpoint.c (watchpoint_check): Remove unused variable b.
* stack.c (print_frame_info): Move sp and buf inside #if.
* eval.c (evaluate_subexp): Remove unused variables pp,
mangle_ptr, ptr, and mangle_tstr.
* valarith.c (value_x_binop): Remove unused variables mangle_tstr
and mangle_ptr.
* symtab.c (lookup_symtab): Put variable copy inside #if.
(decode_line_1): Put variable q1 inside #if 0.
* target.h: Declare target_link.
* infrun.c (wait_for_inferior): Remove unused variables signame.
* remote.c (remote_resume): Remove unused variable name.
* c-exp.y (parse_number): Parenthesize operand of shift.
* dbxread.c (record_minimal_symbol): Parenthesize operand of &&
(this is a semantic change, the warning seems to have detected a bug).
* dbxread.c (end_psymtab): Move variable p1 inside #if.
* coffread.c: Move variable temptype inside #if.
* ch-typeprint.c (chill_type_print_base): Remove unused variable
name.
* ch-valprint.c: #include typeprint.h and ch-lang.h.
(chill_val_print): Remove unused variable in_range.
(chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
(chill_val_print): Add default case for switch.
* stabsread.h: Declare stabsect_build_psymtabs.
* os9kread.c (read_minimal_symbols): Make this return void.
(os9k_symfile_read): Remove unused variables stb_exist and val.
(os9k_symfile_init): Remove unused variable val.
(fill_sym): Remove unused variable id.
(read_os9k_psymtab): Put variable back_to inside #if 0. Remove
unused variable nsl.
Remove unused variable symfile_bfd.
#if 0 unused variables lbrac_unmatched_complaint and
lbrac_mismatch_complaint.
Remove declaration for non-existent function os9k_next_symbol_text.
* annotate.c, annotate.h: New files, containing a function for
each annotation which outputs it.
* Move breakpoints_changed from breakpoint.c to annotate.c.
* breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
printcmd.c, source.c, stack.c, utils.c, valprint.c:
Use annotate.c functions to output annotations.
* Makefile.in (OBS): Add annotate.o.
1994-05-13 20:18:57 +02:00
|
|
|
|
|
|
|
extern void breakpoints_changed PARAMS ((void));
|
|
|
|
|
|
|
|
extern void annotate_breakpoint PARAMS ((int));
|
|
|
|
extern void annotate_watchpoint PARAMS ((int));
|
|
|
|
extern void annotate_starting PARAMS ((void));
|
|
|
|
extern void annotate_stopped PARAMS ((void));
|
|
|
|
extern void annotate_exited PARAMS ((int));
|
|
|
|
extern void annotate_signalled PARAMS ((void));
|
|
|
|
extern void annotate_signal_name PARAMS ((void));
|
|
|
|
extern void annotate_signal_name_end PARAMS ((void));
|
|
|
|
extern void annotate_signal_string PARAMS ((void));
|
|
|
|
extern void annotate_signal_string_end PARAMS ((void));
|
|
|
|
extern void annotate_signal PARAMS ((void));
|
|
|
|
|
|
|
|
extern void annotate_breakpoints_headers PARAMS ((void));
|
|
|
|
extern void annotate_field PARAMS ((int));
|
|
|
|
extern void annotate_breakpoints_table PARAMS ((void));
|
|
|
|
extern void annotate_record PARAMS ((void));
|
|
|
|
extern void annotate_breakpoints_table_end PARAMS ((void));
|
|
|
|
|
|
|
|
extern void annotate_frames_invalid PARAMS ((void));
|
|
|
|
|
|
|
|
#ifdef __STDC__
|
|
|
|
struct type;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern void annotate_field_begin PARAMS ((struct type *));
|
|
|
|
extern void annotate_field_name_end PARAMS ((void));
|
|
|
|
extern void annotate_field_value PARAMS ((void));
|
|
|
|
extern void annotate_field_end PARAMS ((void));
|
|
|
|
|
|
|
|
extern void annotate_quit PARAMS ((void));
|
|
|
|
extern void annotate_error PARAMS ((void));
|
|
|
|
extern void annotate_error_begin PARAMS ((void));
|
|
|
|
|
|
|
|
extern void annotate_value_history_begin PARAMS ((int, struct type *));
|
|
|
|
extern void annotate_value_begin PARAMS ((struct type *));
|
|
|
|
extern void annotate_value_history_value PARAMS ((void));
|
|
|
|
extern void annotate_value_history_end PARAMS ((void));
|
|
|
|
extern void annotate_value_end PARAMS ((void));
|
|
|
|
|
|
|
|
extern void annotate_display_begin PARAMS ((void));
|
|
|
|
extern void annotate_display_number_end PARAMS ((void));
|
|
|
|
extern void annotate_display_format PARAMS ((void));
|
|
|
|
extern void annotate_display_expression PARAMS ((void));
|
|
|
|
extern void annotate_display_expression_end PARAMS ((void));
|
|
|
|
extern void annotate_display_value PARAMS ((void));
|
|
|
|
extern void annotate_display_end PARAMS ((void));
|
|
|
|
|
|
|
|
extern void annotate_arg_begin PARAMS ((void));
|
|
|
|
extern void annotate_arg_name_end PARAMS ((void));
|
|
|
|
extern void annotate_arg_value PARAMS ((struct type *));
|
|
|
|
extern void annotate_arg_end PARAMS ((void));
|
|
|
|
|
|
|
|
extern void annotate_source PARAMS ((char *, int, int, int, CORE_ADDR));
|
|
|
|
|
|
|
|
extern void annotate_frame_begin PARAMS ((int, CORE_ADDR));
|
|
|
|
extern void annotate_function_call PARAMS ((void));
|
|
|
|
extern void annotate_signal_handler_caller PARAMS ((void));
|
|
|
|
extern void annotate_frame_address PARAMS ((void));
|
|
|
|
extern void annotate_frame_address_end PARAMS ((void));
|
|
|
|
extern void annotate_frame_function_name PARAMS ((void));
|
|
|
|
extern void annotate_frame_args PARAMS ((void));
|
|
|
|
extern void annotate_frame_source_begin PARAMS ((void));
|
|
|
|
extern void annotate_frame_source_file PARAMS ((void));
|
|
|
|
extern void annotate_frame_source_file_end PARAMS ((void));
|
|
|
|
extern void annotate_frame_source_line PARAMS ((void));
|
|
|
|
extern void annotate_frame_source_end PARAMS ((void));
|
|
|
|
extern void annotate_frame_where PARAMS ((void));
|
|
|
|
extern void annotate_frame_end PARAMS ((void));
|
|
|
|
|
|
|
|
extern void annotate_array_section_begin PARAMS ((int, struct type *));
|
|
|
|
extern void annotate_elt_rep PARAMS ((unsigned int));
|
|
|
|
extern void annotate_elt_rep_end PARAMS ((void));
|
|
|
|
extern void annotate_elt PARAMS ((void));
|
|
|
|
extern void annotate_array_section_end PARAMS ((void));
|