aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1994-10-29 09:51:32 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1994-10-29 09:51:32 +0000
commit9ed8604f38b6ffad8600789ce048a0f4e12c4e5d (patch)
tree4170b1e4143f1cce5c5217ed09b7f1036f346205 /gdb/stabsread.c
parentb7966a5adc3cbf38544dca97a9025df896a3db4c (diff)
downloadfsf-binutils-gdb-9ed8604f38b6ffad8600789ce048a0f4e12c4e5d.zip
fsf-binutils-gdb-9ed8604f38b6ffad8600789ce048a0f4e12c4e5d.tar.gz
fsf-binutils-gdb-9ed8604f38b6ffad8600789ce048a0f4e12c4e5d.tar.bz2
* top.c (line_completion_function): Renamed from
symbol_completion_function, takes the line buffer and the point in the line buffer as additional arguments. (readline_line_completion_function): New function, interface between readline and line_completion_function. (init_main): Use it. (complete_command): Use line_completion_function instead of abusing rl_line_buffer. Free completion strings after printing them. * symtab.c (completion_list_add_name): Recheck for duplicates if we intend to add a modified symbol. * gdbtypes.h (cplus_struct_type): nfn_fields_total no longer includes the number of methods from the baseclasses. * stabsread.c (attach_fn_fields_to_type): No longer add the number of methods from the baseclasses to TYPE_NFN_FIELDS_TOTAL, the baseclass type might not have been completely filled in yet. * symtab.c (total_number_of_methods): New function to compute the total number of methods for a type, including the methods from baseclasses. (decode_line_1): Use it instead of TYPE_NFN_FIELDS_TOTAL to allocate the symbol array for find_methods. * stabsread.c (scan_file_globals): Add default case to minimal symbol type switch, to avoid gcc -Wall warnings. * config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Don't test for zero backchain pointer to recognize a signal handler frame, if read() gets interrupted by a signal, the backchain will be non zero. (SIG_FRAME_FP_OFFSET): Move to here from rs6000-tdep.c, improve comment. (SIG_FRAME_PC_OFFSET): New definition. (FRAME_SAVED_PC): Return saved pc from sigcontext if this is a signal handler frame. * rs6000-tdep.c (function_frame_info): Do not error out if we can't access the instructions. * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): New definition to get the function address from a function pointer. * valops.c (find_function_addr): Use it when calling a user function through a function pointer.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 042d450..6eb5790 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -2751,17 +2751,6 @@ attach_fn_fields_to_type (fip, type)
{
register int n;
- for (n = 0; n < TYPE_N_BASECLASSES (type); n++)
- {
- if (TYPE_CODE (TYPE_BASECLASS (type, n)) == TYPE_CODE_UNDEF)
- {
- /* @@ Memory leak on objfile -> type_obstack? */
- return 0;
- }
- TYPE_NFN_FIELDS_TOTAL (type) +=
- TYPE_NFN_FIELDS_TOTAL (TYPE_BASECLASS (type, n));
- }
-
for (n = TYPE_NFN_FIELDS (type);
fip -> fnlist != NULL;
fip -> fnlist = fip -> fnlist -> next)
@@ -3822,6 +3811,8 @@ scan_file_globals (objfile)
case mst_file_data:
case mst_file_bss:
continue;
+ default:
+ break;
}
prev = NULL;