* top.c (line_completion_function): Renamed from
authorPeter Schauer <Peter.Schauer@mytum.de>
Sat, 29 Oct 1994 09:51:32 +0000 (09:51 +0000)
committerPeter Schauer <Peter.Schauer@mytum.de>
Sat, 29 Oct 1994 09:51:32 +0000 (09:51 +0000)
commit9ed8604f38b6ffad8600789ce048a0f4e12c4e5d
tree4170b1e4143f1cce5c5217ed09b7f1036f346205
parentb7966a5adc3cbf38544dca97a9025df896a3db4c
* 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.
gdb/ChangeLog
gdb/gdbtypes.h
gdb/rs6000-tdep.c
gdb/stabsread.c
gdb/top.c
gdb/valops.c