Continuing work to convert the hppa targets to multiarch partial.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2002-12-26  J. Brobecker  <brobecker@gnat.com>
2
3         Continuing work to convert the hppa targets to multiarch partial.
4
5         * hppa-tdep.c: (hppa_register_raw_size): New function replacing
6         the body of macro REGISTER_RAW_SIZE.
7         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
8         config/pa/tm-hppah.h. These functions will be used to initialize
9         the gdbarch structure.
10         (hppa_hpux_pc_in_sigtramp): New function.
11         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
12         (hppa_hpux_frame_base_before_sigtramp): New function.
13         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
14         Add gdbcore.h #include.
15         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
16         of this gdbarch-eligible macro to a call to the new associated
17         function.
18         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
19         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
20         into a call to the new associated function.
21         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
22         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
23         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
24
25 2002-12-24  David Carlton  <carlton@math.stanford.edu>
26
27         * config/sparc/tm-sparc.h: Delete duplicate definition of
28         DEPRECATED_PC_IN_CALL_DUMMY.
29
30 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
31
32         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
33         $(gdb_assert_h).
34         * configure.tgt: Recognize mips64*-*-linux*.
35         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
36         (supply_32_bit_reg): New function.
37         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
38         (fill_gregset): Use regcache_collect() instead of
39         deprecated_registers[].
40         (register_addr): Change name to mips_linux_register_addr().
41         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
42         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
43         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
44         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
45         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
46         (MIPS64_LINUX_JB_PC): New defines.
47         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
48         (mips64_elf_fpregset_t): New typedefs.
49         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
50         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
51         (mips64_linux_register_addr, set_mips_linux_register_addr)
52         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
53         (init_register_addr_data)
54         New functions.
55         (fetch_core_registers): Add support for core file formats with 64-bit
56         registers.
57         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
58         (register_addr_data): New static global variable.
59         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
60         gdbarch_register_osabi() for each MIPS machine.
61         * config/mips/linux64.mt: New file.
62         * config/mips/tm-linux64.h: New file.
63
64 2002-12-23  Adam Fedor  <fedor@gnu.org>
65
66         * maint.c (maintenance_demangle): Add switch to demangle
67         ObjC language symbols as well.
68
69 2002-12-23  Adam Fedor  <fedor@gnu.org>
70
71         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
72         last argument from complaint function call.
73
74 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
75
76         * exec.c (print_section_info): Add FIXME comments regarding format
77         string choices.
78
79 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
80
81         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
82         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
83
84 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
85
86         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
87
88 2002-12-23  David Carlton  <carlton@math.stanford.edu>
89
90         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
91         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
92         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
93         information associated to a minsym, not lookup_symbol.
94
95 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
96
97         * x86-64-tdep.h (x86_64_init_abi): New prototype.
98         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
99         (x86_64_init_abi): Make non-static.  Set number of pseudo
100         registers to 0.
101         (x86_64_gdbarch_init): Remove function.
102         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
103         Remove code dealing with dissambly.
104         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
105         (_initialize_x86_64_linux_tdep): New function.
106         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
107         i386-tdep.o.
108
109 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
110
111         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
112         (struct gdb_osabi_handler): Remove member `arch'.  Add member
113         `arch_info'.
114         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
115         construct a `struct bfd_arch_info' and store it in the `struct
116         gdb_osabi_handler' that is created.
117         (gdbarch_init_osabi): Check for compatibility based on machine
118         type and architecture.
119         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
120         comment.
121         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
122         second argument in call to gdbarch_register_osabi.
123         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
124         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
125         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
126         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
127         * arm-tdep.c (_initialize_arm_tdep): Likewise.
128         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
129         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
130         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
131         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
132         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
133         * i386-tdep.c (_initialize_i386_tdep): Likewise.
134         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
135         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
136         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
137         _initialize_i386bsd_tdep and updated likewise.
138         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
139         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
140         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
141         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
142         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
143         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
144         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
145         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
146         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
147         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
148
149 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
150
151         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
152         DT_MIPS_RLD_MAP case for 64-bit targets.
153
154 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
155
156         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
157         ``temp_saved_regs'', not the pointer or other storage contiguous
158         to this pointer.
159
160 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
161
162         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
163         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
164         (mips_linux_get_longjmp_target): Delete declarations.
165         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
166         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
167         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
168         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
169         (mips_linux_get_longjmp_target)
170         (mips_linux_svr4_fetch_link_map_offsets): Make static.
171         (mips_linux_init_abi): New function.
172         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
173
174 2002-12-19  Keith Seitz  <keiths@redhat.com>
175
176         patch committed by Elena Zannoni  <ezannoni@redhat.com>
177         * thread.c (do_captured_list_thread_ids): Call prune_threads and
178         target_find_new_threads. Fix for PR mi/669.
179
180 2002-12-19  David Carlton  <carlton@math.stanford.edu>
181
182         * linespec.c (decode_line_1): Move code into decode_all_digits.
183         (decode_all_digits): New function.
184
185 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
186
187         * exec.c (print_section_info): Select a format string to use with
188         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
189
190 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
191
192         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
193         deprecated_update_current_frame_pc_hack.
194         (deprecated_update_frame_base_hack): New function.
195         * frame.h (deprecated_update_frame_pc_hack): Replace
196         (deprecated_update_frame_base_hack): Declare.
197         * infrun.c (normal_stop): Update.
198
199 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
200
201         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
202         frame_extra_info_zalloc.
203         (rs6000_frame_args_address): Use get_frame_extra_info.
204         (frame_get_saved_regs): Use get_frame_saved_regs.
205         (frame_initial_stack_address): Use get_frame_saved_regs and
206         get_frame_extra_info.
207         (frame_initial_stack_address): Use get_frame_extra_info.
208
209 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
210
211         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
212         array size.
213         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
214         checks for r3900_regnames[].
215
216 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
217
218         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
219         All uses changed
220         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
221
222 2002-12-17  David Carlton  <carlton@math.stanford.edu>
223
224         * symtab.c (lookup_partial_symbol): Don't search past the end of
225         the partial symbols.
226
227 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
228
229         * stack.c (frame_info): Use get_frame_saved_regs.
230         * breakpoint.c (until_break_command): Use get_frame_pc.
231
232 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
233
234         * buildsym.c (block_end_complaint, anon_block_end_complaint)
235         (innerblock_complaint, innerblock_anon_complaint)
236         (blockvector_complaint): Delete deprecated complaint structs.
237         (finish_block, make_blockvector, end_symtab): Replace calls
238         to complain() with calls to complaint().
239         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
240         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
241         (unexpected_type_complaint, bad_sclass_complaint)
242         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
243         Delete deprecated complaint structs.
244         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
245         Replace calls to complain() with calls to complaint().
246         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
247         (unknown_symtype_complaint, unknown_symchar_complaint)
248         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
249         (lbrac_mismatch_complaint, repeated_header_complaint)
250         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
251         Delete deprecated complaint structs.
252         (unknown_symtype_complaint, lbrac_mismatch_complaint)
253         (repeated_header_complaint)
254         (function_outside_compiliation_unit_complaint): New functions.
255         (add_old_header_file, find_corresponding_bincl_psymtab)
256         (set_namestring, find_stab_function_addr, read_dbx_symtab)
257         (process_one_symbol): Replace calls to complain() with, possibly
258         indirect, calls to complaint().
259         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
260         (unknown_attribute_form, unknown_attribute_length)
261         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
262         (const_ignored, botched_modified_type, op_deref2, op_deref4)
263         (basereg_not_handled, dup_user_type_allocation)
264         (dup_user_type_definition, missing_tag, bad_array_element_type)
265         (subscript_data_items, unhandled_array_subscript_format)
266         (unknown_array_subscript_format, not_row_major)
267         (missing_at_name): Delete deprecated complaint structs.
268         (bad_die_ref_complaint, unknown_attribute_form_complaint)
269         (dup_user_type_definition_complaint)
270         (bad_array_element_type_complaint): New functions.
271         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
272         (decode_subscript_data_item, dwarf_read_array_type)
273         (read_tag_string_type, read_subroutine_type, read_func_scope)
274         (locval, scan_partial_symbols, decode_modified_type)
275         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
276         (attribute_size): Replace calls to complain() with, possibly
277         indirect, calls to complaint().
278         * elfread.c (section_info_complaint, section_info_dup_complaint)
279         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
280         Delete deprecated complaint structs.
281         (elf_symtab_read, elfstab_offset_sections): Replace calls to
282         complain() with calls to complaint().
283         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
284         struct.
285         (stub_noname_complaint): New function.
286         (check_typedef, add_mangled_type): Replace calls to complain()
287         with calls to complaint().
288         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
289         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
290         (hpread_unhandled_type_complaint, hpread_struct_complaint)
291         (hpread_array_complaint, hpread_type_lookup_complaint)
292         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
293         (hpread_unhandled_common_complaint)
294         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
295         struct definitions and declarations.
296         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
297         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
298         Replace calls to complain() with, possibly indirect, calls to
299         complaint().
300         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
301         Likewise.
302         * mdebugread.c (bad_file_number_complaint, index_complaint)
303         (aux_index_complaint, block_index_complaint)
304         (unknown_ext_complaint, unknown_sym_complaint)
305         (unknown_st_complaint, block_overflow_complaint)
306         (basic_type_complaint, unknown_type_qual_complaint)
307         (array_index_type_complaint, bad_tag_guess_complaint)
308         (block_member_complaint, stEnd_complaint)
309         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
310         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
311         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
312         (bad_continued_complaint, bad_rfd_entry_complaint)
313         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
314         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
315         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
316         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
317         complaint structs.
318         (index_complaint, unknown_ext_complaint, basic_type_complaint)
319         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
320         (unexpected_type_code_complaint)
321         (function_outside_compilation_unit_complaint): New functions.
322         (parse_symbol, parse_type, upgrade_type, parse_procedure)
323         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
324         Replace calls to complain() with, possibly indirect calls to
325         complaint().
326         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
327         Delete deprecated complaint structs.
328         (lookup__objc_class, lookup_child_selector): Replace complain()
329         with complaint().
330         * remote-vx.c (cant_contact_target): Delete deprecated complaint
331         struct.
332         (vx_lookup_symbol): Replace complain() with complaint().
333         * stabsread.c (invalid_cpp_abbrev_complaint)
334         (invalid_cpp_type_complaint, member_fn_complaint)
335         (const_vol_complaint, error_type_complaint)
336         (invalid_member_complaint, range_type_base_complaint)
337         (reg_value_complaint, vtbl_notfound_complaint)
338         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
339         (unresolved_sym_chain_complaint, stabs_general_complaint)
340         (lrs_general_complaint, multiply_defined_struct): Delete
341         deprecated complaint structs.
342         (invalid_cpp_abbrev_complaint, ref_value_complaint)
343         (stabs_general_complaint, lrs_general_complaint)
344         (msg_unknown_complaint): New functions.
345         (dbx_lookup_type, read_cfront_baseclasses)
346         (read_cfront_member_functions, resolve_symbol_reference)
347         (define_symbol, resolve_live_range, add_live_range, read_type)
348         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
349         (read_one_struct_field, read_baseclasses, read_tilde_fields)
350         (read_cfront_static_fields, attach_fields_to_type)
351         (complain_about_struct_wipeout, read_range_type)
352         (common_block_start, common_block_end, cleanup_undefined_types)
353         (scan_file_globals): Replace complain() with complaint().
354         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
355         Delete deprecated complaint struct declarations.
356         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
357         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
358         (bf_not_found_complaint, ef_complaint, eb_complaint)
359         (function_outside_compilation_unit_complaint): New functions.
360         (record_include_begin, record_include_end, enter_line_range)
361         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
362         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
363         complain() with complaint().
364
365 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
366
367         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
368         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
369         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
370         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
371         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
372         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
373         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
374         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
375         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
376         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
377         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
378         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
379         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
380         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
381         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
382         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
383         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
384         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
385         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
386         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
387         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
388         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
389         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
390         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
391         * config/m88k/xm-dgux.h: Delete.
392         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
393         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
394         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
395         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
396         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
397         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
398         * ch-valprint.c: Delete.
399         
400 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
401
402         * infrun.c (handle_inferior_event): Rearrange code to resume if
403         no catchpoint triggers for an event.
404
405 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
406
407         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
408         and TARGET_WAITKIND_VFORKED cases.
409
410 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
411
412         * infrun.c (handle_inferior_event): Assume that catchpoints
413         are not affected by DECR_PC_AFTER_BREAK.
414
415 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
416
417         * target.c (update_current_target): Don't inherit DONT_USE.
418         * target.h (struct target_ops): Remove DONT_USE.
419         (target_next): Remove macro.
420
421 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
422
423         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
424
425 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
426
427         * arm-tdep.c (convert_from_extended): New argument to hold the
428         type of floating point result we want to convert to.  Make input 
429         argument const.  Fix all callers.
430         (convert_to_extended): Similarly.
431         (arm_extract_return_value): Now takes a regcache argument.  Change
432         code to use regcache accessor functions.  Correctly extract 
433         smaller-than-word results on big-endian machines.
434         (arm_store_return_value): Now takes a regcache argument.  Change
435         code to use regcache accessor functions.  Correctly zero/sign extend
436         smaller than word results before storing into r0.
437         (arm_gdbarch_init): Register new-style extract_return_value and
438         store_return_value functions.
439
440 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
441
442         * thread-db.c (thread_from_lwp): Uniquify error msg.
443         (lwp_from_thread): Ditto.
444         (check_event): Ditto.
445         (find_new_threads_callback): Ditto.
446         (thread_db_pid_to_str): Ditto.
447
448 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
449
450         * frame.h (get_frame_saved_regs): Declare.
451         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
452         pointer.
453         * frame.c (get_frame_saved_regs): New function.
454         (frame_saved_regs_zalloc): Return the allocated saved_regs.
455
456 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
457
458         * frame.c (deprecated_update_current_frame_pc_hack): New
459         function.
460         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
461         * infrun.c (normal_stop): Use said function instead of directly
462         modifying the frame's PC.
463         
464 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
465
466         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
467
468 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
469
470         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
471         config/mips/tm-irix6.h (NUM_REGS): Delete.
472         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
473         (temp_saved_regs): Declare as a pointer rather than an array.
474         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
475         that ``temp_saved_regs'' has storage allocated to it and that
476         it's the correct size.
477
478 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
479
480         * defs.h (init_last_source_visited): New prototype.
481         (add_path): Ditto.
482         * source.c (add_path): New function that adds to a specified path.
483         (mod_path): Change to call add_path.
484         (init_last_source_visited): New function to allow interfaces to
485         initialize static variable: last_source_visited.  Part of fix
486         for PR gdb/741.
487         * Makefile.in: Add support for mi/mi-cmd-env.c.
488
489 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
490
491         * frame.h (frame_id_unwind): Declare.
492         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
493         id_unwind_cache.
494         (frame_id_unwind_ftype): Declare.
495         * frame.c (frame_id_unwind): New function.
496         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
497         (create_new_frame, get_prev_frame): Pass id_unwind to
498         set_unwind_by_pc.
499         (frame_saved_regs_id_unwind): New function.
500         (frame_saved_regs_id_unwind): New function.
501         * dummy-frame.c (dummy_frame_id_unwind): New function.
502         (struct dummy_frame): Add field id.
503         (generic_push_dummy_frame): Initialize `id'.
504         * dummy-frame.h (dummy_frame_id_unwind): Declare.
505
506 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
507
508         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
509         pass that to set_momentary_breakpoint.  Move comments to where they
510         belong.
511         * frame.h (set_current_frame): Delete declaration.
512         * frame.c (set_current_frame): Delete function.
513
514 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
515
516         * frame.c (frame_extra_info_zalloc): New function.
517         * frame.h (frame_extra_info_zalloc): Declare.
518
519 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
520
521         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
522         in the previous prototype change to set_momentary_breakpoint.
523
524 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
525
526         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
527         and saw_child_exec.
528         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
529         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
530         (stop_stepping): Remove outdated check for child vfork events.
531
532 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
533
534         * GDB 5.3 released from gdb_5_3-branch.
535
536 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
537
538         * corelow.c (init_core_ops): Delete references to to_require_attach
539         and to_require_detach.
540         * exec.c (init_exec_ops): Likewise.
541         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
542         hppa_require_detach directly.
543         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
544         * inftarg.c (child_detach): Remove.
545         (child_detach_from_process): Rename to child_detach, remove
546         after_fork argument.
547         (child_attach): Remove.
548         (child_attach_to_process): Rename to child_attach, remove after_fork
549         argument.
550         (init_child_ops): Delete references to to_require_attach
551         and to_require_detach.
552         * infttrace.c (hppa_require_attach): Update comment.
553         * target.c (cleanup_target, update_current_target)
554         (init_dummy_target, setup_target_debug): Delete references to
555         to_require_attach and to_require_detach.
556         (find_default_require_detach, find_default_require_attach)
557         (debug_to_require_attach, debug_to_require_detach): Remove
558         functions.
559         * target.h (struct target_ops): Remove to_require_attach
560         and to_require_detach.
561         (target_require_attach, target_require_detach): Delete macros.
562         (find_default_require_detach, find_default_require_attach): Delete
563         prototypes.
564         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
565
566 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
567
568         * frame.c (get_frame_extra_info): New function.
569         * frame.h (get_frame_extra_info): Declare.
570
571 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
572
573         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
574         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
575         with `struct frame_id'.
576         (set_longjmp_resume_breakpoint): Ditto.
577         * infrun.c (handle_inferior_event): Update.
578         * breakpoint.c (watch_command_1, until_break_command): Update.
579         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
580         (handle_inferior_event, step_over_function): Update.
581         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
582         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
583         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
584         * infcmd.c (finish_command, run_stack_dummy): Update.
585
586 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
587
588         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
589         (dwarf2_non_const_array_bound_ignored)
590         (dwarf2_missing_line_number_section)
591         (dwarf2_statement_list_fits_in_line_number_section)
592         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
593         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
594         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
595         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
596         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
597         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
598         (dwarf2_missing_member_fn_type_complaint)
599         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
600         (dwarf2_const_value_length_mismatch)
601         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
602         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
603         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
604         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
605         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
606         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
607         complaints using deprecated struct..
608         (dwarf2_non_const_array_bound_ignored_complaint)
609         (dwarf2_complex_location_expr_complaint)
610         (dwarf2_unsupported_at_frame_base_complaint)
611         (dwarf2_const_value_length_mismatch_complaint)
612         (dwarf2_macros_too_long_complaint)
613         (dwarf2_macro_malformed_definition_complaint)
614         (dwarf2_invalid_attrib_class_complaint): New functions.
615         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
616         (read_structure_scope, read_array_type, read_common_block)
617         (read_tag_pointer_type, read_base_type, read_partial_die)
618         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
619         (new_symbol, dwarf2_const_value, read_type_die)
620         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
621         (parse_macro_definition, dwarf_decode_macros): Replace calls to
622         complain() with, possibly indirect, calls to complaint().
623
624 2002-12-11  Andrew Cagney  <cagney@redhat.com>
625
626         * frame.c (deprecated_get_frame_saved_regs): Rename
627         get_frame_saved_regs.
628         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
629         * sparc-tdep.c: Update.
630         * hppa-tdep.c: Update.
631         * h8500-tdep.c: Update.
632
633 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
634
635         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
636         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
637         ``char *'' for return and parameter types.
638         * gdbarch.h, gdbarch.c: Regenerate.
639         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
640         return type from ``char *'' to ``const char *''.
641         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
642         const.
643
644 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
645
646         * i386-tdep.c: Include "dummy-frame.h".
647         (i386_frame_chain, i386_frame_saved_pc): Replace
648         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
649         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
650
651 2002-12-10  Andrew Cagney  <cagney@redhat.com>
652
653         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
654         Change to a function with predicate.
655         * gdbarch.h, gdbarch.c: Re-generate.
656         * frame.c (get_prev_frame): Update.  Test
657         DEPRECATED_INIT_FRAME_PC_P.
658         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
659         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
660         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
661         * alpha-tdep.c (alpha_gdbarch_init): Update.
662         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
663         * mips-tdep.c (mips_gdbarch_init): Update.
664         * i386-interix-tdep.c (i386_interix_init_abi): Update.
665         * arm-tdep.c: Update comments.
666         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
667         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
668         * frv-tdep.c (frv_gdbarch_init): Ditto.
669         * x86-64-tdep.c (x86_64_init_abi): Ditto.
670         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
671         * s390-tdep.c (s390_gdbarch_init): Ditto.
672         * v850-tdep.c (v850_gdbarch_init): Ditto.
673         * vax-tdep.c (vax_gdbarch_init): Ditto.
674         * sh-tdep.c (sh_gdbarch_init): Ditto.
675         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
676         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
677         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
678         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
679         * i386-tdep.c (i386_gdbarch_init): Ditto.
680         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
681         * cris-tdep.c (cris_gdbarch_init): Ditto.
682         * avr-tdep.c (avr_gdbarch_init): Ditto.
683         * arm-tdep.c (arm_gdbarch_init): Ditto.
684         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
685         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
686
687 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
688
689         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
690         CHILD_FOLLOW_FORK.
691         * hppah-nat.c (saved_vfork_pid): Add.
692         (child_post_follow_vfork): Remove.
693         (child_follow_fork): New function.
694         (child_wait): Call detach_breakpoints after receiving the child vfork.
695         Call child_resume directly instead of going through resume ().
696         Make sure we have the exec before reporting the vfork.
697         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
698         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
699         (follow_fork): New function.  Call target_follow_fork.
700         (follow_inferior_reset_breakpoints): New function broken out from
701         old follow_inferior_fork.
702         (resume): Remove hack to follow exec after vfork.
703         * inftarg.c (child_post_follow_vfork): Remove.
704         (child_follow_fork): New function.
705         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
706         * target.c (cleanup_target): Replace to_post_follow_vfork with
707         to_follow_fork.
708         (update_current_target): Likewise.
709         (setup_target_debug): Likewise.
710         (debug_to_post_follow_vfork): Remove.
711         (debug_to_follow_fork): New function.
712         * target.h (struct target_ops): Replace to_post_folow_vfork with
713         to_follow_fork.
714         (child_post_follow_vfork): Remove prototype.
715         (child_follow_fork): Add prototype.
716         (target_post_follow_vfork): Remove macro.
717         (target_follow_fork): Add macro.
718
719 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
720
721         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
722         (child_post_follow_vfork): Cancel pending exec event if we follow
723         the parent.
724         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
725         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
726         event at the following wait call if necessary.
727         * infrun.c (follow_vfork): Don't follow_exec here.
728         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
729         case about HP/UX 10.20.  Remove code pushed down to
730         hppah-nat.c:child_wait.
731         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
732         vfork_in_flight is set.
733
734 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
735
736         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
737         for the parent's fork event.
738         * infrun.c (handle_inferior_event): Only expect one fork event.
739         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
740         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
741
742 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
743
744         * PROBLEMS: Delete reference to PR gdb/725.
745         
746         * MAINTAINERS (gdb.c++): Add David Carlton.
747
748 2002-12-09  David Carlton  <carlton@math.stanford.edu>
749
750         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
751         * cli/cli-cmds.c: Ditto.
752
753 2002-12-09  Andrew Cagney  <cagney@redhat.com>
754
755         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
756         function address in <>.
757         * gdbarch.c: Re-generate.
758
759 2002-12-09  David Carlton  <carlton@math.stanford.edu>
760
761         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
762
763 2002-12-09  David Carlton  <carlton@math.stanford.edu>
764
765         * linespec.c (symtab_from_filename): New function.
766         (decode_line_1): Move code into symtab_from_filename.
767
768 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
769
770         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
771
772 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
773
774         * f-valprint.c (info_common_command): Use get_frame_pc.
775         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
776         * ax-gdb.c (agent_command): Ditto.
777         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
778         (rs6000_pop_frame): Ditto.
779         (rs6000_frameless_function_invocation): Ditto.
780         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
781         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
782         * macroscope.c (default_macro_scope): Ditto.
783         * stack.c (print_frame_info_base): Ditto.
784         (print_frame, frame_info, print_frame_label_vars): Ditto.
785         (return_command, func_command, get_frame_language): Ditto.
786         * infcmd.c (finish_command): Ditto.
787         * dummy-frame.c (cached_find_dummy_frame): Ditto.
788         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
789         (break_at_finish_at_depth_command_1): Ditto.
790         (break_at_finish_command_1): Ditto.
791         (until_break_command, get_catch_sals): Ditto.
792         * blockframe.c (func_frame_chain_valid): Ditto.
793         (frameless_look_for_prologue): Ditto.
794         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
795
796 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
797
798         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
799         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
800
801 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
802
803         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
804         to pure functions.
805         * gdbarch.h, gdbarch.c: Re-generate.
806         * frame.c (get_prev_frame): Explictly assign prev's pc with value
807         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
808
809         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
810         declaration to a function returning a CORE_ADDR.
811         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
812         * arch-utils.c (init_frame_pc_noop): Return the PC value.
813         (init_frame_pc_default): Ditto.
814         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
815         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
816         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
817         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
818         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
819         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
820
821         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
822         to init_frame_pc_noop.
823         (i386_interix_init_frame_pc): Delete function.
824         * z8k-tdep.c (init_frame_pc): Delete function.
825         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
826         (INIT_FRAME_PC_FIRST): Ditto.
827         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
828         (INIT_FRAME_PC_FIRST): Ditto.
829         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
830         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
831         init_frame_pc_noop.
832         (INIT_FRAME_PC_FIRST): Convert to an expression.
833         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
834
835 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
836
837         * blockframe.c: Use get_frame_base instead of directly accessing
838         the `struct frame_info' member frame.
839         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
840         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
841
842 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
843
844         * Makefile.in (readline_h): Define.
845         (completer.o): Depend on readline_h.
846         (corelow.o): Ditto.
847         (event-top.o): Ditto.
848         (exec.o): Ditto.
849         (solib.o): Ditto.
850         (source.o): Ditto. 
851         (symfile.o): Ditto. 
852         (symmisc.o): Ditto. 
853         (top.o): Ditto.
854         (tracepoint.o): Ditto. 
855         (utils.o): Ditto.
856         (cli-dump.o): Ditto.
857         (tui-hooks.o): Ditto. 
858         (tuiWin.o): Ditto. 
859
860 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
861
862         More cleanup from import of readline 4.3.
863         * completer.h (complete_line, readline_line_completion_function):
864         Update prototypes.
865         (line_completion_function): Removed, not used outside of completer.c.
866         * completer.c (readline_line_completion_function,
867         complete_function, line_completion_function): Use const for first
868         parameter.
869         (line_completion_function): Make static.
870         (filename_completer): filename_completion_function is now called
871         rl_filename_completion_function
872         * corelow.c: Include <readline/readline.h>.
873         * exec.c: Ditto.
874         * solib.c: Ditto.
875         * source.c: Ditto.
876         * symfile.c: Ditto.
877         * symmisc.c: Ditto.
878         * top.c (init_main): No need to coerce
879         readline_line_completion_function anymore.
880         * cli/cli-dump.c: Include <readline/readline.h>.
881
882 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
883
884         * stack.c (frame_info): Use get_prev_frame.
885         * blockframe.c (frame_address_in_block): Ditto.
886         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
887         (rs6000_frameless_function_invocation): Ditto.
888         (rs6000_frame_saved_pc): Ditto.
889         (rs6000_frame_chain): Ditto.
890         * arch-utils.c (init_frame_pc_default): Ditto.
891
892 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
893
894         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
895         Delete redundant definition.
896
897 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
898
899         Import of readline 4.3:
900         * cli/cli-cmds.c: Include readline/tilde.h.
901         * cli/cli-setshow.c: Ditto.
902         * defs.h: Don't declare tilde_expand anymore, since readline
903         exports it.
904
905 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
906
907         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
908         -Werror on this file.
909
910 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
911
912         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
913         the format name.
914         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
915         * gdbarch.c: Regenerate.
916         
917 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
918
919         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
920         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
921         provide a default value.
922         * gdbarch.h, gdbarch.c: Regenerate.
923         * frame.c (get_prev_frame): Update.  Check
924         DEPRECATED_INIT_FRAME_PC_FIRST_P.
925         * s390-tdep.c (s390_gdbarch_init): Update.
926         * mips-tdep.c (mips_gdbarch_init): Update.
927         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
928         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
929         * alpha-tdep.c (alpha_gdbarch_init): Update.
930         
931 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
932
933         * ia64-linux-nat.c: Include gdb_string.h.
934         * alpha-nat.c: Ditto.
935         * ppc-linux-nat.c: Ditto.
936         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
937         Update dependencies.
938
939 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
940
941         * gdbthread.h: Include "frame.h".
942         (struct thread_info): Replace step_frame_address with
943         step_frame_id.
944         * inferior.h: Include "frame.h".
945         (step_frame_id): Replace external variable step_frame_address.
946         * gdbthread.h (save_infrun_state): Replace step_frame_address
947         parameter with step_frame_id parameter.
948         (load_infrun_state): Ditto.
949         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
950         * infcmd.c (step_frame_id, step_1, step_once): Update.
951         * thread.c (load_infrun_state, save_infrun_state): Update.
952         * infrun.c (clear_proceed_status, save_inferior_status): Update.
953         (handle_inferior_event, step_over_function): Update.
954         (normal_stop, context_switch, restore_inferior_status): Update.
955         (struct inferior_status): Replace step_frame_address with
956         step_frame_id.
957
958 2002-12-05  David Carlton  <carlton@math.stanford.edu>
959
960         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
961         DW_TAG_member as well as a declaration as being a C++ static data
962         member.
963         (read_structure_scope): Combine tests for DW_TAG_member and
964         DW_TAG_variable.
965
966 2002-12-05  David Carlton  <carlton@math.stanford.edu>
967
968         * linespec.c (decode_compound): New function.
969         (decode_line_1): Move code into decode_compound.
970
971 2002-12-05  David Carlton  <carlton@math.stanford.edu>
972
973         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
974         argument.
975         (lookup_symbol_aux): Do the 'field_of_this' check before checking
976         the static block.  See PR gdb/804.
977
978 2002-12-05  David Carlton  <carlton@math.stanford.edu>
979
980         * symtab.c (lookup_symbol_aux_block): New function.
981         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
982
983 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
984
985         * gdbarch.sh: Dump the predicate function and macro values.
986         (read): Print error on standard error.
987         * gdbarch.c: Regenerate.
988         
989 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
990
991         * Makefile.in (mips_tdep_h): Define.
992         (mips-tdep.o): Add mips_tdep_h to dependency list.
993         * mips-tdep.h: New file.
994         * mips-tdep.c (mips-tdep.h): Include.
995         (enum mips_abi): Move to mips-tdep.h.
996         (mips_abi): New function.
997
998 2002-12-04  David Carlton  <carlton@math.stanford.edu>
999
1000         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1001
1002 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1003
1004         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1005         function.
1006         (lookup_symbol_aux_minsyms): New function.
1007
1008 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1009
1010         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1011
1012 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1013
1014         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1015         which is an obsolete macro name.
1016
1017 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1018
1019         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1020         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1021
1022 2002-12-03  H.J. Lu  (hjl@gnu.org)
1023
1024         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1025         (create_breakpoints): Make sure the addr_string field is not
1026         NULL.
1027
1028 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1029
1030         * sparc-nat.c (fetch_inferior_registers)
1031         (store_inferior_registers): Add comment on problem of LWP vs
1032         threads.
1033         
1034         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1035         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1036         (lin_lwp_store_registers): Remove.
1037         (init_lin_lwp_ops): Use fetch_inferior_registers
1038         and store_inferior_registers directly.
1039         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1040         (store_inferior_registers): Likewise.
1041         Fix PR gdb/725.
1042
1043 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1044
1045         * frame.h (get_frame_id): Convert to a function.
1046         (null_frame_id, frame_id_p): Declare.
1047         (frame_id_eq, frame_id_inner): Declare.
1048         (frame_id_build): New function.
1049         * frame.c (get_frame_id): Update.  Use null_frame_id.
1050         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1051         frame_id_inner.
1052         (null_frame_id, frame_id_p): Define.
1053         (frame_id_eq, frame_id_inner): Define.
1054         (frame_id_build): New function.
1055         * varobj.c (varobj_create): Update.
1056         (varobj_update): Update.
1057         * valops.c (value_assign): Update.
1058         (new_root_variable): Update.
1059         * infrun.c (save_inferior_status): Update.
1060         * breakpoint.c (watch_command_1): Update.
1061
1062 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1063
1064         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1065         (SNAP2): Likewise.
1066
1067 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1068
1069         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1070         patch.
1071
1072         * PROBLEMS: Mention PR gdb/725.
1073
1074 2002-12-03  Andreas Schwab  <schwab@suse.de>
1075
1076         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1077
1078 2002-12-02  Adam Fedor  <fedor@gnu.org>
1079             Klee Dienes  <kdienes@apple.com>
1080
1081         * objc-lang.c (objc_printstr): Add width arg to match
1082         printstr prototype.
1083         (compare_selectors): Add 'const' to arg types.
1084         (compare_classes): Likewise.
1085         (find_imps): Cast msym pointer to avoid compiler warning.
1086         (print_object_command): Validate the address before
1087         passing it to the print routine.
1088         (find_objc_msgcall_submethod): Change function argument to
1089         return an int.
1090         * objc-lang.h: Add 'extern' to all function declarations.
1091         (value_nsstring): Add declaration.
1092
1093 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1094
1095         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1096         Fixes a build failure on HP/UX.
1097
1098         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1099         failure on HP/UX. 
1100         (hpread_has_name): Advance declaration to avoid a compilation warning.
1101         (pst_syms_count): Add missing variable type. By change, the compiler
1102         was defaulting to int, which seems a good choice. Fixes a compilation
1103         warning.
1104         (pst_syms_size): Likewise.
1105  
1106 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1107
1108         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1109         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1110         later to set the proper gdbarch methods depending on the osabi.
1111         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1112
1113 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1114
1115         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1116         * osabi.c (gdb_osabi_name): Add strings images for the two new
1117         enum values.
1118         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1119
1120 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1121
1122         * MAINTAINERS (Java): Global maintainers are responible for Java.
1123         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1124         part Java maintainers.
1125
1126 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1127
1128         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1129         Fixes a compilation failure on AiX.
1130
1131 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1132
1133         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1134         why aix-thread.o is not listed.
1135
1136 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1137
1138         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1139         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1140         * gdbarch.h, gdbarch.c: Re-generate.
1141         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1142         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1143         * config/pa/tm-hppa.h, frame.h: Update.
1144         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1145         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1146         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1147         * cris-tdep.c, alpha-tdep.c: Update.
1148         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1149         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1150         (get_prev_frame): Ditto.
1151
1152 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1153
1154         * exec.c (xfer_memory): Replace boolean with int.
1155         * p-exp.y: Use 0 instead of false.
1156         * corelow.c (gdb_check_format): Change return type to int from
1157         boolean.
1158         * utils.c: Don't include <curses.h> or <term.h> first.
1159
1160 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1161
1162         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1163         (m68hc11_register_byte): Remove.
1164         (m68hc11_gdbarch_init): Don't set the above.
1165
1166 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1167
1168         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1169         by calling get_selected_frame.
1170         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1171         set_current_frame, create_new_frame, select_frame and
1172         get_current_frame.
1173         * remote-e7000.c (e7000_start_remote): Ditto.
1174         * remote-mips.c (common_open): Ditto
1175         * remote-rdp.c (remote_rdp_open): Ditto.
1176
1177 2002-11-29  Andreas Schwab  <schwab@suse.de>
1178
1179         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1180         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1181         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1182         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1183         read_memory_unsigned_integer instead of read_memory_integer when
1184         dealing with addresses and instruction opcodes.
1185         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1186         (m68k_linux_frame_saved_pc): Likewise.
1187
1188 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1189
1190         * stack.c (selected_frame, select_frame): Move from here ...
1191         * frame.c (selected_frame, select_frame): ... to here.  Include
1192         "language.h".
1193         * Makefile.in (frame.o): Update dependencies.
1194         * frame.c (get_selected_frame): New function.
1195         * frame.h (get_selected_frame): Declare.
1196         (deprecated_selected_frame): Rename selected_frame.
1197         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1198         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1199         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1200         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1201         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1202         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1203         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1204         * z8k-tdep.c, cli/cli-cmds.c: Update.
1205         
1206 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1207
1208         * frame.h (get_selected_block): Add comments.
1209
1210 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1211
1212         * frame.c (pc_notcurrent): New function.
1213         (find_frame_sal): New function.
1214         * frame.h (find_frame_sal): Declare.
1215         (struct symtab_and_line): Add opaque declaration.
1216         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1217         find_pc_line.
1218         (frame_info): Ditto.
1219         * ada-lang.c (find_printable_frame): Ditto.
1220
1221 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1222
1223         * configure.in: Check that the pthdebug library is recent enough
1224         before enabling thread support on native AiX.
1225         * configure: Regenerate.
1226
1227         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1228         from the list of object files as it is now appended by configure
1229         if thread support is enabled.
1230         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1231         if thread support is enabled.
1232
1233 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1234
1235         * stack.c (get_selected_block): In-line get_current_block.
1236         * frame.h (get_current_block): Delete declaration.
1237         * blockframe.c (get_current_block): Delete function.
1238
1239 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1240
1241         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1242         USE_GENERIC_DUMMY_FRAMES.
1243         * gdbarch.h, gdbarch.c: Regenerate.
1244         * valops.c, frame.c: Update.
1245         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1246         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1247         * config/pa/tm-hppa.h, blockframe.c: Update.
1248         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1249         * m68k-tdep.c, alpha-tdep.c: Ditto.
1250
1251         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1252         * mips-tdep.c: Ditto.
1253
1254 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1255
1256         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1257         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1258         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1259         * gdbarch.c, gdbarch.h: Re-generate.
1260         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1261         (CALL_DUMMY_LOCATION): Delete macro definition.
1262         (PC_IN_CALL_DUMMY): Delete macro definitions.
1263         
1264         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1265         default is already generic_pc_in_call_dummy.
1266         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1267         * v850-tdep.c (v850_gdbarch_init): Ditto.
1268         * sh-tdep.c (sh_gdbarch_init): Ditto.
1269         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1270         * mips-tdep.c (mips_gdbarch_init): Ditto.
1271         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1272         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1273         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1274         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1275         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1276         * avr-tdep.c (avr_gdbarch_init): Ditto.
1277         
1278         * arm-tdep.c (arm_gdbarch_init): Do not set
1279         use_generic_dummy_frames, default is already 1.
1280         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1281         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1282         * v850-tdep.c (v850_gdbarch_init): Ditto.
1283         * sh-tdep.c (sh_gdbarch_init): Ditto.
1284         * s390-tdep.c (s390_gdbarch_init): Ditto.
1285         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1286         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1287         * mips-tdep.c (mips_gdbarch_init): Ditto.
1288         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1289         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1290         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1291         * i386-tdep.c (i386_gdbarch_init): Ditto.
1292         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1293         * frv-tdep.c (frv_gdbarch_init): Ditto.
1294         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1295         * cris-tdep.c (cris_gdbarch_init): Ditto.
1296         * avr-tdep.c (avr_gdbarch_init): Ditto.
1297
1298         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1299         call_dummy_location, default is already AT_ENTRY_POINT.
1300         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1301         * v850-tdep.c (v850_gdbarch_init): Ditto.
1302         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1303         * sh-tdep.c (sh_gdbarch_init): Ditto.
1304         * s390-tdep.c (s390_gdbarch_init): Ditto.
1305         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1306         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1307         * mips-tdep.c (mips_gdbarch_init): Ditto.
1308         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1309         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1310         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1311         * i386-tdep.c (i386_gdbarch_init): Ditto.
1312         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1313         * frv-tdep.c (frv_gdbarch_init): Ditto.
1314         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1315         * cris-tdep.c (cris_gdbarch_init): Ditto.
1316         * avr-tdep.c (avr_gdbarch_init): Ditto.
1317         * arm-tdep.c (arm_gdbarch_init): Ditto.
1318         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1319
1320 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1321
1322         * frame.h: Update comments on set_current_frame, create_new_frame,
1323         flush_cached_frames, reinit_frame_cache, select_frame and
1324         selected_frame.
1325         
1326 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1327
1328         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1329         deprecated pc_in_call_dummy function.
1330         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1331         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1332         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1333         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1334         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1335
1336 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1337
1338         * Makefile.in: Remove Tix dependencies.
1339         * acinclude.m4: Ditto.
1340         * aclocal.m4: Ditto.
1341         * configure.in: Ditto.
1342         * configure: Regenerated.
1343         
1344 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1345
1346         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1347         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1348         * gdbarch.c: Re-generate.
1349         
1350 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1351
1352         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1353         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1354         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1355         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1356         pc_in_call_dummy_at_entry_point.
1357         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1358         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1359         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1360         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1361         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1362         pc_in_call_dummy_on_stack.
1363         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1364         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1365         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1366         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1367         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1368         
1369 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1370
1371         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1372         pc_in_call_dummy_before_text_end
1373         (deprecated_pc_in_call_dummy_after_text_end): Rename
1374         pc_in_call_dummy_after_text_end.
1375         (deprecated_pc_in_call_dummy_on_stack): Rename
1376         pc_in_call_dummy_on_stack.
1377         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1378         pc_in_call_dummy_at_entry_point.
1379         * m68k-tdep.c (m68k_gdbarch_init): Update.
1380         * s390-tdep.c (s390_gdbarch_init): Update.
1381         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1382         * vax-tdep.c (vax_gdbarch_init): Update.
1383         * sparc-tdep.c (sparc_gdbarch_init): Update.
1384         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1385         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1386         * i386-tdep.c (i386_gdbarch_init): Update.
1387         * frv-tdep.c (frv_gdbarch_init): Update.
1388         * cris-tdep.c (cris_gdbarch_init): Update.
1389         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1390         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1391         (deprecated_pc_in_call_dummy_after_text_end)
1392         (deprecated_pc_in_call_dummy_on_stack)
1393         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1394         * alpha-tdep.c (alpha_gdbarch_init): Update.
1395
1396 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1397
1398         * acconfig.h (HAVE_PREAD64): Add.
1399         * configure.in: Check for pread64.
1400         * config.in: Regenerated.
1401         * configure: Regenerated.
1402         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1403         * linux-proc.c (linux_proc_xfer_memory): New function.
1404         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1405
1406 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1407
1408         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1409         pdi's with no name.
1410
1411 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1412
1413         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1414         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1415
1416 2002-11-25  Jim Blandy  <jimb@redhat.com>
1417
1418         * symfile.c (init_objfile_sect_indices): New function.
1419         (default_symfile_offsets): Move the section-index-initializing
1420         stuff into init_objfile_sect_indices, and call that.
1421
1422         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1423         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1424
1425         * symfile.c (syms_from_objfile): Adjust indentation.
1426
1427         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1428         || info_verbose isn't true.
1429
1430 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1431
1432         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1433         default to get_frame_base.
1434         * gdbarch.h, gdbarch.c: Regenerate.
1435         * arch-utils.c (default_frame_address): Delete function.
1436         * arch-utils.h (default_frame_address): Delete declaration
1437
1438 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1439
1440         * varobj.c (find_frame_addr_in_frame_chain):
1441         Use get_frame_base instead of FRAME_FP,
1442         obvious fix.
1443
1444 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1445
1446         * frame.h (FRAME_FP): Delete macro.
1447         (get_frame_base): New function declaration.
1448         * frame.c (get_frame_base): New function.
1449         (get_frame_id): Use ->frame.
1450         (frame_find_by_id): Rewrite to use get_frame_id.
1451         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1452         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1453         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1454         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1455         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1456         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1457         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1458
1459 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1460
1461         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1462
1463 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1464
1465         * frame.c (set_unwind_by_pc): Revert change below, use
1466         PC_IN_CALL_DUMMY.
1467         (get_prev_frame): Ditto.
1468
1469 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1470
1471         * dummy-frame.c (pc_in_dummy_frame): New function.
1472         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1473         (find_dummy_frame): Update comment.
1474         (generic_pop_current_frame): Use get_frame_type.
1475         * dummy-frame.h (pc_in_dummy_frame): Declare.
1476         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1477         (create_new_frame): Use pc_in_dummy_frame.
1478         (get_prev_frame): Use pc_in_dummy_frame.
1479         (frame_saved_regs_register_unwind): Use get_prev_frame.
1480         (deprecated_generic_get_saved_register): Use get_prev_frame.
1481
1482 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1483
1484         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1485         from here ...
1486         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1487         (varobj_create): Note that frame ID should be used.
1488         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1489
1490 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1491
1492         * breakpoint.c: Include "gdb_assert.h".
1493         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1494         not being used.
1495         * Makefile.in (breakpoint.o): Update dependencies.
1496         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1497         deprecated_frame_in_dummy.
1498         * stack.c (print_frame_info_base): Ditto.
1499         (frame_info): Ditto.
1500         (print_frame_info_base): Ditto.  Delete dead code.
1501         
1502 2002-11-23  Andreas Schwab  <schwab@suse.de>
1503
1504         * Makefile.in (m68k_tdep_h): Define.
1505         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1506         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1507         * m68k-tdep.c: Move register number enum ...
1508         * m68k-tdep.h: ... to this new file and rename the constants from
1509         E_* to M68K_*.  All uses changed.
1510         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1511         * abug-rom.c: Include "m68k-tdep.h".  Use
1512         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1513         * cpu32bug-rom.c: Likewise.
1514         * dbug-rom.c: Likewise.
1515         * m68k-tdep.c: Likewise.
1516         * m68klinux-nat.c: Likewise.
1517         * remote-est.c: Likewise.
1518         * rom68k-rom.c: Likewise.
1519         * config/m68k/tm-linux.h: Likewise.
1520
1521 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1522
1523         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1524         dummy frame initialization code.
1525         * mips-tdep.c (mips_gdbarch_init): Ditto.
1526
1527 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1528
1529         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1530         attach will hang.
1531
1532 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1533
1534         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1535         to default_frame_address.
1536         * gdbarch.h, gdbarch.c: Re-generate.
1537
1538         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1539         or frame_locals_address to default_frame_address.
1540         * m68k-tdep.c (m68k_gdbarch_init): Update.
1541         * i386-tdep.c (i386_gdbarch_init): Update.
1542         * frv-tdep.c (frv_gdbarch_init): Update.
1543         * sh-tdep.c (sh_gdbarch_init): Update.
1544         * v850-tdep.c (v850_gdbarch_init): Update.
1545         * sparc-tdep.c (sparc_gdbarch_init): Update.
1546         * mips-tdep.c (mips_gdbarch_init): Update.
1547         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1548         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1549         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1550
1551         * cris-tdep.c (cris_frame_args_address): Delete function.
1552         (cris_frame_locals_address): Delete function.
1553         (cris_gdbarch_init): Do not set frame_args_address or
1554         frame_locals_address.
1555
1556 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1557
1558         * thread-db.c (thread_db_load): Tell the user what's going on
1559         if dlopen fails on libthread_db.
1560
1561 2002-11-23  Andreas Schwab  <schwab@suse.de>
1562
1563         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1564         invariant return values.
1565
1566 2002-11-22  Andreas Schwab  <schwab@suse.de>
1567
1568         * valops.c (value_slice): Move declaration of `offset' to avoid
1569         warning.
1570
1571 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1572
1573         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1574         (struct so_stuff): Add end_addr field.
1575         (register_loaded_dll): Calculate and store end address of loaded dll.
1576         (solib_address): New function.
1577         (child_solib_loaded_library_pathname): Pass carefully constructed
1578         section info to safe_symbol_file_add rather than ignoring it.
1579         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1580         DLL is loaded.
1581         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1582         (child_create_inferior): Fix a compiler warning.
1583         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1584         (solib_address): Declare new function.
1585
1586 2002-11-22  Andreas Schwab  <schwab@suse.de>
1587
1588         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1589         and FPS registers.
1590
1591 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1592
1593         * maint.c (_initialize_maint_cmds): Fix typo.  From
1594         Francesco Potorti` <pot@gnu.org>.
1595
1596 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1597
1598         * mips-tdep.c (mips_dump_tdep): Delete references to
1599         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1600         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1601         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1602         * printcmd.c (build_address_symbolic): Delete calls to
1603         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1604         (address_info): Ditto.
1605         Fix PR gdb/773.
1606         
1607 2002-11-19  Klee Dienes  <kdienes@apple.com>
1608             Adam Fedor  <fedor@gnu.org>
1609
1610         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1611         the ability to explicitly specify the quote characters and word
1612         break characters; if NULL is specified for either, use the old
1613         behavior of using the characters used by the completer.
1614         (skip_chars): New function.  Convenience wrapper around
1615         skip_quoted_chars to provide the original skip_chars behavior.
1616         * completer.h (skip_quoted_chars): Add prototype.
1617
1618 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1619
1620         Problems reported by Paul Eggert.
1621         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1622
1623 2002-11-19  Andreas Schwab  <schwab@suse.de>
1624
1625         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1626         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1627         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1628         (m68k_linux_frame_saved_pc): Move to ...
1629         * m68klinux-tdep.c: ... here.  New file.
1630         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1631         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1632
1633 2002-11-19  Adam Fedor  <fedor@gnu.org>
1634
1635         * objc-exp.y: Revert to old skip_quoted usage.
1636
1637 2002-11-19  Adam Fedor  <fedor@gnu.org>
1638
1639         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1640         (objc_lang_h): Define.
1641         (YYFILES): Add objc-exp.tab.c.
1642         (local-maintainer-clean): Remove objc-exp.tab.c.
1643         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1644         
1645 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1646
1647         * p-exp.y (typecast rule): Add automatic dereference of
1648         pascal classes if needed.
1649         (THIS): Set current_type.
1650         Automatically dereference pascal classes. 
1651         (typebase rule): Add ^typebase recognition.
1652
1653 2002-11-18  Adam Fedor  <fedor@gnu.org>
1654
1655         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1656         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1657         (op_name): Handle OP_OBJC_SELF.
1658         * Makefile.in (expprint.o): Add additional depends.
1659
1660 2002-11-18  Adam Fedor  <fedor@gnu.org>
1661
1662         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1663         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1664         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1665         * objc-exp.y: Likewise. 
1666
1667 2002-11-18  Adam Fedor  <fedor@gnu.org>
1668
1669         * gdb/parser-defs.h: (struct objc_class_str): New structure
1670         for parsing ObjC classes.
1671
1672 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1673
1674         * stack.c (frame_relative_level): Copy function from here ...
1675         * frame.c (frame_relative_level): ...to here.
1676
1677 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1678
1679         * frame.h (enum frame_type): Define.
1680         (get_frame_type): Declare.
1681         (struct frame_info): Add field `type'.  Delete field
1682         signal_handler_caller.
1683         (deprecated_set_frame_signal_handler_caller): Declare.
1684         * frame.c (get_frame_type): New function.
1685         (deprecated_set_frame_type): New function.
1686         (create_new_frame): Set the frame's type.
1687         (get_prev_frame): Similar.
1688         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1689         * s390-tdep.c: Ditto.
1690         * m68klinux-nat.c: Ditto.
1691         * ns32k-tdep.c: Ditto.
1692         * x86-64-linux-tdep.c: Ditto.
1693         * vax-tdep.c: Ditto.
1694         * rs6000-tdep.c: Ditto.
1695         * ppc-linux-tdep.c: Ditto.
1696         * i386-interix-tdep.c: Ditto.
1697         * mips-tdep.c: Ditto.
1698         * m68k-tdep.c: Ditto.
1699         * hppa-tdep.c: Ditto.
1700         * ia64-tdep.c: Ditto.
1701         * cris-tdep.c: Ditto.
1702         * arm-tdep.c: Ditto.
1703         * alpha-tdep.c: Ditto.
1704         * i386-tdep.c: Ditto.
1705         * stack.c: Ditto.
1706         * ada-lang.c: Ditto.
1707         * blockframe.c: Update.
1708         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1709         deprecated_set_frame_type instead of signal_handler_caller.
1710         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1711         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1712         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1713
1714 2002-11-18   Klee Dienes  <kdienes@apple.com>
1715
1716         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1717
1718 2002-11-18  Klee Dienes  <kdienes@apple.com>
1719
1720         * buildsym.c (pop_context): Add comment.
1721         
1722 2002-11-18  Klee Dienes  <kdienes@apple.com>
1723
1724         * buildsym.h (pop_context): Convert to function, defined in
1725         buildsym.c.
1726         * buildsym.c: Include gdb_assert.h.
1727         (pop_context): Implement as C function.  Add check for stack
1728         underflow.
1729         * dbxread.c (process_one_symbol): Complain and stop processing
1730         that symbol if we are already at the top of the context stack for
1731         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1732         when processing N_RBRAC.
1733
1734 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1735
1736         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1737         define.
1738         (struct target_waitstatus): Add opaque definition.
1739         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1740         * exec.c (init_exec_ops): Likewise.
1741         * fork-child.c (clone_and_follow_inferior): Remove.
1742         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1743         * inferior.h (clone_and_follow_inferior): Remove prototype.
1744         * infrun.c (follow_fork_mode_both): Remove.
1745         (follow_fork_mode_kind_names): Remove commented out "both".
1746         (follow_inferior_fork): Remove follow_fork_mode_both support.
1747         * inftarg.c (child_clone_and_follow_inferior): Remove.
1748         (child_post_follow_inferior_by_clone): Remove.
1749         (init_child_ops): Don't set to_clone_and_follow_inferior
1750         or to_post_follow_inferior_by_clone.
1751         * target.c (default_clone_and_follow_inferior): Remove.
1752         (cleanup_target): Don't set to_clone_and_follow_inferior
1753         or to_post_follow_inferior_by_clone.
1754         (find_default_clone_and_follow_inferior): Remove.
1755         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1756         (debug_to_clone_and_follow_inferior): Remove.
1757         (debug_to_post_follow_inferior_by_clone): Remove.
1758         (setup_target_debug): Don't set to_clone_and_follow_inferior
1759         or to_post_follow_inferior_by_clone.
1760         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1761         and to_post_follow_inferior_by_clone.
1762         (child_clone_and_follow_inferior): Remove prototype.
1763         (child_post_follow_inferior_by_clone): Remove prototype.
1764         (target_clone_and_follow_inferior): Remove macro.
1765         (target_post_follow_inferior_by_clone): Remove macro.
1766         (find_default_clone_and_follow_inferior): Remove prototype.
1767
1768 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1769
1770         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1771         inferior_has_vforked, and inferior_has_execd instead of
1772         target_has_forked, target_has_vforked, and target_has_execd.
1773         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1774         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1775         (CHILD_WAIT): Define.
1776         (child_wait): Add prototype.
1777         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1778         Add prototype.
1779         (hpux_has_vforked): Likewise, from child_has_vforked.
1780         (hpux_has_execd): Likewise, from child_has_execd.
1781         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1782         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1783         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1784         and hpux_has_syscall_event instead of the target hooks.
1785         * infrun.c (inferior_has_forked, inferior_has_vforked)
1786         (inferior_has_execd): New functions.
1787         * inftarg.c (not_same_real_pid): Remove.
1788         (child_wait): Remove references to not_same_real_pid,
1789         target_has_forked, target_has_vforked, target_has_execd,
1790         and target_has_syscall_event.
1791         (child_has_forked, child_has_vforked, child_has_execd)
1792         (child_has_syscall_event): Remove.
1793         (init_child_ops): Remove references to child_has_forked,
1794         child_has_vforked, child_has_execd, and child_has_syscall_event.
1795         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1796         (hpux_has_vforked): Likewise, from child_has_vforked.
1797         (hpux_has_execd): Likewise, from child_has_execd.
1798         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1799         * target.c (cleanup_target): Remove references to
1800         to_has_forked, to_has_vforked, to_has_execd, and
1801         to_has_syscall_event.
1802         (update_current_target): Likewise.
1803         (setup_target_debug): Likewise.
1804         (debug_to_has_forked): Remove.
1805         (debug_to_has_vforked): Remove.
1806         (debug_to_has_execd): Remove.
1807         (debug_to_has_syscall_event): Remove.
1808         * target.h (struct target_ops): Remove to_has_forked.
1809         to_has_vforked, to_has_execd, and to_has_syscall_event.
1810         (child_has_forked, child_has_vforked, child_has_execd)
1811         (child_has_syscall_event): Remove prototypes.
1812         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1813         prototypes.
1814         (target_has_forked, target_has_vforked, target_has_execd)
1815         (target_has_syscall_event): Remove macros.
1816
1817 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1818
1819         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1820         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1821         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1822         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1823         * target.c (cleanup_target): Remove reference to
1824         to_can_follow_vfork_prior_to_exec.
1825         (update_current_target): Likewise.
1826         (debug_to_can_follow_vfork_prior_to_exec): Remove.
1827         (setup_target_debug): Remove reference to
1828         to_can_follow_vfork_prior_to_exec.
1829         * target.h (struct target_ops): Remove
1830         to_can_follow_vfork_prior_to_exec.
1831         (child_can_follow_vfork_prior_to_exec): Remove prototype.
1832         (target_can_follow_vfork_prior_to_exec): Remove definition.
1833         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1834         define.
1835         * infrun.c (follow_vfork_when_exec): Remove.
1836         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1837         (follow_exec): Likewise.
1838         (handle_inferior_event): Likewise.
1839         (keep_going): Likewise.
1840
1841 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1842
1843         * frame.c (generic_unwind_get_saved_register): Make static.
1844         * frame.h (generic_unwind_get_saved_register): Delete declaration.
1845         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1846         defaults to generic_unwind_get_saved_register.
1847         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1848         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1849         * frv-tdep.c (frv_gdbarch_init): Ditto.
1850         * i386-tdep.c (i386_gdbarch_init): Ditto.
1851         * s390-tdep.c (s390_gdbarch_init): Ditto.
1852         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1853         * v850-tdep.c (v850_gdbarch_init): Ditto.
1854         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1855         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1856         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1857
1858 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1859
1860         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
1861         i386-tdep.c.
1862
1863 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1864
1865         * frame.h (sigtramp_saved_pc): Delete declaration.
1866         * blockframe.c (sigtramp_saved_pc): Delete function.
1867         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1868         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1869         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1870         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1871
1872 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1873
1874         * frame.c (frame_pc_unwind): New function.
1875         (frame_saved_regs_pc_unwind): New function.
1876         (frame_register_unwind): Pass unwind_cache instead of
1877         register_unwind_cache.
1878         (set_unwind_by_pc): Add unwind_pc parameter, set.
1879         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1880         (get_prev_frame): Ditto.
1881         * frame.h (frame_pc_unwind_ftype): Declare.
1882         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1883         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
1884         (frame_pc_unwind): Declare.
1885         * dummy-frame.c (dummy_frame_pc_unwind): New function.
1886         (struct dummy_frame): Add comment mentioning that values are for
1887         previous frame.
1888         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1889         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1890         (generic_file_frame_chain_valid): Ditto.
1891         * stack.c (frame_info): Ditto.
1892
1893 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1894
1895         * linespec.c (locate_first_half): New function.
1896         (decode_line_1): Move code into locate_first_half.
1897
1898 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1899
1900         * complaints.h: Add comment explaining how to eliminate a
1901         deprecated_complain call.
1902         * complaints.h: Fix spelling errors.
1903
1904 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1905
1906         * printcmd.c: Remove #include "disasm.h".
1907
1908 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1909
1910         * frame.h: Move the most relevant interface functions to the start
1911         of the file.
1912
1913 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1914
1915         * regcache.h (deprecated_registers): Rename registers.
1916         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1917         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1918         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1919         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1920         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1921         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1922         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1923         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1924         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1925         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1926         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1927         * v850ice.c: Update.
1928
1929 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
1930
1931         * utils.c (gdb_realpath): Add comment mentioning realpath with a
1932         NULL buffer.
1933
1934 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1935
1936         * regcache.h (deprecated_read_register_bytes): Rename
1937         read_register_bytes.
1938         (deprecated_write_register_bytes): Rename write_register_bytes.
1939         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1940         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1941         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1942         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1943         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1944         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1945         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1946         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1947         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1948         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1949         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1950         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1951         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1952         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1953
1954 2002-11-13  Jim Blandy  <jimb@redhat.com>
1955
1956         * findvar.c (read_var_value): Doc fix.
1957
1958 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1959
1960         * regcache.c (struct regcache): Replace passthough_p with
1961         readonly_p.
1962         (regcache_xmalloc): Initialize readonly_p.
1963         (build_regcache): Initialize readonly_p.
1964         (regcache_save): New function.
1965         (regcache_restore): New function.
1966         (regcache_cpy): Re-implement using regcache_save and
1967         regcache_restore.
1968         (regcache_raw_read): Update.
1969         (regcache_cooked_read): When a read-only cache, checked for cached
1970         pseudo register values.
1971         (regcache_raw_write): Assert that the cache is not read-only.
1972         Remove code handling a non-passthrough cache.
1973         * regcache.h (regcache_save): Declare.
1974         (regcache_restore): Declare.
1975
1976 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1977
1978         * regcache.c (struct regcache_descr): Add fields
1979         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1980         (init_legacy_regcache_descr): Compute the size of a cooked
1981         register cache and then assign that to sizeof_raw_registers.  Set
1982         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1983         (init_legacy_regcache_descr): Ditto.
1984
1985 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1986
1987         * regcache.c (register_buffer): Move to near start of file, update
1988         description.
1989         (regcache_raw_read): Use.
1990         (regcache_raw_write): Use.
1991         (struct regcache): Rename raw_registers to registers and
1992         raw_register_valid_p to register_valid_p.
1993         (regcache_xmalloc): Update.
1994         (regcache_xfree): Update.
1995         (register_buffer): Update.
1996         (regcache_cpy): Update.
1997         (regcache_cpy_no_passthrough): Update.
1998         (regcache_valid_p): Update.
1999         (deprecated_grub_regcache_for_registers): Update.
2000         (deprecated_grub_regcache_for_register_valid): Update.
2001         (set_register_cached): Update.
2002         (regcache_raw_write): Update.
2003
2004 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2005
2006         * p-exp.y (name_not_typename): Use copy_name to
2007         set current_type variable for fields of THIS.
2008
2009 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2010
2011         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2012         * monitor.c (init_base_monitor_ops): Likewise.
2013         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2014         * remote-array.c (init_array_ops): Likewise.
2015         * remote-e7000.c (init_e7000_ops): Likewise.
2016         * remote-es.c (init_es1800_ops): Likewise.
2017         (init_es1800_child_ops): Likewise.
2018         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2019         * remote-sim.c (init_gdbsim_ops): Likewise.
2020         * remote-st.c (init_st2000_ops): Likewise.
2021         * sol-thread.c (init_sol_core_ops): Likewise.
2022         (init_sol_thread_ops): Likewise.
2023         * v850ice.c (init_850ice_ops): Likewise.
2024         * win32-nat.c (init_child_ops): Likewise.
2025         * wince.c (init_child_ops): Likewise.
2026
2027 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2028
2029         * utils.c (gdb_realpath): Make rp a constant pointer.
2030
2031 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2032
2033         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2034         a constant buffer; cannonicalize_file_name(); realpath() with a
2035         pathconf() defined buffer, xstrdup().
2036
2037 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2038
2039         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2040         to hang2.C; hang3.c to hang3.C.
2041
2042 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2043
2044         * findvar.c (read_var_value): Reenable TLS code.
2045
2046 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2047             Jim Blandy  <jimb@redhat.com>
2048         
2049         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2050         * target.c (update_current_target): Add
2051         to_get_thread_local_address.
2052         * target.h (to_get_thread_local_address): Export.
2053         (target_get_thread_local_address): Define.
2054         (target_get_thread_local_address_p): Define.
2055         * thread-db.c: Include solib-svr4.h.
2056         (td_thr_tls_get_addr_p): Define.
2057         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2058         (thread_db_get_thread_local_address): New function.
2059         (init_thread_db_ops): Initialize to_get_thread_local_address.
2060         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2061         * configure: Regenerate.
2062         * config.in: Regenerate.
2063
2064 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2065
2066         * linespec.c (set_flags): New function.
2067         (decode_line_1): Move code into set_flags.
2068
2069 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2070
2071         * linespec.c (decode_line_1): Move chunks of code to separate
2072         functions.
2073         (initialize_defaults): New function.
2074         (decode_indirect): New function.
2075
2076 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2077
2078         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2079         instead of void_code_ptr.
2080         (sigtramp_saved_pc): Ditto.
2081
2082         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2083         i386_fp_regnum_p.
2084
2085 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2086
2087         * gdbtypes.h (struct main_type): Move artificial flag out of
2088         loc.  New member of ``struct field'' named static_kind.  Reduce
2089         overloaded meaning of bitsize.
2090         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2091         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2092         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2093
2094         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2095         new fields.
2096         (template_to_fixed_record_type, template_to_static_fixed_type)
2097         (to_record_with_fixed_variant_part): Likewise.
2098         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2099         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2100         * dwarfread.c (struct_type, enum_type): Likewise.
2101         * hpread.c (hpread_read_enum_type)
2102         (hpread_read_function_type, hpread_read_doc_function_type)
2103         (hpread_read_struct_type): Likewise.
2104         * mdebugread.c (parse_symbol): Likewise.
2105
2106 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2107
2108         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2109         * stack.c (print_frame_info_base): Update.
2110         (print_frame_info_base, frame_info): Update.
2111         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2112         (sparc_frame_saved_pc): Update.
2113         * ada-lang.c (find_printable_frame): Update.
2114         * breakpoint.c (deprecated_frame_in_dummy): Update.
2115         
2116 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2117
2118         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2119         defined.
2120         (regmap): Extend to cover all registers.
2121         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2122         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2123         definitions.
2124         (fetch_register, sore_register): Simplify.
2125         (old_fetch_inferior_registers, old_store_inferior_registers):
2126         Remove functions.
2127         (cannot_fetch_register, cannot_store_register): Change
2128         implementation to use regmap array to decide which registers
2129         cannot be fetched/stored.  This removes $orig_eax from the
2130         registers that cannot be fetched/stored.
2131         (fetch_inferior_registers): Call fetch_register directly instead
2132         of calling old_fetch_inferior_registers.
2133         (store_inferior_registers): Call store_register directly instead
2134         of calling old_store_inferior_registers.
2135         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2136         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2137         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2138
2139 2002-11-09  Klee Dienes  <kdienes@apple.com>
2140
2141         * i387-tdep.c (i387_supply_register): When called with NULL as a
2142         buffer, mark the register as not provided (to mirror the behavior
2143         of supply_register).
2144         (i387_supply_fxsave): Ditto.
2145         (i387_supply_fsave): Ditto (inherits the behavior from
2146         i387_supply_register).
2147
2148 2002-11-09  Klee Dienes  <kdienes@apple.com>
2149
2150         * blockframe.c (sigtramp_saved_pc): Use
2151         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2152         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2153         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2154         
2155 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2156
2157         * frame.c (get_prev_frame): Test prev_p to identify a previously
2158         unwound frame.  Initialize prev_p.
2159         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2160         comment.
2161
2162 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2163
2164         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2165         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2166         more comments.  Zap dead code.
2167
2168 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2169
2170         * infcmd.c (print_vector_info, print_float_info): Move code that
2171         checks whether the target has any registers and whether there is a
2172         selected frame up, such that it is also used if a target provides
2173         multi-arch definitions of these functions.
2174
2175 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2176
2177         * Makefile.in (DESTDIR): Define.
2178         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2179         prefix.
2180
2181         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2182         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2183
2184 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2185
2186         * i386-linux-tdep.c: Include "reggroups.h".
2187         (i386_linux_register_reggroup_p): New function.
2188         (i386_linux_init_abi): Set register_reggroup_p to
2189         i386_linux_register_reggroup_p.
2190         * i386-tdep.h (i386_register_reggroup_p): Declare.
2191         * i386-tdep.c: Include "reggroups.h".
2192         (i386_init_reggroups): New function.
2193         (i386_add_reggroups): New function.
2194         (i386_register_reggroup_p): New function.
2195         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2196         (_initialize_i386_tdep): Call i386_init_reggroups.
2197         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2198         specific reggroups.
2199
2200 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2201
2202         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2203         request that's available in *BSD.
2204
2205         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2206
2207         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2208         FDOFF_REGNUM.
2209
2210 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2211
2212         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2213         * dummy-frame.c (find_dummy_frame): Rename
2214         generic_find_dummy_frame, make static.  Return the dummy frame
2215         instead of the regcache.
2216         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2217         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2218         (dummy_frame_register_unwind): Rename
2219         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2220         * dummy-frame.h (dummy_frame_register_unwind): Rename
2221         generic_call_dummy_register_unwind.
2222
2223 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2224
2225         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2226         except the inclusion of "i386/tm-i386.h", to...
2227         * config/i386/nm-i386v42mp.h: ...here.
2228         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2229
2230 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2231
2232         * Makefile.in (frame.o): Update dependencies.
2233         * blockframe.c (current_frame, frame_obstack_alloc)
2234         (frame_saved_regs_zalloc, get_current_frame)
2235         (set_current_frame, create_new_frame)
2236         (set_unwind_by_pc, get_next_frame)
2237         (flush_cached_frames, reinit_frame_cache)
2238         (frame_saved_regs_register_unwind)
2239         (deprecated_generic_get_saved_register)
2240         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2241         (_initialize_blockframe): Move frame code from here...
2242         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2243         "annotate.h" and "dummy-frame.h".
2244         (_initialize_frame): New function.
2245
2246 2002-11-08  Jim Blandy  <jimb@redhat.com>
2247
2248         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2249         when we finish a function a context.
2250         * buildsym.h (outermost_context_p): New macro.
2251         (Bug analyzed by David Edelsohn.)
2252
2253 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2254
2255         * blockframe.c: Include "dummy-frame.h".
2256         (struct dummy_frame, dummy_frame_stack)
2257         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2258         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2259         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2260         (generic_save_call_dummy_addr, generic_pop_current_frame)
2261         (generic_pop_dummy_frame, generic_fix_call_dummy)
2262         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2263         dummy frame code from here...
2264         * dummy-frame.c: ...to here.  New file.
2265         * dummy-frame.h: New file.
2266         (generic_call_dummy_register_unwind): Declare.
2267         (generic_find_dummy_frame): Declare.
2268         * Makefile.in (SFILES): Add dummy-frame.c.
2269         (dummy-frame.o): Specify dependencies.
2270         (dummy_frame_h): Define.
2271         (COMMON_OBS): Add dummy-frame.o.
2272         (blockframe.o): Update dependencies.
2273
2274 2002-11-08  Jim Blandy  <jimb@redhat.com>
2275
2276         * dwarf2read.c (read_func_scope): Restore local_symbols and
2277         param_symbols after we finish the function context.  (Based on a
2278         patch from David Edelsohn.)
2279
2280 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2281
2282         * linespec.c (symbol_found): New function.
2283         (minsym_found): New function.
2284         (decode_line_1): Separate out some code into separate functions.
2285
2286 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2287
2288         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2289         the benefit of the interix target.
2290         * i386-tdep.h (i386_frameless_signal_p): Declare.
2291
2292 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2293
2294         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2295         declaration that snuck in from change below.
2296
2297 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2298
2299         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2300         all callers.
2301         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2302         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2303         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2304         (i386_mxcsr_regnum_p): new function.  Use instead of
2305         MXCSR_REGNUM_P.
2306         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2307         (i386_sse_regnum_p): Declare.
2308         (i386_mxcsr_regnum_p): Declare.
2309         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2310         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2311         (IS_FP_REGNUM): Update definition.
2312         (IS_FPU_CTRL_REGNUM): Update definition..
2313         (IS_SSE_REGNUM): Update definition..
2314         * i386v-nat.c (register_u_addr): Update.
2315         * go32-nat.c (fetch_register): Update.
2316         (store_register): Update.
2317
2318 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2319
2320         Preparation work to convert the hppa targets to multiarch partial.
2321
2322         * hppa-tdep.c: Add new functions replacing macro bodies from
2323         config/pa/tm-hppa.h. These function will be used to initialize
2324         the gdbarch structure. Import some comments from tm-hppa.h,
2325         and place them where appropriate, to avoid loosing them when
2326         we cleanup this file.
2327         (hppa_reg_struct_has_addr): New function.
2328         (hppa_inner_than): New function.
2329         (hppa_stack_align): New function.
2330         (hppa_pc_requires_run_before_use): New function.
2331         (hppa_instruction_nullified): New function.
2332         (hppa_register_byte): New function.
2333         (hppa_register_virtual_type): New function.
2334         (hppa_store_struct_return): New function.
2335         (hppa_cannot_store_register): New function.
2336         (hppa_frame_args_address): New function.
2337         (hppa_frame_locals_address): New function.
2338         (hppa_smash_text_address): New function.
2339         (hppa_coerce_float_to_double): New function. Requires the inclusion
2340         of "language.h".
2341
2342         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2343
2344         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2345         gdbarch-eligible macro to a call to the new associated function
2346         created in hppa-tdep.c.
2347         (INNER_THAN): Likewise.
2348         (STACK_ALIGN): Likewise.
2349         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2350         (INSTRUCTION_NULLIFIED): Likewise.
2351         (REGISTER_BYTE): Likewise.
2352         (REGISTER_VIRTUAL_TYPE): Likewise.
2353         (STORE_STRUCT_RETURN): Likewise.
2354         (CANNOT_STORE_REGISTER): Likewise.
2355         (FRAME_ARGS_ADDRESS): Likewise.
2356         (FRAME_LOCALS_ADDRESS): Likewise.
2357         (SMASH_TEXT_ADDRESS): Likewise.
2358         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2359         (ABOUT_TO_RETURN): Delete, as no longer used.
2360
2361 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2362
2363         * printcmd.c (disassemble_command): Remove obsolete function.
2364         (_initialize_printcmd): Do not create disassemble command here.
2365         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2366         disassemble command.
2367         (init_cli_cmds): Create disassemble command here instead.
2368
2369 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2370
2371         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2372
2373 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2374
2375         * regcache.h (regcache_cooked_read_using_offset_hack)
2376         (regcache_cooked_write_using_offset_hack): Delete declarations.
2377         (register_changed): Delete declaration.
2378         * regcache.c (regcache_cooked_read_using_offset_hack)
2379         (regcache_cooked_write_using_offset_hack): Delete functions.
2380         (cooked_xfer_using_offset_hack): Delete function.
2381         (register_changed): Delete function.
2382
2383 2002-11-07  Jim Blandy  <jimb@redhat.com>
2384
2385         * macroscope.c: #include "complaints.h".
2386         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2387         but not in the macro table.
2388         * Makefile.in (macroscope.o): Record dependency.
2389
2390 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2391
2392         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2393
2394 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2395
2396         * regcache.c (deprecated_registers_fetched): Update.
2397         * regcache.h (deprecated_registers_fetched): Rename
2398         registers_fetched.
2399         * remote-vxsparc.c (vx_read_register): Update.
2400         * remote-vxmips.c (vx_read_register): Update.
2401         * remote-vx68.c (vx_read_register): Update.
2402         * irix5-nat.c (fetch_core_registers): Update.
2403         * mipsm3-nat.c (fetch_inferior_registers): Update.
2404         * sun3-nat.c (fetch_inferior_registers): Update.
2405         * symm-nat.c (fetch_inferior_registers): Update.
2406         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2407         (fetch_core_registers): Update.
2408         (fetch_kcore_registers): Update.
2409         * mips-nat.c (fetch_inferior_registers): Update.
2410         * corelow.c (get_core_registers): Update.
2411         * a68v-nat.c (fetch_inferior_registers): Update.
2412
2413 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2414
2415         Put in place the framework necessary for multiarching the hppa targets.
2416         * hppa-tdep.c (hppa_gdbarch_init): New function.
2417         (hppa_dump_tdep): New function.
2418         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2419         tdep structure dumper.
2420         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2421         until the multi-arching conversion has partially been completed.
2422
2423 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2424
2425         * valops.c (value_assign): Merge lval_register case into
2426         lval_reg_frame_relative.  Use frame_register and
2427         regcache_cooked_write instead of get_saved_register and
2428         write_register_bytes.  After flushing the register cache, try to
2429         re-select the selected frame.
2430
2431 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2432
2433         * regcache.h (deprecated_register_valid): Rename register_valid.
2434         * regcache.c: Update.
2435         * ia64-aix-nat.c: Update.
2436         * i386gnu-nat.c: Update.
2437         * alpha-nat.c: Update.
2438         * sparc-nat.c: Update.
2439         * lynx-nat.c: Update.
2440         * remote-mips.c: Update.
2441
2442 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2443
2444         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2445         to end of file, to be more consistent with the pratice followed
2446         by other targets.
2447
2448 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2449
2450         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2451         (print_float_info): Print registers in float_reggroup.
2452         (print_vector_info): Print registers in vector_reggroup.
2453         (default_print_registers_info): When all, print registers in
2454         all_reggroup.  Otherwize, print registers in general_reggroup.
2455         (registers_info): Rewrite.  Add support for register groups.
2456         Eliminate a goto.
2457
2458 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2459
2460         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2461         ages.
2462         (symtab_symbol_info): Remove eons old ifdeffed out code.
2463         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2464         command.
2465
2466 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2467
2468         * c-exp.y: Add missing semi-colons.
2469         * f-exp.y: Add missing semi-colons.
2470         * m2-exp.y: Add missing semi-colons.
2471         * p-exp.y: Add missing semi-colons.
2472         Add empty action to start rule to avoid a type clash error when
2473         building with bison >= 1.50.
2474
2475 2002-11-06  Jim Blandy  <jimb@redhat.com>
2476
2477         * macrotab.h (struct macro_source_file): Doc fix.
2478
2479 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2480
2481         * varobj.c (child_exists, cplus_number_of_children): Change
2482         STREQ macro references to strcmp.
2483         (cplus_name_of_child): Change code to handle the fact that
2484         fields are not necessarily contiguous with regards to their 
2485         access control. This is a fix for PR gdb/792.
2486
2487 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2488
2489         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2490         * gdbarch.h, gdbarch.c: Regnerate.
2491         * frame.h (frame_register): Declare.
2492         * frame.c (frame_register): New function.
2493         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2494         GET_SAVED_REGISTER, otherwize call
2495         generic_unwind_get_saved_register.
2496         (frame_register_read): Use frame_register instead of
2497         get_saved_register.
2498
2499 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2500         
2501         From Jim Ingham  <jingham@apple.com>:
2502         * event-top.c (gdb_disable_readline): New function.
2503         (_initialize_event_loop): Move comment.
2504
2505 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2506
2507         * event-loop.c (start_event_loop): Add comment.
2508         Update copyright.
2509
2510 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2511
2512         * infcmd.c (default_print_registers_info): Do not call
2513         PRINT_REGISTER_HOOK.
2514
2515 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2516
2517         * sparc-tdep.c (sparc_print_register_hook): Make static.
2518         (sparc_print_registers_info): New function.
2519         (sparc_do_registers_info): New function.
2520         (sparclet_print_registers_info): New function.
2521         (sparclet_do_registers_info): New function.
2522         (do_sparc_print_registers_info): New function.
2523         (sparc_print_registers): New static function, clone of infcmd.c's
2524         default_print_registers_info.
2525         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2526         (sparclet_do_registers_info): Declare.
2527         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2528         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2529         Re-define.
2530         (sparc_do_registers_info): Declare.
2531         (PRINT_REGISTER_HOOK): Delete macro.
2532         (sparc_print_register_hook): Delete declaration.
2533
2534 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2535
2536         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2537         functions.
2538         (lookup_symbol_aux_local): New function.
2539         (lookup_symbol_aux_symtabs): New function.
2540         (lookup_symbol_aux_psymtabs): New function.
2541
2542 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2543
2544         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2545         previous values of 'objfile' and 'block'.
2546
2547 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2548
2549         * values.c (value_change_enclosing_type): Set 
2550         enclosing_type field correctly also for the case where 
2551         more memory needs to be allocated.
2552
2553 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2554
2555         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2556         of puts_filtered.
2557
2558         * i387-tdep.c (i387_print_float_info): Replace calls to
2559         register_read and deprecated_read_register_gen with calls to
2560         frame_register_read, and make the necessary adjustments to the
2561         surrounding code.
2562
2563 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2564
2565         * gdbarch.sh (register_reggroup_p): Allow default value.
2566         * gdbarch.h, gdbarch.c: Regenerate.
2567
2568 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2569
2570         * regcache.h: Add coment indicating replacements for deprecated
2571         functions.
2572
2573 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2574
2575         * reggroups.h, reggroups.c: New files.
2576         * regcache.c: Include "reggroups.h".
2577         (enum regcache_dump_what): Add `regcache_dump_groups'.
2578         (regcache_dump): Contract size of the "Type" column.  When
2579         specified, dump the register's groups.
2580         (maintenance_print_register_groups): New function.
2581         (_initialize_regcache): Add command `maint print register-groups'.
2582         * Makefile.in (COMMON_OBS): Add reggroups.o
2583         (SFILES): Add reggroups.c.
2584         (reggroups_h): Define.
2585         (regcache.o, gdbarch.o): Update dependencies.
2586         (reggroups.o): Specify dependencies.
2587         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2588         Add opaque declaration for `struct reggroup' in generated .h file.
2589         Include "reggroups.h" in generated .c file.
2590         gdbarch.h, gdbarch.c: Re-generate.
2591
2592 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2593
2594         * regcache.h (deprecated_read_register_gen): Rename
2595         read_register_gen.
2596         (deprecated_write_register_gen): Rename write_register_gen.
2597         * i387-tdep.c: Update.
2598         * x86-64-linux-nat.c: Update
2599         * wince.c: Update.
2600         * thread-db.c: Update.
2601         * win32-nat.c: Update.
2602         * mips-tdep.c: Update.
2603         * d10v-tdep.c: Update.
2604         * cris-tdep.c: Update.
2605         * remote-sim.c: Update.
2606         * remote-rdi.c: Update.
2607         * remote-rdp.c: Update.
2608         * frame.c: Update.
2609         * target.c: Update.
2610         * blockframe.c: Update.
2611         * x86-64-tdep.c: Update.
2612         * xstormy16-tdep.c: Update.
2613         * sh-tdep.c: Update.
2614         * s390-tdep.c: Update.
2615         * rs6000-tdep.c: Update.
2616         * sparc-tdep.c: Update.
2617         * i386-tdep.c: Update.
2618         * dwarf2cfi.c: Update.
2619         * regcache.c: Update.
2620
2621 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2622
2623         New interix-specific files:
2624         * config/i386/nm-interix.h: New file.
2625         * config/i386/interix.mh: New file.
2626         * config/i386/interix.mt: New file.
2627         * i386-interix-nat.c: New file.
2628         * i386-interix-tdep.c: New file.
2629
2630 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2631
2632         * frame.h (deprecated_generic_get_saved_register): Rename
2633         generic_get_saved_register.
2634         * blockframe.c (deprecated_generic_get_saved_register): Update.
2635         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2636         (xstormy16_frame_saved_register): Update.
2637         * sh-tdep.c (sh_gdbarch_init): Update.
2638         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2639         * ia64-tdep.c (ia64_get_saved_register): Update.
2640         * cris-tdep.c (cris_gdbarch_init): Update.
2641         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2642         * arm-tdep.c (arm_gdbarch_init): Update.
2643
2644 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2645
2646         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2647
2648 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2649
2650         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2651         trampolines in sigaction.
2652
2653 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2654
2655         * h8300-tdep.c: Include "gdb_assert.h".
2656         (h8300_print_register): Add gdbarch, file and frame parameters.
2657         Use frame_read_unsigned_register to read the register's value.
2658         Use fprintf_filtered to display output.
2659         (h8300_print_registers_info): Replace h8300_do_registers_info.
2660         (h8300_gdbarch_init): Set print_registers_info.
2661
2662 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2663
2664         * frame.c (frame_read_unsigned_register): New function.
2665         (frame_read_signed_register): New function.
2666         * frame.h (frame_read_unsigned_register): Declare.
2667         (frame_read_signed_register): Declare.
2668
2669 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2670
2671         * h8500-tdep.c (h8500_print_registers_info): New static function,
2672         clone of infcmd.c's default_print_registers_info.
2673         (h8500_do_registers_info): New funtion.
2674         (h8500_print_register_hook): Rename print_register_hook, make
2675         static.
2676
2677         * config/h8500/tm-h8500.h: Update copyright.
2678         (DEPRECATED_DO_REGISTERS_INFO): Define.
2679         (h8500_do_registers_info: Declare.
2680         (PRINT_REGISTER_HOOK): Delete macro.
2681         (print_register_hook): Delete function.
2682
2683 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2684
2685         * z8k-tdep.c (z8k_print_register_hook): Make static.
2686         (z8k_print_registers_info): New static function, clone of
2687         infcmd.c's default_print_registers_info.
2688         (z8k_do_registers_info): New function.  Wrap
2689         z8k_print_registers_info.
2690         * config/z8k/tm-z8k.h: Update copyright.
2691         (PRINT_REGISTER_HOOK): Delete macro.
2692         (z8k_print_register_hook): Delete declaration.
2693         (DEPRECATED_DO_REGISTERS_INFO): Define.
2694         (z8k_do_registers_info): Declare.
2695
2696 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2697
2698         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2699         as this is already provided by value.h, and was actually causing
2700         a compilation error because of a conflict in parameter type
2701         declaration due to a missing const keyword.
2702         (low_text_segment_addres): Fix a compilation warning.
2703
2704 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2705
2706         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2707         registers without a name.
2708         (mips_linux_cannot_store_register): Don't store registers without
2709         a name.
2710
2711 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2712
2713         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2714         out.)
2715         * symtab.h: Delete prototype for find_addr_symbol.
2716
2717 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2718
2719         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2720         DO_REGISTERS_INFO.
2721         gdbarch.h, gdbarch.c: Re-generate.
2722         * infcmd.c (default_print_registers_info): Update reference.
2723         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2724         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2725         * sh-tdep.c (sh_gdbarch_init): Ditto.
2726         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2727         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2728
2729 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2730
2731         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2732         cfi_init_extra_frame_info.
2733         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2734         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2735
2736         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2737         target where necessary.  Add more comments and remove the ones
2738         that don't provide any useful information.
2739
2740         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2741         deprecated_read_register_dummy with
2742         frame_unwind_unsigned_register.
2743
2744         * i386-tdep.c (i386_extract_struct_value_address): Use
2745         regcache_raw_read_unsigned instead of
2746         regcache_cooked_read_unsigned since we know that the register
2747         we're reading isn't a pseudo register.  Rename variable 'val' into
2748         the more descriptive 'addr'.
2749
2750         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2751         (x86_64_push_return_address): Add comment.
2752         (x86_64_pop_frame): Make static.
2753         (examine_argument): Clarify comment.
2754         (x86_64_skip_prologue): Make prolog_expact variable static.
2755
2756         * dwarf2cfi.c: Fix some formatting problems.
2757         (context_cpy, read_encoded_pointer): Clarify comments.
2758
2759         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2760         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2761         i386 target back into x86_64_gdbarch_init.  Add some comments and
2762         remove meaningless ones.
2763
2764 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2765
2766         * complaints.h (struct deprecated_complaint): Rename `struct
2767         complaint'.
2768         * complaints.c (complain): Update.
2769         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2770         incorrect comment indicating that "symfile.h" was being included
2771         for the `struct complaint' definition.
2772         * remote-vx.c: Update.
2773         * objc-lang.c: Update.
2774         * xcoffread.c: Update.
2775         * hpread.c: Update.
2776         * mdebugread.c: Update.
2777         * stabsread.c: Update.
2778         * dwarf2read.c: Update.
2779         * dwarfread.c: Update.
2780         * elfread.c: Update.
2781         * coffread.c: Update.
2782         * stabsread.h: Update.
2783         * dbxread.c: Update.
2784         * buildsym.c: Update.
2785         * gdbtypes.c: Update.
2786         * macrotab.c: Update.
2787
2788 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2789
2790         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2791         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2792         (x86_64_init_abi): ...new function.
2793
2794         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2795         * i386v-nat.c: Include "i386-tdep.h".
2796
2797 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2798
2799         * gdbtypes.c (address_space_name_to_int): Update.
2800         (address_space_int_to_name): Update.
2801         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2802         multi-arch predicate.
2803         (address_class_name_to_type_flags): Ditto.
2804         * gdbarch.h, gdbarch.c: Re-generate.
2805         
2806         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2807
2808 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
2809
2810         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2811
2812 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
2813
2814         * symtab.h (INIT_SAL): Delete macro.
2815         (init_sal): Export.
2816         * symtab.c (init_sal): New function.
2817
2818         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2819         to init_sal function call.
2820         (find_sal_from_funcs_and_line): Ditto.
2821         (all_sals_for_line): Ditto. 
2822         * breakpoint.c (create_internal_breakpoint): Ditto. 
2823         (create_fork_vfork_event_catchpoint): Ditto. 
2824         (create_exec_event_catchpoint): Ditto. 
2825         (parse_breakpoint_sals): Ditto. 
2826         (watch_command_1): Ditto. 
2827         (handle_gnu_4_16_catch_command): Ditto.
2828         (clear_command): Ditto. 
2829         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
2830         * infcmd.c (run_stack_dummy): Ditto. 
2831         * infrun.c (process_event_stop_test): Ditto.
2832         (check_sigtramp2): Ditto.
2833         (step_over_function): Ditto. 
2834         * linespec.c (decode_line_2): Ditto. 
2835         (decode_line_1): Ditto. 
2836         * source.c (line_info): Ditto. 
2837         * symtab.c (find_pc_sect_line): Ditto.
2838
2839 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
2840
2841         * dwarf2cfi.c (struct context)
2842         (struct context_reg): Moved to dwarf2cfi.h
2843         (context_alloc, frame_state_alloc, context_cpy):
2844         Made extern instead of static, removed prototypes.
2845         * dwarf2cfi.h (struct context)
2846         (struct context_reg): New, moved from dwarf2cfi.c
2847         (context_alloc, frame_state_alloc, context_cpy):
2848         New prototypes.
2849         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2850         Changed from static to extern.
2851         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2852         (LINUX_SIGCONTEXT_FP_OFFSET)
2853         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2854         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2855         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2856         * x86-64-tdep.c (x86_64_gdbarch_init): Several
2857         set_gdbarch_*() calls now use x86-64 specific functions 
2858         instead of DWARF2 CFI ones.
2859         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2860         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2861         (x86_64_init_extra_frame_info): New prototypes.
2862         
2863 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2864
2865         * linespec.c: #include "parser-defs.h".
2866         Delete prototype for find_template_name_end.
2867         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2868
2869 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
2870
2871         * NEWS: add recent mi fixes.
2872         * varobj.c (struct varobj): Add new "updated" flag.
2873         (new_variable): Default "updated" flag to 0.
2874         (varobj_set_value): Set "updated" flag to 1 if value
2875         changes.
2876         (varobj_update): Check varobj "updated" flag before
2877         comparing old and refreshed values.  Fix for
2878         PR gdb/702.
2879
2880 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2881
2882         * parse.c (parse_exp_1): Use BLOCK_START.
2883         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2884         SYMBOL_BLOCK_VALUE.
2885         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2886
2887 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2888
2889         * symtab.c: Delete cplusplus_hint.
2890         Delete prototype for find_template_name_end.
2891
2892 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2893
2894         * symtab.h: Update comment.
2895
2896 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2897
2898         * printcmd.c (address_info): Restore quotes in output.
2899         * valops.c (value_of_local): Restore quotes in error message.
2900
2901 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2902
2903         * symtab.c (symbol_demangled_name): New function.
2904         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2905         turning most of it into a function.
2906         (symbol_demangled_name): Export.
2907
2908 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2909
2910         * valops.c (value_of_local): Restore quotes in error message.
2911
2912 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2913
2914         * symtab.c (symbol_init_language_specific): New function.
2915         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2916         turning most of it into a function.
2917         (symbol_init_language_specific): Export.
2918
2919 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2920
2921         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2922         (dwarf_attr_name): Ditto.
2923         (dwarf_type_encoding_name): Ditto.
2924         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2925         (process_die): Handle DW_TAG_namespace,
2926         DW_TAG_imported_declaration, DW_TAG_imported_module.
2927         (read_namespace): New function.
2928
2929 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
2930
2931         * configure.in: Define NEW_PROC_API on Interix too.
2932         * configure: Regenerate.
2933
2934 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
2935
2936         * configure: Regenerate using the proper version of autoconf.
2937
2938 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2939
2940         * findvar.c (read_var_value): Temporarily disable TLS code, until
2941         complete TLS support is added.
2942
2943 2002-10-21  Jim Blandy  <jimb@redhat.com>
2944             Elena Zannoni  <ezannoni@redhat.com>
2945
2946         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2947         for thread local storage locations.
2948         (struct symbol): Add objfile field.
2949         (SYMBOL_OBJFILE): Define.
2950         * dwarf2read.c (is_thread_local): New static variable.
2951         (new_symbol): If variable is in thread local fill in address class
2952         and objfile appropriately.
2953         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2954         stack operation.
2955         * printcmd.c (address_info): Print the information for thread
2956         local storage variable.
2957         * findvar.c (read_var_value): In case of thread local variable,
2958         defer to the target vector code to compute address.
2959
2960 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2961
2962         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2963         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
2964
2965 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2966
2967         * symtab.h (address_class):  Rename
2968         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2969         * hpread.c (hpread_process_one_debug_symbol): Ditto.
2970         * printcmd.c (address_info): Ditto.
2971         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2972
2973 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
2974
2975         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2976         DBREG_DRX macro to acces debug registers.
2977
2978         * Makefile.in (i386obsd-tdep.o): New target.
2979
2980         * solib-sunos.c: Include "bcache.h" and "regcache.h".
2981         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2982
2983         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2984         * config/i386/obsd.mt: New file.
2985         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2986         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2987         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2988         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2989         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2990         * i386obsd-tdep.c: New file.
2991
2992 2002-10-19  Adam Fedor  <fedor@gnu.org>
2993
2994         * objc-exp.y (name_not_typename): Fix invalid comment.  
2995
2996 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
2997
2998         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2999         to allocate partial syms and macro byte caches.
3000
3001 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3002
3003         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3004
3005 2002-10-18  Adam Fedor  <fedor@gnu.org>
3006
3007         * stabsread.c (find_name_end): New function.
3008         (define_symbol): Use it.
3009
3010 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3011
3012         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3013         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3014         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3015         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3016
3017 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3018
3019         * symfile.h: Add opaque declaration for struct obstack.
3020         Declare obsavestring to take a const char *.
3021         * symfile.c (obsavestring): Make first argument a const char *.
3022
3023 2002-10-16  Adam Fedor  <fedor@gnu.org>
3024
3025         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3026         names when matching breakpoints in current file.
3027
3028 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3029
3030         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3031         (read_tag_pointer_type): Add address class support.
3032         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3033         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3034         New methods.
3035         * gdbarch.h, gdbarch.c: Regenerate.
3036         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3037         (make_type_with_address_space, recursive_type_dump): Add address
3038         class support.
3039         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3040         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3041         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3042
3043 2002-10-16  Klee Dienes  <kdienes@apple.com>
3044
3045         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3046         to get the last character of a char[] buffer, not
3047         name[sizeof(vptr_name)-1].
3048
3049 2002-10-14  Adam Fedor  <fedor@gnu.org>
3050
3051         * symtab.h: New objc_specific struct.
3052         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3053         (SYMBOL_DEMANGLED_NAME): Likewise.
3054
3055 2002-10-14  Adam Fedor  <fedor@gnu.org>
3056
3057         * symfile.c (init_filename_language_table): Add ObjC file extension.
3058
3059 2002-10-14  Adam Fedor  <fedor@gnu.org>
3060
3061         * utils.c (puts_filtered_tabular): New function.
3062         (fprintf_symbol_filtered): Get ObjC demangled name.
3063         * defs.h (puts_filtered_tabular): Declared.
3064
3065 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3066
3067         * c-lang.h (c_type_print_varspec_prefix): Delete.
3068         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3069         ``need_post_space'' parameter.  Adjust all callers.
3070
3071 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3072  
3073         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3074         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3075         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3076         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3077
3078 2002-10-13  Adam Fedor  <fedor@gnu.org>
3079
3080         * source.c (print_source_lines): Update comments.
3081
3082 2002-10-13  Adam Fedor  <fedor@gnu.org>
3083
3084         * valops.c (value_of_local): New function.
3085         (value_of_this): Use it.
3086         * value.h (value_of_local): Declared.
3087
3088 2002-10-13  Adam Fedor  <fedor@gnu.org>
3089
3090         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3091         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3092
3093 2002-10-12  Adam Fedor  <fedor@gnu.org>
3094
3095         * language.c (binop_result_type): Add language_objc to case.
3096         (integral_type): Likewise.
3097         (character_type): Likewise.
3098         (string_type): Likewise.
3099         (boolean_type): Likewise.
3100         (structured_type): Likewise.
3101         (binop_type_check): Likewise.
3102
3103 2002-10-11  Adam Fedor  <fedor@gnu.org>
3104
3105         * printcmd.c (address_info): Print 'self' for ObjC.
3106
3107 2002-10-11  Adam Fedor  <fedor@gnu.org>
3108
3109         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3110         OP_SELF.
3111
3112 2002-10-11  Adam Fedor  <fedor@gnu.org>
3113
3114         * language.h (CAST_IS_CONVERSION): Add language_objc.
3115
3116 2002-10-11  Adam Fedor  <fedor@gnu.org>
3117
3118         * defs.h (enum language): Add language_objc.
3119
3120 2002-10-11  Klee Dienes  <kdienes@apple.com>
3121
3122         * corefile.c (read_memory_typed_address): New function.
3123         * gdbcore.h (read_memory_typed_address): Add prototype.
3124         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3125         to read a value destined for a CORE_ADDR, not read_memory_integer.
3126         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3127         (f77_get_dynamic_lowerbound): Ditto.
3128
3129 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3130
3131         * utils.c (string_to_core_addr): After turning string into
3132         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3133         which will do necessary sign-extension, etc.
3134
3135 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3136
3137         * c-exp.y (THIS): Delete token and grammar rule.
3138         (yylex): Don't return THIS.
3139         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3140         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3141         * demangle.c (cplus_markers): Update comment.  Put '$'
3142         first.  Remove CPLUS_MARKER.
3143         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3144         * jv-exp.y (THIS): Delete token and grammar rule.
3145         (yylex): Don't return THIS.
3146         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3147         * objc-exp.y (THIS): Delete token and grammar rule.
3148         (yylex): Don't return THIS.
3149         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3150         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3151         (read_member_functions): Likewise for opname.
3152         (read_tilde_fields): Use is_cplus_marker.
3153
3154         * defs.h (CPLUS_MARKER): Don't define.
3155         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3156         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3157         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3158         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3159         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3160
3161         * config/i386/tm-i386v4.h: Delete file.
3162         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3163         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3164         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3165         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3166         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3167         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3168         * config/i386/i386v4.mt (TM_FILE): Likewise.
3169         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3170
3171 2002-10-10  Marko Mlinar  <markom@opencores.org>
3172
3173         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3174         accidentially not commited 2002-10-09
3175         * gdbarch.h, gdbarch.c: Re-generate.
3176
3177 2002-10-09  Marko Mlinar  <markom@opencores.org>
3178
3179         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3180         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3181         * gdbarch.h, gdbarch.c: Re-generate.
3182
3183 2002-10-08  Petr Sorfa <petrs@caldera.com>
3184
3185         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3186
3187         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3188         so we can work on more than one compilation unit at a time.  This
3189         helps prepare GDB to handle inter-CU die references.
3190         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3191         the code to be defined before struct comp_unit_head.
3192         (comp_unit_head): Added new members - offset, cu_head,
3193         begin_die, next and dwarf2_abbrevs.
3194         (dwarf2_abbrevs): Removed single static var; now member of
3195         struct comp_unit_head.
3196         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3197         members.
3198         (psymtab_to_symtab_1): Changed to work with the new
3199         struct comp_unit_head.
3200         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3201         constructs the dwarf2_abbrevs[] inside the cu_header.
3202         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3203         dwarf2_abbrev table to clean up.
3204         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3205         handling of dwarf2_abbrevs inside the cu_header.
3206         (read_partial_die): Now supports the call to the new
3207         dwarf2_lookup_abbrev.
3208         (read_full_die): Now supports the call to the new
3209         dwarf2_lookup_abbrev.
3210
3211 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3212
3213         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3214         insure that shell variables, such as "transformed_name" are propagated
3215         to later shell statements in rule.
3216
3217 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3218
3219         * config/i386/nm-i386sco.h: Add protection against
3220         multiple-inclusion.  Include "i386/nm-i386v.h".
3221         (REGISTER_U_ADDR): Remove define.
3222         (i386_register_u_addr): Remove prototype.
3223
3224 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3225
3226         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3227         before treating it as a single-step event.
3228
3229 2002-10-03  Adam Fedor  <fedor@gnu.org>
3230
3231         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3232         (objc_demangle): Remove assignment in if statements, Replace
3233         free with xfree.
3234         (add_msglist): Likewise.
3235         (end_msglist): Likewise.
3236         (complare_selectors): Likewise.
3237         (selectors_info): Likewise.
3238         (compare_classes): Likewise.
3239         (classes_info): Likewise.
3240         (print_object_command): Likewise.
3241         (find_objc_msgcall_submethod): Replace PTR with void *.
3242         * objc-lang.h: Remove check for __STDC__.
3243
3244 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3245
3246         * ui-out.h (ui_out_field_fmt_int): New prototype.
3247         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3248         of field width and alignment.
3249         * stack.c (print_frame_info_base): When printing frame level, use
3250         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3251         PR gdb/192
3252
3253 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3254
3255         * MAINTAINERS: Add self to Write After Approval list.
3256
3257 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3258
3259         * infcmd.c (interrupt_target_command_wrapper): Delete.
3260         (interrupt_target_command): Make non static.
3261         (nofp_registers_info): Make static.
3262         * stack.c (return_command_wrapper): Delete.
3263         (return_command): Make non static.
3264
3265 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3266
3267         * event-top.c (gdb_setup_readline): New function. Code moved from
3268         _initialize_event_loop().
3269         (_initialize_event_loop): Call gdb_setup_readline().
3270
3271 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3272
3273         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3274         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3275         * gdbarch.h, gdbarch.c: Re-generate.
3276
3277 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3278
3279         Fix PR gdb/778
3280         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3281         before recursing.
3282         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3283         of fill_in_vptr_fieldno.
3284
3285 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3286
3287         * inferior.h (registers_info, stepi_command, nexti_command,
3288         continue_command, interrupt_target_command): Export from infcmd.c.
3289         * frame.h (args_info, selected_frame_level_changed_hook,
3290         return_command): Export from stack.c.
3291         * v850ice.c (stepi_command, nexti_command, continue_command): use
3292         prototypes from inferior.h.
3293         * tracepoint.c (registers_info, args_info, locals_info): Use
3294         prototypes from frame.h and inferior.h.
3295         * Makefile.in (mi-main.o): Add dependency on frame.h.
3296
3297 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3298
3299         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3300         value in register 3 adjusted by ppc_gp0_regnum.
3301
3302         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3303
3304 2002-10-02  Marko Mlinar <markom@opencores.org>
3305
3306         * MAINTAINERS: Add myself to the Write After Approval list.
3307
3308 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3309
3310         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3311         of the section for the N64 ABI, fixed.
3312
3313         * config/mips/tm-irix6.h: Include solib.h.
3314
3315 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3316
3317         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3318         GNU operators.
3319
3320 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3321
3322         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3323         and that "mi0" syntax has been removed.
3324
3325 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3326
3327         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3328         * ppc-sysv-tdep.c: #include "gdb_string.h".
3329         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3330         pacify GCC.
3331
3332 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3333
3334         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3335         "vrsave"'s register number.
3336
3337 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3338
3339         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3340         use frame_unwind_signed_register to obtain the PC.
3341         (mips_frame_chain): Handle a generic dummy frame.
3342         (mips_init_extra_frame_info): When a generic dummy frame, don't
3343         re-compute the frame base.
3344         (mips_pop_frame): Handle generic dummy frames.
3345         (mips_gdbarch_init): When generic dummy frames, set
3346         use_generic_dummy_frames, push_dummy_frame to
3347         generic_push_dummy_frame, pc_in_call_dummy to
3348         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3349         generic_save_dummy_frame_tos.
3350
3351 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3352
3353         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3354         against TOP when TOP was explictly set.
3355         (generic_push_dummy_frame): Set TOP to zero.
3356
3357 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3358
3359         * event-loop.c (start_event_loop): Rename variable 'result' to
3360         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3361
3362 2002-09-30  Keith Seitz  <keiths@redhat.com>
3363
3364         * gdb-events.sh (selected_thread_changed): New event.
3365         * gdb-events.c: Regenerated.
3366         * gdb-events.h: Regenerated.
3367
3368 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3369
3370         * MAINTAINERS: Add self to Write After Approval list.
3371
3372 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3373
3374         * disasm.c: New file.  
3375         * disasm.h: New file.  
3376         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3377         (compare_lines): Ditto.
3378         (dump_insns): Ditto.
3379         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3380         argument.
3381         (do_assembly_only): Ditto.
3382         (do_disassembly): Renamed to gdb_disassembly and moved to
3383         disasm.c.  Sdded uiout argument.
3384         * Makefile.in: Add new files.  Reorder SFILES list. Update
3385         dependencies.  Include libgdb.a later in the insight executable.
3386
3387 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3388
3389         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3390         bfd/elf64-alpha-fbsd.c.
3391
3392 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3393
3394         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3395         i386gnu-tdep.c.
3396
3397 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3398
3399         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3400         __FUNCTION__.
3401         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3402         function name.
3403         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3404         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3405         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3406         (S_msg_sig_post_reply): Ditto.
3407         
3408 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3409
3410         * sh-tdep.c (sh_use_struct_convention): Use definition according
3411         to ABI.
3412         (sh_push_arguments): Store in register with correct endianess.
3413         (sh_default_store_return_value): Ditto.
3414         (sh_gdbarch_init): Set sizeof long double to 8.
3415
3416 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3417
3418         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3419         Fix some whitespace problems.
3420
3421 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3422
3423         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3424         (mcore-tdep.o): Ditto.
3425         (ns32k-tdep.o): Ditto.
3426         (ns32knbsd-tdep.o): Ditto.
3427         (sh3-rom.o): Ditto.
3428         (vax-tdep.o): Ditto.
3429         * cris-tdep.c: #include "gdb_string.h"
3430         * mcore-tdep.c: Ditto.
3431         * ns32k-tdep.c: Ditto.
3432         * ns32knbsd-tdep.c: Ditto.
3433         * sh3-rom.c: Ditto.
3434         * vax-tdep.c: Ditto.
3435
3436 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3437
3438         * config/djgpp/fnchange.lst: Add entries for
3439         gdb/testsuite/gdb.c++/m-static files.
3440
3441 2002-09-27  Jim Wilson  <wilson@redhat.com>
3442
3443         * MAINTAINERS: Add myself to the Write After Approval list.
3444
3445 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3446
3447         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3448
3449
3450 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3451
3452         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3453         frame.
3454
3455 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3456
3457         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3458         (rs6000_struct_return_address): Delete variable.
3459         (rs6000_store_struct_return): Update.
3460         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3461         deprecated_extract_struct_value_address.
3462         (rs6000_frame_align): New function.
3463         (rs6000_gdbarch_init): Set frame_align.
3464
3465 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3466
3467         From Grace Sainsbury <graces@redhat.com>:
3468         * Makefile.in (gdbtk-main.o): New target.
3469         (gdb.o): New target.
3470         (main_h): Define.
3471         (main.o): Update dependencies.
3472         (gdb$(EXEEXT)): Add gdb.o.
3473         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3474         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3475         (SUBDIR_GDBTK_CLEAN): Set.
3476         (install-gdbtk): Install the insight binary.
3477         (uninstall-gdbtk): New target.
3478         (all-gdbtk, clean-gdbtk): New rule.
3479         * top.c (use_windows): Default to zero.
3480         * main.c: Include "main.h".
3481         (main): Delete.
3482         (struct captured_main_args): Delete.
3483         (gdb_main): New function.
3484         * main.h: New file.
3485         * gdb.c: New File.
3486
3487 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3488
3489         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3490         (frame_map_regnum_to_name): New function.
3491         (frame_map_name_to_regnum): New function.
3492         * frame.h (frame_map_name_to_regnum): Declare.
3493         (frame_map_regnum_to_name): Declare.
3494         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3495         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3496         * parse.c: Do not include "builtin-regs.h".
3497         (target_map_name_to_register): Delete function.
3498         (write_dollar_variable): Use frame_map_name_to_regnum.
3499         * parser-defs.h (target_map_name_to_register): Delete declaration.
3500         * expprint.c: Include "frame.h".
3501         (print_subexp): Use frame_map_regnum_to_name.
3502         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3503         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3504
3505 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3506
3507         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3508         wasn't saved, and the next innermost frame is a dummy, return the
3509         dummy frame's link register.
3510
3511 2002-09-24  Jim Blandy  <jimb@redhat.com>
3512
3513         Fix from Paul Breed:
3514         * main.c (captured_main): Add a `break' after the case for 'b'.
3515
3516 2002-09-24  Keith Seitz  <keiths@redhat.com>
3517
3518         * varobj.c (c_type_of_child): Use get_target_type instead
3519         of TYPE_TARGET_TYPE.
3520
3521 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3522
3523         * source.c (get_current_or_default_source_symtab_and_line): Remove
3524         function.
3525         (set_default_source_symtab_and_line): New function. Attempts to
3526         determine a source file to list lines from if one is not currently
3527         defined.
3528         (get_current_source_symtab_and_line): Initialize sal.pc and
3529         sal.end fields.
3530         (set_current_source_symtab_and_line): Mark argument as const.
3531         * source.h: Update declarations and comments.
3532         * linespec.c (decode_line_1): Replace call to removed routine above.
3533         * stack.c (print_frame_info_base): Ditto.
3534         * cli/cli-cmds.c (edit_command): Ditto.
3535         (list_command): Ditto.
3536
3537 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3538
3539         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3540         sal.pc and sal.end fields.
3541         (get_current_or_default_source_symtab_and_line): Ditto.
3542         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3543         so we do not cause a new source symtab to be searched for (reverting an
3544         unintentional change from the 2002-09-20 patch).
3545         * scm-lang.c (scm_unpac): Ditto.
3546
3547 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3548
3549         * complaints.c (symfile_explanations): Remove new-line from
3550         ``isolated_message''.
3551         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3552         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3553
3554 2002-09-20  Nick Clifton  <nickc@redhat.com>
3555         
3556         * NEWS: Announce that V850EA ISA is no longer supported.
3557         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3558
3559 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3560
3561         * Makefile.in (c-lang.o): Correct dependencies.
3562         (utils.o): Gather dependencies.
3563         (charset.o): Move.
3564         * c-lang.c: #include "gdb_string.h"
3565
3566 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3567
3568         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3569         * cli/cli-cmds.c (list_command): New function.  Implements the new
3570         cli edit command.
3571         (_init_cli_cmds): Add new command definition.
3572         * gdb.1: Document edit command.
3573         * doc/gdb.texinfo: Document edit command.
3574
3575 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3576
3577         * source.c: Make global variables current_source_symtab and
3578         current_source_line static.
3579         (list_command): Moved to cli/cli-cmds.c.
3580         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3581         (get_first_line_listed): New accessor function.
3582         (get_lines_to_list): New accessor function.
3583         (get_current_source_symtab_and_line): New function. Retrieves the
3584         position in the source code that we consider current.
3585         (get_current_or_default_source_symtab_and_line): New function.
3586         Like the above but attempts to determine a default position if one
3587         is not currently defined.
3588         (set_current_source_symtab_and_line): New function. Sets the source
3589         code position considered current and returns the previously set one.
3590         (clear_current_source_symtab_and_line): Reset stored information about
3591         a current source line.
3592         (_initialize_source): Remove registration for the "list" command and
3593         its alias.
3594         * source.h: Add declarations for the new functions above.
3595         * symtab.h: Remove declarations for the global variables mentioned
3596         above.
3597         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3598         obtain current source line.
3599         * linespec.c (decode_line_1): Ditto.
3600         * macroscope.c (default_macro_scope): Ditto.
3601         * scm-lang.c (scm_unpac): Ditto.
3602         * stack.c (print_frame_info_base): Ditto.
3603         * symfile.c (clear_symtab_users): Ditto.
3604         * symtab.c (decode_line_spec): Ditto.
3605         * cli/cli-cmds.c (list_command): Moved here from source.c.
3606         (ambiguous_line_spec): Moved here from source.c.
3607         (_init_cli_cmds): Add definition for "list" and its alias.
3608         * Makefile.in: Update dependencies.
3609
3610 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3611
3612         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3613         with what gcc thinks is correct.
3614
3615 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3616
3617         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3618         multiple register push instruction.
3619
3620 2002-09-19  Jim Blandy  <jimb@redhat.com>
3621
3622         Add support for distinct host and target character sets.
3623         * charset.c, charset.h: New files.
3624         * c-exp.y: #include "charset.h".
3625         (yylex): Convert character and string literals to the target
3626         character set, before returning them as the semantic value of the
3627         token.
3628         * c-lang.c: #include "charset.h".
3629         (c_emit_char): Use charset-specific methods to recognize
3630         characters with backslash escape forms, to decide which characters
3631         to print literally and which to print using numeric escape
3632         sequences, and to convert target characters to host characters
3633         before printing.
3634         * utils.c: #include "charset.h".
3635         (no_control_char_error): New function.
3636         (parse_escape): Use charset-specific methods to recognize
3637         backslash escapes, parse `control character' notation, and convert
3638         characters from the host character set to the target character set.
3639         * configure.in: Set the default host character set.
3640         Check where to find iconv, and what its argument types might be.
3641         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3642         * Makefile.in (SFILES): List charset.c.
3643         (COMMON_OBS): List charset.o.   
3644         (charset.o): New rule.
3645         (charset_h): New header dependency variable.
3646         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3647         (LIBICONV): New variable, set by configure.
3648         (CLIBS): Include $(LIBICONV) here.
3649         * aclocal.m4, config.in, configure: Regenerated.
3650
3651 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3652
3653         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3654         bison 1.35 warning.
3655
3656 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3657
3658         * gdb_mbuild.sh: New file.
3659
3660 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3661
3662         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3663
3664 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3665
3666         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3667         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3668         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3669         valops.c, value.h: Revert previous change.
3670         
3671 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3672
3673         Preliminary support for Objective-C:
3674         * defs.h (language_objc): New enum value.
3675         (puts_filtered_tabular): Declaration only, exported from utils.c.
3676         (skip_quoted): Delete, declared in completer.h.
3677         * c-exp.y: Include completer.h.
3678         * p-exp.y: Ditto.
3679         * jv-exp.y: Ditto.
3680         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3681         New operator enum values.
3682         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3683         * language.c (binop_result_type): Handle language_objc case.
3684         (integral_type, character_type, string_type, boolean_type,
3685         structured_type, binop_type_check): Ditto.
3686         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3687         (struct objc_specific): Add to general_symbol_info.
3688         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3689         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3690         * parser-defs.h (struct objc_class_str): New struct type.
3691         (start_msglist, end_msglist, add_msglist): Declaration only,
3692         exported from objc-lang.c.
3693         * value.h (value_of_local, value_nsstring, 
3694         call_function_by_hand_expecting_type): Exported from valops.c.
3695         * valops.c (find_function_addr): Export.
3696         (call_function_by_hand_expecting_type): New function.
3697         (value_of_local): New function.
3698         * symfile.c (init_filename_language_table): Add ".m" extension
3699         for Objective-C.
3700         * utils.c (puts_filtered_tabular): New function.
3701         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3702         (set/show demangle): Extend help-string to refer to ObjC.
3703         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3704         * stabsread.c (symbol_reference_defined): Objective-C symbols
3705         may contain colons: make allowances when scanning stabs strings
3706         for colons.
3707         (objc_find_colon): New function.
3708         * printcmd.c (address_info): If language == objc then print
3709         "self" instead of "this".
3710         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3711         OP_NSSTRING, and OP_SELF.
3712         (prefixify_subexp): Ditto.
3713         * source.c (print_source_lines): Mention objc in comment.
3714         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3715         method names.
3716
3717 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3718
3719         * complaints.h: Update copyright.
3720         (struct complaints): Declare.
3721         (struct complaint): Make `message' constant.
3722         (internal_complaint): Declare.
3723         (complaint): Declare.
3724         (complaint_root): Delete declaration.
3725         (symfile_complaints): Delete declaration.
3726         (struct complaints): Add opaque declaration.
3727         (clear_complaints): Add a complaints parameter.
3728         * complaints.c: Update copyright.
3729         (enum complaint_series): Define.
3730         (complaint_root): Delete.
3731         (struct complaints): Define.
3732         (complaint_sentinel, symfile_complaint_book): New variables.
3733         (symfile_explanations, symfile_complaints): New variables.
3734         New variables.
3735         (get_complaints): New function.
3736         (vcomplaint): New function.
3737         (complaint): New function.
3738         (internal_complaint): New function.
3739         (complain): Call vcomplain with symfile_complaint.
3740         (clear_complaints): Rewrite.
3741         (_initialize_complaints): Use add_setshow_command.
3742         * Makefile.in (complaints.o): Update dependencies.
3743         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3744         to call to clear_complaints.
3745         (new_symfile_objfile, reread_symbols): Ditto.
3746         (oldsyms_complaint): Delete.
3747         (empty_symtab_complaint, unknown_option_complaint): Delete.
3748         (free_named_symtabs): Use complaint instead of complain.
3749
3750 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3751
3752         Contributed by Apple Computer, Inc.  Merged with current sources
3753         by Adam Fedor <fedor@doc.com> [cagney].
3754         
3755         * objc-lang.c: First clean-up round: comments, indentation.
3756         * objc-lang.h: Ditto.
3757         * objc-lang.y: Ditto.
3758
3759 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3760
3761         * maint.c (maintenance_internal_error): Print the parameter as the
3762         error message.
3763         (maintenance_internal_warning): New function.
3764         (_initialize_maint_cmds): Add command `maint internal-warning'.
3765
3766         * defs.h (internal_warning, internal_vwarning): Declare.
3767         * utils.c (struct internal_problem): Define.
3768         (internal_vproblem): New function.
3769         (internal_warning): New function.
3770         (internal_vwarning): New function.
3771         (internal_warning_problem, internal_error_problem): New variables.
3772         (internal_verror): Just call internal_vproblem.
3773
3774 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3775
3776         * objc-lang.c: New file, support for Objective-C.
3777         Preliminary check-in, not yet integrated into gdb.
3778         * objc-lang.h: New file.
3779         * objc-exp.y:  New file.
3780
3781 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3782
3783         * infrun.c (signal_stop_update): Convert definition to ISO C.
3784         (signal_print_update): Ditto.
3785         (signal_pass_update): Ditto.
3786         * inflow.c (terminal_save_ours): Ditto.
3787
3788         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3789         comments.
3790         
3791         * config/djgpp/fnchange.lst: Handle name clashes between
3792         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3793         bfd/coff-tic80.c.
3794
3795         * i386-linux-tdep.h: Fix tipo.
3796
3797 2002-09-18  Adam Fedor  <fedor@gnu.org>
3798
3799         * MAINTAINERS: Add myself to the Write After Approval list.
3800
3801 2002-09-18  Jim Blandy  <jimb@redhat.com>
3802
3803         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3804         texthigh and textlow to reader-specific structs caused
3805         objfile_relocate to miss them.  This is fixable, but the work that
3806         the change was supposed to prepare GDB for never got done anyway.
3807
3808 2002-09-18  David Carlton  <carlton@math.stanford.edu>
3809
3810         * MAINTAINERS: Alphabetize Write After Approval list.
3811
3812 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
3813
3814         Fix PR gdb/709
3815         * values.c (value_static_field): Call read_var_value.
3816
3817 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3818
3819         * valops.c (hand_function_call): Align the initial stack pointer
3820         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
3821         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3822         return value.
3823         * mips-tdep.c (mips_frame_align): New function.
3824         (mips_gdbarch_init): Set frame_align.
3825         * gdbarch.sh (FRAME_ALIGN): New method.
3826         * gdbarch.h, gdbarch.c: Re-generate.
3827
3828 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
3829
3830         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3831         registers.
3832
3833 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3834
3835         * NEWS: Mention that MIPS $fp behavior changed.
3836         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3837         reference to FP_REGNUM.
3838         (mipsnbsd_cannot_store_register): Ditto.
3839         * mips-linux-nat.c: Update copyright.
3840         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3841         (mips_linux_cannot_store_register): Ditto.
3842         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
3843         * config/mips/tm-mips.h: Update copyright.
3844         (FP_REGNUM): Delete macro.
3845         (MIPS_REGISTER_NAMES): Replace "fp" with "".
3846         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3847         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3848         (mips_r3041_reg_names, mips_r3051_reg_names)
3849         (mips_r3081_reg_names): Replace "fp" with "".
3850         Fix PR gdb/480.
3851
3852 2002-09-17  Theodore A. Roth  <troth@verinet.com>
3853
3854         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
3855         generic_read_register_dummy() (PR gdb/703).
3856         (avr_push_return_address): #if 0 out unused vars.
3857         (avr_gdbarch_init): Enable use of avr_push_return_address().
3858
3859 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3860
3861         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3862         RTE will take care of it.
3863
3864 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3865
3866         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3867         invalid, return SP_REGNUM.
3868
3869 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3870
3871         * mips-tdep.c (mips_pop_frame): Read saved values of floating
3872         point registers without sign extension.
3873
3874 2002-09-17  Andrew Cagney  <cagney@redhat.com>
3875
3876         * blockframe.c (deprecated_read_register_dummy): Rename
3877         generic_read_register_dummy.
3878         * frame.c (frame_unwind_signed_register): New function.
3879         (frame_unwind_unsigned_register): New function.
3880         * frame.h (frame_unwind_signed_register): Declare.
3881         (frame_unwind_unsigned_register): Declare.
3882         (deprecated_read_register_dummy): Rename
3883         generic_read_register_dummy.
3884
3885         * h8300-tdep.c (h8300_frame_chain): Update.
3886         (h8300_frame_saved_pc): Update.
3887         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3888         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3889         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3890         (s390_frame_chain): Update.
3891         * v850-tdep.c (v850_find_callers_reg): Update.
3892         (v850_frame_saved_pc): Update.
3893         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3894         (m32r_find_callers_reg): Update.
3895         (m32r_frame_saved_pc): Update.
3896         * sh-tdep.c (sh_find_callers_reg): Update.
3897         (sh64_get_saved_pr): Update.
3898         (sh_init_extra_frame_info): Update.
3899         (sh_init_extra_frame_info): Update.
3900         (sh64_init_extra_frame_info): Update.
3901         (sh64_init_extra_frame_info): Update.
3902         * mcore-tdep.c (mcore_find_callers_reg): Update.
3903         (mcore_frame_saved_pc): Update.
3904         (mcore_init_extra_frame_info): Update.
3905         * i386-tdep.c (i386_frame_saved_pc): Update.
3906         * ia64-tdep.c (ia64_frame_saved_pc): Update.
3907         (ia64_init_extra_frame_info): Update.
3908         (ia64_init_extra_frame_info): Update.
3909         * d10v-tdep.c (d10v_frame_saved_pc): Update.
3910         * cris-tdep.c (cris_init_extra_frame_info): Update.
3911         * avr-tdep.c (avr_frame_chain): Update.
3912         (avr_init_extra_frame_info): Update.
3913         (avr_frame_saved_pc): Update.
3914         * arm-tdep.c (arm_find_callers_reg): Update.
3915         (arm_init_extra_frame_info): Update.
3916         (arm_frame_saved_pc): Update.
3917
3918 2002-09-17  Tom Tromey  <tromey@redhat.com>
3919
3920         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3921         is "'".
3922
3923 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
3924
3925         * MAINTAINERS: Remove "non multi-arched" text from h8300.
3926         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3927         NEXT_PROLOGUE_INSN.
3928         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3929         NEXT_PROLOGUE_INSN.
3930
3931 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
3932
3933         * osfsolib.c: Remove file, replaced by solib-osf.c.
3934         * Makefile.in: Remove compilation rules for osfsolib.c.
3935
3936 2002-09-16  David Carlton  <carlton@math.stanford.edu>
3937
3938         * cp-valprint.c (cp_print_class_method): Correct args to
3939         check_stub_method_group.
3940
3941 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
3942
3943         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
3944         `set architecture'.  Unify naming convention of functions.
3945         (h8300_skip_prologue): Improve prologue analysis.
3946         (h8300_push_arguments): Rewritten to more closely match GCC's
3947         bizarre argument-passing behavior, along with the comment describing
3948         said behavior.
3949         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3950         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
3951         sim, remote-e7000.c, remote-hms.c and remote.c
3952
3953 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
3954
3955         * i386-tdep.c (gdb_print_insn_i386): Removed.
3956         (i386_print_insn): New function.
3957         (i386_gdbarch_init): Set print_insn to i386_print_insns.
3958         (_initialize_i386_tdep): Don't initialize tm_print_insn and
3959         tm_print_insn_info.
3960
3961 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
3962
3963         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3964         zero.
3965
3966 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
3967
3968         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3969         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
3970         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3971
3972 2002-09-13  Christopher Faylor  <cgf@redhat.com>
3973
3974         * win32-nat.c (child_create_inferior): Honor 'tty' command.
3975
3976 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
3977
3978         * gdbtypes.c (check_stub_method): Make static.
3979         (check_stub_method_group): New function.
3980         * gdbtypes.h: Update prototypes.
3981         * cp-support.c: New file.
3982         * cp-support.h: New file.
3983
3984         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3985         (update_method_name_from_physname): New function.
3986         (read_member_functions): Correct method names for operators
3987         and v3 constructors/destructors.  Separate v2 constructors and
3988         destructors.
3989         * Makefile.in (stabsread.o): Update dependencies.
3990         (SFILES): Add cp-support.c.
3991         (COMMON_OBS): Add cp-support.o.
3992         (cp_support_h, cp-support.o): Add.
3993
3994         * cp-valprint.c (cp_print_class_method): Call
3995         check_stub_method_group instead of check_stub_method.  Remove
3996         extraneous QUITs.
3997         * p-valprint.c (pascal_object_print_class_method): Likewise.
3998         * valops.c (search_struct_method): Likewise.
3999         (find_method_list, value_struct_elt_for_reference): Likewise.
4000
4001 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4002
4003         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4004         * gdbarch.h, gdbarch.c: Regenerate.
4005
4006 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4007
4008         * frame.c (find_saved_register): Delete function.
4009         * frame.h (find_saved_register): Delete declaration.
4010         Fix PR gdb/631.
4011
4012 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4013
4014         * mips-tdep.c (read_next_frame_reg): Re-hack using
4015         frame_register_unwind.
4016
4017 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4018
4019         * mips-tdep.c (mips_get_saved_register): Re-hack using
4020         frame_register_unwind.
4021
4022 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4023
4024         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4025         vector. Will be useful for Interix.  
4026         * gdbarch.h, gdbarch.c: Regenerate.
4027
4028         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4029         name of the malloc function by NAME_OF_MALLOC.
4030
4031 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4032
4033         * value.h (find_function_in_inferior): Add const keyword to
4034         one of the parameters. Allows us to invoke this function with
4035         a const char *.
4036         * valops.c (find_function_in_inferior): Likewise.
4037
4038 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4039
4040         * exec.c (xfer_memory): Fix compilation warning with old versions
4041         of GCC.
4042         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4043
4044 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4045
4046         * symtab.h: Run through gdb_indent.h.
4047         Add 2002 to Copyright year list.
4048
4049 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4050
4051         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4052         mach constants.
4053         * MAINTAINERS: Add myself to write after approval list.
4054
4055 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4056
4057         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4058
4059 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4060
4061         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4062         Interix.
4063
4064 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4065
4066         * procfs.c (do_detach): Clear current signal, not just fault.
4067         Corrects problem with breakpoint trap signal leaking to detached
4068         process on Tru64.
4069
4070 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4071
4072         * buildsym.c (finish_block): Protect against null pointer.
4073
4074 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4075
4076         * infcmd.c (default_print_registers_info): Send all output to
4077         ``file'' instead of ``gdb_stdout''.
4078
4079 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4080
4081         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4082         LONGEST, and use signed register read (addresses are sign-
4083         extended for mips).
4084
4085 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4086
4087         * event-loop.c (gdb_do_one_event): Make public.
4088         * event-loop.h (gdb_do_one_event): Declare.
4089
4090 2002-09-10  Jeff Law  <law@redhat.com>
4091
4092         * infttrace.c (child_resume): Simplify and rework to avoid
4093         TT_PROC_CONTINUE.
4094
4095 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4096
4097         * printcmd.c (print_scalar_formatted): "len" is the number of
4098         target bytes, NOT the number of target bits.
4099
4100 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4101
4102         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4103         * top.c (init_main): Set rl_terminal_name.
4104
4105 2002-09-08  Aidan Skinner <aidan@velvet.net>
4106
4107         * ada-lang.c (ada_array_bound, ada_type_match,
4108         _initialize_ada_language): Fix K&R definitions.
4109         * ada-tasks.c (get_current_task): Fix K&R definitions.
4110         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4111                         
4112 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4113
4114         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4115         Add XP.
4116
4117 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4118
4119         * i386-tdep.c (i386_register_virtual_type,
4120         i386_register_convertible, i386_register_convert_to_virtual,
4121         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4122         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4123         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4124         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4125         Don't set push_arguments twice.
4126
4127         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4128         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4129         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4130         sigtramp_end to NULL.
4131         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4132         defines.
4133         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4134
4135         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4136         whitespace.
4137
4138         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4139         * gdbarch.h, gdbarch.c: Re-generate.
4140         * blockframe.c (find_pc_sect_partial_function): Convert to use
4141         SIGTRAMP_START_P predicate.
4142
4143 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4144
4145         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4146         generic_dummy_frame method and old method.  Also distinguish
4147         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4148         (arm_extract_return_value): Use new regcache method.
4149
4150         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4151         adjustment that doesn't conform to the ABI.
4152         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4153         saved regcache, not from current regcache.
4154
4155 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4156
4157         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4158         * README: Update.
4159
4160 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4161
4162         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4163         if arm_apcs_32 is false.
4164
4165 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4166
4167         GDB 5.3 branch created.
4168
4169 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4170
4171         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4172         generic_unwind_get_saved_register.
4173
4174 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4175
4176         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4177         argument (PR gdb/653).  Update call to smash_to_method_type.
4178         (read_structure_scope): Update call to dwarf2_add_member_fn.
4179
4180 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4181
4182         * x86-64-linux-tdep.c: Include gdb_string.h
4183         * x86-64-linux-nat.c: Ditto.
4184
4185 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4186
4187         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4188         when YYDEBUG is set to 1.  
4189         * c-exp.y: Likewise.
4190         * f-exp.y: Likewise.
4191         * jv-exp.y: Likewise.
4192         * m2-exp.y: Likewise.
4193         * p-exp.y: Likewise.
4194
4195 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4196
4197         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4198         dependency list.
4199         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4200         solib_svr4_fetch_link_map_offsets to
4201         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4202         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4203         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4204         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4205         solib-svr4.o, and solib-legacy.o.
4206         * config/i386/tm-nbsd.h: Include solib.h.
4207
4208 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4209
4210         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4211         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4212         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4213         comment noting that this needs its own target configuration.
4214         * config/i386/nbsd.mt: New file.
4215         * config/i386/nbsdaout.mt: Remove.
4216         * config/i386/nbsdelf.mt: Ditto.
4217         * config/i386/tm-nbsdaout.h: Ditto. 
4218
4219 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4220
4221         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4222         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4223         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4224         tdep->sigtramp_end.
4225         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4226         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4227         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4228
4229 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4230
4231         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4232         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4233         * i386-tdep.h (i386bsd_init_abi): New prototype.
4234         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4235         function declaration.
4236         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4237         for NetBSD-a.out or NetBSD-ELF.
4238         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4239         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4240         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4241         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4242         and nbsd-tdep.h.
4243         (i386nbsd_pc_in_sigtramp): New function.
4244         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4245         i386nbsd_pc_in_sigtramp.
4246         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4247         and i386nbsdelf_init_abi OS ABI handlers.
4248         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4249         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4250
4251 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4252
4253         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4254         registers if the target really has them.
4255
4256 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4257
4258         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4259         than nbsd-tdep.h.
4260
4261 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4262
4263         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4264         list.
4265         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4266         (alphanbsd_skip_sigtramp_frame): New functions. 
4267         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4268         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4269         to alphanbsd_sigcontext_addr. 
4270
4271 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4272
4273         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4274         list.
4275         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4276         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4277         nbsd_pc_in_sigtramp. 
4278         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4279         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4280         * nbsd-tdep.c: Include gdb_string.h.
4281         (nbsd_pc_in_sigtramp): New function. 
4282         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4283         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4284         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4285         ppcnbsd_pc_in_sigtramp. 
4286         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4287         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4288         shnbsd_pc_in_sigtramp. 
4289         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4290         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4291         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4292
4293 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4294
4295         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4296         watchpoints to NULL.
4297         (insert_breakpoints): set val field of watchpoints if NULL.
4298
4299
4300 2002-08-29  Jim Blandy  <jimb@redhat.com>
4301
4302         * symtab.c (lookup_symbol_aux): In the cases where we find a
4303         minimal symbol of an appropriate name and use its address to
4304         select a symtab to read and search, use `name' (as passed to us)
4305         as the demangled name when searching the symtab's global and
4306         static blocks, not the minsym's name.
4307
4308 2002-08-29  Keith Seitz  <keiths@redhat.com>
4309
4310         * stack.c (print_frame_info_base): Always set current_source_symtab
4311         and current_source_line.
4312
4313 2002-08-29  Donn Terry  <donnte@microsoft.com>
4314
4315         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4316
4317 2002-08-28  Keith Seitz  <keiths@redhat.com>
4318
4319         * stack.c (select_frame): Add FIXME concerning selected-frame
4320         events.
4321         (select_frame_command): Send selected-frame-level-changed
4322         event notification, but only if the level actually changed.
4323         (up_silently_base): Add selected-frame-level-changed event
4324         notification.
4325         (down_silently_base): Likewise.
4326
4327 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4328
4329         * Makefile.in: Update dependencies for all gdb/*.c files.
4330
4331 2002-08-27  Tom Tromey  <tromey@redhat.com>
4332
4333         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4334         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4335         Update dependencies.
4336         * i387-tdep.c: Include gdb_string.h.
4337         * osabi.c: Likewise.
4338         * i386-linux-nat.c: Likewise.
4339         * lin-lwp.c: Likewise.
4340         * ax-gdb.c: Likewise.
4341         * signals/signals.c: Likewise.
4342         * jv-valprint.c: Likewise.
4343         * p-lang.c: Likewise.
4344         * c-valprint.c: Likewise.
4345         * cp-abi.c: Likewise.
4346
4347 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4348
4349         * cli/cli-script.h (copy_command_lines): Export.
4350         * breakpoint.c: Include cli/cli-script.h.
4351         * Makefile.in (breakpoint.o): Update dependencies.
4352
4353 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4354
4355         * breakpoint.c (insert_breakpoints): Protect all references
4356         to 'process_warning'.  Shorten long lines.
4357
4358 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4359
4360         * cli/cli-script.c (copy_command_lines): New function.
4361         * defs.h (copy_command_lines): Export.
4362         * testsuite/gdb.base/commands.exp: New tests for commands
4363         attached to a temporary breakpoint, and for commands that
4364         delete the breakpoint they are attached to.
4365         
4366 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4367
4368         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4369         pointer to the breakpoint commands struct, make a new copy
4370         of the struct and point to that.
4371         (bpstat_clear): Free the commands struct.
4372         (bpstat_clear_actions): Free the commands struct.
4373         (bpstat_do_actions): Free the command actions.  Also execute
4374         the local cleanups, instead of deleting them.
4375         (delete_breakpoint): Leave the commands field of the bpstat
4376         chain alone -- it will be freed later.
4377
4378 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4379
4380         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4381         deleted in 2002-08-20 commit.  This function is still used by
4382         ppc-linux-nat.c.
4383
4384 2002-08-26  Keith Seitz  <keiths@redhat.com>
4385
4386         * gdb-events.sh: Add selected-frame-level-changed event.
4387         * gdb-events.c: Regenerated.
4388         * gdb-events.h: Regenerated.
4389         
4390 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4391
4392         Fix PR gdb/393:
4393         * inflow.c (terminal_save_ours): New function to save terminal
4394         settings.
4395         * inferior.h (terminal_save_ours): Declare.
4396         * target.c (debug_to_terminal_save_ours): New function.
4397         (cleanup_target): Defaults to_terminal_save_ours.
4398         (update_current_target): Inherit to_terminal_save_ours.
4399         (setup_target_debug): Set to_terminal_save_ours.
4400         * target.h (target_terminal_save_ours): New to save terminal settings.
4401         (target_ops): New member to_terminal_save_ours.
4402         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4403         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4404         * inftarg.c (init_child_ops): Likewise.
4405         * m3-nat.c (init_m3_ops): Likewise.
4406         * procfs.c (init_procfs_ops): Likewise.
4407         * wince.c (init_child_ops): Likewise.
4408         * win32-nat.c (init_child_ops): Likewise.
4409         * sol-thread.c (init_sol_thread_ops): Likewise.
4410
4411 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4412
4413         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4414         use regcache_* functions.
4415         (i386_gdbarch_init): Set store_return_value instead of
4416         deprecated_store_return_value.
4417
4418         * regcache.c (regcache_raw_write_signed,
4419         regcache_raw_write_unsigned): New functions.
4420         * regcache.h (regcache_raw_write_signed,
4421         regcache_raw_write_unsigned): New prototypes.
4422
4423 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4424
4425         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4426         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4427         source file dependencies.  Cleanup corresponding generator rules.
4428
4429 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4430
4431         * regcache.h (register_offset_hack): Declare.
4432         (regcache_cooked_read_using_offset_hack): Declare.
4433         (regcache_cooked_write_using_offset_hack): Declare.
4434
4435         * regcache.c (register_offset_hack): New function.
4436         (regcache_cooked_read_using_offset_hack): New function.
4437         (regcache_cooked_write_using_offset_hack): New function.
4438         (regcache_dump): Check that the registers, according to their
4439         offset, are packed hard against each other.
4440         (cooked_xfer_using_offset_hack): New function.
4441
4442 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4443
4444         * regcache.c (struct regcache_descr): Add field register_type.
4445         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4446         in as a parameter
4447         (init_regcache_descr): Initialize register_type.  Pass the descr
4448         to init_legacy_regcache_descr.  Use register_type instead of
4449         REGISTER_VIRTUAL_TYPE.
4450         (register_type): New function.
4451         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4452         * regcache.h (register_type): Declare.
4453
4454 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4455
4456         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4457         instead of deprecated_store_return_value.  Fix fallout from
4458         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4459
4460 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4461
4462         * regcache.c (max_register_size): New function.
4463         (init_legacy_regcache_descr): Ensure that max_register_size is
4464         large enough for REGISTER_VIRTUAL_SIZE.
4465         * regcache.h (max_register_size): Declare.
4466
4467 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4468
4469         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4470         store_return_value.
4471         (e500_extract_return_value): Change type of valbuf pointer to
4472         void.
4473
4474 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4475
4476         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4477         workaround.
4478
4479         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4480         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4481         long long) to prevent compiler warning on 64-bit systems.
4482
4483 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4484
4485         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4486         (DEPRECATED_STORE_RETURN_VALUE): New method.
4487         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4488         * gdbarch.h, gdbarch.c: Re-generate.
4489
4490         * values.c (set_return_value): Pass current_regcache to
4491         STORE_RETURN_VALUE.
4492         * arch-utils.h (legacy_store_return_value): Declare.
4493         * arch-utils.c (legacy_store_return_value): New function.
4494         (legacy_extract_return_value): Update parameters.
4495
4496         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4497         STORE_RETURN_VALUE.
4498         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4499         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4500         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4501         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4502         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4503         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4504         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4505         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4506         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4507         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4508
4509         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4510         * i386-tdep.c (i386_extract_return_value): Update.
4511         * arch-utils.c (legacy_extract_return_value): Update.
4512         * frv-tdep.c (frv_gdbarch_init): Update.
4513         * cris-tdep.c (cris_gdbarch_init): Update.
4514         * d10v-tdep.c (d10v_gdbarch_init): Update.
4515         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4516         * m68k-tdep.c (m68k_gdbarch_init): Update.
4517         * mcore-tdep.c (mcore_gdbarch_init): Update.
4518         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4519         * s390-tdep.c (s390_gdbarch_init): Update.
4520         * sparc-tdep.c (sparc_gdbarch_init): Update.
4521         * sh-tdep.c (sh_gdbarch_init): Update.
4522         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4523         * v850-tdep.c (v850_gdbarch_init): Update.
4524         * avr-tdep.c (avr_gdbarch_init): Update.
4525         * ia64-tdep.c (ia64_gdbarch_init): Update.
4526         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4527         * vax-tdep.c (vax_gdbarch_init): Update.
4528         * alpha-tdep.c (alpha_gdbarch_init): Update.
4529         * arm-tdep.c (arm_gdbarch_init): Update.
4530         * mips-tdep.c (mips_gdbarch_init): Update.
4531         * i386-tdep.c (i386_gdbarch_init): Update.
4532
4533 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4534
4535         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4536         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4537
4538 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4539
4540         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4541         problems.
4542
4543 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4544
4545         * infrun.c (handle_inferior_event): Move a comment outside of a
4546         function call, in order to avoid indent reformatting this part
4547         of the code in an unreadable way.
4548
4549 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4550
4551         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4552         when breakpoints fail. Move general breakpoint error messages to
4553         insert_breakpoints.  
4554         * breakpoint.c (insert_breakpoints): Change warnings when
4555         breakpoints are nto inserted to specify the type. Remove call to
4556         memory_error when hardware breakpoints can't be inserted. Remove
4557         multiple calls to warning so all messages are sent to the user at
4558         once.
4559         (delete_breakpoints): Make insert error messsages more explicit.
4560
4561 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4562
4563         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4564         gdbserver/ChangeLog.
4565
4566 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4567
4568         * i386-tdep.c: Include "objfiles.h".
4569         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4570         skip_trampoline_code.
4571         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4572         (CPLUS_MARKER): Define to '.'.
4573
4574         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4575         member.
4576         (linux_corefile_thread_callback): Increase args->num_notes.
4577         (linux_make_note_section): Initialize thread_args.num_notes, and
4578         use it to determine whether notes for any threads were created.
4579
4580 2002-08-23  Donn Terry  <donnte@microsoft.com>
4581
4582         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4583         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4584         and PCUNKILL.
4585         (write_with_trace): Conditionalize out the switch branch handling
4586         PCSHOLD if the corresponding macro is not defined. Likewise for
4587         PRSABORT and PRSTOP.
4588         This change will be needed by the Interix port.
4589
4590 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4591
4592         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4593         write_register wherever possible instead of manipulating the
4594         register bytes directly.
4595         Assign VALUE_CONTENTS to a variable and use that.
4596         The GPR numbers are now dependent on the architecture.
4597         
4598 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4599
4600         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4601         ev_offset fields.
4602         (skip_prologue): Add support for BookE/e500 instructions.
4603         (e500_extract_return_value): New function.
4604         (frame_get_saved_regs): Add support for saving ev registers and
4605         pseudo gpr's.
4606         (e500_store_return_value): New function.
4607         (rs6000_gdbarch_init): Move up default intializations of
4608         deprecated_extract_return_value and store_return_value.  Overwrite
4609         init of store_return_value with e500 specific version.
4610         Set extract_return_value for e500.
4611         
4612 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4613
4614         * blockframe.c (generic_call_dummy_register_unwind): Use
4615         regcache_cooked_read to catch cases in which the variable is
4616         stored in a pseudo register.
4617
4618 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4619
4620         * NEWS: Mention that the i960 has been made obsolete.
4621         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4622         i960-tdep.c
4623         (remote-nrom.o): Obsolete target.
4624         (remote-nindy.o, i960-tdep.o): Ditto.
4625         * remote-nrom.c: Make file obsolete.
4626         * remote-nindy.c, remote-vx960.c: Ditto.
4627         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4628         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4629         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4630         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4631         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4632         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4633         i960-*-vxworks* obsolete.
4634         * MAINTAINERS: Note that the i960 is obsolete.
4635
4636 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4637
4638         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4639         detach to allow reinitialization.
4640
4641 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4642
4643         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4644         attempt).
4645
4646 2002-08-22  Jim Blandy  <jimb@redhat.com>
4647
4648         * coffread.c (coff_symfile_read): Don't try to read the line
4649         number table from disk if the image file doesn't have a symbol
4650         table; we'll never actually look at the info anyway, and Windows
4651         ships DLL's with bogus file offsets for the line number data.
4652
4653 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4654
4655         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4656         an e500 executable.
4657
4658 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4659
4660         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4661         (MSYMBOL_SIZE): Replace macro with function.
4662         (DEFAULT_MIPS_TYPE): Delete unused macro.
4663         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4664         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4665
4666 2002-08-21  Jim Blandy  <jimb@redhat.com>
4667
4668         * valops.c (value_cast): Simplify and correct logic for doing a
4669         static cast from a pointer to a base class to a pointer to a
4670         derived class.
4671
4672 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4673
4674         * infcmd.c (default_print_registers_info): Replace
4675         do_registers_info.
4676         (registers_info): Use gdbarch_print_registers_info instead of
4677         DO_REGISTERS_INFO.
4678         * inferior.h (default_print_registers_info): Replace
4679         do_registers_info.
4680         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4681         (DO_REGISTERS_INFO): Change to a predicate function.
4682         * gdbarch.h, gdbarch.c: Regenerate.
4683         
4684 2002-08-21  Keith Seitz  <keiths@redhat.com>
4685
4686         * gdb-events.sh: Add target-changed event.
4687         * gdb-events.c: Regenerated.
4688         * gdb-events.c: Regenerated.
4689         * valops.c (value_assign): Add target-changed event notification
4690         to inlval_register, lval_memory, and lval_reg_frame_relative.
4691
4692 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4693
4694         * NEWS: Add an entry regarding the improvement of the next/step
4695         operation on Alpha Tru64 multi-processor machines.
4696
4697 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4698
4699         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4700         directores.
4701         * Makefile.in: Update all _h macro definitions.
4702         * Makefile.in (install-gdbtk): Move to install section.
4703         (rdi-share/libangsd.a): Move to end of file.
4704
4705 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4706
4707         * frame.c (frame_register_unwind): When a register, set addrp to
4708         the register's byte.
4709
4710 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4711
4712         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4713         used locally, so move them from the target machine header to here.
4714         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4715         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4716         Make static.
4717         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4718
4719 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4720
4721         * NEWS: Mention that the Apollo line was made obsolete.
4722         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4723         m68*-hp-hpux* obsolete.
4724         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4725         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4726         * buildsym.c (make_blockvector): Make static.
4727         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4728         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4729         (ALLDEPFILES): Remove dstread.c.
4730         (dstread.o): Obsolete make rule.
4731         * dstread.c: Makefile obsolete.
4732         * dst.h: Ditto.
4733         * config/m68k/hp300hpux.mt: Ditto.
4734         * config/m68k/hp300hpux.mh: Ditto.
4735         * config/m68k/hp300bsd.mt: Ditto.
4736         * config/m68k/hp300bsd.mh: Ditto.
4737         * config/m68k/apollo68b.mt: Ditto.
4738         * config/m68k/apollo68v.mh: Ditto.
4739         * config/m68k/apollo68b.mh: Ditto.
4740
4741 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4742
4743         * mips-tdep.c (mips_in_return_stub): Make static.
4744         (mips_gdbarch_init): Set in_solib_return_trampoline.
4745         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4746
4747 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4748
4749         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4750         * gdbarch.c, gdbarch.h: Regenerate.
4751         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4752         Add.
4753         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4754
4755 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4756
4757         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4758         (mips_gdbarch_init): Set skip_trampoline_code, 
4759         in_solib_call_trampoline.
4760         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4761         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4762
4763 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4764
4765         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4766
4767         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4768         vector type for ev registers.
4769         (e500_pseudo_register_read): New function.
4770         (e500_pseudo_register_write): New function.
4771         (e500_dwarf2_reg_to_regnum): New function.
4772         (PPC_UISA_NOFP_SPRS): New macro.
4773         (PPC_EV_REGS): New macro.
4774         (PPC_GPRS_PSEUDO_REGS): New macro.
4775         (registers_e500): New register set for e500.
4776         (variants): Add e500 variant.
4777         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4778         before setting architectural dependent variations.  Initialize ev
4779         registers numbers.  Add case for e500 architecture.  Set the
4780         number of pseudo registers.
4781
4782 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4783
4784         * rs6000-tdep.c: Clean up comments.
4785
4786 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4787
4788         * h8300-tdep.c: Re-indent file.
4789
4790 2002-08-20  Jim Blandy  <jimb@redhat.com>
4791
4792         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4793         default for this.
4794
4795 2002-08-20  Keith Seitz  <keiths@redhat.com>
4796
4797         * breakpoints.c (watch_command_1): Use internal breakpoint
4798         when setting a watchpoint_scope breakpoint.
4799
4800 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4801
4802         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4803         (build_builtin_type_vec64i): Ditto.
4804         (build_builtin_type_vec128): Ditto.
4805         (build_builtin_type_vec128i): Ditto.
4806
4807 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4808
4809         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4810         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4811         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4812         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4813         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4814         CALL_DUMMY_ADDRESS): Delete.
4815         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4816         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4817         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
4818         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
4819         push_return_address.
4820         (mips_register_raw_size, mips_eabi_use_struct_convention, 
4821         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4822         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4823         mips_init_extra_frame_info, mips_eabi_push_arguments, 
4824         mips_n32n64_push_arguments, mips_push_return_address,
4825         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4826         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4827
4828 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4829
4830         * mips-tdep.c (mips_frame_num_args): New function.
4831         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4832         frame_saved_pc, frame_args_address, frame_locals_address, 
4833         frame_num_args, and frame_args_skip.
4834         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4835         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
4836         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4837         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4838
4839 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4840
4841         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4842         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4843         * mips-tdep.c (mips_store_struct_return): New function.
4844         (mips_extract_struct_value_address): New function.
4845         (mips_gdbarch_init): Set store_struct_return and
4846         extract_struct_value_address.
4847
4848 2002-08-20  David Carlton  <carlton@math.stanford.edu>
4849
4850         * dwarf2read.c (dwarf2_build_psymtabs): Check that
4851         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4852         (read_file_scope): Check that line_header is nonzero before
4853         decoding macro information.
4854
4855 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
4856
4857         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4858         flag the general-purpose registers as floating-point on targets
4859         that don't support the floating-point registers.
4860
4861 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4862
4863         * rs6000-tdep.c (altivec_register_p): Delete.
4864         (rs6000_do_altivec_registers): Delete.
4865         (rs6000_altivec_registers_info): Delete.
4866         (rs6000_do_registers_info): Delete.
4867         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4868         (rs6000_gdbarch_init): Remove setting of do_registers_info.
4869
4870 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4871
4872         * infcmd.c (do_registers_info): Print vector registers in hex
4873         format only.
4874         (print_vector_info): Check that printing registers
4875         makes sense.
4876         (print_float_info): Ditto.
4877
4878 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4879
4880         * mips-tdep.c (mips_gdbarch_init): Update.
4881         (mips_o32_extract_return_value): Rewrite.
4882         (mips_o32_store_return_value): Rewrite.
4883         (mips_o32_xfer_return_value): New function.
4884         (mips_xfer_register): Tweak debug print message.  Allow for
4885         buf_offset when dumping the value transfered.
4886
4887 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4888
4889         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4890         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4891         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4892         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4893         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4894
4895 2002-08-14  Michael Snyder  <msnyder@redhat.com>
4896
4897         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4898
4899 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4900
4901         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4902         register.
4903         (P): New macro to define a register as a pseudo register.
4904         (R, R4, R8, R16, FR32, R64, R0): Updated.
4905         (struct variant): Add new fields for number of pseudo registers
4906         and number of total registers.
4907         (tot_num_registers): New macro replacing....
4908         (num_registers): ...deleted macro.
4909         (num_registers): New function.
4910         (num_pseudo_registers): New function.
4911         (variants): Update all variants to intialize new fields correctly.
4912         Postpone initialization of number of pseudo regs and real regs.
4913         (init_variants): New function.
4914         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
4915         registers offsets.
4916
4917 2002-08-19  David Carlton  <carlton@math.stanford.edu>
4918
4919         * valops.c (search_struct_field): Change error message to treat
4920         return value of 0 from value_static_field as meaning that field is
4921         optimized out.
4922         (value_struct_elt_for_reference): Ditto.
4923         * values.c (value_static_field): Treat an unresolved location the
4924         same as a nonexistent symbol.  Fix PR gdb/635.
4925         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4926         enclosed.  Fix PR gdb/574.
4927         * MAINTAINERS: Add self to Write After Approval list.
4928
4929 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4930
4931         * mips-tdep.c (mips_xfer_register): New function.
4932         (mips_n32n64_extract_return_value): Rewrite.
4933         (mips_gdbarch_init): For N32 and N64, set extract_return_value
4934         instead of deprecated_extract_return_value.
4935
4936 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4937
4938         * rs6000-tdep.c (TDEP): Delete macro.
4939         (branch_dest): Replace use of TDEP macro with its body.
4940         (rs6000_pop_frame): Ditto.
4941         (rs6000_push_arguments): Ditto.
4942         (rs6000_skip_trampoline_code): Ditto.
4943         (rs6000_frame_saved_pc): Ditto.
4944         (rs6000_frame_chain): Ditto.
4945         (rs6000_register_name): Ditto.
4946         (rs6000_register_byte): Ditto.
4947         (rs6000_register_raw_size): Ditto.
4948         (rs6000_register_virtual_type): Ditto.
4949         (rs6000_register_convertible): Ditto.
4950         (rs6000_convert_from_func_ptr_addr): Ditto.
4951
4952 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
4953
4954         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4955         conditionally.
4956         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4957         MIPS_LINUX_JB_ELEMENT_SIZE.
4958         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4959         for MAX_REGISTER_RAW_SIZE arrays.
4960         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4961         MIPS_LINUX_JB_ELEMENT_SIZE.
4962
4963 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4964
4965         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4966
4967 2002-08-19  Aidan Skinner <aidan@velvet.net>
4968
4969         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4970         ada-valprint.c ada-tasks.c.
4971         (YYFILES): Add ada-exp.y.
4972         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4973         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4974         (ada-exp.tab.o): New target.
4975                 
4976 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
4977
4978         * regcache.c (regcache_xfer_part): New function.
4979         (regcache_raw_read_part): New function.
4980         (regcache_raw_write_part): New function.
4981         (regcache_cooked_read_part): New function.
4982         (regcache_cooked_write_part): New function.
4983         * regcache.h (regcache_raw_read_part): Declare.
4984         (regcache_raw_write_part): Declare.
4985         (regcache_cooked_read_part): Declare.
4986         (regcache_cooked_write_part): Declare.
4987
4988 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
4989
4990         * remote.c (remote_open_1): Add async_p.
4991         (remote_async_open_1): Delete.
4992         (open_remote_target): Delete.
4993         (remote_open, extended_remote_open): Update calls to remote_open_1.
4994         (remote_async_open, extended_remote_async_open): Call
4995         remote_open_1 instead of remote_async_open_1.
4996
4997 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
4998
4999         * blockframe.c: Fix a few coding standard violations.
5000
5001 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5002
5003         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5004         here from ...
5005         * config/i386/tm-i386sco5.h: ... here.  File removed.
5006         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5007
5008         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5009         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5010         (TM_FILE): Set to tm-i386.h.
5011         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5012         * config/i386/tm-i386v.h: Remove file.
5013         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5014         instead of "i386/tm-i386v.h".
5015         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5016         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5017         "i386/tm-i386v.h".
5018         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5019         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5020         "i386/tm-i386.h".
5021
5022 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5023
5024         * config/i386/nm-i386v.h: Add protection against
5025         multiple-inclusion.
5026         (i386_register_u_addr): Remove prototype.
5027         (register_u_addr): New prototype.
5028         (REGISTER_U_ADDR): Redefine accordingly.
5029         * i386v-nat.c: Improve several comments.
5030         (i386_register_u_addr): Change signature and rename to
5031         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5032         ubase variable.
5033
5034 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5035
5036         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5037         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5038         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5039         deprecated_extract_return_value.
5040         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5041         rename mips_o32o64_push_arguments.
5042         (mips_gdbarch_init): Update.
5043         (mips_extract_return_value): Delete.
5044         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5045         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5046         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5047         (mips_n32n64_extract_return_value): Clone
5048         mips_extract_return_value.
5049         (mips_store_return_value): Delete.
5050         (mips_o32_store_return_value): Clone mips_store_return_value.
5051         (mips_o64_store_return_value): Clone mips_store_return_value.
5052         (mips_eabi_store_return_value): Clone mips_store_return_value.
5053         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5054
5055 2002-08-18  Aidan Skinner <aidan@velvet.net>
5056
5057         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5058         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5059                 
5060 2002-08-18  Aidan Skinner <aidan@velvet.net>
5061
5062         * ada-lang.c: Run through gdb_indent.sh.
5063         * ada-lang.h: Run through gdb_indent.sh.
5064         * ada-tasks.c: Run through gdb_indent.sh.
5065         * ada-typeprint.c: Run through gdb_indent.sh.
5066         * ada-valprint.c: Run through gdb_indent.sh.
5067
5068 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5069
5070         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5071         ABI.
5072
5073 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5074
5075         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5076
5077         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5078         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5079
5080         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5081         write_register_gen instead of write_register_bytes.
5082
5083         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5084         i[3456]-*-osf1mk* configurations have been made obsolete.
5085         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5086         i[3456]86-*-osf1mk* hosts obsolete.
5087         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5088         targets obsolete.
5089         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5090         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5091         config/i386/i386m3.mt, config/i386/nm-m3.h,
5092         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5093         config/i386/i386mk.mh, config/i386/i386mk.mt,
5094         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5095         obsolete.
5096         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5097         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5098         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5099
5100 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5101
5102         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5103         (hppa_value_returned_from_stack): Declare.
5104         (hppa_extract_return_value): Declare.
5105         * config/pa/hppa.mt: New file.
5106         * configure.tgt: Recognize hppa*-*-*.
5107         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5108
5109 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5110
5111         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5112         comment.
5113
5114 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5115
5116         * top.c (gdb_rl_operate_and_get_next): Make sure
5117         operate-and-get-next functions correctly even when the history
5118         list is completely filled.
5119
5120 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5121
5122         * MAINTAINERS (Target Instruction Set Architectures): Rename
5123         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5124         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5125         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5126         already listed under Host/Native.
5127
5128         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5129         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5130         mips*-*-*.
5131
5132 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5133
5134         * config/ia64/ia64.mt: New file.
5135         * config/alpha/alpha.mt: New file.
5136         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5137         ia64-linux-gnu.  Mention that ia64-elf is broken.
5138         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5139
5140 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5141
5142         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5143         generic_func_frame_valid instead of func_frame_valid.
5144
5145 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5146
5147         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5148         procfs appears to be broken when debugging on multi-processor
5149         machines. So enable software single stepping in order to avoid
5150         using the procfs interface to do next/step operations, using
5151         internal breakpoints instead.
5152
5153         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5154         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5155         make this pc address equal to the value it would have if the
5156         system stepping capability was used. Also set a new flag used
5157         to ensure that we don't readjust the PC one more time later.
5158
5159         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5160         address by DECR_PC_AFTER_BREAK when software single step is
5161         in use for this architecture, as this has already been taken
5162         care of in handle_inferior_event().
5163
5164 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5165
5166         * infrun.c (handle_inferior_event): Minor reformatting, to make
5167         a rather long condition expression easier to read.
5168
5169 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5170
5171         * Makefile.in (gdbtk.o): Move to end of file.
5172         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5173         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5174         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5175         (gdbtk-wrapper.o, gdbres.o): Ditto.
5176
5177 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5178
5179         * Makefile.in (copying.o): Separate out compile rule.
5180         (hpux-thread.o, procfs.o, signals.o): Ditto.
5181         (v850ice.o, z8k-tdep.o): Ditto.
5182         (tui-file.o): Move to TUI section.
5183         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5184         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5185
5186 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5187
5188         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5189         skip_trampoline_code, for better namespace-proofing.   
5190
5191         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5192
5193 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5194
5195         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5196
5197 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5198
5199         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5200         signal, check whether we hit a breakpoint before checking for a
5201         single step breakpoint. Otherwise, GDB fails to notice that a
5202         breakpoint has been hit when stepping onto a breakpoint.
5203
5204 2002-08-16  Keith Seitz  <keiths@redhat.com>
5205
5206         * gdb-events.sh (clear_gdb_event_hooks): New function.
5207         * gdb-events.c: Regenerate.
5208         * gdb-events.h: Regenerate.
5209
5210 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5211
5212         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5213         not_a_sw_breakpoint.
5214         * breakpoint.h (bpstat_stop_status): Add parameter names.
5215
5216 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5217
5218         * remote.c (remote_insert_hw_breakpoint)
5219         (remote_remove_hw_breakpoint): Fix calculation of length field
5220         for Z-packet.
5221
5222 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5223
5224         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5225         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5226         (supply_fpregset): Ditto.
5227         
5228         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5229         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5230         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5231         (TARGET_READ_SP): Delete.
5232         (DO_REGISTERS_INFO): Delete.
5233         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5234         Delete.
5235         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5236         from macros to functions.
5237
5238         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5239         (mips_register_convertible, mips_register_convert_to_virtual,
5240         mips_register_convert_to_raw): Make static.
5241         (mips_read_sp): New function.
5242         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5243         (mips_do_registers_info): Make static.
5244         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5245         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5246         (mips_register_convert_from_type, mips_register_convert_to_type):
5247         New functions.
5248         (mips_gdbarch_init): Set up function_start_offset, 
5249         register_virtual_size, pc_in_sigtramp.
5250
5251 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5252
5253         * infcmd.c (vector_info): New function.
5254         (_initialize_infcmd): Add command "info vector".
5255         (print_vector_info): New function.
5256
5257         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5258         * gdbarch.h, gdbarch.c: Regenerate.
5259
5260 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5261
5262         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5263         ``print_all''.  Only print vector registers when ``print_all''.
5264
5265 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5266
5267         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5268         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5269
5270         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5271         Add `args' parameter.
5272         * gdbarch.h, gdbarch.c: Regenerate.
5273         
5274         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5275         
5276         * infcmd.c (float_info): Call print_float_info.
5277         (print_float_info): New function.  By default, print the
5278         floating-point registers.
5279
5280         * arch-utils.h (default_print_float_info): Delete declaration.
5281         * arch-utils.c (default_print_float_info): Delete function.
5282         
5283 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5284
5285         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5286         out define.
5287
5288         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5289         FRAME.
5290
5291         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5292         * configure.host: Make i[3456]86-*-aix host obsolete.
5293         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5294         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5295         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5296         config/i386/xm-i386aix.h: Make files obsolete.
5297         * i386aix-nat.c: Make file obsolete.
5298         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5299         (i386aix-nat.o): Make target obsolete.
5300
5301         * config/i386/nm-gnu.h: Removed.
5302         * config/i386/nm-i386gnu.h: New file.
5303         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5304         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5305         Moved here from ...
5306         * config/i386/tm-i386gnu.h: ... here.  Removed.
5307         * config/i386/xm-i386gnu.h: Removed.
5308         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5309         (NAT_FILE): Set to nm-i386gnu.h.
5310         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5311         * i386-tdep.c: New file.
5312         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5313         (i386gnu-tdep.o): Specify dependencies.
5314
5315 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5316
5317         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5318         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5319         Adjust a few comments to reflect reality a bit closer.
5320         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5321         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5322         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5323         target_insert_watchpoint, target_remove_watchpoint):
5324         Move defines to ...
5325         * config/i386/nm-i386sco5.h: ... here.
5326         (kernel_u_size): Add prototype.  Improve a few comments and add
5327         protection against multiple inclusion.
5328         
5329         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5330         out define.
5331
5332         * uw-thread.c (SP_ARG0): Define if not already defined.
5333         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5334
5335         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5336
5337         * config/i386/tm-i386.h: Don't include "regcache.h".
5338
5339         * i387-tdep.h (i387_print_float_info): New prototype.
5340         * i387-tdep.c (print_i387_value, print_i387_ext,
5341         print_i387_status_word, print_i387_control_word): Add `struct
5342         ui_file *' argument and use it for output.
5343         (i387_print_float_info): Renamed from i387_float_info.  Add
5344         `struct gdbarch *' and `struct ui_file *' arguments and use the
5345         latter for output.
5346         * i386-tdep.c: Include "i387-tdep.h".
5347         (i386_gdbarch_init): Set print_float_info.
5348         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5349         (FLOAT_INFO): Remove define.
5350
5351 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5352
5353         * mips-tdep.c (mips_push_arguments): Rename to
5354         mips_eabi_push_arguments, and tune for EABI.
5355         (MIPS_REGS_HAVE_HOME_P): Delete.
5356         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5357         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5358         Delete references to mips_regs_have_home_p.
5359
5360 2002-08-14  Keith Seitz  <keiths@redhat.com>
5361
5362         * Makefile.in (install-gdbtk): Create insight plugin directory.
5363         Install plugins.tcl file.
5364
5365 2002-08-14  Keith Seitz  <keiths@redhat.com>
5366
5367         * configure.in: Move SUBDIRS to near top of the file so that
5368         --enable options may add things to it.
5369         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5370         * configure: Regenerate.
5371
5372 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5373
5374         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5375         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5376         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5377
5378 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5379
5380         * vax-tdep.c (vax_get_saved_register): Delete function.
5381         (vax_gdbarch_init): Update.
5382         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5383         (ns32k_gdbarch_init): Update.
5384         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5385         (alpha_gdbarch_init): Update.
5386
5387 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5388
5389         * regcache.c (init_regcache_descr): Overallocate the
5390         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5391         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5392         nr_raw_registers.
5393         (set_register_cached): Add range checking assertions.  Use
5394         current_regcache.
5395
5396 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5397
5398         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5399         numbers for MMX registers.
5400
5401 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5402
5403         * i386-tdep.c (i386_gdbarch_init): Use
5404         generic_unwind_get_saved_register.
5405
5406 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5407
5408         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5409         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5410         target vector.
5411         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5412         Delete.  Add comment regarding this now-deleted target method.
5413
5414 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5415
5416         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5417         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5418         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5419         real PC and the page number (if it's within the memory bank window).
5420         (m68hc11_pseudo_register_write): Likewise when saving.
5421         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5422         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5423         (m68hc11_register_raw_size): And use 32-bit for it.
5424         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5425         16K memory bank is used by the prog; also use the virtual pc.
5426
5427 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5428
5429         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5430         (m68hc11_gdbarch_init): Install it in gdbarch.
5431         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5432         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5433         (MSYMBOL_SIZE): New for documentation.
5434         (insn_return_kind): Enum to specify how a function returns.
5435         (frame_extra_info): Cleanup and record the return mode.
5436         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5437         register in address computation.
5438         (m68hc11_get_return_insn): New to obtain the return instruction used
5439         by the function.
5440         (m68hc11_frame_init_saved_regs): Take into account the return
5441         instruction used by the function for far and interrupt functions.
5442         (m68hc11_init_extra_frame_info): Take into account page register.
5443         (m68hc11_frame_args_address): Adjust according to the return mode.
5444         (show_regs): Print page register only when it's used.
5445
5446 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5447
5448         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5449         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5450         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5451         registers.
5452         (m68hc11_register_raw_size): Likewise.
5453
5454 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5455
5456         * i386-tdep.c (i386_register_name): Handle mmx registers.
5457         (mmx_regnum_p): New function.
5458         (i386_mmx_names): New array.
5459         (mmx_num_regs): New variable.
5460         (i386_pseudo_register_read): New function.
5461         (i386_pseudo_register_write): New function.
5462         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5463
5464         * regcache.c (regcache_raw_read_unsigned): New function.
5465         (regcache_raw_read_signed): New function.
5466         * regcache.h (regcache_raw_read_unsigned): Declare.
5467         (regcache_raw_read_signed): Declare.
5468
5469 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5470
5471         * regcache.c (regcache_raw_read_as_address): Delete function.
5472         (regcache_cooked_read_signed): New function.
5473         (regcache_cooked_read_unsigned): New function.
5474         * regcache.h (regcache_cooked_read_signed): Declare.
5475         (regcache_cooked_read_unsigned): Declare.
5476         (regcache_raw_read_as_address): Delete declaration.
5477
5478         * blockframe.c (generic_read_register_dummy): Use
5479         regcache_cooked_read_unsigned.
5480         * i386-tdep.c (i386_extract_struct_value_address): Use
5481         regcache_cooked_read_unsigned.
5482
5483 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5484
5485         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5486         double sizes according to ELF ABI flags.
5487         (gdbarch_tdep): Record elf_flags.
5488
5489 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5490
5491         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5492         (m6812_prolog): They can appear in 68HC12 function prologue.
5493         (m68hc11_frame_chain): Cleanup.
5494
5495 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5496
5497         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5498         declarations.
5499         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5500         (i386_linux_register_raw_size): Delete function.
5501         (i386_linux_init_abi): Update.
5502         * i386-tdep.c (i386_register_raw_size): Delete function.
5503         (i386_register_byte): Delete function.
5504         (i386_gdbarch_init): Update.
5505         (i386_register_size): Delete array.
5506         (i386_register_offset): Delete array.
5507
5508         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5509         (REGISTER_RAW_SIZE): Delete macro.
5510         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5511         (REGISTER_BYTE): Delete macro.
5512
5513 2002-08-11  Aidan Skinner <aidan@velvet.net>
5514
5515         * ada-lang.c (ada_lookup_partial_symbol)
5516         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5517         prototype names so that grep ^func works properly.
5518
5519         * ada-lang.c (ada_array_element_type)
5520         (ada_lookup_partial_symbol): Fix typos in parameter list.
5521
5522         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5523         Fix prototype names so that grep ^func works properly.
5524         
5525 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5526             Elena Zannoni  <ezannoni@redhat.com>
5527             Martin M. Hunt  <hunt@redhat.com>
5528
5529         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5530         (build_builtin_type_vec128i): Set the vector bit.
5531         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5532         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5533         (build_builtin_type_vec64): New function.
5534         (build_builtin_type_vec64i): New function.
5535         (build_gdbtypes): Initialize builtin_type_vec64 and
5536         builtin_type_vec64i.
5537
5538 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5539
5540         * regcache.c (regcache_dump): Compare the register offset
5541         with REGISTER_BYTE.
5542         * arch-utils.c (generic_register_byte): New function.
5543         * arch-utils.h (generic_register_byte): Declare.
5544         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5545         * gdbarch.h, gdbarch.c: Regenerate.
5546
5547 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5548
5549         * regcache.c: Include "gdbcmd.h"
5550         (_initialize_regcache): Add commands "maintenance print
5551         registers", "maintenance print raw-registers" and "maintenance
5552         print cooked-registers".
5553         (enum regcache_dump_what): Define.
5554         (dump_endian_bytes): New function.
5555         (regcache_dump): New function.
5556         (regcache_print): New function.
5557         (maintenance_print_registers): New function.
5558         (maintenance_print_raw_registers): New function.
5559         (maintenance_print_cooked_registers): New function.
5560         * Makefile.in (regcache.o): Update dependencies.
5561
5562 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5563
5564         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5565         (mips_push_arguments): Correct some comments.  Use paddr_nz
5566         for printing addresses in debug output.  Replace static
5567         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5568         (mips_n32n64_push_arguments): New function, cloned from
5569         mips_push_arguments and tuned for the n32/n64 ABI.
5570         (mips_push_register): Buffer needs dynamic allocation.
5571         (mips_print_register): Ditto.
5572         (do_gp_register_row): Ditto.
5573         (mips_store_return_value): Ditto.
5574         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5575
5576 2002-08-09  Don Howard  <dhoward@redhat.com>
5577
5578         * memattr.c (mem_info_command): Print special case of upper bound
5579         as max CORE_ADDR + 1.
5580
5581 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5582
5583         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5584         returns structs by ref if they're too big to fit in two registers.
5585
5586 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5587
5588         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5589         saved regs value.
5590         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5591         mips_find_saved_regs().
5592         (mips_pop_frame): Likewise.
5593
5594 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5595
5596         * blockframe.c (frame_saved_regs_register_unwind): Revise
5597         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5598         frames are in use.
5599
5600 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5601         
5602         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5603         T-packets; the 'a' is not taken as a register number.
5604         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5605         (remote_stopped_data_address): New functions; add to target
5606         vector.
5607         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5608         prototypes to match other implementations of this
5609         function. replace integer argument with pointer -- the length
5610         field in the Z-packet is the length of what is pointed to or 1 if
5611         pointer is null. Add to target vector.
5612         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5613         target vector.
5614
5615         From Mark Salter:
5616         * remote.c (remote_wait): Add support to extract optional
5617         watchpoint information from T-packet. Ignore unrecognized
5618         optional info in T-packet.
5619         (remote_async_wait): Ditto.
5620
5621 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5622
5623         * cli/cli-dump.c: Change fopen modes to use binary open modes
5624         as defined in include/fopen-bin.h throughout.
5625
5626 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5627
5628         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5629
5630 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5631
5632         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5633         assertion failure by returning early after a warning.
5634
5635 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5636
5637         * mips-tdep.c (mips_find_saved_regs): Make static.
5638         (mips_frame_init_saved_regs): New function.
5639         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5640         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5641         (mips_find_saved_regs): Delete declaration.
5642
5643 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5644
5645         * remote.c (remote_wait, remote_async_wait): Change
5646         thread_num from int to ULONGEST.
5647         (unpack_varlen_hex): Change result parameter from
5648         int * to ULONGEST *.
5649
5650 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5651
5652         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5653         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5654         powerpc*-*-*.
5655         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5656
5657 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5658
5659         * gcore.c (override_derive_stack_segment): Delete variable.
5660         (preempt_derive_stack_segment): Delete function.
5661         (derive_stack_segment): Delete function.
5662         (default_derive_stack_segment): Renamed to derive_stack_segment.
5663         (override_derive_heap_segment): Delete variable.
5664         (preempt_derive_heap_segment): Delete function.
5665         (derive_heap_segment): Delete function.
5666         (default_derive_heap_segment): Rename to derive_heap_segment.
5667
5668 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5669
5670         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5671         * mips-tdep.c (mips_EABI_use_struct_convention, 
5672         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5673         New functions.  (mips_use_struct_convention): Delete.
5674         (mips_gdbarch_init): set use_gdbarch_convention.
5675
5676 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5677
5678         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5679         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5680         mips_o32_reg_struct_has_addr): New functions.
5681         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5682
5683 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5684
5685         * regcache.c (pseudo_register): Delete function.
5686         (fetch_register): Delete function.
5687         (store_register): Delete function.
5688         (regcache_raw_read, legacy_read_register_gen): Use
5689         target_fetch_registers instead of fetch_register.
5690         (legacy_write_register_gen, regcache_raw_write): Use
5691         target_store_register instead of store_register.
5692         (write_register_bytes): Ditto.
5693
5694         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5695         (STORE_PSEUDO_REGISTER): Delete.
5696         * gdbarch.h, gdbarch.c: Regenerate.
5697
5698 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5699
5700         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5701         write dump file binary.
5702
5703 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5704
5705         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5706         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5707         (mips_gdbarch_init): Set N32 target to be mips64.
5708
5709 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5710
5711         * frame.c (find_saved_register): Break out of loop once saved
5712         register address is found.  Don't mention sparc in loop comment
5713         anymore.
5714
5715 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5716
5717         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5718         mips_default_saved_regsize to 8.
5719
5720 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5721
5722         * gcore.c: Do not include <sys/procfs.h>.
5723         * Makefile.in (gcore.o): Update dependencies.
5724
5725 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5726
5727         * configure.tgt: Make arc-*-* obsolete.
5728         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5729         * MAINTAINERS: Make arc-elf obsolete.
5730         * arc-tdep.c: Make file obsolete.
5731         * config/arc/arc.mt: Ditto.
5732         * config/arc/tm-arc.h: Ditto.
5733
5734 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5735
5736         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5737
5738 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5739
5740         * mcore-tdep.c (mcore_gdbarch_init): Use
5741         generic_unwind_get_saved_register instead of
5742         generic_get_saved_register.
5743         * v850-tdep.c (v850_gdbarch_init): Ditto.
5744         * frv-tdep.c (frv_gdbarch_init): Ditto.
5745         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5746         * s390-tdep.c (s390_gdbarch_init): Ditto.
5747         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5748         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5749         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5750
5751 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5752
5753         * objfiles.h: Add missing #include "symfile.h"
5754
5755         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5756
5757 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5758
5759         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5760         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5761         of FIELD_BITSIZE.
5762
5763 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5764
5765         * NEWS: Cleanup and nitpick.
5766
5767 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5768
5769         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5770
5771 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5772
5773         * Makefile.in (gdbtk-bp.o): Update dependencies.
5774         (gdbtk-register.o): Ditto.
5775         (gdbtk-varobj.o): Ditto.
5776
5777 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5778
5779         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5780         m68hc11_fetch_pseudo_register.
5781         (m68hc11_pseudo_register_write): Replace
5782         m68hc11_store_pseudo_register.
5783         (m68hc11_gdbarch_init): Update.
5784
5785 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5786
5787         * gdbarch.sh: Include "gdb_string.h".
5788         * gdbarch.c: Regenerate.
5789
5790         * regcache.c: Include "gdb_string.h".
5791         * ax-general.c: Ditto.
5792         * varobj.c: Ditto.
5793         * std-regs.c: Ditto.
5794         * fbsd-proc.c: Ditto.
5795         * thread.c: Ditto.
5796
5797         * Makefile.in (regcache.o): Update dependencies.
5798         (thread.o, gdbarch.o): Ditto.
5799         (ax-general.o, gdbarch.o): Ditto.
5800         (varobj.o, std-regs.o): Ditto.
5801         (fbsd-proc.o): Specify dependencies.
5802
5803 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5804
5805         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5806         regnum.
5807         (regcache_cooked_write): Ditto.
5808
5809 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
5810
5811         * regcache.c (regcache_cooked_read): New function.
5812         (regcache_cooked_write): New function.
5813         (read_register_gen): Rewrite using regcache_cooked_read.
5814         (write_register_gen): Rewrite using regcache_cooked_write.
5815
5816         * regcache.h (regcache_cooked_read, regcache_cooked_write):
5817         Declare.
5818
5819 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5820
5821         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5822         Replace the architecture methods register_read and register_write.
5823         * gdbarch.h, gdbarch.c: Regenerate.
5824         * regcache.c (init_regcache_descr): Update.
5825         (read_register_gen): Update.
5826         (write_register_gen): Update.
5827         (supply_register): Update comment.
5828
5829         * sh-tdep.c (sh_gdbarch_init): Update.
5830         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5831         `regcache' and `gdbarch' parameters.  Make `buffer' a void
5832         pointer.  Update code.
5833         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5834         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
5835         void pointer.  Update code.
5836         (sh64_register_write): Delete.
5837         (sh4_register_read): Delete.
5838         (sh64_register_read): Delete.
5839         (sh4_register_write): Delete.
5840         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5841         void pointer, `to' parameter a void pointer.
5842         (sh_sh64_register_convert_to_raw): Ditto.
5843
5844 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5845
5846         * mips-tdep.c (mips_register_virtual_type): Use architecture
5847         invariant return values.
5848
5849 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5850
5851         * linux-proc.c: Include "gdb_string.h".
5852         * Makefile.in (linux-proc.o): Update dependency list.
5853
5854 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5855
5856         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
5857         comment.
5858
5859 2002-08-01  Grace Sainsbury  <graces@redhat.com>
5860
5861         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5862         to_insert_watchpoint, to_remove_watchpoint,
5863         to_stopped_by_watchpoint, to_stopped_data_address,
5864         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5865         target vecctor. Define their corresponding macros so they call
5866         them.
5867         
5868         * target.c: Add default and debug versions of for
5869         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5870         to_insert_watchpoint, to_remove_watchpoint,
5871         to_stopped_by_watchpoint, to_stopped_data_address,
5872         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5873
5874 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5875
5876         * mips-tdep.c (mips_register_virtual_type): New function.
5877         (mips_gdbarch_init): Register mips_register_virtual_type()
5878         with gdbarch machinery.
5879         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5880         this file instead of tm-bigmips.h.
5881         (MIPS_REGSIZE): Delete this macro.
5882         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
5883         multiarch version in mips-tdep.c will be found.
5884
5885 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5886
5887         * NEWS: Menion that CHILL has been made obsolete.
5888
5889         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5890         * stabsread.c (read_range_type): Ditto.
5891         * gdbtypes.h: Ditto.
5892         * language.c (binop_type_check): Ditto.
5893         (binop_result_type): Ditto.
5894         (integral_type): Ditto.
5895         (character_type): Ditto.
5896         (string_type): Ditto.
5897         (boolean_type): Ditto.
5898         (structured_type): Ditto.
5899         (lang_bool_type): Ditto.
5900         (binop_type_check): Ditto.
5901         * language.h (_LANG_chill): Ditto.
5902         * dwarfread.c (set_cu_language): Ditto.
5903         * dwarfread.c (CHILL_PRODUCER): Ditto.
5904         * dwarfread.c (handle_producer): Ditto.
5905         * expression.h (enum exp_opcode): Ditto.
5906         * eval.c: Ditto for comments.
5907         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5908         * expprint.c (print_subexp): Ditto.
5909         (print_subexp): Ditto.
5910         * valops.c (value_cast): Ditto.
5911         (search_struct_field): Ditto.
5912         * value.h (COERCE_VARYING_ARRAY): Ditto.
5913         * symfile.c (init_filename_language_table): Ditto.
5914         (add_psymbol_with_dem_name_to_list): Ditto.
5915         * valarith.c (value_binop): Ditto.
5916         (value_neg): Ditto.
5917         * valops.c (value_slice): Ditto.
5918         * symtab.h (union language_specific): Ditto.
5919         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5920         (SYMBOL_DEMANGLED_NAME): Ditto.
5921         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5922         * defs.h (enum language): Ditto.
5923         * symtab.c (got_symtab): Ditto.
5924         * utils.c (fprintf_symbol_filtered): Ditto.
5925
5926         * ch-typeprint.c: Make file obsolete.
5927         * ch-valprint.c: Make file obsolete.
5928         * ch-lang.h: Make file obsolete.
5929         * ch-exp.c: Make file obsolete.
5930         * ch-lang.c: Make file obsolete.
5931
5932         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5933         CHILL_LIB.
5934         (TARGET_FLAGS_TO_PASS): Ditto.
5935         (CHILLFLAGS): Obsolete.
5936         (CHILL): Obsolete.
5937         (CHILL_FOR_TARGET): Obsolete.
5938         (CHILL_LIB): Obsolete.
5939         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5940         ch-valprint.c.
5941         (HFILES_NO_SRCDIR): Remove ch-lang.h.
5942         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5943         ch-lang.o.
5944         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5945         targets.
5946
5947 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
5948
5949         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5950         This does not change anything at the moment, but will be helpful
5951         later when full Ada support is integrated.
5952
5953 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5954
5955         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5956         help message.
5957
5958 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5959
5960         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5961         and save it in a local variable.  Use variable in later test.
5962
5963 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5964
5965         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5966         test.  (Thanks to Daniel Jacobowitz.)
5967         
5968 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5969
5970         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5971         (mips_abi_strings): Add "n64".
5972         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
5973
5974 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5975
5976         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5977         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5978
5979 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5980
5981         * utils.c (host_pointer_to_address, address_to_host_pointer):
5982         Use gdb_assert() instead of explicit call to internal_error().
5983
5984 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
5985
5986         * Makefile.in (rs6000-nat.o): Update dependencies.
5987
5988         From Nicholas Duffek:
5989         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5990         (aix-thread.o): New rule.
5991         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5992         * config/powerpc/aix432.mh: New file.
5993
5994 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
5995
5996         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5997         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5998         (fetch_core_registers, ppc_linux_supply_gregset)
5999         (ppc_linux_supply_fpregset): New functions.
6000         (ppc_linux_regset_core_fns): New.
6001         (_initialize_ppc_linux_tdep): Call add_core_fns.
6002         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6003         and ppc_linux_supply_gregset.
6004         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6005         (supply_fpregset): Call ppc_linux_supply_fpregset.
6006         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6007         corelow.o.
6008         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6009
6010 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6011
6012         * symtab.c (lookup_symbol): Demangle before lowercasing.
6013
6014 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6015
6016         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6017         declaration.
6018         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6019         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6020         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6021         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6022         "gdb_string.h".
6023         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6024         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6025         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6026         (avr-tdep.o, mon960-rom.o): Ditto.
6027         (aout_stabs_gnu_h): Define.
6028         (symtab_h): Remove $(gdb_obstack_h).
6029
6030 2002-07-30  Jim Blandy  <jimb@redhat.com>
6031
6032         Patch from David Carlton <carlton@math.stanford.edu>:
6033         * gdbinit.in: Move the `dir' commands that add GDB's own source
6034         directory to the search path to the end, so that the `gdb' source
6035         directory will be searched first.
6036
6037 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6038
6039         * gdb_obstack.h: New file.
6040         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6041         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6042         * objfiles.h: Include "gdb_obstack.h".
6043         * Makefile.in (gdb_obstack_h): Define.
6044         (symtab_h): Add $(gdb_obstack_h).
6045         (objfiles_h): Add $(gdb_obstack_h).
6046         
6047         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6048         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6049         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6050         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6051         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6052         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6053         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6054         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6055
6056         * Makefile.in (bcache.o): Update dependencies.
6057         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6058         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6059         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6060         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6061         (stabsread.o, symfile.o, symmisc.o): Ditto.
6062         (symtab.o, typeprint.o, macroexp.o): Ditto.
6063         (macrotab.o, mdebugread.o): Ditto.
6064         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6065         (coff_ecoff_h, aout_aout64_h): Define.
6066         (aout_stabs_gnu_h, libaout_h): Define.
6067
6068 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6069
6070         * regcache.c (struct regcache_descr): Rename nr_registers to
6071         nr_cooked_registers.  Revise comments describing the structure
6072         member fields.
6073         (init_regcache_descr): Update.
6074         (init_legacy_regcache_descr): Update.
6075         (read_register_gen, write_register_gen): When a cooked register in
6076         the raw register range, directly access the value from the raw
6077         register cache.
6078
6079 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6080
6081         * z8k-tdep.c: Do not include "obstack.h".
6082         * h8300-tdep.c, h8500-tdep.c: Ditto.
6083         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6084         * valprint.c, v850-tdep.c: Ditto.
6085         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6086         * mn10200-tdep.c: Ditto.
6087
6088         * Makefile.in (z8k-tdep.o): Update dependencies.
6089         (m68hc11-tdep.o, valprint.o): Ditto.
6090         (v850-tdep.o, d10v-tdep.o): Ditto.
6091         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6092         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6093         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6094         (sh_opc_h, gdb_sim_sh_h): Define.
6095         (elf_sh_h, elf_bfd_h): Define.
6096         (opcode_m68hc11_h): Define.
6097         (OPCODES_SRC, OPCODES_DIR): define.
6098         (OPCODES): Use $(OPCODES_DIR).
6099         (gdb_sim_d10v_h): Rename sim_d10v_h.
6100         (gdb_sim_arm_h): Rename sim_arm_h.
6101
6102 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6103
6104         * utils.c (host_pointer_to_address, address_to_host_pointer):
6105         Change internal_error() message to indicate function responsible
6106         for the error.
6107
6108 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6109
6110         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6111         calls to local_hex_string_custom().
6112
6113 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6114
6115         * irix5-nat.c: Move IRIX shared library support from here...
6116         * solib-irix.c: ...to here.  Revised substantially to work with
6117         generic solib framework.
6118
6119         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6120         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6121         * mips-irix-tdep.c: New file.
6122
6123         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6124         (mips-irix-tdep.o, solib-irix.o): New rules.
6125         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6126         solib-irix.o.
6127         * config/mips/irix6.mt (TDEPFILES): Likewise.
6128         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6129
6130 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6131
6132         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6133         disabled (via ``#if 0'') includes.
6134
6135 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6136
6137         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6138         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6139         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6140         Add support for the fpscr register.
6141         * rs6000-nat.c (regmap, fetch_inferior_registers)
6142         (store_inferior_registers, fetch_core_registers): Likewise.
6143
6144 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6145
6146         * rs6000-nat.c (language.h): Include.
6147         (special_regs): Delete this array.
6148         (regmap): New function.
6149         (fetch_register, store_register):  Use regmap() to map gdb
6150         register numbers to ptrace register numbers.  Also, use
6151         outputs from regmap() to make decisions regarding type of
6152         ptrace() call to make.  In particular, don't compare against
6153         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6154         (fetch_inferior_registers, store_inferior_registers): Where
6155         possible, obtain register numbers from tdep struct.  Don't
6156         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6157         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6158         (LAST_UISA_SP_REGNUM): Delete.
6159         
6160 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6161
6162         * rs6000-nat.c (ppc-tdep.h): Include.
6163         (fetch_registers, store_register, fetch_core_registers): Don't
6164         access registers[] directly.  Instead, use supply_register() or
6165         regcache_collect() as appropriate.
6166         (find_toc_address): Format hex address with local_hex_string().
6167
6168 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6169
6170         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6171         bfd/elf32-frv.c.
6172
6173 2002-07-24  Tom Tromey  <tromey@redhat.com>
6174
6175         * jv-exp.y: Marked all strings with _().
6176         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6177         internal_error.
6178         (MethodInvocation, CastExpression, parse_number, yyerror,
6179         java_type_from_name, push_expression_name, yylex): Typo fixes.
6180
6181 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6182
6183         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6184         (tee_file_flush, tee_file_write, tee_file_fputs)
6185         (tee_file_isatty): New.
6186         * ui-file.h (tee_file_new): Add prototype.
6187
6188 2002-07-24  Aidan Skinner <aidan@velvet.net>
6189
6190         * ada-lang.c: Change k&r style function definitions to prototyped
6191         form.
6192         * ada-typeprint.c: Change k&r style function definitions to prototyped
6193         form.
6194         * ada-valprint.c: Change k&r style function definitions to prototyped
6195         form.
6196         
6197 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6198
6199         * README: Remove reference to remote-bug.
6200         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6201         remote-bug.c.
6202         (m88k-nat.o): Delete rule.
6203         (m88k-tdep.o): Delete rule.
6204         (remote-bug.o): Delete rule.
6205         * MAINTAINERS: Mark as obsolete.
6206         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6207         * m88k-tdep.c: Make file obsolete.
6208         * config/m88k/m88k.mh: Ditto.
6209         * config/m88k/delta88v4.mh: Ditto.
6210         * config/m88k/delta88v4.mt: Ditto.
6211         * config/m88k/delta88.mt: Ditto.
6212         * config/m88k/delta88.mh: Ditto.
6213         * remote-bug.c: Ditto.
6214         * config/m88k/tm-delta88.h: Ditto.
6215         * config/m88k/nm-delta88v4.h: Ditto.
6216         * config/m88k/xm-delta88.h: Ditto.
6217         * config/m88k/xm-dgux.h: Ditto.
6218         * config/m88k/tm-m88k.h: Ditto.
6219         * config/m88k/nm-m88k.h: Ditto.
6220         * config/m88k/tm-delta88v4.h: Ditto.
6221         * m88k-nat.c: Ditto.
6222         * cxux-nat.c: Ditto.
6223         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6224         and m88*-*-* obsolete.
6225         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6226         m88*-*-* obsolete.
6227
6228 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6229
6230         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6231         constant.  Same for local pointer variables.
6232         (extract_signed_integer): Ditto.
6233         * defs.h (extract_unsigned_integer): Update.
6234         (extract_signed_integer): Update.
6235
6236 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6237
6238         * regcache.c (regcache_raw_write): Change buf parameter to a
6239         constant void pointer.
6240         (regcache_raw_read): Change buf parameter to a void pointer.
6241         (legacy_write_register_gen): Change myaddr parameter a constant
6242         void pointer.
6243         (supply_register): Change val parameter to a const void pointer.
6244         * regcache.h (regcache_raw_write): Update declaration.
6245         (regcache_raw_read): Update declaration.
6246         (supply_register): Update declaration.
6247
6248 2002-07-24  Tom Tromey  <tromey@redhat.com>
6249
6250         * defs.h (gdb_readline_wrapper): Declare.
6251         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6252         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6253         * top.c (gdb_readline_wrapper): New function.
6254         (command_line_input): Use it.
6255
6256 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6257
6258         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6259         regcache_read and regcache_write.
6260         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6261         * regcache.c: Update.
6262         * sh-tdep.c (sh64_push_arguments): Update comment.
6263         (sh_pseudo_register_read): Update.
6264         (sh_pseudo_register_write): Update.
6265         (sh4_register_read): Update.
6266         (sh4_register_write): Update.
6267         (sh64_pseudo_register_read): Update.
6268         (sh64_pseudo_register_write): Update.
6269         (sh64_register_read): Update.
6270         (sh64_register_write): Update.
6271         * i386-tdep.c (i386_extract_return_value): Update.
6272         (i386_extract_struct_value_address): Update.
6273         (i386_extract_return_value): Update.
6274         * blockframe.c (generic_read_register_dummy): Update.
6275         (generic_call_dummy_register_unwind): Update
6276         * infrun.c (write_inferior_status_register): Update.
6277
6278 2002-07-23  Jim Blandy  <jimb@redhat.com>
6279
6280         * parser-defs.h (expression_context_pc): Make this extern.
6281         (Thanks to Michael Snyder.)
6282
6283 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6284
6285         GDB 5.2.1 released from 5.2 branch.
6286         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6287         * README: Update to mention 5.2.1.
6288
6289 2002-07-23  Mark Salter  <msalter@redhat.com>
6290
6291         * remote.c (remote_read_bytes): Fix check for error.
6292
6293 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6294
6295         * aix-thread.c (language.h): Include.
6296         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6297         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6298         Print newlines at end of debug messages.
6299         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6300         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6301
6302 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6303
6304         * aix-thread.c (ppc-tdep.h): Include.
6305         (special_register_p): New function.
6306         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6307         (store_regs_user_thread): Use register number information from
6308         gdbarch_tdep struct instead of hardcoded offsets relative to
6309         FIRST_UISA_SP_REGNUM.
6310         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6311         special_register_p() instead of using FPLAST_REGNUM and
6312         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6313         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6314         will be MQ's register number.
6315
6316 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6317
6318         * aix-thread.c (ops): Rename to aix_thread_ops.
6319         (base_ops): Rename to base_target.
6320         (ops_attach): Rename to aix_thread_attach.
6321         (ops_detach): Rename to aix_thread_detach.
6322         (ops_resume): Rename to aix_thread_detach.
6323         (ops_wait):   Rename to aix_thread_wait.
6324         (ops_kill):   Rename to aix_thread_kill.
6325         (init_ops):   Rename to init_aix_thread_ops.
6326         (ops_fetch_register): Rename to aix_thread_fetch_register.
6327         (ops_store_register): Rename to aix_thread_store_register.
6328         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6329         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6330         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6331         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6332         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6333         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6334         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6335         (store_regs_lib):  Rename to store_regs_user_thread.
6336         (store_regs_kern): Rename to store_regs_kernel_thread.
6337
6338 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6339
6340         * aix-thread.c (ops_prepare_to_store): Eliminate.
6341         (init_ops): Don't initialize ops.prepare_to_store.
6342         (store_regs_kern): Pre-fetch register buffers from child, 
6343         because some registers may not be in the cache.  Copy
6344         regs from register cache only if they are cached.
6345         (store_regs_lib): Copy regs from register cache only
6346         if they are cached.
6347         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6348         fill_gprs64): Ditto.
6349
6350 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6351
6352         * aix-thread.c (gdb_assert.h): Include.
6353         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6354         register sizes (from register cache) match size of buffer holding
6355         register data.
6356         (fill_sprs32): Change parameter types to match those in the ptrace()
6357         buffer.
6358         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6359         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6360
6361 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6362
6363         * aix-thread.c (supply_sprs64): Cosmetic change.
6364         (supply_sprs32): Cosmetic change.
6365         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6366         (fill_sprs64): Use regcache_collect instead of read_register.
6367         (store_regs_lib): Use regcache_collect instead of 
6368         read_register.  Use fill_sprs32 instead of fill_sprs64,
6369         if debugging a 32-bit architecture.
6370         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6371         out of the register cache, instead of passing a pointer into
6372         the register cache directly to ptrace.  Use regcache_collect
6373         insteaad of read_register.
6374         (ops_prepare_to_store): Use target_read_registers instead
6375         of read_register_bytes.
6376
6377 2002-07-20  Aidan Skinner <aidan@velvet.net>
6378
6379         * MAINTAINERS: Add self under write after approval. 
6380                 
6381 2002-07-20  Aidan Skinner <aidan@velvet.net>
6382
6383         * ada-tasks.c: Change k&r style function definitions to prototyped
6384         form.
6385                 
6386 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6387
6388         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6389         * x86-64-tdep.c: Include "objfiles.h".
6390         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6391         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6392
6393 2002-07-17  Michal Ludvig  <michal@suse.cz>
6394
6395         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6396         (update_context): Initialise cfa variable.
6397
6398 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6399
6400         * aix-thread.c: Shorten some long lines.  
6401         Bring comments into line with code spec.
6402
6403 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6404
6405         * infrun.c: Re-indent using gdb_indent.sh.
6406
6407 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6408
6409         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6410         Leave the indentation temporarily untouched, to minimize the diffs.
6411
6412 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6413
6414         * stabsread.c: Make os9k sections of the code obsolete,
6415         for real this time.
6416         * stabsread.h: Make os9k sections of the code obsolete.
6417
6418 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6419
6420         * linux-low.c (regsets_store_inferior_registers): Add free()
6421         at the end of a loop to prevent memory leak.
6422         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6423         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6424         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6425         line a comment.
6426         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6427
6428 2002-07-17  Jim Blandy  <jimb@redhat.com>
6429
6430         * macrocmd.c (info_macro_command): Remove newline from error
6431         message.
6432
6433 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6434
6435         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6436         (sh_gdbarch_init): Use it for sh-dsp.
6437
6438 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6439
6440         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6441         64-bit DWARF2 format.
6442
6443 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6444
6445         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6446         <sys/proc.h> when not available.
6447
6448 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6449
6450         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6451         * stabsread.c: Make os9k sections of the code obsolete.
6452         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6453         * config/i386/i386os9k.mt: Make file obsolete.
6454         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6455         (COMMON_OBS): Remove os9kread.o
6456         (SFILES): Remove os9kread.c.
6457         (os9kread.o, remote-os9k.o): Make target obsolete.
6458         * remote-os9k.c: Make file obsolete.
6459         * os9kread.c: Make file obsolete.
6460         * Makefile.in
6461
6462 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6463
6464         * NEWS: Mention that the FR30 has been made obsolete.
6465         * fr30-tdep.c: Make file obsolete.
6466         * config/fr30/tm-fr30.h: Ditto.
6467         * config/fr30/fr30.mt: Ditto.
6468         * configure.tgt: Make fr30-*-elf obsolete.
6469         * MAINTAINERS: Make fr30-elf obsolete.
6470
6471 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6472
6473         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6474         found is not inside a section.
6475
6476 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6477
6478         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6479         strerror().
6480         (pdc_realloc): Use xrealloc() instead of realloc().
6481
6482 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6483
6484         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6485         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6486         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6487         macros.
6488
6489 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6490
6491         * aix-thread.c (ptrace_check): Eliminate goto.
6492         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6493         problem.
6494
6495 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6496
6497         * aix-thread.c (gdbcmd.h): Include.
6498         (DEBUG, DBG, DBG2, dbg): Eliminate.
6499         (debug_aix_thread): New static global.
6500         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6501         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6502         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6503         invocations to DBG and DBG2 macros to test against
6504         ``debug_aix_thread'' and call fprintf_unfiltered().
6505         (_initialize_aix_thread): Add new command "set debug aix-thread".
6506
6507 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6508
6509         From Gerhard Tonn <TON@de.ibm.com>:
6510         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6511         instead of supply_register.
6512
6513 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6514
6515         * dwarf2cfi.c: Include "gdb_assert.h".
6516         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6517         non-NULL.
6518         (update_context): Do not use __func__.  Add missing ``break''.
6519         (update_context): Do not use __func__.
6520
6521 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6522
6523         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6524         and its setting.  Set gdbarch instruction printing functions
6525         directly.  For non-rs6000 case use new function
6526         gdb_print_insn_powerpc.
6527         (gdb_print_insn_powerpc): New function.
6528
6529 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6530
6531         * NEWS: Mention that the d30v has been marked obsolete.
6532         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6533         * configure.tgt: Mark d30v-*-* as obsolete.
6534         * d30v-tdep.c: Mark file as obsolete.
6535         * config/d30v/d30v.mt: Ditto.
6536         * config/d30v/tm-d30v.h: Ditto.
6537
6538 2002-07-13  Aidan Skinner <aidan@velvet.net>
6539
6540         * ada-tasks.c (add_task_entry): replace calls to
6541         malloc() with xmalloc
6542         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6543         
6544         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6545         ada_finish_decode_line_1, all_sals_for_line
6546         ada_breakpoint_rewrite): replace calls to free() with xfree()
6547                 
6548 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6549
6550         From Nicholas Duffek (with minor changes by Martin Hunt, 
6551         Louis Hamilton, and Kevin Buettner):
6552         * aix-thread.c: New file.
6553
6554 2002-07-12  Petr Sorfa <petrs@caldera.com>
6555
6556         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6557         complaint for invalid attribute class or form.
6558         (read_func_scope): DW_AT_frame_base
6559         better handling of DW_AT_block*.
6560         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6561         better handling of DW_AT_block*.
6562         (read_common_block): DW_AT_location
6563         better handling of DW_AT_block*.
6564         (read_partial_die): DW_AT_location better handling
6565         of DW_AT_block*.
6566         (new_symbol): DW_AT_external better handling of
6567         DW_AT_block*. Proper initialization of variable
6568         "addr".
6569         (attr_form_is_block): New function that returns true
6570         if the attribute's form is of DW_FORM_block*.
6571
6572 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6573
6574         * valops.c (find_method_list): Remove comment about
6575         removed STATIC_MEMFUNCP argument.
6576         (value_find_oload_method_list): Likewise.
6577
6578 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6579
6580         From Nicholas Duffek:
6581         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6582         target_new_objfile_hook.
6583
6584 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6585
6586         From Nicholas Duffek:
6587         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6588         csect.
6589
6590 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6591
6592         * MAINTAINERS: Mention --enable-sim-build-warnings.
6593         (m68hc11-elf): Disable sim build warnings.
6594         (m32r-elf): Mark as broken obsolete candidate.
6595         (x86_64-linux-gnu): Mark as buildable with -Werror.
6596         (arm-elf): Change -w to ``,'' which enables warnings but not
6597         -Werror.
6598
6599 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6600
6601         * bcache.h: Update copyright.
6602         (struct bstring, struct bcache): Move definition to "bcache.c".
6603         Replaced by opaque declaration.
6604         (bcache_xfree): Replace free_bcache.
6605         (bcache_xmalloc, bcache_memory_used): Declare.
6606         
6607         * bcache.c: Update copyright.
6608         (struct bstring, struct bcache): Moved to here from "bcache.h".
6609         Update comments.
6610         (bcache_xmalloc, bcache_memory_used): New functions.
6611         (bcache_xfree): Replace function free_bcache.
6612         
6613         * Makefile.in (objfiles.o): Add $(bcache_h).
6614         (objfiles_h): Remove $(bcache_h).
6615         (symfile.o): Add $(bcache_h).
6616
6617         * symmisc.c: Update copyright.
6618         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6619         (print_objfile_statistics): Use bcache_memory_used.
6620
6621         * symfile.c: Include "bcache.h".
6622         (reread_symbols): Use bcache_xfree.
6623         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6624         (add_psymbol_to_list): Pass psymbol_cache by value.
6625         (add_psymbol_with_dem_name_to_list): Ditto.
6626
6627         * objfiles.h: Update copyright.
6628         (struct bcache): Declare opaque.  Do not include "bcache.h".
6629         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6630         bcache'' pointers.
6631         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6632
6633         * objfiles.c: Include "bcache.h".  Update copyright.
6634         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6635         macro_cache.
6636         (free_objfile): Use bcache_xfree.
6637
6638 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6639
6640         * monitor.c (monitor_fetch_register): Make name a constant.
6641         (monitor_store_register): Same.
6642
6643 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6644
6645         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6646         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6647         (finish_block) For non-function blocks, hash the symbol table.  For
6648         function blocks, mark the symbol table as unhashed.
6649         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6650         (msymbol_hash_iw): Likewise.
6651         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6652         value.
6653         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6654         (lookup_minimal_symbol): Likewise for both.
6655         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6656         hashtable.
6657         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6658         (ALL_BLOCK_SYMBOLS): Update.
6659         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6660         (struct symbol): Add `hash_next' pointer.
6661         * symtab.c (lookup_block_symbol): Search using the hash table when
6662         possible.
6663         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6664         (search_symbols, find_addr_symbol): Likewise.
6665
6666         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6667         (read_dst_symtab): Likewise.
6668         * jv-lang.c (get_java_class_symtab): Likewise.
6669         * mdebugread.c: Include "gdb_assert.h".
6670         (shrink_block): Assert that the block being modified is not hashed.
6671         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6672         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6673         symbols.
6674         (dump_symtab): Recognize hashed blocks.
6675         * printcmd.c (print_frame_args):  Assert that function blocks do not
6676         have hashed symbol tables.
6677         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6678         (fill_in_ada_prototype, debug_print_block): Likewise.
6679         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6680
6681 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6682
6683         * stack.c (print_frame): Use result of frame_address_in_block()
6684         instead of fi->pc when evaluating symbols.
6685         (backtrace_command_1): Ditto.
6686
6687 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6688
6689         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6690         Make static.
6691
6692         * arm-tdep.c (arm_register_name): Make return type constant.
6693
6694 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6695
6696         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6697         prototype.
6698         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6699         * s390-tdep.c (s390_fp_regnum): Ditto.
6700         (s390_read_fp): Ditto.
6701         (s390_pop_frame): Ditto.
6702         (_initialize_s390_tdep): Ditto.
6703         * remote.c (get_remote_state): Ditto.
6704         * procfs.c (mappingflags): Ditto.
6705         * memattr.c (_initialize_mem): Ditto.
6706         * mcore-tdep.c (mcore_pop_frame): Ditto.
6707         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6708         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6709         * language.c (set_case_str): Ditto.
6710         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6711         * frv-tdep.c (new_variant): Ditto.
6712         (frv_stopped_data_address): Ditto.
6713         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6714         (context_alloc): Ditto.
6715         (frame_state_alloc): Ditto.
6716         (unwind_tmp_obstack_init): Ditto.
6717         (unwind_tmp_obstack_free): Ditto.
6718         (cfi_read_fp): Ditto.
6719         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6720         (cris_pop_frame): Ditto.
6721         * c-lang.c (scanning_macro_expansion): Ditto.
6722         (finished_macro_expansion): Ditto.
6723         (c_preprocess_and_parse): Ditto.
6724         * gdbarch.sh: Ditto.
6725         * gdbarch.h, gdbarch.c: Regenerate.
6726         * config/mn10200/tm-mn10200.h: Adjust indentation.
6727         * target.c: Adjust indentation.
6728         * symtab.h: Adjust indentation.
6729         * stabsread.h: Adjust indentation.
6730         * remote-es.c: Adjust indentation.
6731         * os9kread.c: Adjust indentation.
6732
6733 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6734         
6735         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6736         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6737
6738 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6739         
6740         * NEWS: Mention m68k, mcore multi-arching.  
6741         * MAINTAINERS: Change status of m68k, mcore to reflect
6742         multi-arching.
6743
6744 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6745
6746         * valops.c (find_overload_match): Free oload_syms.
6747
6748 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6749
6750         Define HAVE_SYS_PROC_H if sys/proc.h exists
6751         * configure.in: Add check for sys/proc.h
6752         * config.in: Regenerate.
6753         * configure: Regenerate.
6754
6755 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6756
6757         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6758         #if !GDB_MULTI_ARCH. 
6759
6760 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6761
6762         * config.in, configure: Regenerate.
6763
6764 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6765
6766         * dwarf2cfi.c: Include "gcore.h".
6767         (execute_stack_op): Fix implementation of the
6768         DW_OP_deref and DW_OP_deref_size operators by letting do their
6769         lookup in the target.
6770
6771 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6772
6773         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6774         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6775         tdep->sc_sp_offset.
6776
6777 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6778
6779         Fix PR gdb/595, gdb/602
6780         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6781         Don't call value_cast, just read the vtable pointer; update comments
6782         to match.
6783
6784 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6785
6786         * config/mcore/tm-mcore.h: Remove file.
6787         * config/mcore/mcore.mt: Remove definition of TM_FILE
6788         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6789
6790 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6791
6792         * i386bsd-tdep.c: Include "gdb_string.h".
6793
6794 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6795
6796         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6797         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6798         mcore-tdep.
6799         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6800         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6801         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6802         (RETVAL_REGNUM): Move macros from tm-mcore.h
6803         (mcore_reg_struct_has_addr): New function.
6804         (mcore_gdbarch_init): Added initializations for the macros removed
6805         from tm-mcore.h.
6806
6807 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6808
6809         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6810         traditonal string branding within the ELF header.
6811
6812 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6813
6814         * symtab.c (remove_params): New function.
6815         (make_symbol_overload_list): Use it instead of cplus_demangle.
6816         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
6817
6818 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6819
6820         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6821
6822         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6823         New variables.
6824         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6825         and tdep->sigtramp_end.
6826         * i386obsd-nat.c: New file.
6827         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6828
6829         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6830         Don't call get_current_frame().
6831
6832 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6833
6834         * i386-nat.c (child_post_startup_inferior): New function
6835         calling i386_cleanup_dregs if
6836         I386_USE_GENERIC_WATCHPOINTS is defined.
6837         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6838         conditional to acknowledge that i386-nat.c has its
6839         own child_post_startup_inferior function.
6840
6841 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6842
6843         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6844         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6845         instead of MAX_REGISTER_RAW_SIZE.
6846         (i386_extract_return_value, i386_extract_struct_value_address):
6847         Convert to use regcache.
6848         (i386_gdbarch_init): Set max_register_raw_size and
6849         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6850         Set extract_return_value and extract_struct_value_address instead
6851         of their deprecated variants.
6852
6853         Convert i386 target to generic dummy frames.
6854         * i386-tdep.c: Include "symfile.h".
6855         (i386_frameless_signal_p): Consider a function to be frameless if
6856         the pc points at the first instruction of the function.
6857         (i386_frame_chain): Handle (generic) call dummies.
6858         (i386_frame_saved_pc): Likewise.
6859         (i386_frame_init_saved_regs): Remove code dealing with call
6860         dummies on the stack.
6861         (i386_push_dummy_frame): Removed.
6862         (i386_call_dummy_words): Removed.
6863         (i386_fix_call_dummy): Removed.
6864         (i386_push_return_address): New function.
6865         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
6866         parameter, and don't call get_current_frame.
6867         (i386_pop_frame): New function.
6868         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6869         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6870         entry_point_address, set call_dummy_breakpoint_offset to 0, set
6871         call_dummy_length to 0, set call_dummy_words to NULL, set
6872         sizeof_call_dummy_words to 0, set fix_call_dummy to
6873         generic_fix_call_dummy, set pc_in_call_dummy to
6874         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6875         generic_push_dummy_frame, set push_return_address to
6876         i386_push_return_address and set frame_chain_valid to
6877         generic_file_frame_chain_valid.
6878
6879 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6880
6881         * gdbarch.sh (struct regcache): Add opaque declaration.
6882         (EXTRACT_RETURN_VALUE): New architecture method.
6883         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6884         * gdbarch.h, gdbarch.c: Regenerate.
6885         * arch-utils.c (legacy_extract_return_value): New function.
6886         * arch-utils.h (legacy_extract_return_value): Declare.
6887         * values.c (value_being_returned): Re-enable code handling
6888         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
6889         deprecated_grub_regcache_for_registers call to block handling
6890         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6891         (EXTRACT_RETURN_VALUE): Do not define.
6892
6893 2002-07-03  Grace Sainsbury  <graces@redhat.com>
6894
6895         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6896         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6897         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6898         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6899         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6900         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6901         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6902         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6903         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6904         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6905         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6906         argument so the function fits the prototype in the architecture
6907         vector.
6908         (mcore_pop_frame): Remove argument so the function fits the
6909         prototype. Use get_current_frame instead of the argument.
6910         (mcore_push_arguments): Change type of struct_return so the
6911         function can be used in the architecture vector.
6912         (mcore_store_struct_return): Add.
6913         (mcore_frame_init_saved_regs): Add.
6914         (mcore_gdbarch_init): Add function calls to replace the macros
6915         removed from tm-mcore.h
6916
6917 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6918
6919         * infcmd.c (print_return_value): Remove compatibility code calling
6920         deprecated_grub_regcache_for_registers.
6921         
6922         * values.c: Include "regcache.h".
6923         (value_being_returned): Update.  Use
6924         deprecated_grub_regcache_for_registers to extract the register
6925         buffer address.  
6926         * value.h (value_being_returned): Change ``retbuf'' parameter to a
6927         ``struct regcache''.
6928         * Makefile.in (values.o): Add dependency on $(regcache_h).
6929
6930         * inferior.h (run_stack_dummy): Change type of second parameter to
6931         a ``struct regcache''.
6932         * valops.c (hand_function_call): Change type of retbuf to ``struct
6933         regcache''.  Allocate using regcache_xmalloc, clean using
6934         make_cleanup_regcache_xfree.
6935         * infcmd.c (run_stack_dummy): Update.  Use
6936         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6937
6938         * regcache.c (do_regcache_xfree): New function.
6939         (make_cleanup_regcache_xfree): New function.
6940         * regcache.h (make_cleanup_regcache_xfree): Declare.
6941
6942 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6943
6944         * event-top.c (command_line_handler): Don't read past
6945         beginning of buffer.
6946
6947 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6948         
6949         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
6950         struct frame_id. 
6951         (varobj_create): Store frame_id for root.
6952         (varobj_gen_name): Use xasprintf.
6953         (varobj_update): Save and restore frame using get_frame_id() and
6954         frame_find_by_id().
6955         (create_child): Use xasprintf.
6956         (new_root_variable): Initialize frame_id.
6957         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6958         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6959         to prevent memory leak.
6960
6961 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6962
6963         * valops.c (hand_function_call): Move declaration of retbuf to
6964         start of function, allocate using malloc, add a cleanup but before
6965         the inf_status cleanup, cleanup the buffer.  Rename local variable
6966         old_chain to inf_status_cleanup.
6967
6968 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6969
6970         * top.c (execute_command): Use cmd_func() and cmd_func_p().
6971
6972         * cli/cli-decode.c (cmd_func_p): New function.
6973         (cmd_func): New function.
6974
6975         * command.h: Add cmd_func() and cmd_func_p().   
6976         
6977 2002-07-03  Grace Sainsbury  <graces@redhat.com>
6978
6979         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6980         (REGISTER_SIZE): Remove.
6981         (MAX_REGISTER_RAW_SIZE): Remove.
6982         (REGISTER_VIRTUAL_TYPE): Remove.
6983         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6984         (REGISTER_NAME): Remove.
6985         (USE_GENERIC_DUMMY_FRAMES): Remove.
6986         (CALL_DUMMY): Remove.
6987         (CALL_DUMMY_START_OFFSET): Remove.
6988         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6989         (CALL_DUMMY_LOCATION): Remove.
6990         (FIX_CALL_DUMMY): Remove.
6991         (CALL_DUMMY_ADDRESS): Remove.
6992         (SIZEOF_CALL_DUMMY_WORDS): Remove.
6993         (SAVE_DUMMY_FRAME_TOS): Remove.
6994         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6995         (mcore_register_virtual_type): New function.
6996         (mcore_register_byte): New function.
6997         (mcore_register_size): New function.
6998         (mcore_register_name): New function.
6999         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7000         macros removed from tm-mcore.h.
7001         (mcore_dump_tdep): Add.
7002         (_initialize_mcore_tdep): Add gdbarch_register call.
7003
7004 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7005
7006         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7007         frameless_look_for_prologue, such that we actually call this
7008         function.
7009
7010 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7011
7012         * frame.h (frame_address_in_block): New function.
7013
7014         * blockframe.c (frame_address_in_block): New function extracted
7015         from get_frame_block().
7016         (get_frame_block): Use frame_address_in_block().
7017         (block_innermost_frame): Use frame_address_in_block() to match
7018         the frame pc address against the block boundaries rather than
7019         the frame pc directly. This prevents a failure when a frame pc
7020         is actually a return-address pointing immediately after the end
7021         of the given block. 
7022
7023 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7024
7025         * MAINTAINERS: Add self under write after approval. 
7026
7027 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7028
7029         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7030         used in architecture vector. The default is
7031         m68k_local_breakpoint_from_pc.
7032         (m68k_local_breakpoint_from_pc): Add.
7033         (enum): Add register numbers from tm-m68k.h.
7034         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7035         vector.  
7036         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7037         GDB_MULTI_ARCH_PARTIAL.
7038         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7039         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7040         m68k-tdep.c.
7041         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7042         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7043         to enum in m68k-tdep.c
7044
7045 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7046
7047         * solib-osf.c (open_map): Compute the list of shared libraries
7048         loaded by the inferior, rather than the list of libraries loaded
7049         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7050         the wrong shared libraries...
7051
7052 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7053
7054         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7055         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7056         macros.
7057         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7058         Remove functions.
7059         (FRAMELESS_SIGNAL): Remove function.
7060         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7061         i386_linux_saved_pc_after_call): Removed.
7062         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7063         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7064         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7065
7066         * i386-tdep.c (i386_frameless_signal_p): New function.
7067         (i386_frame_chain): Deal with frameless signals.
7068         (i386_sigtramp_saved_sp): New function.
7069         (i386_frame_saved_pc): Deal with frameless signals.
7070         (i386_saved_pc_after_call): Make sure the correct value is
7071         returned just after entry into a sigtramp.
7072         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7073         i386fbsd4_sc_sp_offset): New variables.
7074         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7075         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7076         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7077         similiar to what we already did for sc_pc_offset.
7078         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7079         tdep->sc_sp_offset.
7080
7081         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7082
7083 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7084
7085         * config/i386/tm-x86-64linux.h: New.
7086         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7087         definitions.
7088         * config/i386/nm-x86-64.h: Rename to ...
7089         * config/i386/nm-x86-64linux.h: ... this one.
7090         * config/i386/x86-64linux.mh: Reflect the above change.
7091         
7092 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7093
7094         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7095         with sigcontext_addr.  Add sc_sp_offset.
7096         (i386bsd_sigtramp_saved_pc): Remove prototype.
7097         (i386bsd_sicontext_addr): Add prototype.
7098         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7099         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7100         (i386_svr4_sigtramp_saved_pc): Removed.
7101         (i386_svr4_sigcontext_addr): New function.
7102         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7103         Initialize tdep->sigcontext_addr instead.  Initialize
7104         tdep->sc_pc_offset and tdep->sc_sp_offset.
7105         (i386_gdbarch_init): Likewise.
7106         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7107         any more.
7108         (i386bsd_sigtramp_saved_pc): Remove function.
7109         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7110         Initialize tdep->sigcontext_addr instead.  Initialize
7111         tdep->sc_pc_offset.
7112         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7113         of tdep->sigtramp_saved_pc.
7114         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7115         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7116         instead.
7117
7118         * i386-tdep.c (i386_frameless_function_invocation,
7119         i386_frame_num_args, i386_frame_init_saved_regs,
7120         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7121         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7122         i386_extract_return_value, i386_store_return_value,
7123         i386_extract_struct_value_address, i386_register_virtual_type,
7124         i386_register_convertible, i386_register_convert_to_virtual,
7125         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7126         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7127         static.
7128
7129 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7130
7131         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7132
7133         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7134         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7135         this macro.  Include "value.h".
7136
7137 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7138
7139         * ada-exp.tab.c: remove as it's a generated file
7140         * ada-lex.c: remove as it's a generated file
7141                 
7142 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7143
7144         * config/i386/tm-i386.h (struct frame_info, struct
7145         frame_saved_regs, struct value, struct type): Remove forward
7146         declarations.
7147
7148         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7149         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7150         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7151         (FILL_FPXREGSET): Define.
7152
7153         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7154
7155         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7156         i[3456]86-*-netbsd* case.
7157         * config/i386/tm-obsd.h: Removed.
7158         * config/i386/obsd.mt: Removed.
7159         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7160         core-aout.o.
7161         (MH_CFLAGS): Add -DYYDEBUG=0.
7162
7163         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7164         i386nbsd_sc_pc_offset on OpenBSD too.
7165
7166         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7167         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7168         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7169         define.
7170         * i386bsd-tdep.c: Include "arch-utils.h".
7171         (i386bsd_aout_in_solib_call_trampoline): New function.
7172         (i386bsd_init_abi): Set in_solib_call_trampoline to
7173         i386bsd_aout_in_solib_call_trampoline.
7174         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7175         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7176
7177 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7178
7179         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7180         (struct obstack, struct bcache): Add opaque declarations.
7181         * Makefile.in (macrotab_h): Update
7182
7183 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7184
7185         * blockframe.c (generic_find_dummy_frame): Change return type to
7186         ``struct regcache''.
7187         (struct dummy_frame): Replace field ``registers'' with regcache, a
7188         struct regcache object.
7189         (generic_find_dummy_frame): Update.
7190         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7191         regcache_xmalloc and regcache_cpy.
7192         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7193         regcache_xfree.
7194         (deprecated_generic_find_dummy_frame): Update.
7195         (generic_read_register_dummy): Update.  Use
7196         regcache_read_as_address.
7197         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7198         (generic_get_saved_register): Update.  Use regcache_read.
7199
7200 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7201
7202         * Makefile.in (objfiles_h): Add $(bcache_h).
7203         * objfiles.h: Include "bcache.h".
7204
7205         * Makefile.in (symtab_h): Remove $(bcache_h).
7206         * symtab.h: Do not include "bcache.h".
7207
7208 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7209
7210         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7211         generic_func_frame_chain_valid.
7212
7213 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7214
7215         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7216         * config/i386/tm-fbsd.h: Likewise.
7217
7218 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7219
7220         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7221         generic_unwind_get_saved_register.
7222
7223 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7224
7225         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7226         * regcache.c (supply_register): Add missing argument to
7227         register_buffer call.
7228
7229 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7230
7231         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7232         Solaris /bin/grep does not not like it.  From Peter Schauer.
7233
7234 2002-06-26  Tom Tromey  <tromey@redhat.com>
7235
7236         * command.h (add_setshow_cmd): Declare.
7237         (add_setshow_cmd_full): Declare.
7238         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7239         returns void.  Use add_setshow_cmd_full.
7240         (add_setshow_cmd_full): New function.
7241         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7242         (add_setshow_boolean_cmd): Likewise.
7243
7244 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7245
7246         * config/vax/tm-vax.h: Protect from multiple inclusion.
7247         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7248         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7249         * config/vax/tm-vaxbsd.h: ...here.  New file.
7250         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7251
7252 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7253
7254         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7255         (BELIEVE_PCC_PROMOTION): Remove.
7256         (AP_REGNUM): Move to...
7257         * config/vax/nm-vax.h: ...here.
7258         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7259         (vax_breakpoint_from_pc): New function.
7260         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7261         and gdbarch_believe_pcc_promotion.
7262
7263 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7264
7265         * Makefile.in (vax_tdep_h): Define.  
7266         (vax-tdep.o): Use $(vax_tdep_h).
7267         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7268         (vax_dump_tdep): New function. 
7269         (_initialize_vax_tdep): Register vax_dump_tdep.
7270         * vax-tdep.h: Include osabi.h.     
7271         (struct gdbarch_tdep): New. 
7272
7273 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7274
7275         * frame.h (deprecated_generic_find_dummy_frame): Rename
7276         generic_find_dummy_frame.
7277         * blockframe.c (generic_find_dummy_frame): Make static.
7278         (deprecated_generic_find_dummy_frame): New function.
7279         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7280         generic_find_dummy_frame with deprecated_find_dummy_frame.
7281         (sh64_nofp_frame_init_saved_regs): Ditto.
7282         (sh_fp_frame_init_saved_regs): Ditto.
7283         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7284         (s390_frame_chain): Ditto.
7285         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7286
7287 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7288
7289         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7290         gdbarch vector are at the top.
7291         (NUM_REGS): Remove.
7292         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7293         (FRAME_ARGS_ADDRESS): Remove.
7294         (FRAME_LOCALS_ADDRESS): Remove.
7295         (FRAME_NUM_ARGS): Remove.
7296         (FRAME_ARGS_SKIP): Remove.  
7297         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7298         (m68k_gdbarch_init): Add gdbarch initializations for macros
7299         undefined in tm-m68k.h
7300
7301 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7302
7303         * monitor.h: Add the function regname to monitor_ops
7304         structure. This way NUM_REGS does not have to be a constant.
7305         * monitor.c (monitor_fetch_register): Added support for regname
7306         function. The function is called if the array regnames is NULL.
7307         (monitor_store_register): Same.
7308         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7309         regnames array.
7310         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7311         cpu32bug_cmds.regname to point to new function.
7312         * abug-rom.c (abug_regname): Same as above.
7313         (init_abug_cmds): Same.
7314         * dbug-rom.c (dbug_regname): Same as above.
7315         (init_dbug_cmds): Same.
7316         * remote-est.c (est_regname): Same. 
7317         (init_est_cmds): Same.
7318         * rom68k-rom.c (rom68k_regname): Same. 
7319         (init_rom68k_cmds): Same.
7320
7321 2002-06-25  Tom Tromey  <tromey@redhat.com>
7322
7323         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7324
7325 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7326
7327         * infrun.c (stop_registers): Change variable's type to ``struct
7328         regcache'''.
7329         (xmalloc_inferior_status): Delete function.
7330         (free_inferior_status): Delete function.
7331         (normal_stop): Use regcache_cpy.
7332         (struct inferior_status): Change type of fields ``stop_registers''
7333         and ``registers'' to ``struct regcache''.
7334         (write_inferior_status_register): Use regcache_write.
7335         (save_inferior_status): Instead of calling
7336         xmalloc_inferior_status, allocate the inf_status buffer directly.
7337         Use regcache_dup_no_passthrough and regcache_dup to save the
7338         buffers.
7339         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7340         Replace the stop_registers regcache instead of overriding it.  Use
7341         regcache_xfree.  Instead of calling free_inferior_status, xfree
7342         the buffer directly.
7343         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7344         free_inferior_status, xfree the buffer directly.
7345         (build_infrun): Use regcache_xmalloc.
7346         (_initialize_infrun): Delete redundant call to build_infrun.
7347
7348         * Makefile.in (infcmd.o): Add $(regcache_h).
7349
7350         * infcmd.c: Include "regcache.h".
7351         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7352         obtain the address of `stop_registers' register buffer.
7353         (print_return_value): Ditto.
7354
7355         * inferior.h (struct regcache): Add opaque declaration.
7356         (stop_registers): Change variable's declared type to ``struct
7357         regcache''.
7358
7359 2002-06-24  Tom Tromey  <tromey@redhat.com>
7360
7361         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7362         * target.c (initialize_targets): Fixed typo in
7363         trust-readonly-sections `show' documentation.
7364
7365         * main.c: Marked all strings with _().
7366
7367 2002-06-24  Don Howard  <dhoward@redhat.com>
7368
7369         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7370         that means max CORE_ADDR+1.
7371         (lookup_mem_region): Ditto.
7372         (mem_info_command): Ditto.
7373
7374 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7375
7376         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7377         (REGISTER_BYTES_OK): Remove.
7378         (REGISTER_BYTES): Remove.
7379         (STORE_STRUCT_RETURN): Remove.
7380         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7381         (STORE_RETURN_VALUE): Remove.
7382         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7383         (FRAME_CHAIN): Remove.
7384         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7385         (FRAME_SAVED_PC): Remove.  
7386         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7387         (m68k_store_struct_return): Add.
7388         (m68k_deprecated_extract_return_value): Add.
7389         (m68k_deprecated_extract_struct_value_address): Add.
7390         (m68k_store_return_value): Add.
7391         (m68k_frame_chain): Add.
7392         (m68k_frameless_function_invocation): Add.
7393         (m68k_frame_saved_pc): Add.
7394         (m68k_gdbarch_init): added set_gdbarch calls for new 
7395         functions and deleted macros.
7396
7397 2002-06-23  Tom Tromey  <tromey@redhat.com>
7398
7399         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7400         (ALLDEPFILES): Likewise.
7401         (udiheaders): Removed.
7402         (udip2soc.o): Likewise.
7403         (udi2go32.o): Likewise.
7404         (udr.o): Likewise.
7405         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7406
7407 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7408
7409         * infrun.c (_initialize_infrun): Delete unnecessary call to
7410         build_infrun.
7411
7412         * regcache.h: Update comments describing the regcache_cpy family
7413         of functions.
7414         (regcache_save, regcache_restore): Delete declaration.
7415         (regcache_save_no_passthrough): Delete declaration.
7416         (regcache_restore_no_passthrough): Delete declaration.
7417         * regcache.c (regcache_save): Delete function.
7418         (regcache_save_no_passthrough): Delete function.
7419         (regcache_restore): Delete function.
7420         (regcache_restore_no_passthrough): Delete function.
7421
7422 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7423
7424         * config/m68k/tm-m68k.h: Fix typo.
7425         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7426         (m68k_frame_init_saved_regs): Declare.
7427
7428 2002-06-21  Jim Blandy  <jimb@redhat.com>
7429
7430         Remove some vestiges of Harris 88k support.
7431         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7432         register numbering quirk.
7433         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7434         odd symbols occurring in Harris 88k ELF targets.
7435
7436 2002-06-21  Tom Tromey  <tromey@redhat.com>
7437
7438         * gdb_locale.h: New file.
7439         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7440         (defs_h): Added gdb_locale.h.
7441         * configure, config.in: Rebuilt.
7442         * configure.in (PACKAGE): Define.
7443         * defs.h: Include gdb_locale.h.
7444         * main.c (captured_main): Call setlocale, bindtextdomain,
7445         textdomain.
7446
7447 2002-06-21  Dave Brolley  <brolley@redhat.com>
7448
7449         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7450         * config/frv/frv.mt: New file.
7451         * config/frv/tm-frv.h: New file.
7452         * configure.tgt: Support frv-*-*.
7453         * Makefile.in (frv-tdep.o): New target.
7454         * frv-tdep.c: New file.
7455         * NEWS: Mention frv.
7456
7457 2002-06-21  Dave Brolley  <brolley@redhat.com>
7458
7459         * MAINTAINERS: Add self to "Write After Approval" list.
7460
7461 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7462
7463         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7464         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7465         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7466         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7467         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7468
7469         * m68k-tdep.c: Include arch-utils.h
7470         (m68k_register_raw_size): Add.
7471         (m68k_register_virtual_size): Add.
7472         (m68k_register_virtual_type): Add.
7473         (m68k_register_name): Add.
7474         (m68k_stack_align): Add.
7475         (m68k_register_byte): Add.
7476         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7477         tm-m68k.h.
7478
7479 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7480
7481         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7482         m68k_find_saved_regs.
7483         (m68k_pop_frame): Removed saved_regs structure, and replaced
7484         references to it with frame->saved_regs.
7485         (m68k_gdbarch_init): Added function calls to initialize the
7486         gdbarch structure.
7487         (m68k_fix_call_dummy): Add. 
7488         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7489         (CALL_DUMMY): Remove.
7490         (CALL_DUMMY_LENGTH): Remove.
7491         (CALL_DUMMY_START_OFFSET): Remove.
7492         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7493         (FIX_CALL_DUMMY): Remove.
7494         (PUSH_DUMMY_FRAME): Remove.
7495         (POP_FRAME): Remove.
7496
7497 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7498
7499         * parse.c (parse_fprintf): New function used to avoid calls to
7500         fprintf in bison parser generated debug code.
7501         * parser-defs.h: Declaration of new parse_fprintf function.
7502         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7503         Set YYDEBUG to 1 by default.
7504         Set YYFPRINTF as parse_fprintf.
7505
7506 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7507
7508         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7509         encoding anymore.
7510         (pointer_encoding, enum ptr_encoding): New.
7511         (execute_cfa_program): Take care about pointer encoding.        
7512         (dwarf2_build_frame_info): Only call parse_frame_info for 
7513         .debug_frame and .eh_frame.
7514         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7515         fixed augmentation handling, added relative addressing, 
7516         ignore duplicate FDEs. Added comments.
7517         * dwarf2cfi.c: Reindented.
7518         
7519 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7520
7521         * event-top.c (command_handler): Don't use space_at_cmd_start
7522         unless there is sbrk() on the host. Assign time and space data
7523         to union fields of the appropriate length.
7524
7525 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7526
7527         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7528         x86_64_register_name. Return type changed to 'const char *'.
7529         (x86_64_register_name2nr): Rename to x86_64_register_number.
7530         (x86_64_gdbarch_init): Update to reflect the change.
7531         * x86-64-tdep.h: Ditto.
7532         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7533         (supply_fpregset): Ditto.
7534
7535 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7536
7537         * regcache.h: Update copyright.
7538         (struct regcache, struct gdbarch): Add opaque declarations.
7539         (current_regcache): Declare global variable.
7540         (regcache_read, regcache_write): Add gdbarch parameter.
7541         (regcache_save, regcache_save_no_passthrough)
7542         (regcache_restore, regcache_restore_no_passthrough)
7543         (regcache_dup, regcache_dup_no_passthrough)
7544         (regcache_cpy, regcache_cpy_no_passthrough)
7545         (deprecated_grub_regcache_for_registers)
7546         (deprecated_grub_regcache_for_register_valid)
7547         (regcache_valid_p): Add function declarations.
7548         
7549         * regcache.c: Update copyright.
7550         (regcache_descr_handle): New global variable.
7551         (struct regcache_descr): Define.
7552         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7553         (regcache_descr, xfree_regcache_descr): New functions.
7554         (struct regcache): Define.
7555         (regcache_xmalloc, regcache_xfree): New functions.
7556         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7557         (regcache_dup, regcache_dup_no_passthrough): New functions.
7558         (regcache_valid_p, regcache_read_as_address): New functions.
7559         (deprecated_grub_regcache_for_registers): New function.
7560         (deprecated_grub_regcache_for_register_valid): New function.
7561         (current_regcache): New global variable.
7562         (register_buffer): Add regcache parameter.  Update calls.
7563         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7564         (read_register_gen, write_register_gen): Update register_buffer
7565         call.  Test for legacy_p instead of gdbarch_register_read_p or
7566         gdbarch_register_write_p.
7567         (regcache_collect): Update register_buffer call.
7568         (build_regcache): Rewrite.  Use deprecated grub functions.
7569         (regcache_save, regcache_save_no_passthrough): New functions.
7570         (regcache_restore, regcache_restore_no_passthrough): New
7571         functions.
7572         (_initialize_regcache): Create the regcache_data_handle. Swap
7573         current_regcache global variable.
7574         
7575         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7576         parameter to regcache_read and regcache_write calls.
7577         (sh4_register_read): Ditto.
7578         (sh64_pseudo_register_read): Ditto.
7579         (sh64_register_read): Ditto.
7580         (sh_pseudo_register_write): Ditto.
7581         (sh4_register_write): Ditto.
7582         (sh64_pseudo_register_write): Ditto.
7583         (sh64_register_write): Ditto.
7584
7585         * defs.h (XCALLOC): Define.
7586
7587 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7588
7589         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7590         * m68k-tdep.c (m68k_gdbarch_init): Added.
7591         (m68k_dump_tdep): Added.
7592
7593 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7594
7595         * ada-lang.c (fill_in_ada_prototype): Update comment.
7596
7597 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7598
7599         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7600         MIPS_ABI_LAST.
7601         (mips_abi_string, mips_abi_strings): New.
7602         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7603         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7604         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7605         O32 if no ABI is found.
7606         (mips_dump_tdep): Use mips_abi_strings.
7607         (mips_abi_update): New function.
7608         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7609         ``set mips abi'' and ``show mips abi''.  Check the size of
7610         mips_abi_strings.
7611
7612 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7613
7614         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7615         constant.
7616
7617 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7618
7619         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7620         current frame using only the first stack size adjustment. All
7621         subsequent size adjustments are not considered to be part of
7622         the "static" part of the current frame.
7623         Compute the address of the saved registers relative to the
7624         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7625         in use in this frame.
7626
7627 2002-06-18  Don Howard  <dhoward@redhat.com>
7628  
7629         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7630         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7631         suggesting this solution.
7632
7633 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7634
7635         * config/romp/xm-rtbsd.h: Delete file.
7636         * config/romp/rtbsd.mh: Delete file.
7637
7638 2002-06-18  Keith Seitz  <keiths@redhat.com>
7639
7640         * breakpoint.c (condition_command): Post breakpoint_modify
7641         when a condition is added to an existing breakpoint.
7642         (commands_command): Likewise for commands.
7643         (set_ignore_count): Likewise for ignore counts.
7644         If no tty, do not simply return, still need to send event
7645         notification.
7646         (ignore_command): Only print a newline if the command came
7647         from a tty.
7648         Don't call breakpoints_changed, since this is now properly
7649         handled by set_ignore_count.
7650
7651 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7652
7653         * MAINTAINERS: Note that cris-elf target can be compiled with
7654         -Werror.
7655         * cris-tdep.c (cris_register_name): Make return type constant.
7656         (cris_breakpoint_from_pc): Ditto.
7657
7658 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7659
7660         * frame.h (struct frame_info): Change type of context to 
7661         'struct context'.
7662
7663 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7664
7665         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7666         pointer.
7667         * gdbarch.h, gdbarch.c: Regenerate.
7668         * config/mips/tm-mips.h (mips_register_name): Update.
7669         * i386-tdep.h (i386_register_name): Update.
7670         * mips-tdep.c (mips_register_name): Update
7671         * alpha-tdep.c (alpha_register_name): Update.
7672         * arch-utils.c (legacy_register_name): Update.
7673         * arch-utils.h (legacy_register_name): Update.
7674         * avr-tdep.c (avr_register_name): Update.
7675         * ia64-tdep.c (ia64_register_name): Update.
7676         * i386-tdep.c (i386_register_name): Update.
7677         * sparc-tdep.c (sparc32_register_name): Update.
7678         (sparc64_register_name): Update.
7679         (sparclite_register_name): Update.
7680         (sparclet_register_name): Update.
7681         * sh-tdep.c (sh_generic_register_name): Update.
7682         (sh_sh_register_name): Update.
7683         (sh_sh3_register_name): Update.
7684         (sh_sh3e_register_name): Update.
7685         (sh_sh_dsp_register_name): Update.
7686         (sh_sh3_dsp_register_name): Update.
7687         (sh_sh4_register_name): Update.
7688         (sh_sh64_register_name): Update.
7689         * s390-tdep.c (s390_register_name): Update.
7690         * rs6000-tdep.c (rs6000_register_name): Update.
7691         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7692         (ns32k_register_name_32382): Update.
7693         * d10v-tdep.c (d10v_ts2_register_name): Update.
7694         (d10v_ts3_register_name): Update.
7695         * xstormy16-tdep.c (xstormy16_register_name): Update.
7696         * vax-tdep.c (vax_register_name): Update.
7697         * v850-tdep.c (v850_register_name): Update.
7698         * m68hc11-tdep.c (m68hc11_register_name): Update.
7699         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7700         (am33_register_name): Update.
7701
7702 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7703
7704         * m68k-tdep.c: Reindented.
7705
7706 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7707
7708         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7709         list of predefined types.
7710
7711 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7712
7713         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7714         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7715         REGISTER_CONVERT_TO_RAW): Remove defines.
7716         (i386_register_virtual_type, i386_register_convertible,
7717         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7718         Remove prototypes.
7719         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7720         macros mentioned above.
7721
7722         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7723         (i386lynx_saved_pc_after_call): Remove prototype.
7724         * i386ly-tdep.c: Include "i386-tdep.h".
7725         (i386lynx_saved_pc_after_call): Make static.  Use
7726         read_memory_nobpt instead of read_memory.  Use
7727         read_memory_unsigned_integer instead of read_memory_integer.
7728         (i386lynx_init_abi): New function.
7729         (i386lynx_coff_osabi_sniffer): New function.
7730         (_initialize_i386bsd_tdep): New function.
7731
7732         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7733         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7734         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7735         (i386_fix_call_dummy): Remove prototype.
7736         * i386-tdep.c (i386_call_dummy_words): New variable.
7737         (i386_gdbarch_init): Adjust for removal of the
7738         macros mentioned above.
7739
7740 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7741
7742         * command.h (add_setshow_auto_boolean_cmd): Replace
7743         add_set_auto_boolean_cmd.
7744         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7745         add_set_auto_boolean_cmd.
7746         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7747         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7748         mask-address'' command.
7749         (show_mask_address): Add cmd parameter.
7750         * remote.c (add_packet_config_cmd): Update.  Change type of
7751         set_func and show_func to cmd_sfunc_ftype.
7752         (_initialize_remote): Update `set remote Z-packet'
7753         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7754         (show_remote_protocol_e_packet_cmd): Ditto.
7755         (show_remote_protocol_E_packet_cmd): Ditto.
7756         (show_remote_protocol_P_packet_cmd): Ditto.
7757         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7758         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7759         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7760         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7761         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7762         (show_remote_protocol_Z_packet_cmd): Ditto.
7763         (show_remote_protocol_binary_download_cmd): Ditto.
7764         (show_remote_cmd): Pass NULL to all of above.
7765
7766 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7767
7768         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7769         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7770         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7771         POP_FRAME): Remove defines.
7772         (i386_push_arguments, i386_store_struct_return,
7773         i386_extract_return_value, i386_store_return_value,
7774         i386_extract_struct_value_address, i386_push_dummy_frame,
7775         i386_pop_frame): Renove prototypes.
7776         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7777         macros mentioned above.
7778
7779 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7780
7781         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7782         add_set_boolean_cmd.
7783         (add_setshow_cmd): New function.
7784         * command.h (add_setshow_boolean_cmd): Replace
7785         add_set_boolean_cmd.
7786         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7787         and ``set rdiromatzero''.
7788         * maint.c (_initialize_maint_cmds): Update commented out code.
7789         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7790         * target.c (initialize_targets): Update `set
7791         trust-readonly-sections'.
7792         * remote.c (_initialize_remote): Update `set remotebreak'.
7793
7794 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7795
7796         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7797         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7798         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7799         fit into multi-arch framework.
7800         (i386_breakpoint_from_pc): New function.
7801         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7802         above.
7803
7804         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7805         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7806         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7807         (i386_frameless_function_invocation, i386_frame_num_args,
7808         i386_frame_init_saved_regs): Remove prototypes.
7809         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7810         macros mentioned above.
7811
7812 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7813
7814         * cli/cli-decode.c (set_cmd_cfunc): Update.
7815         (set_cmd_sfunc): Update.
7816         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7817         (set_cmd_sfunc, set_cmd_cfunc): Update.
7818         * cli/cli-decode.h: Update.
7819
7820 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7821
7822         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7823         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7824
7825 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7826
7827         * defs.h (auto_boolean): Declare enum.
7828         * command.h (cmd_auto_boolean): Delete enum.
7829         * mips-tdep.c (mask_address_var): Update.
7830         (mips_mask_address_p): Update.
7831         (show_mask_address): Update.
7832         * remote.c (struct packet_config): Update.
7833         (update_packet_config): Update.
7834         (show_packet_config_cmd): Update.
7835         (packet_ok): Update.
7836         (add_packet_config_cmd): Update.
7837         (_initialize_remote): 
7838         * command.h: Update.
7839         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7840         (do_setshow_command): Update.
7841         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7842         * cli/cli-decode.h: Update.
7843
7844 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7845
7846         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7847         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7848         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7849         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7850         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7851         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7852
7853         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7854         list of DJGPP COFF targets.
7855
7856         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7857         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7858         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7859         (FP0_REGNUM): Remove define.
7860         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7861         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7862         (i386_register_virtual_size): Remove protoype.
7863         * i386-tdep.c (i386_register_virtual_size): Removed.
7864         (i386_extract_return_value, i386_store_return_value): Use
7865         FP0_REGNUM instead of NUM_FREGS to determine whether the
7866         floating-point registers are available.
7867         (i386_gdbarch_init): Tweak FIXME about FPU registers.
7868         Adjust for removal of macros mentioned above.
7869
7870 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7871
7872         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
7873         comments.
7874         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7875         Remove prototypes.
7876         (supply_gregset, fill_gregset): Remove use of register keyword and
7877         remove declaration for regmap.  Use I386_NUM_GREGS instead of
7878         NUM_REGS and NUM_FREGS.
7879         (FPREGSET_FSAVE_OFFSET): Remove.
7880         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7881         NUM_FREGS to determine whether the floating-point registers are
7882         available.
7883
7884         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7885         gnu_store_registers): Replace usage of NUM_GREGS with
7886         I386_NUM_GREGS.
7887
7888         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7889         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7890         usage of NUM_GREGS with I386_NUM_GREGS.
7891
7892         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7893
7894         * i386bsd-nat.c: Include "i386-tdep.h".
7895         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7896         I386_NUM_GREGS.
7897
7898         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7899         and associated comment.  They no longer make any sense, since we
7900         don't use this file anymore on Linux.
7901
7902         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7903         * i386-tdep.c (i386_register_offset, i386_register_size): Use
7904         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7905         elements in these arrays.
7906         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7907         MAX_NUM_REGS.
7908
7909 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7910
7911         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7912         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7913
7914 2002-06-14  Andrew Cagney  <cagney@redhat.com>
7915
7916         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7917         EXTRACT_RETURN_VALUE.
7918         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7919         EXTRACT_STRUCT_VALUE_ADDRESS.
7920         * gdbarch.h, gdbarch.c: Regenerate.
7921         
7922         * values.c (value_being_returned): Handle
7923         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7924         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7925
7926         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
7927         * arm-tdep.c (arm_gdbarch_init): Update.
7928         * avr-tdep.c (avr_gdbarch_init): Update.
7929         * cris-tdep.c (cris_gdbarch_init): Update.
7930         * d10v-tdep.c (d10v_gdbarch_init): Update.
7931         * ia64-tdep.c (ia64_gdbarch_init): Update.
7932         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7933         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7934         * s390-tdep.c (s390_gdbarch_init): Update.
7935         * sh-tdep.c (sh_gdbarch_init): Update.
7936         * s390-tdep.c (s390_gdbarch_init): Update.
7937         * sparc-tdep.c (sparc_gdbarch_init): Update.
7938         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7939         * v850-tdep.c (v850_gdbarch_init): Update.
7940         * vax-tdep.c (vax_gdbarch_init): Update.
7941         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7942         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7943
7944         * config/arc/tm-arc.h: Update.
7945         * config/d30v/tm-d30v.h: Update.
7946         * config/fr30/tm-fr30.h: Update.
7947         * config/h8300/tm-h8300.h: Update.
7948         * config/h8500/tm-h8500.h: Update.
7949         * config/i386/tm-i386.h: Update.
7950         * config/i386/tm-ptx.h: Update.
7951         * config/i386/tm-symmetry.h: Update.
7952         * config/i960/tm-i960.h: Update.
7953         * config/m32r/tm-m32r.h: Update.
7954         * config/m68k/tm-delta68.h: Update.
7955         * config/m68k/tm-linux.h: Update.
7956         * config/m68k/tm-m68k.h: Update.
7957         * config/m88k/tm-m88k.h: Update.
7958         * config/mcore/tm-mcore.h: Update.
7959         * config/mips/tm-mips.h: Update.
7960         * config/mn10200/tm-mn10200.h: Update.
7961         * config/pa/tm-hppa.h: Update.
7962         * config/pa/tm-hppa64.h: Update.
7963         * config/sparc/tm-sp64.h: Update.
7964         * config/sparc/tm-sparc.h: Update.
7965         * config/sparc/tm-sparclet.h: Update.
7966         * config/z8k/tm-z8k.h: Update.
7967
7968 2002-06-14  Andrew Cagney  <cagney@redhat.com>
7969
7970         * Makefile.in (i386_linux_tdep_h): Define.
7971         (i386_tdep_h, i387_tdep_h): Define.
7972         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7973         $(i386_tdep_h) and $(i387_tdep_h).
7974         * i386-linux-nat.c: Include "i386-linux-tdep.h".
7975
7976 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
7977
7978         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7979         Already covered by the default.
7980
7981         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7982         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
7983         (i386_gdbarch_init): Initialize long_double_format and long_double
7984         bit.
7985
7986         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7987         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
7988         Move these to ...
7989         * config/i386/i386sol2.mh: ... here.
7990         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7991         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7992         (SIGCONTEXT_PC_OFFSET): Remove define.
7993         (IN_SIGTRAMP): Remove define.
7994         * i386-sol2-tdep.c: New file.
7995         
7996         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7997         * config/i386/tm-i386nw.h: Removed.
7998
7999         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8000         USE_STRUCT_CONVENTION): Remove defines.
8001         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8002         (get_longjmp_target): Remove prototype.
8003         (IN_SIGTRAMP): Remove define.
8004         (i386bsd_in_sigtramp): Remove prototype.
8005         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8006         function.  Update comment accordingly
8007         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8008         (FRAME_SAVED_PC): Remove define.
8009         (i386bsd_frame_saved_pc): Remove prototype.
8010         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8011         GET_LONGJMP_TARGET): Remove defines.
8012         (get_longjmp_target): Remove prototype.
8013         (IN_SIGTRAMP): Remove define.
8014         (i386bsd_in_sigtramp): Remove prototype.
8015         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8016         function.  Update comment accordingly
8017         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8018         (FRAME_SAVED_PC): Remove define.
8019         (i386bsd_frame_saved_pc): Remove prototype.
8020         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8021         Remove prototype.
8022         (USE_STRUCT_CONVENTION): Remove prototype.
8023         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8024         declaration.
8025         (_initialize_i386bsd_nat): Revise logic to determine some
8026         constants at compile time when compiling a native GDB.  Warn if
8027         things don't match up with what we expect.
8028         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8029         Remove variables.
8030         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8031         to use date stored in `struct gdbarch_tdep'.
8032         (i386bsd_sigcontext_offset): Remove varaible.
8033         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8034         stored in `struct gdbarch_tdep'.
8035         (i386bsd_frame_saved_pc): Make static.
8036         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8037         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8038         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8039         i386fbsd4_sc_pc_offset): New variables.
8040         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8041         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8042         functions.
8043         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8044         functions.
8045         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8046         Modify the value of i386fbsd_sigtramp_start and
8047         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8048         i386fbsd_sigtramp_end.
8049         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8050         function.
8051
8052         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8053         define to i386-linux-tdep.h.
8054         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8055         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8056         defines.
8057         (i386_linux_register_name, i386_linux_register_byte,
8058         i386_linux_register_raw_size): Remove prototypes.
8059         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8060         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8061         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8062         TARGET_WRITE_PC): Remove defines.
8063         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8064         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8065         i386_linux_write_pc): Remove prototypes.
8066         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8067         (get_longjmp_target): Remove prototype.
8068         * i386-linux-tdep.h: New file.
8069         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8070         * i386-linux-tdep.c: Include "i386-tdep.h" and
8071         "i386-linux-tdep.h".
8072         (i386_linux_register_name, i386_linux_register_byte,
8073         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8074         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8075         Make static.
8076         (i386_linux_init_abi): New function.
8077         (_initialize_i386_linux_tdep): New function.
8078
8079         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8080         (i386_saved_pc_after_call): Remove prototype.
8081         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8082         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8083         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8084         (i386_register_name, i386_stab_reg_to_regnum,
8085         i386_dwarf_reg_to_regnum): Remove prototypes.
8086         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8087         SIZEOF_SSE_REGS): Remove defines.
8088         (REGISTER_BYTES): Remove define.
8089         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8090         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8091         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8092         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8093         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8094         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8095         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8096         (get_longjmp_target): Remove prototype.
8097         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8098         (sigtramp_saved_pc): Remove define.
8099         (i386v4_sigtramp_saved_pc): Remove prototype.
8100         * config/i386/tm-go32.h (FRAME_CHAIN,
8101         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8102         (i386go32_frame_saved_pc): Remove prototype.
8103         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8104         (get_longjmp_target): Remove prototype.
8105         * i386-tdep.h: Include "osabi.h".
8106         (enum i386_abi): Removed.
8107         (enum struct_return): New enum.
8108         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8109         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8110         sc_pc_offset members.
8111         (i386_gdbarch_register_os_abi): Remove prototype.
8112         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8113         I386_SSE_NUM_REGS): New defines.
8114         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8115         I386_SSE_SIZEOF_REGS): New defines.
8116         (i386_register_name, i386_register_byte, i386_register_raw_size):
8117         New prototypes.
8118         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8119         (i386bsd_sigtramp_saved_pc): New prototype.
8120         * i386-tdep.c: Don't include "elf-bfd.h".
8121         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8122         i386_frame_chain, i386_saved_pc_after_call): Make static.
8123         (i386_frame_saved_pc): Rewrite to call architecture dependent
8124         function to deal with signal handlers.  Make static.
8125         (i386go32_frame_saved_pc): Removed.
8126         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8127         Removed.
8128         (i386_get_longjmp_target): New function.
8129         (default_struct_convention, pcc_struct_convention,
8130         reg_struct_convention, valid_conventions, struct_convention): New
8131         variables.
8132         (i386_use_struct_convention): New function.
8133         (i386v4_sigtramp_saved_pc): Renamed to
8134         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8135         (i386_pc_in_sigtramp): New function.
8136         (i386_abi_names): Removed.
8137         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8138         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8139         Removed.
8140         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8141         i386_gdbarch_register_os_abi): Removed.
8142         (struct i386_abi_handler): Removed.
8143         (i386_abi_handler_list): Removed.
8144         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8145         functions.
8146         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8147         i386_nw_init_abi): New functions.
8148         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8149         Use set_gdbarch_xxx() calls instead of relying on macros for a
8150         number of calls.
8151         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8152         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8153         Register the various architecture variants defined in this file.
8154
8155 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8156
8157         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8158         (struct main_type): Remove arg_types member.  Update comments for
8159         struct field.
8160         (TYPE_ARG_TYPES): Remove.
8161         (TYPE_FN_FIELD_ARGS): Update.
8162         (smash_to_method_type): Update prototype.
8163
8164         * c-typeprint.c (cp_type_print_method_args): Take method type
8165         instead of argument list.  Use new argument layout.  Simplify.
8166         (c_type_print_args): Use new argument layout.  Simplify.
8167         (c_type_print_base): Update call to cp_type_print_method_args.
8168         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8169         argument; use die->type instead.  Update call to
8170         smash_to_method_type.
8171         (read_structure_scope): Update call to dwarf2_add_member_fn.
8172         * gdbtypes.c (allocate_stub_method): Update comment.
8173         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8174         Use new argument layout.
8175         (check_stub_method): Use new argument layout.  Don't count
8176         void as an argument.
8177         (print_arg_types): Update comments.  Use new argument layout.
8178         (recursive_dump_type): Don't print arg_types member.
8179         * hpread.c (hpread_read_struct_type): Use new argument layout.
8180         (fixup_class_method_type): Likewise.
8181         (hpread_type_lookup): Likewise.
8182         * stabsread.c (read_type): Update calls to read_args and
8183         smash_to_method_type.
8184         (read_args): Use new argument layout.  Simplify.
8185         * valops.c (typecmp): Use new argument layout.  Update parameters
8186         and comments.  Simplify.
8187         (hand_function_call): Use new argument layout.
8188         (search_struct_method): Update call to typecmp.
8189         (find_overload_match): Use new argument layout.
8190
8191 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8192
8193         * NEWS: Mention multithreaded debug support for gdbserver.
8194
8195 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8196
8197         * MAINTAINERS: Mention NEWS.
8198
8199 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8200
8201         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8202         (struct mips_objfile_private, compare_pdr_entries): New.
8203         (non_heuristic_proc_desc): Read the ".pdr" section if it
8204         is present.
8205
8206 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8207
8208         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8209         (arm_debug): New static variable.
8210         (_initialize_arm_tdep): Add ``set debug arm'' command.
8211
8212 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8213
8214         * Makefile.in (sim_arm_h): Define.
8215         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8216         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8217         (arm_register_sim_regno): New function, map an internal REGNUM
8218         onto a simulator register number.
8219         (arm_gdbarch_init): Set register_sim_regno.
8220
8221 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8222
8223         * MAINTAINERS: Add self.
8224
8225 2002-06-11  Jim Blandy  <jimb@redhat.com>
8226
8227         * source.c (source_info): Mention whether the symtab has
8228         information about preprocessor macros.
8229
8230         Call the command `info macro', not `show macro'.
8231         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8232         Fix error message.
8233         (_initialize_macrocmd): Register `info_macro_command' in
8234         `infolist', not `showlist'.
8235
8236 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8237
8238         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8239         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8240         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8241         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8242         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8243         unconditionally.
8244         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8245         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8246         (_initialize_mips_tdep): Remove dead code.
8247         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8248         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8249         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8250         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8251         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8252         MIPS_LAST_FP_ARG_REGNUM): Remove.
8253
8254 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8255
8256         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8257         (unwind_tmp_obstack_free, parse_frame_info)
8258         (update_context, cfi_read_fp, cfi_write_fp)
8259         (cfi_frame_chain, cfi_init_extra_frame_info)
8260         (cfi_virtual_frame_pointer): Use the above function.
8261         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8262
8263 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8264
8265         * v850-tdep.c (v850_type_is_scalar): New function.
8266         (v850_use_struct_convention): Match current gcc implementation
8267         as close as possible.
8268         (v850_push_arguments): Fix stack_offset handling.  Don't write
8269         struct_addr into register.  This is done by v850_store_struct_return.
8270         (v850_extract_return_value): Care for structs.
8271         (v850_store_return_value): Ditto.
8272         (v850_store_struct_return): Actually write address.
8273
8274 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8275
8276         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8277         without debug information too.
8278
8279 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8280
8281         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8282         Make multi-arch pure.
8283         * gdbarch.h, gdbarch.c: Re-generate.
8284         * arm-tdep.c (arm_print_float_info): Update.
8285         * arch-utils.h (default_print_float_info): Update.
8286         * arch-utils.c (default_print_float_info): Update.
8287         * infcmd.c (float_info): Update call.
8288
8289 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8290
8291         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8292         the front of the initialize list.
8293
8294 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8295
8296         * infrun.c (struct inferior_status): Replace fields
8297         selected_frame_address and selected_level with field
8298         selected_frame_id.
8299         (save_inferior_status): Update.  Use get_frame_id.
8300         (struct restore_selected_frame_args): Delete.
8301         (restore_selected_frame): Update.  Use frame_find_by_id.
8302         (restore_inferior_status): Update.
8303
8304         * breakpoint.h (struct breakpoint): Change type of
8305         watchpoint_frame to frame_id.
8306         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8307         call to get_current_frame.
8308         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8309         get_current_frame.
8310         (watchpoint_check): Use frame_find_by_id.
8311
8312         * frame.h (record_selected_frame): Delete declaration.
8313         * stack.c (record_selected_frame): Delete function.
8314         
8315         * frame.h (struct frame_id): Define.
8316         (get_frame_id): Declare.
8317         (frame_find_by_id): Declare.
8318         * frame.c (frame_find_by_id): New function.
8319         (get_frame_id): New function.
8320
8321 2002-06-10  Andrey Volkov <avolkov@transas.com>
8322
8323         * ser-e7kpc.c: Fix duplicated define and call of 
8324         _initialize_ser_e7000pc
8325             
8326 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8327
8328         * signals/signals.c (target_signal_from_host): Fix #ifdef
8329         SIGRTMIN case.
8330         (do_target_signal_to_host): Likewise.
8331
8332 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8333
8334         * mips-tdep.c (mips_find_abi_section): New function.
8335         (mips_gdbarch_init): Call it.
8336
8337 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8338
8339         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8340         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8341         after Andrew's 2002-06-08 gdbarch change.
8342
8343 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8344
8345         * i386-linux-nat.c (suppy_gregset): Don't supply
8346         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8347         register cache.
8348         (fill_gregset): Don't fetch it under the same circumstances.
8349
8350 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8351
8352         * Makefile.in (callback_h): Define.
8353         (remote_sim_h): Update path to remote-sim.h.
8354         (remote-rdp.o): Add $(callback_h).
8355         (remote-sim.o): Use $(callback_h).
8356         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8357         * remote-rdp.c: Include "gdb/callback.h".
8358
8359 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8360
8361         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8362         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8363
8364 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8365
8366         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8367         * rdi-share/serpardr.c: Ditto.
8368         * rdi-share/unixcomm.c: Ditto.
8369         * rdi-share/serdrv.c: Ditto.
8370         * rdi-share/hostchan.h: Ditto.
8371         * rdi-share/hostchan.c: Ditto.
8372         * rdi-share/host.h: Ditto.
8373         * rdi-share/devsw.c: Ditto.
8374
8375         * objfiles.h: Change type of obj_private to void pointer.
8376         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8377         strcmp instead of STREQ, use LONGEST, do not use PTR
8378         * somsolib.c: Ditto.
8379
8380         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8381         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8382         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8383
8384 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8385
8386         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8387         (default_get_saved_register): Delete function.
8388         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8389         generic_unwind_get_saved_register.
8390         * gdbarch.h, gdbarch.c: Re-generate.
8391         
8392 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8393
8394         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8395         generic_func_frame_chain_valid.
8396         * gdbarch.h, gdbarch.c: Re-generate.
8397         * blockframe.c (generic_func_frame_chain_valid): Only check
8398         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8399         passing FP to PC_IN_CALL_DUMMY.
8400         Fix PR gdb/360.
8401
8402 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8403
8404         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8405         (register_gdbarch_data): Initialize init_p.
8406         (gdbarch_data): Initialize data pointer using the init function.
8407         (init_gdbarch_data): Delete function.
8408         (gdbarch_update_p): Update.
8409         (initialize_non_multiarch): Update.
8410         (struct gdbarch): Add field initialized_p.
8411         * gdbarch.h, gdbarch.c: Re-generate.
8412
8413 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8414
8415         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8416         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8417         better do the things actually here.
8418         * x86-64-tdep.c (x86_64_register_name2nr): New.
8419         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8420         (x86_64_gdbarch_init): Respect the above change.
8421         * x86-64-tdep.h (x86_64_register_name2nr)
8422         (x86_64_register_nr2name): Add prototypes.
8423         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8424
8425 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8426
8427         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8428         Delete extra braces and re-indent.
8429         (d10v_store_return_value): Char return values
8430         must be shifted over by one byte in R0.
8431         (d10v_extract_return_value): Delete extra braces, re-indent.
8432
8433 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8434
8435         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8436         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8437         (d10v_integer_to_address): Rewrite.
8438         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8439         the d10v specific functions which take care of converting to the
8440         correct space.
8441
8442 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8443
8444         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8445         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8446
8447 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8448
8449         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8450         includes.
8451         * config/tm-linux.h: Ditto.
8452         * config/alpha/tm-alphalinux.h: Ditto.
8453         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8454         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8455         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8456         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8457         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8458         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8459         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8460         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8461         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8462         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8463         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8464         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8465         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8466         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8467         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8468         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8469         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8470         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8471         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8472         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8473         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8474         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8475         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8476         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8477         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8478         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8479         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8480         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8481         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8482         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8483         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8484         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8485         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8486         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8487         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8488         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8489         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8490
8491 2002-05-04  Aidan Skinner <aidan@velvet.net>
8492
8493         * ada-exp.tab.c: New file
8494         * ada-exp.y: New file
8495         * ada-lang.c: New file
8496         * ada-lang.h: New file
8497         * ada-lex.c: New file
8498         * ada-lex.l: New file
8499         * ada-tasks.c: New file
8500         * ada-typeprint.c: New file
8501         * ada-valprint.c: New file
8502         
8503 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8504
8505         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8506         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8507
8508 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8509
8510         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8511         insetead of ppc-linux-tdep.o.
8512         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8513         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8514
8515 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8516
8517         2002-05-07 Christian Groessler <chris@groessler.org>
8518         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8519         bit register contents for little endian hosts.
8520
8521 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8522
8523         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8524         any maintainer.
8525
8526 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8527
8528         * gdbarch.h: Regenerate.
8529
8530 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8531
8532         * MAINTAINERS: Add everyone to write-after-approval list.
8533
8534 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8535
8536         * stack.c (frame_info): Use frame_register_unwind instead of
8537         saved_regs.  Mention when the SP is on the stack or in a register.
8538
8539         * frame.h (frame_register_unwind_ftype): Define.  Document.
8540         (struct frame_info): Add field register_unwind and
8541         register_unwind_cache.
8542         (frame_register_unwind): Declare.
8543         (generic_unwind_get_saved_register): Declare.
8544
8545         * frame.c (frame_register_unwind): New function.
8546         (generic_unwind_get_saved_register): New function.
8547
8548         * blockframe.c (generic_call_dummy_register_unwind): New function.
8549         (frame_saved_regs_register_unwind): New function.
8550         (set_unwind_by_pc): New function.
8551         (create_new_frame): New function.
8552         (get_prev_frame): New function.
8553
8554 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8555
8556         * a29k-share/: Delete directory.
8557         * remote-vx29k.c: Delete file.
8558
8559 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8560
8561         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8562         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8563
8564 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8565
8566         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8567         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8568         (sparc64nbsd-nat.o)
8569         (sparcnbsd-nat.o)
8570         (sparcnbsd-tdep.o): New dependency lists.
8571         * NEWS: Note new UltraSPARC NetBSD native configuration.
8572         * configure.host (sparc64-*-netbsd*): New host.
8573         * configure.tgt (sparc-*-netbsdelf*)
8574         (sparc-*-netbsd*): Set gdb_target to nbsd.
8575         (sparc64-*-netbsd*): New target.
8576         * sparc64nbsd-nat.c: New file.
8577         * sparcnbsd-nat.c: New file.
8578         * sparcnbsd-tdep.c: New file.
8579         * sparcnbsd-tdep.h: New file.
8580         * config/sparc/nbsd.mt: New file.
8581         * config/sparc/nbsd64.mh: New file.
8582         * config/sparc/nbsd64.mt: New file.
8583         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8584         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8585         (HOST_IPC): Remove.
8586         * config/sparc/nbsdaout.mt: Remove.
8587         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8588         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8589         (HOST_IPC): Remove.
8590         * config/sparc/nbsdelf.mt: Remove.
8591         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8592         sparc-nat.c compatiblity defines.
8593         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8594         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8595         * config/sparc/tm-nbsd64.h: New file.
8596         * config/sparc/tm-nbsdaout.h: Remove.
8597         * config/sparc/xm-nbsd.h: Remove.
8598
8599 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8600
8601         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8602         * sparc-tdep.c: Include osabi.h.
8603         (gdbarch_tdep): Add osabi member.
8604         (_initialize_sparc_tdep): Use gdbarch_register.
8605         (sparc_gdbarch_init): Use generic OS ABI framework.
8606         (sparc_dump_tdep): New function.
8607
8608 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8609
8610         * corefile.c (do_captured_read_memory_integer): Return non-zero
8611         result.
8612         (safe_read_memory_integer): Copy result of memory read when
8613         status is non-zero.  Also, add comments.
8614
8615 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8616
8617         * Makefile.in (ppc_tdep_h): Define.
8618         (ppc-linux-nat.o)
8619         (ppc-linux-tdep.o)
8620         (rs6000-tdep.o): Use $(ppc_tdep_h).
8621         (ppc-sysv-tdep.o)
8622         (ppcnbsd-nat.o)
8623         (ppcnbsd-tdep.o): New dependency lists.
8624         * ppc-tdep.h: Use generic OS ABI framework.
8625         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8626         (ppc_linux_init_abi): New functions.
8627         (ppc_sysv_abi_broken_use_struct_convention)
8628         (ppc_sysv_abi_use_struct_convention)
8629         (ppc_sysv_abi_push_arguments): Move to...
8630         * ppc-sysv-tdep.c: ...here.
8631         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8632         * rs6000-tdep.c (process_note_abi_tag_sections)
8633         (get_elfosabi): Remove.
8634         (rs6000_gdbarch_init): Use generic OS ABI framework.
8635         (rs6000_dump_tdep): New function.
8636         (_initialize_rs6000_tdep): Use gdbarch_register.
8637         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8638         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8639         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8640         of ppc-linux-tdep.o.
8641         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8642         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8643         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8644         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8645         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8646         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8647
8648 2002-05-29  Jim Blandy  <jimb@redhat.com>
8649
8650         * macroscope.c (default_macro_scope): Put `void' in empty argument
8651         list.
8652
8653 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8654
8655         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8656         * arch-utils.c: Include "sim-regno.h".
8657         * gdbarch.sh: Don't include "sim-regno.h".
8658         * gdbarch.h, gdbarch.c: Regenerate.
8659         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8660         here.
8661         * arch-utils.h (legacy_register_sim_regno): To here.
8662         * remote-sim.c (legacy_register_sim_regno): Move function from
8663         here.
8664         * arch-utils.c (legacy_register_sim_regno): To here.
8665
8666 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8667
8668         * sim-regno.h: New file.
8669         * Makefile.in (sim_regno_h): Define.
8670         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8671         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8672         (legacy_register_sim_regno): New function.
8673         (one2one_register_sim_regno): New function.
8674         (gdbsim_fetch_register): Rewrite.
8675         (gdbsim_store_register): Only store a register when
8676         REGISTER_SIM_REGNO is valid.
8677         * d10v-tdep.c: Include "sim-regno.h".
8678         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8679         (d10v_ts3_register_sim_regno): Ditto.
8680         * gdbarch.sh: Include "sim-regno.h".
8681         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8682         * gdbarch.h, gdbarch.c: Regenerate.
8683         * arch-utils.h (default_register_sim_regno): Delete declaration.
8684         * arch-utils.c (default_register_sim_regno): Delete function.
8685
8686 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8687
8688         * ppcnbsd-nat.c: Rewrite.
8689         * ppcnbsd-tdep.c: New file.
8690         * ppcnbsd-tdep.h: New file.
8691         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8692         solib.o, and solib-svr4.o.
8693         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8694         nbsd-tdep.o, and corelow.o.
8695
8696 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8697
8698         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8699         `tr' and `sed'.  Mention that `broken' targets are not expected to
8700         build.
8701
8702 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8703
8704         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8705         Let PC point right after the prologue before looking up symbols.
8706         
8707 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8708
8709         * i386-tdep.c (i386_register_virtual_type): Return 
8710         builtin_type_vec128i for SSE registers.
8711
8712         * gdbtypes.h (builtin_type_vec128i): Declare.
8713
8714         * gdbtypes.c (build_builtin_type_vec128i): New function.
8715         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8716         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8717         (build_gdbtypes): Initialize new builtin vector types.
8718         (_initialize_gdbtypes): Register new vector types with gdbarch.
8719
8720 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8721
8722         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8723         since it has been multi-arch'd.
8724         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8725         Move Alpha and VAX multi-arch news entries to same section
8726         as other multi-arch news.
8727
8728 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8729
8730         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8731         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8732         static.  Rename some register numbers to put them in ns32k-tdep
8733         private namespace.
8734         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8735         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8736         functions.
8737         (_initialize_ns32k_tdep): Use gdbarch_register.
8738         * ns32k-tdep.h: New file.
8739         * ns32knbsd-tdep.c: New file.
8740         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8741         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8742         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8743         REGISTER_BYTES, REGISTER_BYTE): Remove.
8744         * config/ns32k/tm-ns32k.h: New file.
8745         * config/ns32k/tm-umax.h: Remove.
8746
8747 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8748
8749         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8750         ns32k_store_struct_return, ns32k_extract_return_value,
8751         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8752         functions.
8753         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8754         ns32k_saved_pc_after_call.
8755         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8756         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8757         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8758         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8759         ns32k_extract_struct_value_address.
8760
8761 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8762
8763         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8764         ns32k_fix_call_dummy): New.
8765         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8766         ns32k_call_dummy_words.
8767         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8768         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8769         CALL_DUMMY_NARGS): Remove.
8770         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8771
8772 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8773
8774         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8775         ns32k_frame_saved_pc, ns32k_frame_args_address,
8776         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8777         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8778         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8779         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8780         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8781         (BREAKPOINT): Remove..
8782         (FRAME_CHAIN): Define as ns32k_frame_chain.
8783         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8784         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8785         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8786         (FRAME_FIND_SAVED_REGS): Remove.
8787         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8788         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8789         (POP_FRAME): Define as ns32k_pop_frame.
8790
8791 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8792
8793         * ns32k-tdep.c (ns32k_register_byte_32082,
8794         ns32k_register_byte_32382, ns32k_register_raw_size,
8795         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8796         functions.
8797         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8798         ns32k_register_byte_32382.
8799         * config/ns32k/tm-umax.h: Update copyright years.
8800         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8801         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8802         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8803         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8804         (ns32k_get_enter_addr): Fix prototype.
8805
8806 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8807
8808         * ns32k-tdep.c: Update copyright years.
8809         (ns32k_register_name_32082): New function.
8810         (ns32k_register_name_32382): Ditto.
8811         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8812         (REGISTER_NAME): Define as ns32k_register_name_32382.
8813         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8814         (REGISTER_NAME): Define as ns32k_register_name_32082.
8815
8816 2002-05-24  Jim Blandy  <jimb@redhat.com>
8817
8818         * dwarf2read.c (free_line_header): Use xfree, not free.
8819
8820 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
8821
8822         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8823         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8824
8825 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8826
8827         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8828
8829 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8830
8831         From Ross Alexander at NEC Europe:
8832         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8833
8834 2002-05-23  Michael Snyder  <msnyder@redhat.com>
8835
8836         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8837         for input, rather than parse_and_eval_address.  
8838
8839 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8840
8841         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8842         * Makefile.in (sim_d10v_h): Update definition.
8843
8844 2002-05-24  Andrew Cagney  <cagney@redhat.com>
8845
8846         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8847         change `2002-05-22 Michael Snyder' below.
8848         (d10v_push_arguments): Ditto.
8849         (d10v_extract_return_value): Ditto.
8850
8851 2002-05-23  Jim Blandy  <jimb@redhat.com>
8852
8853         * macrotab.c (check_for_redefinition): Don't complain if the new
8854         definition is the same as the previous one.  Take more arguments
8855         to allow the comparison.
8856         (macro_define_object, macro_define_function): Pass more arguments
8857         to check_for_redefinition.
8858
8859 2002-05-22  Michael Snyder  <msnyder@redhat.com>
8860
8861         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8862         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8863         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8864         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8865         Don't bail if return_pc is PC_IN_CALL_DUMMY.
8866         Add a temp variable to save a call (and a memory read).
8867         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8868         if possible (so that PC_IN_CALL_DUMMY will work).
8869
8870 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
8871
8872         * MAINTAINERS: Remove status `OBSOLETE' from v850.
8873
8874 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
8875
8876         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8877         fde->cie_ptr.
8878         (dwarf2_build_frame_info): Corrected handling of eh_frame.
8879         (dwarf2_build_frame_info): Add offset to fde->initial_location 
8880         so that frames of shared libraries are mapped correctly.
8881         (execute_stack_op): Change type of 'result' from ULONGEST to
8882         CORE_ADDR.
8883         
8884 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8885
8886         * config/alpha/tm-nbsd.h: Include solib.h.
8887
8888 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8889
8890         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8891         assumptions about the host's byte order.
8892
8893 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8894
8895         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8896         to dependency list.
8897         * alphanbsd-tdep.c: Include solib-svr4.h.
8898         * shnbsd-tdep.c: Ditto.
8899
8900 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8901
8902         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8903         nbsd-tdep.h to dependency list.
8904         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8905         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8906         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8907         nbsdaout.mh and nbsdelf.mh consistently.
8908         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8909         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8910         nbsdaout.mt and nbsdelf.mh consistently.
8911         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
8912         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8913         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8914         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
8915         a.out shared library stuff from here...
8916         * config/nm-nbsdaout.h: ...to here.
8917         * config/tm-nbsd.h: Remove.
8918         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8919         * config/arm/nbsd.mh: Remove.
8920         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8921         nbsd-tdep.o.
8922         * config/arm/nbsdaout.mh: New file. 
8923         * config/arm/nbsdelf.mh: New file.
8924         * config/arm/nm-nbsdaout.h: New file.
8925         * config/i386/nbsd.mh: Remove.
8926         * config/i386/nbsd.mt: Remove.
8927         * config/i386/nbsdaout.mh: New file.
8928         * config/i386/nbsdaout.mt: New file.
8929         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8930         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8931         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
8932         i386_register_u_addr): Remove.
8933         * config/i386/nm-nbsdaout.h: New file.
8934         * config/i386/nm-nbsdelf.h: Remove.
8935         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8936         (USE_STRUCT_CONVENTION): Remove.
8937         * config/i386/tm-nbsdaout.h: New file.
8938         * config/i386/tm-nbsdelf.h: Remove.
8939         * config/m68k/nbsd.mh: Remove.
8940         * config/m68k/nbsd.mt: Remove.
8941         * config/m68k/nbsdaout.mh: New file.
8942         * config/m68k/nbsdaout.mt: New file. 
8943         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8944         * config/m68k/nm-nbsdaout.h: New file.
8945         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8946         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8947         * config/ns32k/nbsd.mh: Remove.
8948         * config/ns32k/nbsd.mt: Remove. 
8949         * config/ns32k/nbsdaout.mh: New file.
8950         * config/ns32k/nbsdaout.mt: New file.
8951         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
8952         * config/ns32k/nm-nbsdaout.h: New file.
8953         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
8954         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8955         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8956         (SVR4_SHARED_LIBS): Remove.
8957         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8958         * config/sparc/nbsd.mh: Remove.
8959         * config/sparc/nbsd.mt: Remove.
8960         * config/sparc/nbsdaout.mh: New file.
8961         * config/sparc/nbsdaout.mt: New file.
8962         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8963         * config/sparc/nbsdelf.mt: New file.
8964         * config/sparc/nm-nbsdaout.h: New file.   
8965         * config/sparc/nm-nbsdelf.h: Remove.
8966         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8967         * config/sparc/tm-nbsdaout.h: New file.
8968
8969 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8970
8971         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8972         mipsnbsd-tdep.c
8973         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8974
8975 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8976
8977         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8978         shnbsd-nat.c.
8979         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8980
8981 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8982
8983         * NEWS: Note new MIPS NetBSD native configuration. 
8984         * configure.host (mips*-*-netbsd*): New host. 
8985         * configure.tgt (mips*-*-netbsd*): New target. 
8986         * mipsnbsd-nat.c: New file.
8987         * mipsnbsd-tdep.c: New file.
8988         * mipsnbsd-tdep.h: New file.
8989         * config/mips/nbsd.mh: New file.
8990         * config/mips/nbsd.mt: New file.
8991         * config/mips/nm-nbsd.h: New file.
8992         * config/mips/tm-nbsd.h: New file.
8993
8994 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8995
8996         * Makefile.in (SFILES): Add osabi.c.
8997         (COMMON_OBS): Add osabi.o.
8998         (osabi.o): New dependency list.
8999         * osabi.c: New file.
9000         * osabi.h: New file.
9001         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9002
9003         * Makefile.in (alpha_tdep_h): Define and use instead of
9004         alpha-tdep.h.
9005         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9006         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9007         Remove.
9008         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9009         * alpha-tdep.h: Include osabi.h.
9010         (alpha_abi): Remove.
9011         (gdbarch_tdep): Use generic OS ABI framework.
9012         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9013         gdbarch_register_osabi.
9014         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9015         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9016         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9017
9018         * Makefile.in (sh_tdep_h): Add osabi.h.
9019         * sh-tdep.h (sh_osabi): Remove.
9020         (gdbarch_tdep): Use generic OS ABI framework.
9021         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9022         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9023         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9024         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9025
9026         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9027         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9028         gdbarch_register_osabi.
9029         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9030         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9031         (get_elfosabi): Rename to...
9032         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9033         ABI framework support routines.
9034         (arm_gdbarch_init): Use generic OS ABI framework.
9035         (arm_dump_tdep): Likewise.
9036         (_initialize_arm_tdep): Likewise.
9037         * arm-tdep.h: Include osabi.h.
9038         (arm_abi): Remove.
9039         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9040         osabi member.
9041         (arm_gdbarch_register_os_abi): Remove prototype.
9042         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9043         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9044
9045         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9046         * mips-tdep.c: Include osabi.h.
9047         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9048         OS ABI framework.
9049
9050 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9051
9052         * h8300-tdep.c: Fix formatting.
9053
9054 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9055
9056         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9057         printing vector registers.
9058
9059 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9060
9061         From Fernando Nasser:
9062         * remote.c (remote_async_open_1): Re-throw the exception when the
9063         connection fails.
9064         (remote_cisco_open): Ditto.
9065         (remote_open_1): Ditto.
9066
9067 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9068
9069         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9070         (remote_start_remote): Add uiout parameter.  Pass through to
9071         remote_start_remote_dummy.
9072         (remote_open_1): Use catch_exception instead of catch_errors.
9073         (remote_async_open_1): Ditto.
9074         (remote_cisco_open): Ditto.
9075
9076 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9077
9078         * remote.c (remote_start_remote): Replace PTR with void pointer.
9079         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9080         static.
9081
9082 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9083
9084         * gdb_indent.sh: Allow the script to be run in the sim directory.
9085
9086 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9087
9088         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9089         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9090
9091         * corelow.c (core_open): Only call set_gdbarch_from_file if
9092         exec_bfd is NULL.
9093
9094 2002-05-17  Andrey Volkov <avolkov@transas.com>
9095
9096         * h8300-tdep.c: Add support of EXR register
9097         * config/h8300/tm-h8300.h: Ditto. 
9098         
9099 2002-05-17  Andrey Volkov <avolkov@transas.com>
9100
9101         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9102         
9103 2002-05-17  Andrey Volkov <avolkov@transas.com>
9104
9105         * h8300-tdep.c: Change literal regnums to REGNO.
9106         
9107 2002-05-17  Jim Blandy  <jimb@redhat.com>
9108
9109         * NEWS: Note addition of macro support.
9110
9111         Expand preprocessor macros in C expressions.
9112         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9113         (scan_macro_expansion, scanning_macro_expansion,
9114         finished_macro_expansion): New function declarations.
9115         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9116         variable declarations.
9117         * parser-defs.h (expression_context_pc): New declaration.
9118         * parse.c (expression_context_pc): New variable.
9119         (parse_exp_1): Set expression_context_pc, as well as
9120         expression_context_block.
9121         * c-exp.y (yylex): If we're not already reading the result of a
9122         macro expansion, try to macro-expand the next token.  When we're
9123         done scanning a macro expansion, switch back to the mainline text.
9124         Commas and `if's in a macro's expansion don't terminate the input.
9125         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9126         (macro_original_text, macro_expanded_text,
9127         expression_macro_lookup_func, expression_macro_lookup_baton): New
9128         variables.
9129         (scan_macro_expansion, scanning_macro_expansion,
9130         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9131         c_preprocess_and_parse): New functions.
9132         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9133         c_preprocess_and_parse, instead of c_parse.
9134         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9135         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9136
9137 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9138
9139         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9140         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9141         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9142
9143 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9144
9145         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9146
9147 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9148
9149         * Makefile.in (sh_tdep_h): Define and use.
9150         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9151         register enum): Move to...
9152         * * sh-tdep.h: ...here.
9153         * sh-tdep.c: Include sh-tdep.h.
9154         * sh3-rom.c: Likewise.
9155         * shnbsd-tdep.c: Likewise.
9156
9157 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9158
9159         * arm-tdep.c: Spelling fix in comment.
9160
9161 2002-05-16  Jim Blandy  <jimb@redhat.com>
9162
9163         Add commands for manually expanding macros and showing their
9164         definitions.
9165         * macrocmd.c, macroscope.c, macroscope.h: New files.
9166         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9167         (macroscope_h): New variable.
9168         (HFILES_NO_SRCDIR): Add macroscope.h.
9169         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9170         (macroscope.o, macrocmd.o): New rules.
9171
9172         Teach the Dwarf 2 reader to read macro information.
9173         * dwarf2read.c: #include "macrotab.h".
9174         (dwarf_macinfo_buffer): New variable.
9175         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9176         dwarf_macinfo_size.
9177         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9178         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9179         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9180         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9181         dwarf2_macro_spaces_in_definition): New complaints.
9182         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9183         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9184         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9185         the partial symbol table.
9186         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9187         from what's recorded in the partial symbol table.
9188         (read_file_scope): If the compilation unit has a
9189         `DW_AT_macro_info' attribute, read its macro information.
9190         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9191
9192 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9193
9194         Fix PR gdb/546
9195         * ser-tcp.c: Don't include <netinet/udp.h>.
9196
9197 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9198
9199         * MAINTAINERS: Update my email address.
9200
9201 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9202
9203         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9204         include file of the same name.
9205
9206 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9207
9208         * configure.tgt: Mark v850 as multi-arched.
9209         * config/v850/tm-v850.h: Remove file.
9210         * config/v850/v850.mt: Eliminate TM_FILE.
9211
9212 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9213
9214         * v850-tdep.c: Full multi-arch.
9215         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9216         Define GDB_MULTI_ARCH to 2.
9217
9218 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9219
9220         * p-exp.y (current_type): New static variable.
9221         Carries the type of the expression at the position that is parsed.
9222         (push_current_type, pop_current_type): Two new functions. Used
9223         to store/restore current_type in expression on specific tokens.
9224         (search_field): New static variable. Set to one after parsing a point
9225         as at that point only a FIELDNAME token should be searched.
9226         (FIELDNAME): New token. After a point only a token belonging to 
9227         current_type type definition is allowed.
9228         (all over token rules): reset and change current_type according
9229         to rules.
9230         (exp '[' rule): insert implicit array index field if
9231         exp is a pascal string type.
9232
9233 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9234
9235         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9236         frame info.  Use frame_info's saved_regs instead of matching member
9237         in extra_frame_info throughout.
9238         (v850_frame_init_saved_regs): New function.
9239         (v850_init_extra_frame_info): Move most functionality into
9240         v850_frame_init_saved_regs().
9241         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9242         (v850_frame_find_saved_regs): Remove declaration.
9243         (FRAME_FIND_SAVED_REGS): Remove definition.
9244         (v850_frame_init_saved_regs): Add declaration.
9245         (FRAME_INIT_SAVED_REGS): Add definition.
9246
9247 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9248
9249         * v850-tdep.c: Begin multi-arch'ing v850.
9250         (v850_target_architecture_hook): Remove function.
9251         (v850_gdbarch_init): New function.  Add code previously in
9252         v850_target_architecture_hook().
9253         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9254         Call register_gdbarch_init() instead.
9255
9256 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9257
9258         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9259         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9260         (fixup_class_method_type): Likewise.
9261
9262 2002-05-15  Jim Blandy  <jimb@redhat.com>
9263
9264         Add macro structures to GDB's symbol tables.  Nobody puts anything
9265         in them yet.
9266         * symtab.h (struct symtab): New member: `macro_table'.
9267         * buildsym.h (pending_macros): New global variable.
9268         * buildsym.c: #include "macrotab.h".
9269         (buildsym_init): Initialize `pending_macros'.
9270         (end_symtab): If we found macro information while reading a CU's
9271         debugging info, do build a symtab structure for it.  Make the
9272         symtab point to the macro information, and clear the
9273         `pending_macros' pointer which held it while we were reading the
9274         debug info.
9275         (really_free_pendings): Free any pending macro table.
9276         * objfiles.h (struct objfile): New member: `macro_cache'.
9277         * objfiles.c (allocate_objfile): Set allocate and free functions
9278         for the macro cache's objstack.
9279         (free_objfile): Empty the macro cache's obstack.
9280         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9281         set new allocate and free functions for it.
9282         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9283         free functions for the macro cache's objstack.  (Why is this
9284         function building its own objfile?)
9285         * symmisc.c (print_objfile_statistics): Print statistics on the
9286         macro bcache.
9287         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9288
9289 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9290
9291         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9292         (REGISTER_U_ADDR): Delete definition.
9293         (arm_register_u_addr): Delete declaration.
9294
9295 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9296
9297         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9298         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9299
9300 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9301
9302         * regcache.c (register_valid): Revise comments refering to "Not
9303         available" and "unavailable".
9304         * frame.c (frame_register_read): Ditto.
9305         * findvar.c (value_of_register): Ditto.
9306
9307 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9308
9309         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9310         (remote-sim.o): Update dependencies.
9311         (d10v-tdep.o): Specify dependencies.
9312         (sim_d10v_h): Define.
9313
9314 2002-05-14  Jim Blandy  <jimb@redhat.com>
9315
9316         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9317         * macrotab.c (macro_lookup_inclusion, find_definition,
9318         new_macro_table): Same.
9319         
9320         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9321         not `! strcmp ()'.  This is a dubious improvement.
9322         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9323
9324         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9325         although it's not necessary, to avoid a warning.
9326
9327 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9328
9329         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9330         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9331         TYPE_INSTANCE_FLAGS.
9332         (struct main_type): New.
9333         (struct type): Move most members to struct main_type.  Change
9334         cv_type and as_type to new type_chain member.  Add instance_flags.
9335         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9336         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9337         (finish_cv_type): Remove prototype.
9338         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9339         Set TYPE_CHAIN.
9340         (alloc_type_instance): New function.
9341         (smash_type): New function.
9342         (make_pointer_type, make_reference_type, make_function_type)
9343         (smash_to_member_type, smash_to_method_type): Call smash_type.
9344         (make_qualified_type): New function.
9345         (make_type_with_address_space): Call make_qualified_type.
9346         (make_cv_type): Likewise.
9347         (finish_cv_type): Remove unnecessary function.
9348         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9349         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9350         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9351         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9352         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9353         * hpread.c (hpread_read_struct_type): Likewise.
9354         * stabsread.c (read_struct_type): Likewise.
9355
9356 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9357
9358         * configure.tgt: Add a catch all sh* target, for cases like
9359         sh[2,3,4]-elf and sh-hms.
9360
9361 2002-05-14  Keith Seitz  <keiths@redhat.com>
9362
9363         * event-loop.c (create_file_handler): Don't do anything but
9364         update data when we are given a fd which we are already
9365         monitoring.
9366
9367 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9368
9369         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9370         (update_context): Use __func__ in warnings.
9371         
9372 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9373
9374         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9375         and tcp_close to net_open and net_close.
9376         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9377         using UDP if requested.  Don't try to disable Nagle on UDP
9378         sockets.
9379         * remote.c (remote_serial_open): New function.  Warn about UDP.
9380         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9381
9382 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9383
9384         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9385
9386 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9387
9388         * configure.tgt: Remove sh-hms target.
9389         * MAINTAINERS: Don't list sh-hms as a separate target.
9390
9391 2002-05-13  Jim Blandy  <jimb@redhat.com>
9392
9393         Add first preprocessor macro-expansion files.
9394         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9395         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9396         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9397         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9398         (COMMON_OBS): Add macrotab.o, macroexp.o.
9399         (macroexp.o, macrotab.o): New rules.
9400
9401 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9402
9403         * config/m88k/tm-m88k.h: Update copyright.
9404         (m88k_target_write_pc): Declare
9405         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9406         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9407         (SHIFT_INST_REGS): Update definition.
9408         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9409         using old definition of TARGET_WRITE_PC.
9410         * regcache.c (generic_target_write_pc): Delete code handling
9411         NNPC_REGNUM.
9412         * gdbarch.sh (NNPC_REGNUM): Delete.
9413         * gdbarch.h, gdbarch.c: Regenerate.
9414
9415 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9416
9417         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9418         builtin reg number.
9419
9420 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9421
9422         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9423         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9424         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9425         access macros.
9426         * c-typeprint.c (cp_type_print_method_args): Likewise.
9427         (c_type_print_args): Likewise.
9428         * d10v-tdep.c (d10v_push_arguments): Likewise.
9429         (d10v_extract_return_value): Likewise.
9430         * expprint.c (print_subexp): Likewise.
9431         * gdbtypes.c (lookup_primitive_typename): Likewise.
9432         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9433         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9434         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9435         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9436         (TYPE_VECTOR): Likewise.
9437         * hpread.c (hpread_read_struct_type)
9438         (fix_static_member_physnames, fixup_class_method_type)
9439         (hpread_type_lookup): Likewise.
9440         * mdebugread.c (parse_symbol, parse_type): Likewise.
9441         * p-lang.c (is_pascal_string_type): Likewise.
9442         * valops.c (hand_function_call): Likewise.
9443         * x86-64-tdep.c (classify_argument): Likewise.
9444
9445         * hpread.c (hpread_read_function_type)
9446         (hpread_read_doc_function_type): Call replace_type.
9447         * dstread.c (create_new_type): Delete.
9448         (decode_dst_structure, process_dst_function): Call alloc_type.
9449         Use type access macros.
9450
9451 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9452
9453         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9454         the're not supported by the current architecture.
9455         (i387_fill_fxsave): Likewise.
9456
9457 2002-05-12  Fred Fish  <fnf@redhat.com>
9458
9459         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9460         sect_index_xxx members to index the first slot in section_offsets
9461         if all of the section_offsets are zero.
9462
9463 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9464
9465         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9466         checked in with last change.
9467
9468 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9469
9470         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9471         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9472         config.sub.
9473
9474 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9475
9476         * Makefile.in: Update dependencies.
9477
9478 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9479
9480         * language.c (local_hex_string_custom): Simplify.  Do not depend
9481         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9482
9483         * memattr.c (mem_info_command): Replace calls to
9484         longest_local_hex_string and longest_local_hex_string_custom.
9485         * buildsym.c (make_blockvector): Ditto.
9486         * solib.c (info_sharedlibrary_command): Ditto.
9487         * tracepoint.c (tracepoints_info): Ditto.
9488         * symtab.c (print_msymbol_info): Ditto.
9489
9490         * language.c (local_hex_string): Delete.
9491         (local_hex_string_custom): Delete.
9492         (longest_local_hex_string): Rename to local_hex_string.
9493         (longest_local_hex_string_custom): Rename to
9494         local_hex_string_custom.
9495         * language.h (local_hex_string): Change parameter type to LONGEST.
9496         (local_hex_string_custom): Ditto.
9497         (longest_local_hex_string): Delete declaration.
9498         (longest_local_hex_string_custom): Ditto.
9499
9500         * solib.c: Update copyright.
9501         * memattr.c: Update copyright.
9502         
9503 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9504
9505         * arch-utils.h (legacy_register_to_value): Declare.
9506         (legacy_value_to_register): Declare.
9507         (legacy_convert_register_p): Declare.
9508         * arch-utils.c (legacy_register_to_value): New function.
9509         (legacy_value_to_register): New function.
9510         (legacy_convert_register_p): New function.
9511
9512         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9513         (VALUE_TO_REGISTER): Define.
9514         (CONVERT_REGISTER_P): Define.
9515         * gdbarch.h, gdbarch.c: Regenerate.
9516
9517         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9518         VALUE_TO_REGISTER.
9519         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9520         CONVERT_REGISTER_P.
9521
9522 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9523             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9524
9525         * Makefile.in: Update dependencies for valops.c.
9526         * valops.c: Include "gdb_assert.h".
9527         (typecmp): Skip THIS parameter to methods.
9528         (find_method_list): Remove static_memfuncp argument,
9529         update callers.  Check for stub methods.
9530         (find_value_oload_method_list): Don't set *static_memfuncp.
9531         (find_overload_match): Don't check for stub methods.  Assert
9532         that methods are not stubbed.  Handle static methods.
9533         (value_find_oload_method_list): Remove static_memfuncp argument.
9534         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9535         to the argument list for static stub methods.
9536         * value.h (value_find_oload_method_list): Update prototype.
9537
9538 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9539
9540         * arch-utils.h (generic_register_size): Declare.
9541         (generic_register_raw_size, generic_register_virtual_size): Delete
9542         declarations.
9543         * arch-utils.c (generic_register_raw_size): Delete.
9544         (generic_register_size): New function.
9545         (generic_register_virtual_size): Delete.
9546
9547         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9548         default generic_register_size.
9549         * gdbarch.h, gdbarch.c: Re-generate.
9550         
9551         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9552         register_virtual_size.
9553         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9554         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9555
9556 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9557
9558         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9559         * gdbarch.h, gdbarch.c: Regenerate.
9560         * gnu-v3-abi.c: Update copyright.
9561         (vtable_address_point_offset): Update.
9562         (gnuv3_rtti_type): Update.
9563         (gnuv3_baseclass_offset): Update.
9564         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9565         (init_fetch_link_map_offsets): Update.
9566         * remote.c (get_remote_state): Update.
9567         
9568 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9569
9570         * TODO: Remove value_headof/value_from_vtable_info comment.
9571         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9572         * values.c (value_headof, value_from_vtable_info): Delete.
9573         * value.h (value_from_vtable_info): Delete prototype.
9574
9575 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9576
9577         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9578         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9579         $(gdb_regex_h).
9580         (gdb_assert_h): Define.
9581         (gdb_wait_h): Define.
9582         (gdb_regex_h): Define.
9583
9584 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9585
9586         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9587         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9588
9589 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9590
9591         * nbsd-tdep.c: Fix comment.
9592
9593 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9594
9595         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9596         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9597         (nbsd-tdep.o): New dependency list.
9598         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9599         nbsd-tdep.h.
9600         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9601         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9602         * nbsd-tdep.c: New file.
9603         * nbsd-tdep.h: New file.
9604         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9605         nbsd-tdep.h.
9606         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9607         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9608         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9609         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9610
9611 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9612
9613         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9614         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9615         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9616         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9617         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9618         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9619
9620 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9621
9622         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9623         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9624         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9625         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9626         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9627         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9628         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9629
9630 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9631
9632         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9633         fetch_elfcore_registers to...
9634         * i386nbsd-tdep.c: ...here.
9635         (i386nbsd_use_struct_convention): Rename to...
9636         (i386nbsd_aout_use_struct_convention): ...this.
9637         (i386nbsd_supply_reg): New function.
9638         (i386nbsd_fill_reg): New function.
9639         (fetch_core_registers): Use i386nbsd_supply_reg.
9640         (fetch_elfcore_registers): Likewise.
9641         (_initialize_i386nbsd_tdep): New function.
9642         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9643         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9644         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9645         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9646         (i386nbsd_aout_use_struct_convention): ...this.
9647
9648 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9649
9650         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9651         (store_inferior_registers): Use shnbsd_fill_reg.
9652         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9653         sh_nbsd_supply_register): Collapse into...
9654         (shnbsd_supply_reg): ...this.
9655         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9656         (shnbsd_fill_reg): ...this.
9657         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9658         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9659         (fetch_core_registers): Use shnbsd_supply_reg.
9660         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9661         (sh_nbsd_core_fns): Rename to...
9662         (shnbsd_core_fns): ...this.
9663         (sh_nbsd_elfcore_fns): Rename to...
9664         (shnbsd_elfcore_fns): ...this.
9665         (sh_nbsd_init_abi): Rename to...
9666         (shnbsd_init_abi): ...this.
9667         (_initialize_sh_nbsd_tdep): Rename to...
9668         (_initialize_shnbsd_tdep): ...this.
9669         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9670         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9671         sh_nbsd_fill_register): Remove prototypes.
9672         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9673
9674 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9675
9676         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9677         (i387-nat.o): Delete dependency list.
9678         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9679         (x86-64-linux-nat.o): Likewise.
9680         * i387-nat.c: Delete file, moving contents to...
9681         * i387-tdep.c: ...here.
9682         * i387-nat.h: Rename...
9683         * i387-tdep.h: ...to this.
9684         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9685         * i386-linux-nat.c: Likewise.
9686         * i386bsd-nat.c: Likewise.
9687         * i386gnu-nat.c: Likewise.
9688         * i386nbsd-nat.c: Likewise.
9689         * i386v4-nat.c: Likewise.
9690         * x86-64-linux-nat.c: Likewise.
9691         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9692         * config/i386/go32.mh (NATDEPFILES): Likewise.
9693         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9694         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9695         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9696         * config/i386/linux.mh (NATDEPFILES): Likewise.
9697         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9698         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9699         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9700         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9701
9702 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9703
9704         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9705         (alphanbsd-nat.o): Remove dependency list.
9706         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9707         * alphanbsd-nat.c: Delete.  Contents moved to...
9708         * alphanbsd-tdep.c: ...here.
9709         (_initialize_alphanbsd_tdep): Register core functions.
9710         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9711
9712 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9713
9714         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9715         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9716         (alphanbsd-nat.o): Likewise.
9717         (alphabsd-tdep.o): New dependency list.
9718         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9719         (fill_gregset): Use alphabsd_fill_reg.
9720         (supply_fpregset): Use alphabsd_supply_fpreg.
9721         (fill_fpregset): Use alphabsd_fill_fpreg.
9722         (fetch_inferior_registers): Use struct reg and struct fpreg
9723         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9724         and alphabsd_supply_fpreg.
9725         (store_inferior_registers): Use struct reg and struct fpreg
9726         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9727         and alphabsd_fill_fpreg.
9728         * alphabsd-tdep.c: New file.
9729         * alphabsd-tdep.h: New file.
9730         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9731         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9732         alphabsd_supply_fpreg.
9733         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9734         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9735
9736 2002-05-11  Eric Christopher  <echristo@redhat.com>
9737
9738         * mips-tdep.c (mips_double_register_type): Fix thinko.
9739         (mips_single_register_type): Ditto.
9740         * MAINTAINERS: Add self.
9741
9742 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9743
9744         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9745         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9746         right thing on architectures with different endianness and/or
9747         integer sizes.
9748
9749 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9750
9751         From Christian Limpach <chris@Pin.LU>
9752         * configure.in: Change sed expression which comments out
9753         NATDEPFILES to also comment out continuation lines.
9754         * configure: Regenerate.
9755
9756 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9757
9758         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9759         big patch.
9760
9761 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9762
9763         * sh-tdep.c: Include correct file.
9764
9765 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9766
9767         New support for sh64-elf (sh5) target.
9768
9769         * configure.tgt: For sh64-elf target, default to sh-elf.
9770
9771         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9772         (struct gdbarch_tdep): Add new fields for new registers and ABI
9773         info.
9774
9775         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9776         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9777         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9778         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9779         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9780         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9781         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9782         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9783         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9784         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9785         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9786         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9787         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9788         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9789         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9790         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9791         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9792         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9793         sign_extend, sh64_nofp_frame_init_saved_regs,
9794         sh64_init_extra_frame_info, sh64_get_saved_register,
9795         sh64_extract_struct_value_address, sh64_pop_frame,
9796         sh64_push_arguments, sh64_extract_return_value,
9797         sh64_store_return_value, sh64_show_media_regs,
9798         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9799         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9800         sh_sh64_register_virtual_type,
9801         sh_sh64_register_convert_to_virtual,
9802         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9803         sh64_register_read, sh64_pseudo_register_write,
9804         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9805         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9806         sh64_do_pseudo_register, sh_compact_do_registers_info,
9807         sh64_do_registers_info, sh_gdbarch_init): New functions.
9808
9809 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9810
9811         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9812
9813 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
9814
9815         * linespec.c (decode_line_1): Check for a double quote after
9816         a filename correctly.
9817
9818 2002-05-10  Jim Blandy  <jimb@redhat.com>
9819
9820         Properly track the size of the current objfile's .debug_line section.
9821         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9822         (DWARF_LINE_SIZE): New macro.
9823         (dwarf2_build_psymtabs_hard): Record the line section's size in
9824         the partial symbol table.
9825         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9826         symbol table.
9827
9828 2002-05-10  Petr Sorfa  <petrs@caldera.com>
9829
9830         * ia64-tdep.c: Handle breakpoints on L instruction type
9831         in MLX instruction bundle by moving the breakpoint to
9832         the third slot (X instruction type) as L holds only data.
9833
9834 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
9835
9836         * dbxread.c (discarding_local_symbols_complaint): New complaint.
9837         (process_one_symbol): Complain about discarding local symbols
9838         due to a misplaced N_LBRAC entry.
9839
9840 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
9841
9842         From Daniel Berlin <dan@cgsoftware.com>
9843         * linespec.c (find_toplevel_char): '<' and '>' also increase and
9844         decrease the depth we are at, in the case of templates.
9845
9846 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9847
9848         * mips-tdep.c (mips_float_register_type): New function.
9849         (mips_double_register_type): New function.
9850         (mips_print_register): Use them.
9851         (do_fp_register_row): Likewise.
9852
9853 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9854
9855         * signals/signals.c (signals): Remove conditional compilation around
9856         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
9857         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9858
9859 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9860
9861         * remote-rdp.c (remote_rdp_can_run): Remove.
9862
9863 2002-05-09  Tom Tromey  <tromey@redhat.com>
9864
9865         * jv-valprint.c (java_val_print): Handle `char' as a special case
9866         of TYPE_CODE_INT.
9867
9868 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9869
9870         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9871         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9872         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9873         str r(0123),[sp,#nn].
9874         (arm_skip_prologue): Ditto.  Also make disassembly
9875         order-independent by placing it in a loop.
9876
9877 2002-05-06  Michael Snyder  <msnyder@redhat.com>
9878
9879         * stabsread.c (read_type): Add recognition for new attribute:
9880         "@V;" means that an array type is actually a vector.
9881         This is analogous to the vector flag that's been added to dwarf2.
9882
9883 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
9884
9885         * i386-tdep.h (i386_abi): New enum.
9886         (struct gdbarch_tdep): Replace os_ident member with abi.
9887         (i386_gdbarch_register_os_abi): New prototype.
9888         * i386-tdep.c (i386_abi_names): New array.
9889         (process_note_abi_tag_sections): Removed.
9890         (process_note_sections): New function.
9891         (i386_elf_abi_from_note, i386_elf_abi): New functions.
9892         (struct i386_abi_handler): New struct.
9893         (i386_abi_handler_list): New variable.
9894         (i386_gdbarch_register_os_abi): New function.
9895         (i386_gdbarch_init): Adapt for the changes given above.
9896
9897 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
9898
9899         * gregset.h: Say "GNU/Linux".
9900
9901 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
9902
9903         * gdbtypes.c : Add new builtin type for 64 bit vectors.
9904         (build_gdbtypes): Build builtin_type_v2_float.
9905         (_initialize_gdbtypes): Register new builtin type.
9906
9907 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
9908
9909         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9910         (clear_gdbarch_swap): New function.
9911         (initialize_non_multiarch): Call.
9912         (gdbarch_update_p): Before calling init(), swap out and clear the
9913         existing architecture.
9914         * gdbarch.c: Regenerate.
9915
9916 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9917
9918         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9919         alphanbsd-tdep.c.
9920
9921 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9922
9923         * sh-nbsd-nat.c: Rename to...
9924         * shnbsd-nat.c: ...this.
9925         * sh-nbsd-tdep.c: Rename to...
9926         * shnbsd-tdep.c: ...this.
9927         * sh-nbsd-tdep.h: Rename to...
9928         * shnbsd-tdep.h: ...this.
9929         * config/sh/nbsd.mh: Use shnbsd-nat.o.
9930         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9931
9932 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
9933
9934         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9935         concatenation for command help messages.
9936
9937 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9938
9939         * NEWS: Note new sh*-*-netbsdelf* configuration.
9940         * configure.host: Set gdb_host_cpu to sh for all sh*.
9941         (sh*-*-netbsdelf*): New host.
9942         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9943         (sh*-*-netbsdelf*): New target.
9944         * sh-nbsd-nat.c: New file.
9945         * sh-nbsd-tdep.c: New file.
9946         * sh-nbsd-tdep.h: New file.
9947         * config/sh/nbsd.mh: New file.
9948         * config/sh/nbsd.mt: New file.
9949         * config/sh/nm-nbsd.h: New file.
9950         * config/sh/tm-nbsd.h: New file.
9951
9952 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9953
9954         * sh-tdep.c (sh_osabi_names): Declare.
9955         (process_note_abi_tag_sections): New function.
9956         (get_elfosabi): Ditto.
9957         (sh_gdbarch_register_os_abi): Ditto.
9958         (sh_dump_tdep): Ditto.
9959         _initialize_sh_tdep): Use gdbarch_register to register
9960         sh_gdbarch_init and sh_dump_tdep.
9961         * config/sh/tm-sh.h (sh_osabi): Declare.
9962         (gdbarch_tdep): Add sh_osabi and osabi_name members.
9963
9964 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
9965
9966         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9967         (thumb_scan_prologue): Ditto.
9968         (arm_find_callers_reg): Ditto.
9969         (arm_frame_chain): Ditto.
9970         (arm_init_extra_frame_info): Ditto.
9971         (arm_frame_saved_pc): Ditto.
9972         (arm_pop_frame): Ditto.
9973         (arm_push_return_address): New function.
9974         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9975         call_dummy_location, call_dummy_breakpoint_offset_p,
9976         call_dummy_breakpoint_offset, call_dummy_p,
9977         call_dummy_stack_adjust_p, call_dummy_words,
9978         sizeof_call_dummy_words, call_dummy_start_offset,
9979         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9980         call_dummy_address, push_return_address and push_dummy_frame for
9981         generic dummy frames.
9982
9983 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
9984
9985         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9986         size computation for alloca.
9987         (sh_fp_frame_init_saved_regs): Likewise.
9988
9989 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
9990
9991         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9992         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9993         * arm-tdep.c (arm_store_return_value): Use them.
9994         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9995         * remote-rdp.c (remote_rdp_fetch_register): Use
9996         ARM_MAX_REGISTER_RAW_SIZE.
9997         (remote_rdp_store_register): Likewise.
9998
9999 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10000
10001         * dwarf2cfi.c: Code cleanup, removed unused variables,
10002         added default labels to switch {} statements.
10003         * x86-64-tdep.c: Ditto.
10004         * x86-64-linux-nat.c: Ditto.
10005
10006 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10007
10008         * solib.h: Protect against multiple inclusion.
10009
10010 2002-05-06  Jim Blandy  <jimb@redhat.com>
10011
10012         Add first preprocessor macro-expansion files.
10013         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10014         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10015         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10016         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10017         (COMMON_OBS): Add macrotab.o, macroexp.o.
10018         (macroexp.o, macrotab.o): New rules.
10019
10020         Separate the job of reading the line number info statement program
10021         header (...expialidocious) out into its own function.
10022         * dwarf2read.c (struct line_head, struct filenames, struct
10023         directories): Replace with...
10024         (struct line_header): New structure, containing the full
10025         contents of the statement program header, including the
10026         include directory and file name tables.
10027         (read_file_scope): If we have line number info, instead of just
10028         calling dwarf_decode_lines to do all the work, call
10029         dwarf_decode_line_header first to get a `struct line_header'
10030         containing the data in the statement program header, and then
10031         pass that to dwarf_decode_lines, which will pick up where that
10032         left off.  Be sure to clean up the `struct line_header' object.
10033         (dwarf_decode_line_header, free_line_header, add_include_dir,
10034         add_file_name): New functions.
10035         (dwarf_decode_lines): Move all the code to read the statement
10036         program header into dwarf_decode_line_header.  Take the line
10037         header it built as the first argument, instead of the offset to
10038         the compilation unit's line number info.  Use the new `struct
10039         line_header' type instead of the old structures.  No need to do
10040         cleanups here now, since we don't allocate anything.
10041         (dwarf2_statement_list_fits_in_line_number_section,
10042         dwarf2_line_header_too_long): New complaints.
10043
10044 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10045
10046         * gdbtypes.c (init_vector_type): New function.
10047         (build_builtin_type_vec128): Simplify the representation of SIMD
10048         registers.
10049         (build_gdbtypes): Initialize new builtin vector types.
10050         (_initialize_gdbtypes): Register new vector types with gdbarch.
10051         (builtin_type_v4_float, builtin_type_v4_int32,
10052         builtin_type_v8_int16, builtin_type_v16_int8,
10053         builtin_type_v2_int32, builtin_type_v4_int16,
10054         builtin_type_v8_int8): New (renamed) SIMD types.
10055
10056 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10057
10058         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10059         (i387_fill_fxsave): Likewise.
10060
10061 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10062
10063         * alpha-tdep.c (alpha_extract_return_value): Don't use
10064         non-constant array size in prototype.
10065
10066 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10067
10068         From Brian Taylor <briant at model dot com>:
10069         * ui-out.c (ui_out_field_core_addr): Use the function
10070         longest_local_hex_string_custom'to format addresses > 32 bits
10071         wide.
10072
10073         * ui-out.c (ui_out_field_core_addr): Update comment.
10074
10075 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10076
10077         * stack.c (select_and_print_frame): Make static.  Delete the
10078         parameter `level'.
10079         (func_command): Update call.
10080         (select_frame_command): Delete code computing the frame level.
10081         * frame.h (select_and_print_frame): Delete declaration.
10082
10083 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10084
10085         * sparc-tdep.c (sparc_get_saved_register): Comment why
10086         get_prev_frame call is safe.
10087
10088 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10089
10090         * frame.h (select_frame): Delete level parameter.
10091         * stack.c (select_frame): Update.  Use frame_relative_level to
10092         obtain the frame's level.
10093         (select_and_print_frame): Update call.
10094         (select_frame_command): Ditto.
10095         (up_silently_base): Ditto.
10096         (down_silently_base): Ditto.
10097         * ocd.c (ocd_start_remote): Ditto.
10098         * remote-rdp.c (remote_rdp_open): Ditto.
10099         * remote-mips.c (mips_initialize): Ditto.
10100         (common_open): Ditto.
10101         * remote-e7000.c (e7000_start_remote): Ditto.
10102         * m3-nat.c (select_thread): Ditto.
10103         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10104         (child_get_current_exception_event): Ditto.
10105         * varobj.c (varobj_create): Ditto.
10106         (varobj_update): Ditto.
10107         (c_value_of_root): Ditto.
10108         * tracepoint.c (finish_tfind_command): Ditto.
10109         * corelow.c (core_open): Ditto.
10110         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10111         * thread.c (info_threads_command): Ditto.
10112         (switch_to_thread): Ditto.
10113         * infrun.c (normal_stop): Ditto.
10114         (restore_selected_frame): Ditto.
10115         (restore_inferior_status): Ditto.
10116         * breakpoint.c (insert_breakpoints): Ditto.
10117         (watchpoint_check): Ditto.
10118         (bpstat_stop_status): Ditto.
10119         (do_enable_breakpoint): Ditto.
10120         * blockframe.c (flush_cached_frames): Ditto.
10121         (reinit_frame_cache): Ditto.
10122
10123 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10124
10125         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10126         maintainer.
10127
10128 2002-05-04  Jim Blandy  <jimb@redhat.com>
10129
10130         * gdbtypes.c (replace_type): Doc fix.
10131
10132 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10133
10134         * valprint.c (strcat_longest): Delete commented out function.
10135         Update copyright.
10136
10137 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10138
10139         * MAINTAINERS: Mark a29k as deleted.
10140         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10141         Move new configurations to the top.
10142         * configure.tgt: Remove a29k.
10143         * config/a29k/tm-vx29k.h: Delete.
10144         * config/a29k/vx29k.mt: Delete.
10145         * config/a29k/tm-a29k.h: Delete.
10146         * config/a29k/a29k-udi.mt: Delete.
10147         * config/a29k/a29k.mt: Delete.
10148         * a29k-tdep.c: Delete.
10149         * remote-udi.c: Delete.
10150         * remote-mm.c: Delete.
10151         * remote-eb.c: Delete.
10152         * remote-adapt.c: Delete.
10153         * Makefile.in: Remove obsolete code.
10154         * config/s390/s390x.mt: Ditto.
10155         * config/s390/s390.mt: Ditto.
10156         * config/sparc/sparclynx.mh: Ditto.
10157         * config/sparc/linux.mh: Ditto.
10158         * config/pa/hppaosf.mh: Ditto.
10159         * config/pa/hppabsd.mh: Ditto.
10160         * config/ns32k/nbsd.mt: Ditto.
10161         * config/mips/vr5000.mt: Ditto.
10162         * config/m68k/sun3os4.mh: Ditto.
10163         * config/m68k/nbsd.mt: Ditto.
10164         * config/m68k/m68klynx.mh: Ditto.
10165         * config/m32r/m32r.mt: Ditto.
10166         * config/i386/x86-64linux.mt: Ditto.
10167         * config/i386/nbsdelf.mt: Ditto.
10168         * config/i386/nbsd.mt: Ditto.
10169         * config/i386/i386lynx.mh: Ditto.
10170
10171 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10172
10173         * target.c (debug_print_register): New function.  Handle oversize
10174         registers.
10175         (debug_to_fetch_registers): Call.
10176         (debug_to_store_registers): Call.
10177
10178 2002-05-03  Jim Blandy  <jimb@redhat.com>
10179
10180         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10181         (read_type): Doc fix.
10182         * gdbtypes.c (replace_type): Doc fix.
10183
10184         * stabsread.c (multiply_defined_struct): New complaint.
10185         (read_struct_type): If the type we were passed isn't empty, or
10186         incomplete, don't read the new struct type into it; complain,
10187         and return the original type unchanged.  Take a new `type_code'
10188         argument, which is the type code for the new type.
10189         (read_type): Rather than storing the type's type code here, pass
10190         it as an argument to read_struct_type, and let that take care of
10191         storing it.  That way, we don't overwrite the original type code,
10192         so read_struct_type can use it to decide whether we're overwriting
10193         something we shouldn't.
10194         (complain_about_struct_wipeout): New function.
10195
10196 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10197
10198         * gdbarch.sh: Assert that gdbarch is non-NULL.
10199         * gdbarch.c: Regenerate.
10200
10201 2002-05-03  Jason Merrill  <jason@redhat.com>
10202
10203         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10204         and return NULL.
10205
10206 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10207
10208         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10209         (x86_64_dwarf2gdb_regno_map_length),
10210         (x86_64_dwarf2_reg_to_regnum): Added.
10211         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10212         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10213         (_initialize_x86_64_tdep): Synced with the change above.
10214         (x86_64_skip_prologue): Reformulated message.
10215
10216 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10217
10218         * f-exp.y: Also use new prev_lexptr variable
10219         to improve error reporting. Based on Michael Snyder
10220         2002-04-24 dated patch to c-exp.y.
10221         * jv-exp.y: Likewise.
10222         * m2-exp.y: Likewise.
10223
10224 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10225
10226         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10227         we are dealing with vectors.
10228
10229 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10230
10231         * config/m68k/tm-nbsd.h: Obvious fix,
10232         correct machine name.
10233
10234 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10235
10236         * p-typeprint.c (pascal_type_print_base): Add support
10237         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10238
10239 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10240
10241         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10242         for fondamental pascal 'char' type.
10243
10244 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10245
10246         * p-lang.h (is_pascal_string_type): Declaration changed,
10247         new sixth argument of type char ** added.
10248         * p-lang.c (is_pascal_string_type): Implementation
10249         changed. Args length_pos, length_size, string_pos, char_size
10250         can now be NULL. New argument arrayname set to the field
10251         name of the char array. Return value set to char array
10252         field index plus one.
10253         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10254         is_pascal_string_type function.
10255
10256 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10257
10258         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10259         <cagney@redhat.com> change.
10260         * gdbarch.c: Regenerate.
10261
10262 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10263
10264         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10265         before probing for a new one.  Detect errorenous gdbarch_init
10266         functions.
10267         * gdbarch.c: Regenerate.
10268
10269 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10270
10271         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10272         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10273         * config/v850/tm-v850.h: Ditto.  Update copyright.
10274
10275 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10276
10277         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10278         current_gdbarch.
10279
10280 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10281
10282         * arm-tdep.c: Whitespace clean-ups.
10283         (arm_skip_prologue): Fix thinko; two lines
10284         should have been removed as part of 4/24 change.
10285
10286 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10287
10288         * rs6000-tdep.c: Added comment describing how fpscr register
10289         numbers were chosen.
10290
10291 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10292
10293         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10294
10295 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10296
10297         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10298         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10299         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10300
10301 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10302
10303         From Louis Hamilton <hamilton@redhat.com>:
10304         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10305         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10306         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10307         not bfd-private xcoff data, to determine wordsize.
10308         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10309
10310 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10311
10312         GDB 5.2 released from 5.2 branch.
10313
10314 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10315
10316         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10317         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10318         (x86_64_register_info_table): Added comments with register numbers.
10319
10320 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10321
10322         * rs6000-tdep.c (rs6000_extract_return_value,
10323         rs6000_store_return_value): Handle returning vectors.
10324         (rs6000_gdbarch_init): Use
10325         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10326         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10327         New function.
10328         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10329         vectors.
10330         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10331         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10332
10333 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10334
10335         * hpread.c (hpread_psymtab_to_symtab_1,
10336         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10337         with fprintf_unfiltered (gdb_stderr,...).
10338
10339 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10340
10341         * remote-array.c (printf_monitor, write_monitor,
10342         array_insert_breakpoint, array_remove_breakpoint ):
10343         Replace fprintf (stderr,...
10344         with fprintf_unfiltered (gdb_stderr,....
10345         * remote-es.c: Likewise.
10346         * remote-os9k.c: Likewise.
10347         * remote-st.c: Likewise.
10348
10349 2002-04-28  Andreas Schwab  <schwab@suse.de>
10350
10351         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10352         linux-proc.o and gcore.o.
10353
10354 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10355
10356         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10357         code without frame pointers.
10358
10359 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10360
10361         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10362         ON_STACK is needed.
10363
10364 2002-04-26  Ben Elliston  <bje@redhat.com>
10365
10366         * target.c (do_xfer_memory): Correct reference to the new option
10367         "trust-readonly-sections".
10368
10369 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10370
10371         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10372         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10373         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10374         vectors.
10375         (read_array_type): Record the fact that this array type is really a
10376         vector (i.e. are passed in by value).
10377
10378 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10379
10380         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10381         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10382         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10383         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10384         * alpha-linux-tdep.c: Include frame.h.
10385         (alpha_linux_sigcontext_addr): New function.
10386         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10387         alpha_linux_sigcontext_addr.
10388         * alpha-osf1-tdep.c: Include gdbcore.h.
10389         (alpha_osf1_sigcontext_addr): New function.
10390         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10391         alpha_osf1_sigcontext_addr.
10392         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10393         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10394
10395 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10396
10397         * stack.c (selected_frame_level):
10398         (select_frame): Do not set selected_frame_level.
10399         * frame.h (selected_frame_level): Delete declaration.
10400
10401 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10402
10403         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10404         convert_from_func_ptr-addr when AIX / PowerOpen.
10405
10406 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10407
10408         * valops.c (hand_function_call): Call
10409         generic_save_call_dummy_addr.
10410         * frame.h (generic_save_call_dummy_addr): Declare.
10411         * blockframe.c (struct dummy_frame): Add fields call_lo and
10412         call_hi.
10413         (generic_find_dummy_frame): Check for PC in range call_lo to
10414         call_hi instead of entry_point_address.
10415         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10416         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10417         (generic_save_call_dummy_addr): New function.
10418
10419 2002-04-24  David S. Miller  <davem@redhat.com>
10420
10421         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10422         sparc_skip_prologue.
10423         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10424         information to find prologue when possible.
10425         (sparc_prologue_frameless_p): Call examine_prologue directly.
10426         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10427         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10428         second argument.
10429         (SKIP_PROLOGUE): Likewise.
10430
10431 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10432
10433         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10434         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10435         indicate that the condition it was testing is always true.
10436         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10437         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10438         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10439
10440 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10441
10442         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10443         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10444         tdep->jb_pc and tdep->jb_elt_size.
10445         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10446         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10447         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10448         * alpha-nat.c (get_longjmp_target): Remove.
10449         (JB_ELEMENT_SIZE): Ditto.
10450         (JB_PC): Ditto.
10451         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10452         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10453         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10454         to alpha_get_longjmp_target.
10455         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10456         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10457         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10458
10459 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10460
10461         * README: Update to GDB 5.2.
10462
10463 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10464
10465         * gdbarch.sh (LC_ALL): Set to `c'.
10466
10467 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10468
10469         * avr-tdep.c: Ran through gdb_indent.sh.
10470
10471 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10472
10473         * MAINTAINERS: Add myself as AVR maintainer.
10474         * NEWS: Note new target avr.
10475
10476 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10477
10478         * Makefile.in: Add support for AVR target.
10479         * configure.tgt: Add support for AVR target.
10480         * avr-tdep.c: New file
10481         * config/avr/avr.mt: New file.
10482
10483 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10484
10485         * MAINTAINERS: Add myself to write-after-approval.
10486
10487 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10488
10489         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10490         with fprintf_unfiltered (gdb_stderr,....
10491
10492 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10493
10494         Fix PR gdb/508.
10495         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10496
10497 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10498
10499         * p-exp.y: Also use new prev_lexptr variable
10500         to improve error reporting. Based on Michael Snyder
10501         2002-04-24 dated patch to c-exp.y.
10502
10503 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10504
10505         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10506         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10507         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10508         to 0.
10509         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10510         and struct value.
10511         (FUNCTION_START_OFFSET): Remove.
10512         (BREAKPOINT): Ditto.
10513
10514 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10515
10516         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10517         * NEWS: Ditto.
10518
10519 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10520
10521         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10522         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10523         alpha_linux_pc_in_sigtramp.
10524         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10525         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10526         alpha_osf1_pc_in_sigtramp.
10527         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10528         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10529         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10530         alphafbsd_pc_in_sigtramp.
10531         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10532         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10533         alphanbsd_pc_in_sigtramp.
10534         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10535         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10536
10537 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10538
10539         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10540
10541 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10542
10543         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10544         alphanbsd-tdep.c.
10545         (alphanbsd-nat.o): New dependency list.
10546         (alphanbsd-tdep.o): Ditto.
10547         * NEWS: Note new native NetBSD/alpha configuration.
10548         * alphanbsd-nat.c: New file.
10549         * alphanbsd-tdep.c: Ditto.
10550         * configure.host (alpha*-*-netbsd*): New host.
10551         * configure.tgt (alpha*-*-netbsd*): New target.
10552         * config/alpha/nbsd.mh: New file.
10553         * config/alpha/nbsd.mt: Ditto.
10554         * config/alpha/nm-nbsd.h: Ditto.
10555         * config/alpha/tm-nbsd.h: Ditto.
10556
10557 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10558
10559         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10560         (alpha-osf1-tdep.o): New dependency list.
10561         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10562         and skip_sigtramp_frame members.
10563         * alpha-linux-tdep.c: Include gdbcore.h.
10564         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10565         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10566         * alpha-osf1-tdep.c: New file.
10567         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10568         alpha-osf1-dep.c.
10569         (alpha_frame_past_sigtramp_frame): New function.
10570         (alpha_dynamic_sigtramp_offset): Ditto.
10571         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10572         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10573         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10574         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10575         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10576         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10577         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10578         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10579         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10580         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10581         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10582         to find_solib_trampoline_target.
10583         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10584         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10585         (SKIP_TRAMPOLINE_CODE): Remove.
10586         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10587         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10588         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10589         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10590         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10591         (PROC_SIGTRAMP_MAGIC): Ditto.
10592         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10593         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10594         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10595         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10596         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10597
10598 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10599
10600         * NEWS: Note that Alpha targets are now multi-arch.
10601
10602 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10603
10604         * parser-defs.h (prev_lexptr): New external variable.
10605         * parse.c (parse_exp_1): Set prev_lexptr to null before
10606         calling the language-specific parser.
10607         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10608         (yyerror): Use prev_lexptr in error reporting.
10609
10610 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10611
10612         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10613         * gregset.h: If FILL_FPXREGSET is defined, provide
10614         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10615         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10616         is defined, call fill_fpxregset.
10617
10618 2002-04-24  Roland McGrath  <roland@frob.com>
10619
10620         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10621         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10622         (supply_gregset, supply_fpregset): New functions.
10623
10624         * gnu-nat.c (gnu_find_memory_regions): New function.
10625         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10626         (gnu_xfer_memory): Add a cast.
10627
10628 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10629
10630         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10631         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10632         of argument regs ("str r(0123), [r11, #-nn"]).
10633         (arm_skip_prologue): Better handling for frameless functions.
10634         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10635         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10636
10637 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10638
10639         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10640         NUM_PSEUDO_REGS can be used.
10641
10642 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10643
10644         * arch-utils.h: Update copyright.
10645
10646         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10647         * gdbarch.h, gdbarch.c: Re-generate.
10648
10649         * inferior.h (IN_SIGTRAMP): Delete definition.
10650         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10651         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10652
10653         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10654         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10655         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10656         (find_proc_framesize): Ditto.
10657         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10658         (alpha_init_extra_frame_info): Ditto.
10659         * infrun.c (handle_inferior_event): Ditto.
10660         (handle_inferior_event): Ditto.
10661         (check_sigtramp2): Ditto.
10662         * blockframe.c (create_new_frame): Ditto.
10663         (get_prev_frame): Ditto.
10664         * ppc-linux-tdep.c: Update comments.
10665         * i386-linux-tdep.c: Update comments.
10666         * breakpoint.c (bpstat_what): Update comment.
10667
10668 2002-04-24  David S. Miller  <davem@redhat.com>
10669
10670         * i960-tdep.c (register_in_window_p): New function.
10671         (i960_find_saved_register): Use it instead of
10672         REGISTER_IN_WINDOW_P.
10673         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10674
10675         * symtab.h (find_stab_function_addr): Kill extern.
10676         * minsyms.c (find_stab_function_addr): Remove from here...
10677         * dbxread.c: ... to here, and mark it static.
10678
10679 2002-04-20  David S. Miller  <davem@redhat.com>
10680
10681         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10682         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10683
10684 2002-04-21  David S. Miller  <davem@redhat.com>
10685
10686         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10687         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10688         (vx_write_register): Likewise.
10689
10690 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10691
10692         * source.c (is_regular_file): New function.
10693         (openp): Check wether file to open is a regular file
10694         to avoid opening directories.
10695
10696 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10697
10698         * findvar.c (extract_signed_integer): Cast printf argument
10699         to suppress format warning.
10700         (extract_unsigned_integer): Likewise.
10701         * infcmd.c (registers_info): Likewise.
10702         * top.c (get_prompt_1): Likewise.
10703         * valops.c (value_assign): Likewise.
10704         * valprint.c (print_decimal): Likewise.
10705
10706 2002-04-22  H.J. Lu  (hjl@gnu.org)
10707
10708         * c-exp.y (typebase): Support
10709
10710         [long|long long|short] [signed|unsigned] [int|]
10711
10712         and
10713
10714         signed [long|long long|short] int
10715
10716 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10717
10718         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10719         and vax-tdep.h.
10720         * vax-tdep.h: New file.
10721         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10722         Make several routines static.
10723         (vax_get_saved_register): New function.
10724         (vax_gdbarch_init): New function.
10725         (_initialize_vax_tdep): Register vax_gdbarch_init.
10726         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10727         Remove macros now under the control of gdbarch.
10728
10729 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10730
10731         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10732         Some whitespace and coding standards tweaks.
10733
10734 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10735
10736         * vax-tdep.c: Include regcache.h.
10737         (vax_call_dummy_words): New.
10738         (sizeof_vax_call_dummy_words): New.
10739         (vax_fix_call_dummy): New function.
10740         (vax_saved_pc_after_call): Ditto.
10741         * config/vax/tm-vax.h: Don't include regcache.h.
10742         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10743         (CALL_DUMMY): Remove.
10744         (CALL_DUMMY_WORDS): Define.
10745         (SIZEOF_CALL_DUMMY_WORDS): Define.
10746         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10747
10748 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10749
10750         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10751
10752 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10753
10754         * vax-tdep.c (vax_frame_chain): New function.
10755         (vax_push_dummy_frame): Ditto.
10756         (vax_pop_frame): Ditto.
10757         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10758         (FRAMELESS_FUNCTION_INVOCATION): Use
10759         generic_frameless_function_invocation_not.
10760         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10761         (POP_FRAME): Use vax_pop_frame.
10762
10763 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10764
10765         * vax-tdep.c (vax_store_struct_return): New function.
10766         (vax_extract_return_value): Ditto.
10767         (vax_store_return_value): Ditto.
10768         (vax_extract_struct_value_address): Ditto.
10769         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10770         vax_store_struct_return.
10771         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10772         (STORE_RETURN_VALUE): Use vax_store_return_value.
10773         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10774
10775 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10776
10777         * vax-tdep.c (vax_frame_saved_pc): New function.
10778         (vax_frame_args_address_correct): Ditto.
10779         (vax_frame_args_address): Ditto.
10780         (vax_frame_locals_address): Ditto.
10781         (vax_frame_num_args): Move code to be in proximity to
10782         other frame-related functions.
10783         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10784         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10785         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10786         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10787         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10788
10789 2002-04-22  H.J. Lu  (hjl@gnu.org)
10790
10791         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10792         includedir.
10793
10794 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10795
10796         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10797         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10798         (FRAME_INIT_SAVED_REGS): New macro.
10799
10800 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10801
10802         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10803
10804 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10805
10806         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10807         where needed.
10808         (fetch_osf_core_registers): Likewise.
10809         (supply_gregset): Likewise.
10810
10811 2002-04-22  J. Brobecker  <brobecker@gnat.com>
10812
10813         * symfile.h (get_section_index): Define.
10814         * symfile.c (get_section_index): New function.
10815         * mdebugread.c (SC_IS_SBSS): New macro.
10816         (SC_IS_BSS): Return true for the scBss storage class only, as
10817         the scSBss storage class refers to the .sbss section.
10818         (parse_partial_symbols): Discard the symbols which associated
10819         section does not exist.
10820         Make sure to use the .sbss section index for symbols which
10821         storage class is scBss, rather than using the .bss section index.
10822
10823 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10824
10825         * vax-tdep.c: Update copyright years.
10826         (vax_register_name): New function.
10827         (vax_register_byte): Ditto.
10828         (vax_register_raw_size): Ditto.
10829         (vax_register_virtual_size): Ditto.
10830         (vax_register_virtual_type): Ditto.
10831         * config/vax/tm-vax.h: Update copyright years.
10832         (REGISTER_NAMES): Remove.
10833         (REGISTER_NAME): Define.
10834         (REGISTER_BYTE): Use vax_register_byte.
10835         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10836         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10837         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10838
10839 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10840
10841         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10842         declaration
10843         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10844
10845 2002-04-21  David S. Miller  <davem@redhat.com>
10846
10847         * arch-utils.c (generic_prologue_frameless_p): Kill
10848         SKIP_PROLOGUE_FRAMELESS_P code.
10849         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10850         references.
10851         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10852         * arc-tdep.c (arc_prologue_frameless_p): Implement.
10853         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10854         references.
10855         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10856         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10857         (sparc_gdbarch_init): Pass it to
10858         set_gdbarch_prologue_frameless_p.
10859
10860 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10861
10862         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10863         (alphabsd-nat.o): New dependency list.
10864
10865 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10866
10867         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10868         alphafbsd-tdep.c.
10869         (alpha-linux-tdep.o): New dependency list.
10870         (alphafbsd-tdep.o): Likewise.
10871
10872 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10873
10874         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
10875         to here...
10876         * alpha-tdep.c: ...from here.
10877         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10878
10879 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10880
10881         * config/alpha/tm-alpha.h: Move alpha_software_single_step
10882         prototype from here...
10883         * alpha-tdep.h: ...to here.
10884
10885 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10886
10887         * frame.h (selected_frame_level): Document as deprecated.
10888         (frame_relative_level): Declare.
10889         * stack.c (frame_relative_level): New function.
10890         (selected_frame_level): Document as deprecated.
10891         (select_frame): Do not set the selected_frame_level.
10892
10893         * stack.c (frame_info, record_selected_frame): Update.
10894         (frame_command, current_frame_command): Update.
10895         (up_silently_base, up_command, down_silently_base): Update.
10896         (down_command): Update.
10897         * inflow.c (kill_command): Update.
10898         * tracepoint.c (finish_tfind_command): Update.
10899         * corelow.c (core_open): Update.
10900         * thread.c (info_threads_command): Update.
10901         (do_captured_thread_select): Update.
10902         * infcmd.c (finish_command): Update.
10903         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10904
10905 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10906
10907         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10908
10909 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10910
10911         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
10912         type const.
10913
10914 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10915
10916         * alphafbsd-tdep.c: Update copyright years.  Include
10917         alpha-tdep.h.
10918         (alphafbsd_use_struct_convention): Make static.
10919         (alphafbsd_init_abi): New function.
10920         (_initialize_alphafbsd_tdep): New function.
10921         * config/alpha/tm-fbsd.h: Update copyright years.
10922         (USE_STRUCT_CONVENTION): Remove.
10923
10924 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10925
10926         * alpha-tdep.c (alpha_abi_handler): New structure to describe
10927         an Alpha ABI variant.
10928         (alpha_abi_handler_list): Declare.
10929         (alpha_gdbarch_register_os_abi): New function.
10930         (alpha_gdbarch_init): Give registered ABI variant handlers a
10931         chance to tweak the gdbarch once we have set up defaults.
10932         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10933
10934 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10935
10936         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10937         to standard_coerce_float_to_double.
10938         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10939
10940 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10941
10942         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10943         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10944         from gdbarch_tdep rather than a constant.
10945         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10946         the default text address for all Alpha Unix ABIs.
10947         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10948         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10949
10950 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10951
10952         * alpha-tdep.h: New file.  Includes several Alpha target constants
10953         taken from...
10954         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
10955         let gdbarch deal with.
10956         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10957         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10958         to dependency list.
10959         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
10960         Alpha target register names.
10961         * alphabsd-nat.c: Likewise.
10962         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
10963         Alpha target register names.  Make serveral routines static.
10964         (alpha_get_saved_register): New function.
10965         (alpha_abi_names): New.
10966         (process_note_abi_tag_sections): New function.
10967         (get_elfosabi): New function.
10968         (alpha_gdbarch_init): New function.
10969         (alpha_dump_tdep): New function.
10970         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10971
10972 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10973
10974         * frame.c (find_saved_register): Delete #ifdef
10975         HAVE_REGISTER_WINDOWS code.
10976         * config/sparc/tm-sparc.h: Update comments.
10977         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10978
10979 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10980
10981         * i960-tdep.c (i960_find_saved_register): New function.
10982         (i960_get_saved_register): New function.
10983         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10984         (i960_get_saved_register): Declare.
10985         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10986
10987 2002-04-20  David S. Miller  <davem@redhat.com>
10988
10989         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10990
10991 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
10992
10993         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10994         instead of NUM_PSEUDO_REGS.
10995
10996 2002-04-20  David S. Miller  <davem@redhat.com>
10997
10998         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10999         GDB_MULTI_ARCH_PARTIAL
11000         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11001         define, let tm-sp64.h do it.
11002
11003 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11004
11005         * frame.c (find_saved_register): Avoid a NULL pointer
11006         dereference and actually walk the frame list.
11007
11008 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11009
11010         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11011         sorted in most most-recent-used order.  Document.
11012         * gdbarch.h, gdbarch.c: Regenerate.
11013
11014 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11015
11016         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11017         instead of ->prev.
11018         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11019         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11020         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11021         instead of ->prev.
11022
11023 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11024
11025         Fix PR gdb/471.
11026         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11027         (build_builtin_type_vec128): Ditto.
11028         (append_composite_type_field): Fix calculation of type length in
11029         union case.
11030
11031 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11032
11033         * config/djgpp/README: Update.
11034
11035         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11036         compiler warnings.
11037
11038 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11039
11040         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11041         (alpha_setup_arbitrary_frame): ...to this.
11042         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11043         for alpha_setup_arbitrary_frame.
11044
11045 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11046
11047         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11048         * gdbarch.h, gdbarch.c: Regenerate.
11049
11050         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11051         * target.h (memory_breakpoint_from_pc): Update declaration.
11052         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11053
11054         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11055         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11056         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11057         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11058         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11059         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11060         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11061         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11062         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11063         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11064         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11065         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11066
11067         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11068         const pointer.
11069         * monitor.c (monitor_insert_breakpoint): Ditto.
11070         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11071
11072         * config/mcore/tm-mcore.h: Update copyright.
11073         * mem-break.c: Ditto.
11074         * xstormy16-tdep.c: Ditto.
11075
11076 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11077
11078         * p-exp.y: Add precedence rule for '^' token.
11079         This removes the shift/reduce conflicts.
11080         Remove the comment concerning these shift/reduce conflicts.
11081
11082 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11083
11084         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11085         (registers_powerpc_nofp): New register set for processors
11086         without floating point unit.
11087
11088 2002-04-18  David S. Miller  <davem@redhat.com>
11089
11090         * MAINTAINERS: Add myself to write-after-approval.
11091
11092 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11093
11094         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11095
11096 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11097
11098         * rs6000-tdep.c (frame_initial_stack_address): Use
11099         frame_register_read to read the alloca_reg.
11100
11101 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11102
11103         * frame.c (find_saved_register): Find saved registers in the next
11104         not prev frame.
11105         Fix PR gdb/365.
11106
11107 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11108
11109         * gdbarch.sh (LANG): Set to ``c''.
11110
11111 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11112
11113         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11114
11115 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11116
11117         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11118         Update copyright.
11119
11120         * hpread.c (hpread_get_lntt): Add declaration.
11121         Also fix PR gdb/391.
11122
11123 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11124
11125         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11126         * aclocal.m4, configure: Re-generate.
11127         Fix PR gdb/391.
11128
11129 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11130
11131         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11132         instead of tm_print_insn.
11133
11134 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11135
11136         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11137
11138 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11139
11140         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11141         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11142         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11143
11144 2002-04-12  Don Howard  <dhoward@redhat.com>
11145
11146         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11147         max_user_call_depth.
11148         (init_cmd_lists): Initialize the new value;
11149         * cli/cli-script.c (execute_user_command): Limit the call depth of
11150         user defined commands.  This avoids a core-dump when user commands
11151         are infinitly recursive.
11152
11153 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11154
11155         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11156         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11157         from tdep struct instead of DEFAULT_LR_SAVE.
11158         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11159         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11160         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11161
11162 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11163
11164         * Remote.c: Spelling fix.
11165         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11166         If no symbol found for "sbrk", try "_sbrk".
11167         (make_output_phdrs): Use bfd_section_name.
11168         (gcore_copy_callback): Use bfd_section_name.
11169         * eval.c: Indentation fix-ups.
11170         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11171         in case it gets applied to an address that is already
11172         in the instruction space.
11173         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11174         * symfile.c: Fix indentation, long lines.
11175         * source.c: White space fix-up.
11176
11177 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11178
11179         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11180         * frame.c (frame_register_read): New function.  Return non-zero on
11181         success.
11182         (read_relative_register_raw_bytes_for_frame): Delete.
11183         (read_relative_register_raw_bytes): Delete.
11184         * frame.h (frame_register_read): Declare.
11185         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11186         * sh-tdep.c: Ditto.
11187         * infcmd.c (do_registers_info): Ditto.
11188         * hppa-tdep.c: Ditto.
11189         * rs6000-tdep.c: Ditto.
11190         * h8500-tdep.c: Ditto.
11191         * mips-tdep.c: Ditto.
11192         * h8300-tdep.c: Ditto.
11193         * z8k-tdep.c: Ditto.
11194
11195 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11196
11197         From Jimi X <jimix@watson.ibm.com>:
11198         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11199         64-bit SysV ABI.
11200
11201 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11202
11203         From Jimi X <jimix@watson.ibm.com>:
11204         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11205         bfd info.
11206
11207 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11208
11209         From Jimi X <jimix@watson.ibm.com>:
11210         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11211         register sets for these processor variants.
11212
11213 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11214
11215         * regformats/reg-ppc.dat: Support FPSCR.
11216
11217 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11218
11219         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11220         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11221         Add fpscr as an invalid/unfetchable register.
11222         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11223         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11224         (fill_fpregset): Add support for register fpscr.
11225         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11226         (fill_gregset): Account for the fact that register ``mq'' might
11227         not exist.
11228         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11229         (registers_power): Add fpscr to register set at slot 71.
11230         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11231         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11232
11233 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11234
11235         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11236         * configure: Regenerate.
11237         * config.in: Regenerate.
11238         * acconfig.h: Add define for _SYSCALL32.
11239         * core-sol2.c: Remove #define _SYSCALL32.
11240         * solib-legacy.c: Remove #define _SYSCALL32.
11241
11242 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11243
11244         * stack.c (select_frame): Cleanup internal error message, do not
11245         use %p.
11246
11247 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11248
11249         * stack.c (select_frame): Check that selected_frame and the
11250         specified level are as expected.
11251         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11252         Update copyright.
11253         * frame.h (struct frame_info): Add field `level'.  Update
11254         copyright.
11255         Work-in-progress PR gdb/464.
11256
11257 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11258
11259         * maint.c (maint_print_section_info): Rename print_section_info.
11260         (print_bfd_section_info, print_objfile_section_info): Update.
11261         * inferior.h (struct gdbarch): Add opaque declaration.
11262         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11263         * gdbarch.h: Regenerate.
11264
11265 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11266
11267         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11268         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11269         (kernel_u_size): Added.
11270         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11271         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11272
11273 2002-04-04  Jim Ingham  <jingham@apple.com>
11274
11275        * valarith.c (find_size_for_pointer_math): New function, either returns
11276        the size for a pointer's target, returns 1 for void *, or errors for
11277        incomplete types.
11278        (value_add, value_sub): use find_size_for_pointer_math.
11279
11280 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11281
11282         * linux-low.c (linux_look_up_symbols): New hook.
11283         (linux_target_ops): Add linux_look_up_symbols.
11284         * remote-utils.c (decode_address): New function.
11285         (look_up_one_symbol): New function.
11286         * server.c (handle_query): Call target look_up_symbols hook.
11287         * server.h (look_up_one_symbol): Add prototype.
11288         * target.h (struct target_ops): Add look_up_symbols hook.
11289
11290 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11291
11292         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11293         override FP_REGNUM with frame->fp.  Update copyright.
11294         * parse.c (num_std_regs, std_regs): Delete.
11295         (target_map_name_to_register): Do not search std_regs.  Update
11296         function description.
11297         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11298         declarations.  Update copyright.
11299         Fix PR gdb/251.
11300
11301 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11302
11303         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11304         after the last symbol in a block.
11305
11306 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11307
11308         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11309         is non zero as a found symbol.
11310
11311 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11312
11313         * findvar.c: Include "builtin-regs.h".
11314         (value_of_register): Call value_of_builtin_reg when applicable.
11315         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11316         (target_map_name_to_register): Call
11317         builtin_reg_map_name_to_regnum.
11318         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11319         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11320         (builtin_regs_h): Define.
11321         (builtin-regs.o): New target.
11322         (findvar.o): Add $(builtin_regs_h).
11323         * builtin-regs.c, builtin-regs.h: New files.
11324         * std-regs.c: New file.
11325         Partial fix for PR gdb/251.
11326
11327 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11328
11329         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11330         it's no longer required.
11331
11332 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11333
11334         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11335
11336 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11337
11338         From Jimi X <jimix@watson.ibm.com>:
11339         * rs6000-tdep.c (rs6000_software_single_step): Use
11340         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11341         and size.  Use target_insert_breakpoint() and
11342         target_remove_breakpoint() to insert and remove breakpoints
11343         instead of explicit memory reads and writes.
11344
11345 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11346
11347         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11348         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11349         ELF_OBJECT_FORMAT ifdef.
11350
11351 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11352
11353         From Jimi X <jimix@watson.ibm.com>:
11354         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11355
11356 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11357
11358         From Jimi X <jimix@watson.ibm.com>:
11359         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11360         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11361
11362 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11363
11364         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11365         s/asprintf/xasprintf/.
11366         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11367
11368 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11369
11370         I believe Jeff Law denies responsability for this one:
11371         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11372         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11373         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11374         Work-around for PR gdb/366.
11375
11376 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11377
11378         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11379         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11380         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11381
11382 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11383
11384         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11385         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11386         information.
11387
11388 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11389
11390         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11391         maintainer.
11392
11393 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11394
11395         * README (Reporting Bugs in GDB): Document the bug web page as the
11396         prefered way of submitting bugs.
11397         Fix PR gdb/402.
11398
11399 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11400
11401         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11402         -1.  Update comment.
11403         * gdbarch.h, gdbarch.c: Re-generate.
11404
11405 2002-04-07  Andreas Schwab  <schwab@suse.de>
11406
11407         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11408         buffer to regcache_collect.
11409
11410 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11411
11412         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11413         * gdbarch.c, gdbarch.h: Re-generate.
11414
11415 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11416
11417         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11418         declaration.  Fix -Werror.
11419
11420 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11421
11422         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11423         * gdbarch.c: Regenerate.
11424
11425 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11426
11427         * breakpoint.c (clear_command): Rewrite middle section to
11428         combine two loops with identical control conditions.
11429         Add a cleanup to eliminate a memory leak.
11430         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11431
11432 2002-04-05  H.J. Lu  (hjl@gnu.org)
11433
11434         * solib-svr4.c (bkpt_names): Add "__start".
11435
11436 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11437
11438         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11439         as test for 64 bit target.
11440
11441 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11442
11443         * h8500-tdep.c (h8500_write_fp): Delete function.
11444         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11445         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11446         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11447         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11448         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11449         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11450         (s390_write_fp):
11451         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11452         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11453         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11454         (d10v_write_fp): Delete function.
11455         * inferior.h (write_fp, generic_target_write_fp): Delete
11456         declarations.
11457         * regcache.c (generic_target_write_fp): Delete function.
11458         (write_fp): Delete function.
11459         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11460         * gdbarch.h, gdbarch.c: Regenerate.
11461         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11462         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11463         (sparc64_write_fp): Delete declaration.
11464         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11465         (h8500_write_fp): Delete declaration.
11466
11467 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11468
11469         * sparc-tdep.c (sparc64_write_fp): Delete.
11470         (sparc_push_dummy_frame): Replace write_fp call with code to store
11471         the FP directly.
11472         (sparc_gdbarch_init): Do not initialize write_fp.
11473
11474 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11475
11476         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11477         clause.
11478
11479 2002-03-29  Jim Blandy  <jimb@redhat.com>
11480
11481         * stack.c (get_selected_block): Add new argument `addr_in_block',
11482         used to return the exact code address we used to select the block,
11483         not just the block.
11484         * blockframe.c (get_frame_block, get_current_block): Same.
11485         * frame.h (get_frame_block, get_current_block,
11486         get_selected_block): Update declarations.
11487         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11488         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11489
11490 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11491
11492         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11493         warning message.
11494
11495 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11496
11497         * utils.c (xfullpath): New function.
11498         * defs.h (xfullpath): Add declaration.
11499         * source.c (openp): Use xfullpath in place of gdb_realpath to
11500         avoid resolving the basename part of filenames when the
11501         associated file is a symbolic link. This fixes a potential
11502         inconsistency between the filenames known to GDB and the
11503         filenames it prints in the annotations.
11504         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11505         to be able to match a filename with either the real filename, or
11506         the name of any symbolic link to this file.
11507         (lookup_partial_symtab): Ditto.
11508
11509 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11510
11511         * breakpoint.c: Add support for hardware breakpoints in overlays.
11512         (overlay_events_enabled): New state variable.
11513         (insert_breakpoints): Use overlay_events_enabled to decide
11514         whether to attempt to set a breakpoint at the overlay load addr.
11515         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11516         (remove_breakpoint): Use overlay_events_enabled to decide
11517         whether breakpoints need to be removed from overlay load addr.
11518         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11519         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11520         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11521         disable_overlay_breakpoints): Update overlay_events_enabled.
11522
11523 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11524
11525         * dwarf2read.c (struct function_range): New.
11526         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11527         (check_cu_functions): New.
11528         (read_file_scope): Initialize global function lists.
11529         Call dwarf_decode_line after processing children.
11530         (read_func_scope): Add to global function list.
11531         (dwarf_decode_lines): Call check_cu_functions everywhere
11532         record_line is called.  Call record_line with a linenumber
11533         of 0 to mark sequence ends.
11534
11535 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11536
11537         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11538         change sync with glibc.
11539
11540 2002-04-03  Jim Blandy  <jimb@redhat.com>
11541
11542         * configure.in: Call AC_C_INLINE.
11543         * configure: Regenerated.
11544
11545 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11546
11547         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11548         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11549
11550 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11551
11552         * NEWS: Mention gcore support on FreeBSD/i386.
11553
11554         * fbsd-proc.c: New file.
11555         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11556         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11557
11558         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11559         while statement.
11560
11561 2002-03-29  Jim Blandy  <jimb@redhat.com>
11562
11563         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11564         unescaped newlines in string literals, but newer ones don't.  So
11565         escape them.
11566
11567 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11568             Andrew Cagney <cagney@redhat.com>
11569
11570         * cli/cli-dump.c: New file.  Dump memory to file,
11571         restore file to memory.
11572         * cli/cli-dump.h: New file.
11573         * Makefile.in: Add rules, dependencies for cli-dump.o.
11574         * NEWS: Mention new commands.
11575
11576 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11577
11578         * symfile.c (symbol_file_add): Move test for null symbols to later.
11579
11580 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11581
11582         From veksler at il.ibm.com:
11583         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11584         the xstrduped original path.
11585         Fix PR gdb/417.
11586
11587 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11588
11589         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11590         * infcmd.c (_initialize_infcmd): Ditto.
11591         * language.c (_initialize_language): Ditto.
11592         * symfile.c (_initialize_symfile): Ditto.
11593         * top.c (_init_main): Ditto.
11594         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11595
11596 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11597
11598         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11599         vector registers handling.
11600         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11601         fields of frame data.
11602         (frame_get_saved_regs): Fill in information for AltiVec registers.
11603
11604 2002-03-27  Jim Blandy  <jimb@redhat.com>
11605
11606         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11607         a function; leave this macro here to invoke that function.
11608         (symbol_init_mangled_name): Declaration for that function.
11609         * symtab.c (symbol_init_mangled_name): New function.
11610
11611 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11612
11613         * valarith.c: Replace strerror with safe_strerror.
11614         * tracepoint.c: Ditto.
11615         * lin-lwp.c: Ditto.
11616         * go32-nat.c: Ditto.
11617         * inflow.c: Ditto.
11618         * gnu-nat.c: Ditto.
11619
11620 2002-03-27  Andreas Schwab  <schwab@suse.de>
11621
11622         * event-top.c (command_line_handler): Remove useless if.
11623
11624 2002-03-27  Andreas Jaeger  <aj@suse.de>
11625
11626         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11627         comment.
11628
11629 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11630
11631         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11632         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11633         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11634         (x86_64_linux_dr_get_status, supply_gregset),
11635         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11636         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11637         (x86_64_register_info_table): Add.
11638         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11639         (x86_64_register_raw_size, x86_64_register_virtual_type),
11640         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11641         general x86_64_register_info_table.
11642         (i386_gdbarch_init): gdbarch_register_bytes is now set
11643         dynamicaly during initialization.
11644         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11645         * gdbserver/linux-x86-64-low.c: Ditto.
11646
11647 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11648
11649         * gdbserver/server.c (main): Call target_signal_to_host_p
11650         and target_signal_to_host on signals received from the remote.
11651         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11652         target_signal_from_host on signals sent to the remote.
11653         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11654         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11655
11656 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11657
11658         * signals/signals.c: Include "server.h" in gdbserver build.
11659         (target_signal_from_name): Don't use STREQ.
11660         (_initialize_signals): Likewise.  Don't include function in
11661         gdbserver build.
11662
11663 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11664
11665         * signals.c: Moved to...
11666         * signals/signals.c: Here.
11667         * Makefile (signals.o): Update.
11668
11669 2002-03-26  Jeff Law (law@redhat.com)
11670
11671         * somread.c (som_symtab_read): Remove some commented out code and
11672         updated related comments.  Do not set the minimal symbol table to
11673         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11674         in a dynamic executable.
11675         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11676         where we are unable to find the minimal symbol for the given
11677         PC value.
11678
11679 2002-03-25  Jeff Law (law@redhat.com)
11680
11681         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11682
11683 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11684
11685         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11686
11687 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11688
11689         * command.h: Update copyright.
11690         (struct cmd_list_element): Replace definition with opaque
11691         declaration.
11692         (enum cmd_types): Document that it will eventually be moved to
11693         cli/cli-decode.h
11694         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11695         (MALLOCED_REPLACEMENT): Delete macro.
11696         * Makefile.in (cli_decode_h): Add $(command_h).
11697         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11698         * top.c: Include "cli/cli-decode.h".
11699         * completer.c: Include "cli/cli-decode.h".
11700         * maint.c: Include "cli/cli-decode.h".
11701         * cli/cli-decode.h: Include "command.h".
11702         (enum command_class): Delete.
11703         (enum cmd_types): Comment out.
11704         (enum cmd_auto_boolean): Delete.
11705         (enum var_types): Delete.
11706
11707 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11708
11709         * cli/cli-decode.c: Include "gdb_assert.h".
11710         (add_set_or_show_cmd): New static function.
11711         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11712         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11713         all fields, such as func, from the set command.
11714
11715 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11716
11717         * MAINTAINERS (sh-elf): Change warning flag to -w.
11718
11719 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11720
11721         * defs.h (error): Add printf format attribute.
11722         * thread-db.c (thread_from_lwp): Fix error format string.
11723         * stack.c (parse_frame_specification): Ditto.
11724         * cli/cli-decode.c (undef_cmd_error): Ditto.
11725         * scm-lang.c (scm_lookup_name): Ditto.
11726         * tracepoint.c (trace_error): Ditto.
11727         * remote-utils.c (usage): Ditto.
11728         * remote.c (compare_sections_command): Ditto.
11729         Fix PR gdb/328.
11730
11731 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11732
11733         * gdbtypes.c (append_composite_type_field): New function.
11734         (init_composite_type): New function.
11735         * gdbtypes.h (append_composite_type_field): Declare.
11736         (init_composite_type): Ditto.
11737
11738 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11739
11740         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11741         function.
11742         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11743         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11744         structure returning convention for SYSV ABI case, but not
11745         for GNU/Linux, FreeBSD, or NetBSD.
11746
11747 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11748
11749         * symtab.h (lookup_block_symbol): Add mangled_name argument
11750         to prototype.
11751
11752         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11753         with new mangled_name argument.
11754         * linespec.c (decode_line_1): Likewise.
11755         * valops (value_of_this): Likewise.
11756         * symtab.c (lookup_transparent_type): Likewise.
11757         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11758         (lookup_symbol): If we are given a mangled name, pass it down
11759         to lookup_symbol_aux.
11760         (lookup_block_symbol): If we are given a mangled name to check
11761         against, only return symbols which match it.
11762
11763 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11764
11765         * win32-nat.c (child_create_inferior): Check for proper shell to use
11766         here, in case the user changes it on the fly.
11767         (_initialize_inftarg): Remove shell path considerations.
11768
11769 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11770
11771         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11772         for gdbarch_max_register_raw_size and max_register_virtual_size.
11773         Adjust copyright year.
11774
11775 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11776
11777          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11778          in a function to cover the entire beginning of the function
11779          as well if it does not already.
11780
11781 2002-03-21  Tom Rix  <trix@redhat.com>
11782
11783         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11784         (rs6000_ptrace64): Renamed from ptrace64.
11785
11786 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11787
11788         * gdbserver/remote-utils.c (remote_open): Don't call
11789         getprotobyname, we're all using TCP here so just use
11790         IPPROTO_TCP.
11791         * gdbserver/gdbreplay.c (remote_open): Ditto.
11792
11793 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11794
11795         * regcache.c (_initialize_regcache): No need to call
11796         build_regcache() at this time; it gets called whenever
11797         the gdbarch changes.
11798
11799 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11800
11801         * sparc-nat.c:  Include sys/param.h where possible.
11802
11803 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11804
11805         Fix PR gdb/422.
11806         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11807         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11808         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11809         complex types.
11810         * stabsread.c (rs6000_builtin_type): Likewise.
11811         (read_sun_floating_type): Likewise.
11812
11813 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11814
11815         * stabsread.c (read_member_functions): Remove skip code for duplicate
11816         constructor/destructor methods.  Use standard parsing for these
11817         methods and just do not chain them to the list of methods after
11818         parsing.
11819
11820 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
11821
11822         * coffread.c: Remove redundant static declarations.  Replace
11823         occurrences of `PTR' with `void *'.
11824         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11825         * top.h (quit_cover): Likewise.
11826         * defs.h (catch_errors): Likewise.
11827
11828 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11829
11830         * defs.h (XMALLOC): Define.
11831         * gdb-events.sh (XMALLOC): Delete macro.
11832         * gdb-events.c, gdb-events.h: Regenerate.
11833         * gdbarch.sh (XMALLOC): Delete macro.
11834         * gdbarch.c: Regenerate.
11835         * serial.c (XMALLOC): Delete macro.
11836         * ui-file.c (XMALLOC): Ditto.
11837         * ser-unix.h (XMALLOC): Ditto.
11838         * sh-tdep.c (XMALLOC): Ditto.
11839         * ui-out.c (XMALLOC): Ditto.
11840         * utils.c (XMALLOC): Ditto.
11841         * i386-tdep.c (XMALLOC): Ditto.
11842         * gdb-events.c (XMALLOC): Ditto.
11843         * d10v-tdep.c (XMALLOC): Ditto.
11844         * cli-out.c (XMALLOC): Ditto.
11845
11846         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11847         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11848         * ui-file.c, ui-out.c: Ditto.
11849
11850 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11851
11852         * command.h (struct cmd_list_element): Add field context.
11853         (set_cmd_context, get_cmd_context): Declare.
11854         * cli/cli-decode.h: Ditto.
11855         * cli/cli-decode.c (get_cmd_context): New function.
11856         (set_cmd_context): New function.
11857         (add_cmd): Initialize context.
11858         Part of fixing PR gdb/145 and PR gdb/146.
11859
11860 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11861
11862         * cli/cli-decode.c (cmd_type): New function.
11863         * command.h (cmd_type): Declare.
11864         * infrun.c (set_schedlock_func): Call function cmd_type.
11865         * kod.c (kod_set_os): Call cmd_type.
11866         * cris-tdep.c (cris_version_update): Use function cmd_type.
11867         (cris_mode_update, cris_abi_update): Ditto.
11868
11869         * command.h: (execute_cmd_post_hook): Declare.
11870         (execute_cmd_pre_hook): Declare.
11871         * cli/cli-script.c (clear_hook_in_cleanup): New function.
11872         (execute_cmd_post_hook, execute_cmd_pre_hook): New
11873         functions. Execute pre/post hook while ensuring that afterwords
11874         hook_in is cleared.
11875         * top.c (execute_command): Use execute_cmd_post_hook, and
11876         execute_cmd_pre_hook to execute pre/post commands.
11877         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11878         hook_stop_stub.
11879         (hook_stop_stub): Call execute_cmd_pre_hook.
11880
11881 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11882
11883         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
11884         set'' and this leads to a core dump.  Move xstrdup of
11885         operating_system to after check that it is not NULL.
11886
11887 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11888
11889         * kod.c (kod_set_os): Remove unnecessary check that
11890         ``command->type'' is set_cmd.
11891
11892         * valprint.c (set_input_radix): Use input_radix.
11893         (set_output_radix): Use output_radix.
11894         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11895         isn't reverted.
11896
11897 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
11898
11899         * value.h (struct value): Delete field ``substring_addr''.  Change
11900         aligner fields to force_doublest_align, force_longest_align,
11901         force_core_addr_align and force_pointer_aligh.
11902
11903         * value.h (struct value): Fix typo in above change.
11904
11905 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11906
11907         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11908         to fix internal_error from ``maintenance print architecture''.
11909
11910 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11911
11912         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11913         for gcc versions after gcc-2.8.1.
11914
11915 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11916
11917         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11918         for method resolution.  Restore adjustment of ``this'' pointer after
11919         calling value_struct_elt, which was accidentally removed during the
11920         HP merge.
11921
11922 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
11923
11924         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11925         value_of_register.
11926         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
11927         get_saved_register.
11928         * value.h (value_of_register): Update.
11929
11930 2002-03-14  Richard Henderson  <rth@redhat.com>
11931
11932         * configure.in: Detect declaration for canonicalize_file_name.
11933         * utils.c (canonicalize_file_name): Declare, if needed.
11934         (gdb_realpath): Prefer realpath if available and usable.
11935         * config.in, configure: Rebuild.
11936
11937 2002-03-14  Richard Henderson  <rth@redhat.com>
11938
11939         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11940         a constant array bound.
11941
11942         * MAINTAINERS: Add myself to write-after-approval.
11943
11944 2002-03-14  Michael Snyder  <msnyder@redhat.com>
11945
11946         * symfile.c (syms_from_objfile): Return immediately if no syms.
11947         (symbol_file_add): Return immediately if no syms.
11948         (find_sym_fns): Return immediately if no syms.
11949
11950 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
11951
11952         * gdbserver/remote-util.c (remote_open): Print remote-side's
11953         IP address when remote debugging over the network.
11954
11955 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
11956
11957         * config/sparc/fbsd.mh: Fix copyright.
11958         * config/sparc/fbsd.mt: Likewise.
11959
11960 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
11961
11962         * MAINTAINERS: Fix typo in name of gdb warnings option.
11963         (x86-64): Fix formating so that this can be parsed by awk.
11964
11965 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
11966
11967         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11968         * defs.h: Include "gdb/signals.h".
11969         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11970
11971 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
11972
11973         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11974         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11975         from x86-64-tdep.h
11976
11977 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
11978             Don Howard <dhoward@redhat.com>
11979
11980         * mips-tdep.c (ST0_FR): Define.
11981         (mips2_fp_compat): New function, temporarily disabled.
11982         (mips_read_fp_register_single): New function.
11983         (mips_read_fp_register_double): New function.
11984         (mips_print_register): Use them.
11985         (do_fp_register_row): Likewise.
11986
11987 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
11988
11989         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11990         approval''.
11991
11992 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11993
11994         * stabsread.c (read_member_functions): Fix is_stub test for
11995         static member functions, improve comment.
11996
11997 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
11998
11999         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12000         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12001         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12002         commands that set boolean values.
12003         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12004         (arm_rdi_resume): Always initialize PC.
12005         (arm_rdi_open): Don't use rslt as a boolean.
12006         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12007         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12008         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12009         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12010
12011 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12012
12013         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12014         * configure: Rebuilt.
12015
12016 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12017
12018         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12019         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12020
12021 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12022
12023         * cli/cli-decode.c (set_cmd_completer): New function.
12024         * command.h (set_cmd_completer): Declare.
12025         * cli/cli-decode.h (set_cmd_completer): Ditto.
12026
12027         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12028         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12029         * win32-nat.c (_initialize_inftarg): Ditto.
12030         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12031         * proc-api.c (_initialize_proc_api): Ditto.
12032         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12033         * source.c (_initialize_source): Ditto.
12034         * exec.c (_initialize_exec): Ditto.
12035         * solib.c (_initialize_solib): Ditto.
12036         * top.c (init_main): Ditto.
12037         * tracepoint.c (_initialize_tracepoint): Ditto.
12038         * symfile.c (_initialize_symfile): Ditto.
12039         * printcmd.c (_initialize_printcmd): Ditto.
12040         * infcmd.c (_initialize_infcmd): Ditto.
12041         * corefile.c (_initialize_core): Ditto.
12042
12043 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12044
12045         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12046
12047 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12048
12049         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12050
12051 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12052
12053         * NEWS: Update headings, 5.2 has branched.
12054
12055 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12056
12057         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12058         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12059         (register_addr, REGISTER_RAW_SIZE): Likewise.
12060         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12061         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12062
12063 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12064
12065         * MAINTAINERS (x86-64): Add myself.
12066         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12067         changed value_ptr -> struct value *
12068
12069 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12070
12071         * configure.host (sparc64-*-freebsd): Add.
12072         * configure.tgt: Likewise.
12073         * config/sparc/fbsd.mh: New file.
12074         * config/sparc/fbsd.mt: Likewise.
12075         * config/sparc/nm-fbsd.h: Likewise.
12076         * config/sparc/tm-fbsd.h: Likewise.
12077
12078 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12079
12080         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12081         regformats/reg-s390x.dat.
12082
12083 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12084
12085         * utils.c: Add FIXME explaining true/false problem.
12086
12087 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12088
12089         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12090
12091 2002-02-28  Michael Chastain  <mec@shout.net>
12092
12093         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12094
12095 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12096
12097         * gdbserver/linux-s390-low.c: New file.
12098         * regformats/reg-s390.dat: New file.
12099         * regformats/reg-s390x.dat: New file.
12100         * gdbserver/configure.srv: Add S/390.
12101         * gdbserver/Makefile.in: Add S/390.
12102         * configure.tgt: Enable gdbserver for S/390.
12103
12104 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12105
12106         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12107         first line of the doc string for "info dos", except at the end of
12108         the sentence, since the short help stops at the first period.
12109
12110 2002-02-28  Jason Merrill  <jason@redhat.com>
12111
12112         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12113
12114 2002-02-27  Fred Fish  <fnf@redhat.com>
12115
12116         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12117         comment (dumy -> dummy).
12118
12119 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12120
12121         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12122
12123 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12124
12125       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12126
12127 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12128
12129         * gdbserver/acconfig.h: New file.
12130         * gdbserver/i387-fp.c: New file.
12131         * gdbserver/i387-fp.h: New file.
12132         * gdbserver/linux-x86-64.c: New file.
12133         * regformats/reg-x86-64.dat: New file.
12134         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12135         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12136         * gdbserver/configure.in: Add support for regsets.
12137         * gdbserver/config.in: Regenerate.
12138         * gdbserver/configure: Regenerate.
12139         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12140         * gdbserver/linux-low.h: New file.
12141         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12142         for regsets.
12143         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12144         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12145         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12146         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12147         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12148         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12149         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12150         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12151         * gdbserver/regcache.c (supply_register): New function.
12152         (supply_register_by_name): New function.
12153         (collect_register): New function.
12154         (collect_register_by_name): New function.
12155
12156 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12157
12158         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12159         (config.status): Add configure.srv dependency.
12160         (server_h): Add config.h dependency.
12161
12162 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12163
12164         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12165         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12166         * gdbserver/configure.srv: Change i386-*-linux* to use
12167         reg-i386-linux.o.
12168
12169 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12170
12171         * x86-64-tdep.c: Re-indent.  Update copyright date.
12172
12173 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12174
12175         From Michal Ludvig <mludvig@suse.cz>:
12176         * x86-64-tdep.c (value.h): Delete.
12177         (gdb_assert.h): Include.
12178         (x86_64_register_convert_to_virtual,
12179         x86_64_register_convert_to_raw ): Add check which lets only
12180         floating-point values to be converted.
12181         (value_push): Delete.
12182         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12183         (i386_gdbarch_init): Number of register_bytes fixed.
12184
12185 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12186
12187         * MAINTAINERS: Add x86-64 target.
12188
12189 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12190
12191         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12192         * osfsolib.c (solib_map_sections): Ditto.
12193         * irix5-nat.c (solib_map_sections): Ditto.
12194         * corelow.c (gdb_check_format): Ditto.
12195         * symfile.c (symfile_bfd_open): Ditto.
12196         * solib.c (solib_map_sections): Ditto.
12197         Fix PR gdb/354.
12198
12199 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12200
12201         * remote.c (_initialize_remote): By default, disable ``e'' and
12202         ``E'' step out-of-range packets.
12203
12204 2002-02-26  Andreas Schwab  <schwab@suse.de>
12205
12206         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12207         m68k_linux_frame_saved_pc.
12208         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12209         in_sigtramp.
12210         (SIGCONTEXT_PC_OFFSET): Remove.
12211         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12212         m68k_linux_sigtramp_saved_pc): New functions.
12213         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12214         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12215         (UCONTEXT_PC_OFFSET): Define.
12216         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12217         non-RT and RT signal trampolines.
12218
12219 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12220
12221         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12222         (TARGET_NBPG, STACK_END_ADDR): Delete
12223         (VARIABLES_INSIDE_BLOCK): Delete.
12224
12225 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12226
12227         * utils.c (perror_with_name): Make string parameter constant.
12228         (print_sys_errmsg): Ditto.
12229         (query): Ditto.
12230         * defs.h (perror_with_name): Update.
12231         (print_sys_errmsg): Update.
12232         (query): Update.
12233
12234 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12235
12236         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12237         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12238
12239 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12240
12241         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12242         if it already matches the current architecture from the exec file.
12243         Include arch-utils.h for gdbarch_info_init prototype.
12244         * Makefile.in (rs6000-nat.o): Update dependencies.
12245
12246 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12247
12248         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12249          list of exported variables.
12250
12251 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12252
12253         * gdbserver/configure.srv: New file.
12254         * gdbserver/configure.in: Use configure.srv instead
12255         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12256         from it.
12257         * gdbserver/configure: Regenerated.
12258         * gdbserver/terminal.h: New file.
12259         * gdbserver/Makefile.in: Update for configure changes.  Remove
12260         more unneeded include paths.
12261
12262 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12263
12264         From wiz at danbala:
12265         * config/sparc/tm-sp64.h: Fix grammar and typos.
12266         Fix PR gdb/287.
12267
12268 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12269
12270         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12271         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12272         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12273         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12274         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12275         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12276         * s390-tdep.c: Ditto.
12277         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12278         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12279         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12280         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12281         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12282         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12283         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12284         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12285         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12286         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12287         Fix PR gdb/378.
12288
12289 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12290
12291         * lin-thread.c: Delete file.
12292         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12293         to gdb_proc_service.h.
12294         * configure: Re-generate.
12295
12296         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12297         * serial.c (serial_open): Delete check for "ocd".
12298         Fix PR gdb/349.
12299
12300         * Makefile.in (linux-thread.o): Delete target.
12301         * linux-thread.c: Delete file.
12302
12303         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12304         renamed SH files to be consistent.
12305
12306         * symtab.c (sort_search_symbols): Use xfree.
12307
12308 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12309
12310         * arm-linux-tdep.c (arm_linux_init_abi): Register
12311         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12312         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12313         definition with undef, since we don't want the sysvr4 definition.
12314         (SKIP_TRAMPOLINE_CODE): Likewise.
12315
12316 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12317
12318         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12319
12320         * configure.in: (AC_CHECK_FUNCS) Added test for
12321         canonicalize_file_name Regenerated.
12322         * config.in, configure: Regenerated.
12323         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12324         defined use canonicalize_file_name.
12325
12326 2002-02-23  Michael Chastain  <mec@shout.net>
12327
12328         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12329
12330 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12331
12332         * README: Remove references to cygnus.com.
12333         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12334         dot com'' form.  Remove references to cygnus.com and sourceware.
12335
12336 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12337
12338         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12339         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12340         1003.1-2001 no longer allows "head -1".
12341         * gdb/Makefile.in (version.c): Likewise.
12342         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12343         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12344         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12345
12346 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12347
12348         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12349         * command.h (cmd_cfunc_eq): Declare.
12350         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12351
12352         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12353         ``struct cmd_list_element *''.
12354         * cli/cli-cmds.c (is_complete_command): Update.  Use
12355         cmd_cfunc_eq.
12356         * top.c (execute_command): Pass the command to
12357         is_complete_command.
12358         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12359
12360 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12361
12362         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12363         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12364         architecture defines.
12365         * s390-tdep.c (s390_gdbarch_init): Likewise.
12366
12367 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12368
12369         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12370         (arm_linux_push_arguments): Likewise.
12371         (arm_linux_init_abi): Register them.  Also register linux-specific
12372         call_dummy_words.
12373         (find_minsym_and_objfile): Use strcmp, not STREQ.
12374         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12375         (arm_linux_call_dummy_words): Delete declaration.
12376         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12377         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12378         declarations.
12379         (LOWEST_PC): Delete.
12380
12381 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12382
12383         * maint.c (print_section_info): Do not prepend `0x' to filepos
12384         output, it will be handled by local_hex_string_custom.
12385
12386 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12387
12388         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12389         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12390         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12391
12392 2002-02-22  Jim Blandy  <jimb@redhat.com>
12393
12394         Indicate that the bcache functions don't change the strings
12395         they're passed.
12396         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12397         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12398
12399 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12400
12401         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12402
12403 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12404
12405         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12406         find the complete path to a loaded DLL.
12407
12408 2002-02-21  Fred Fish  <fnf@redhat.com>
12409
12410         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12411         that marks the end of the range of a function, enter a line number
12412         entry that has a line number of zero and a PC offset that matches
12413         the end of the function.  This starts a range of PC's for which no
12414         line number information is known.
12415         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12416         PC's for which no line number info is found (line number is zero)
12417         then we didn't find any valid line information.
12418         * symtab.h: Document use of zero line number entry.
12419
12420 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12421
12422         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12423         (have_ptrace_getvrregs): Define for run time checks.
12424         (gdb_vrregset_t): New type for Altivec register handling.
12425         (fetch_register, store_register): Fetch/store altivec register
12426         when needed.
12427         (fetch_altivec_register, store_altivec_register): New functions.
12428         (supply_vrregset, fill_vrregset): New functions.
12429         (fetch_altivec_registers, store_altivec_registers): New functions.
12430         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12431         registers as well.
12432
12433 2002-02-21  Jiri Smid  <smid@suse.cz>
12434
12435         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12436
12437 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12438
12439         * Makefile.in (armnbsd-nat.o): Update dependencies.
12440         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12441         supply the integer register set.
12442         (supply_fparegset): New function.  Similar for FPA registers.
12443         (fetch_regs, fetch_fp_regs): Use them.
12444         (fetch_core_registers): Likewise.
12445         (fetch_elfcore_registers): New function.
12446         (arm_netbsd_elfcore_fns): New core-file type specification.
12447         (_initialize_arm_netbsd_nat): Register it.
12448
12449 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12450
12451         * armnbsd-nat.c: Include gdbcore.h.
12452         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12453         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12454         'void' to declaration, to shut up ARI.
12455         (fetch_core_registers): Make static.  Rewrite using supply_register.
12456         (arm_netbsd_core_fns): New core-file type specification.
12457         (_initialize_arm_netbsd_nat): New function.
12458
12459 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12460
12461         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12462         value.
12463
12464 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12465
12466         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12467         fails.
12468
12469 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12470
12471         * jv-exp.y (parse_number): Change type of implicit longs
12472         to builtin_type_uint64.
12473
12474 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12475
12476         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12477         to be an integer instead of a `union wait'.
12478
12479 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12480
12481         * mips-linux-nat.c: Call the operating system GNU/Linux.
12482         * mips-linux-tdep.c: Likewise.
12483         * mips-tdep.c: Likewise.
12484
12485 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12486
12487         Fix PR gdb/265.
12488         * jv-exp.y (parse_number): Handle 64-bit integers.
12489
12490 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12491
12492         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12493         AC_STDC_HEADERS to AC_HEADER_STDC.
12494         * gdbserver/configure: Regenerated.
12495
12496 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12497
12498         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12499         is defined.
12500         * sparc-tdep.c (get_longjmp_target): Likewise.
12501
12502 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12503
12504         * News: Add news about ARM and Multi-arch.  Mention the new target
12505         arm*-*-netbsd*.
12506
12507 2002-02-19  Jim Blandy  <jimb@redhat.com>
12508
12509         * stabsread.c (error_type_complaint): Improve error message.
12510
12511 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12512
12513         * gdbserver/README: Update documentation.
12514         * gdbserver/configure.in: Update configury to match documentation.
12515         * gdbserver/Makefile.in: Likewise.
12516         * gdbserver/configure: Regenerated.
12517         * gdbserver/aclocal.m4: New file, generated by aclocal.
12518         * gdbserver/config.in: New file, generated by autoheader.
12519
12520 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12521
12522         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12523         armnbsd-nat.c.
12524
12525 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12526
12527         * arm-tdep.h (enum arm_float_model): New enum.
12528         (struct gdbarch_tdep): Add fp_model.
12529         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12530         up floating-point conversions until we know the floating-point model
12531         in use by the inferior.  Don't complain about being unable to
12532         determine the ABI of the inferior when we don't have one.
12533         (arm_extract_return_value): Support different floating-point models.
12534         (arm_store_return_value): Likewise.
12535         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12536         ARM_FLOAT_SOFT.
12537         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12538
12539 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12540
12541         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12542         of ``current_gdbarch''.
12543
12544 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12545
12546         * armnbsd-nat.c : ANSIfy all function declarations.
12547         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12548         (fetch_inferior_registers): Re-implement in terms of above.
12549         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12550         (store_inferior_registers): Re-implement in terms of above.
12551
12552 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12553
12554         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12555         kernel.
12556         * arm-linux-tdep.c: Likewise.
12557         * config/arm/tm-linux.h: Likewise.
12558
12559 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12560
12561         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12562         * config/arm/nbsd.mt (TM_FILE): Delete.
12563         * config/arm/tm-nbsd.h: Delete.
12564
12565 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12566
12567         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12568         Initialize CALL_DUMMY_LENGTH.
12569
12570 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12571
12572         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12573         function.
12574         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12575         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12576         defines one thing and that is incorrect for this port.
12577         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12578
12579 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12580
12581         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12582
12583 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12584
12585         * win32-nat.c (display_selector): New function. Displays information
12586         about the information returned by GetThreadSelectorEntry API function.
12587         (display_selectors): New function. Displays the infomation of
12588         the selector given as argument, or of CS, DS ans FS selectors
12589         if no argument is given.
12590         ( _initialize_inftarg): Add "w32" as info prefix command.
12591         Add "info w32 selector" as command calling display_selectors.
12592
12593 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12594
12595         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12596         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12597         if not defined.
12598
12599 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12600
12601         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12602
12603 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12604
12605         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12606         (arm_fix_call_dummy): Call it.
12607         (arm_call_dummy_breakpoint_offset): Delete.
12608         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12609         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12610
12611 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12612
12613         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12614         Default to func_frame_chain_valid.
12615         * gdbarch.h, gdbarch.c: Re-generate.
12616         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12617
12618 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12619
12620         * ppc-linux-nat.c: Update copyright.
12621         (fetch_register, store_register): Add tid parameter, don't compute
12622         tid here.
12623         (fetch_ppc_registers, store_ppc_registers): Add tid
12624         parameter. Pass it along to callees.
12625         (fetch_inferior_registers, store_inferior_registers): Compute tid
12626         here, and pass it to calleed functions.
12627         (fill_gregset, supply_fpregset): Clean up formatting.
12628
12629 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12630
12631         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12632         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12633
12634 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12635
12636         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12637         * gdbarch.c gdbarch.h: Regenerate.
12638         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12639         function.
12640         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12641         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12642         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12643
12644         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12645         * arm-tdep.c (arm_get_longjmp_target): New function.
12646         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12647         this to a positive value register arm_get_longjmp_target as the
12648         longjmp handler.
12649         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12650         (arm_linux_init_abi): Set up longjmp description in tdep.
12651         * armnbsd-nat.c (get_longjmp_target): Delete.
12652         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12653         description in tdep.
12654         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12655         (get_longjmp_target): Delete declaration.
12656         (GET_LONGJMP_TARGET): Delete.
12657         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12658         (GET_LONGJMP_TARGET): Delete.
12659
12660 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12661
12662         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12663         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12664         of ``current_gdbarch''.
12665
12666 2002-02-17  Tom Tromey  <tromey@redhat.com>
12667
12668         * cli/cli-cmds.c (compare_strings): New function.
12669         (complete_command): Only print each unique item once.
12670         * completer.h (complete_line): Declare.
12671         * completer.c (complete_line): New function.
12672         (line_completion_function): Use it.
12673
12674 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12675
12676         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12677         * gdbarch.h, gdbarch.c: Re-generate.
12678
12679 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12680
12681         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12682
12683 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12684
12685         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12686         * valops.c (value_arg_coerce): Don't take the address of a reference
12687         to convert an argument to a reference.
12688
12689 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12690
12691         * win32-nat.c (get_image_name): New function.
12692         (handle_load_dll): Use get_image_name function.
12693         (get_child_debug_event): Avoid registering debug events until possibly
12694         execed process is started.
12695         (child_create_inferior): Allow invocation via shell so that command
12696         line redirection, etc.  works ok.
12697         (_initialize_inftarg): Add new command: "set shell" to control whether
12698         a shell is used to start a process.
12699
12700 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12701
12702         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12703         instead of find_register_by_number.
12704         (cannot_store_register): Likewise.
12705
12706 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12707
12708         * dwarf2read.c: Replace fprintf (stderr, ...) by
12709         fprintf_unfiltered (gdb_stderr, ...).
12710
12711 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12712
12713         * gdbserver/gdbserver.1: Document --attach.
12714
12715 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12716
12717         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12718         descriptions.
12719         * arm-tdep.c (arm_default_arm_le_breakpoint)
12720         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12721         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12722         traditional breakpoint defines.
12723         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12724         (arm_gdbarch_init): Initialize new breakpoint variables.
12725         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12726         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12727         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12728         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12729         code out to ...
12730         (arm_netbsd_init_abi_common): ... here; new function.
12731         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12732         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12733         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12734         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12735
12736 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12737
12738         * arm-tdep.h (enum arm_abi): New enum.
12739         (struct gdbarch_tdep): New structure.
12740         (LOWEST_PC): Provide a default.
12741         (arm_gdbarch_register_os_abi): Declare new function.
12742         * arm-tdep.c (arm_abi_names): New array.
12743         (process_note_abi_tag_sections): New function.
12744         (get_elfosabi): New function.
12745         (arm_gdbarch_register_os_abi): New function.
12746         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12747         support for that ABI has been built in, then call the appropriate
12748         configuration routine.  Use gdbarch_num_regs() to get the number
12749         of registers.
12750         (arm_dump_tdep): New function.
12751         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12752         place-holder functions.
12753         (_initialize_arm_tdep): Register them.
12754         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12755
12756         * armnbsd-tdep.c: New file.
12757         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12758         * config/arm/nbsd.mt (TDEPFILES): Add it.
12759         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12760
12761         * armnbsd-nat.c: Include regcache.h.
12762         * Makefile.in (armnbsd-nat.o): Update dependency list.
12763
12764         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12765
12766 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12767
12768         * gdbserver/Makefile.in: Fix typos in target rules.
12769
12770 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12771
12772         Fix part of PR gdb/267.
12773         * linespec.c (find_methods): Handle constructors specially for now.
12774
12775 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12776
12777         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12778         handling.
12779         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12780         standard_coerce_float_to_double().
12781
12782 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12783
12784         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12785         GDBINIT_FILENAME.
12786
12787 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12788
12789         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12790         find_variant_by_name, because it confuses the multiarch
12791         framework. Return NULL if there isn't an architecture with the
12792         user supplied name, instead of forcing a different one without
12793         recording the change with the multiarch machinery.
12794         (find_variant_by_name): Delete.
12795
12796 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12797
12798         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12799         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12800
12801 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12802
12803         * stack.c (print_frame_info_base): When calling
12804         print_frame_info_listing_hook, set current_source_symtab.
12805
12806 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12807
12808         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12809         and remove unused $(INCLUDE_DIR).
12810         Add regcache.c to OBS.
12811         Add generated register protocol files to clean target.
12812         Update dependencies for new objects, obsolete old target code.
12813
12814         * gdbserver/linux-low.c: Remove all platform-specific code to
12815         new files.  Remove various dead code.  Update to use regcache
12816         functionality.
12817         * gdbserver/remote-utils.c (fromhex): Add return statement
12818         to quiet warning.
12819         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12820         constant.
12821         (input_interrupt): Add integer parameter to match prototype
12822         of a signal handler.
12823         (outreg): Use register_data ().
12824         (prepare_resume_reply): Use gdbserver_expedite_regs.
12825         * gdbserver/server.c (main): Dynamically allocate own_buf because
12826         PBUFSIZ is no longer constant.  Use registers_to_string () and
12827         registers_from_string ().
12828         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
12829         for error (), fatal (), and warning ().  Update definition of
12830         PBUFSIZ to use regcache functionality.  Add include guard.
12831         * gdbserver/utils.c (fatal): Add missing ``const''.
12832         (warning): New function.
12833
12834         * regformats/regdat.sh: Include "regcache.h" in generated files.
12835         Provide init_registers () function.
12836         * regformats/regdef.h: Add prototype for set_register_cache ().
12837         Add include guard.
12838
12839         * gdbserver/linux-arm-low.c: New file.
12840         * gdbserver/linux-i386-low.c: New file.
12841         * gdbserver/linux-ia64-low.c: New file.
12842         * gdbserver/linux-m68k-low.c: New file.
12843         * gdbserver/linux-mips-low.c: New file.
12844         * gdbserver/linux-ppc-low.c: New file.
12845         * gdbserver/linux-sh-low.c: New file.
12846
12847         * gdbserver/regcache.c: New file.
12848         * gdbserver/regcache.h: New file.
12849
12850         * gdbserver/low-linux.c: Removed obsolete file.
12851
12852 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12853
12854         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12855         * config/i386/linux.mt: Likewise.
12856         * config/ia64/linux.mt: Likewise.
12857         * config/m68k/linux.mh: Likewise.
12858         * config/powerpc/linux.mh: Likewise.
12859         * config/mips/linux.mt: Likewise.
12860
12861         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12862
12863         * config/i386/i386lynx.mh: Mark gdbserver variables
12864         as (currently) obsolete for this target.
12865         * config/i386/nbsd.mt: Likewise.
12866         * config/i386/nbsdelf.mt: Likewise.
12867         * config/m32r/m32r.mt: Likewise.
12868         * config/m68k/m68klynx.mh: Likewise.
12869         * config/m68k/nbsd.mt: Likewise.
12870         * config/m68k/sun3os4.mh: Likewise.
12871         * config/mips/vr5000.mt: Likewise.
12872         * config/ns32k/nbsd.mt: Likewise.
12873         * config/pa/hppabsd.mh: Likewise.
12874         * config/pa/hppaosf.mh: Likewise.
12875         * config/powerpc/nbsd.mt: Likewise.
12876         * config/rs6000/rs6000lynx.mh: Likewise.
12877         * config/s390/s390.mt: Likewise.
12878         * config/s390/s390x.mt: Likewise.
12879         * config/sparc/sparclynx.mh: Likewise.
12880         * config/sparc/sun4os4.mh: Likewise.
12881         * config/i386/x86-64linux.mt: Likewise.
12882         * config/sparc/linux.mh: Likewise.
12883
12884 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12885
12886         * configure.tgt: Configure gdbserver only for known working
12887         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
12888         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
12889         SUBDIRS if it is configured.  Update comment for ${nativefile}.
12890         * configure: Regenerated.
12891
12892 2002-02-13  Michael Snyder  <msnyder@redhat.com>
12893
12894         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12895
12896         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12897         (default_gcore_mach): Just return 0, work around a problem in bfd.
12898         (default_gcore_target): OK to return NULL if exec_bfd is null.
12899         (make_mem_sec): Use a cast, avoid a warning.
12900
12901         * procfs.c (find_memory_regions_callback): Use a cast instead of
12902         calling host_pointer_to_address (which complains if
12903         sizeof (host pointer) != sizeof (target pointer)).
12904         (procfs_make_note_section): Avoid overflow in psargs string.
12905
12906         * procfs.c (procfs_make_note_section): Make the default
12907         implementation return an error.
12908
12909 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
12910
12911         * procfs.c (procfs_make_note_section): Provide a default definition
12912         (for alpha-dec-osf4.0f). Fix typos.
12913
12914 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
12915
12916         * linux-proc.c: Add include of regcache.h.
12917         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12918
12919 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
12920
12921         From 2002-01-18 Greg McGary <greg@mcgary.org>:
12922         * memattr.c (create_mem_region): Disallow useless empty region.
12923         Regions are half-open intervals, so allow [A..B) [B..C) as
12924         non-overlapping.
12925
12926 2002-02-13  Michael Chastain <mec@shout.net>
12927
12928         * defs.h: Kill CONST_PTR.
12929         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12930         * c-lang.c (c_builtin_types): Likewise.
12931         * ch-lang.c (ch_builtin_types): Likewise.
12932         * f-lang.c (f_builtin_types): Likewise.
12933         * language.c (unknown_builtin_types): Likewise.
12934         * m2-lang.c (m2_builtin_types): Likewise.
12935         * p-lang.c (pascal_builtin_types): Likewise.
12936         * scm-lang.c (c_builtin_types): Likewise.
12937
12938 2002-02-13  Keith Seitz  <keiths@redhat.com>
12939
12940         * arm-tdep.h (arm_get_next_pc): Add declaration.
12941
12942 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
12943
12944         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
12945         with other related struct-returning functions.
12946         (arm_extract_struct_value_address): New function.
12947         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
12948         initialize float_format, double_format and long_double_format as
12949         appropriate to the endianness of the target.
12950         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12951         (arm_use_struct_convention): Delete declaration.
12952         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12953
12954 2002-02-13  Keith Seitz  <keiths@redhat.com>
12955
12956         * defs.h (core_addr_to_string_nz): New function.
12957
12958 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
12959
12960         Apply missing bits of 2002-01-15 patch.
12961         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12962         (fill_fpregset): Use i387_fill_fsave.
12963
12964 2002-02-12  Keith Seitz  <keiths@redhat.com>
12965
12966         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12967         (core_addr_to_string_nz): New function.
12968
12969 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
12970
12971         * arm-linux-nat.c: Really include arm-tdep.h.
12972         * config/arm/tm-linux.h (struct type, struct value): Declare.
12973
12974 2002-02-11  Michael Snyder  <msnyder@redhat.com>
12975
12976         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12977         (gcore section): Ifdef for Solaris and Unixware only.
12978         (procfs_do_thread_registers): Unixware needs one lwpstatus
12979         per thread (not one prstatus or pstatus).
12980         (procfs_make_note_section): Iterate only over kernel threads (lwps),
12981         not over all gdb threads.  For unixware, call elfcore_write_pstatus
12982         once before iterating over threads.
12983
12984 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
12985
12986         * arm-tdep.h: New file.
12987         * arm-tdep.c: Include arm-tdep.h.
12988         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12989         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12990         (arm_print_float_info, arm_register_type, convert_to_extended)
12991         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12992         (arm_extract_return_value, arm_register_name): Make static.
12993         (arm_software_single_step): Similarly.  Fix types in declaration.
12994         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12995         (arm_store_return_value, arm_store_struct_return): New functions.
12996         (arm_gdbarch_init): Register the above functions.  Also register
12997         call_dummy_start_offset, sizeof_call_dummy_words,
12998         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12999         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13000         max_register_virtual_size, register_size.  Set up
13001         prologue_cache.saved_regs here, rather than ...
13002         (_initialize_arm_tdep): ... here.
13003         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13004         declarations.
13005         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13006         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13007         (arm_print_float_info, arm_register_type, convert_to_extended)
13008         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13009         (arm_extract_return_value, arm_register_name): Delete declarations.
13010         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13011         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13012         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13013         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13014         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13015         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13016         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13017         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13018         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13019         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13020         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13021         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13022         interface.
13023         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13024         * remote-rdi.c remote-rdp.c: Likewise.
13025         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13026         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13027         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13028         definition.
13029
13030         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13031         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13032         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13033         from non-ARM_ prefixed definitions.
13034         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13035         all uses of above.
13036         * remote-rdi.c remote-rdp.c: Likewise.
13037         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13038
13039 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13040
13041         * arm-tdep.c (arm_frameless_function_invocation)
13042         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13043         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13044         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13045         (arm_pop_frame, arm_get_next_pc): Make static.
13046         (arm_gdbarch_init): Register above in gdbarch structure.
13047         (arm_read_fp): Renamed from arm_target_read_fp.
13048         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13049         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13050         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13051         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13052         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13053         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13054         (arm_pc_is_thumb_dummy): Delete declarations.
13055         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13056         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13057         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13058         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13059
13060 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13061
13062         * symtab.c (compare_search_syms): New function.
13063         (sort_search_symbols): New function.
13064         (search_symbols): Sort symbols after searching rather than
13065         before.
13066
13067 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13068
13069         * NEWS: Linux -> GNU/Linux.
13070
13071 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13072
13073         * gdbarch.sh: For for level one methods, disallow a definition
13074         when partially multi-arched.  Add comments explaining rationale.
13075         * gdbarch.h: Re-generate.
13076
13077 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13078
13079         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13080         multi-arch partial.
13081
13082 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13083
13084         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13085         field.  Use diff -u.
13086         * gdbarch.c: Re-generate.
13087
13088 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13089
13090         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13091         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13092         partial.
13093
13094 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13095
13096         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13097         multi-arch partial.
13098         (PUSH_ARGUMENTS): Switch to using predefault.
13099         * gdbarch.c: Regenerate.
13100
13101 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13102
13103         * valops.c (PUSH_ARGUMENTS): Delete definition.
13104         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13105         partial.  Default to default_push_arguments.
13106         * gdbarch.h, gdbarch.c: Regenerate.
13107
13108 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13109
13110         * defs.h (throw_exception): Rename return_to_top_level.  Update
13111         comments.
13112         * utils.c (error_stream, internal_verror, quit): Ditto.
13113         * top.c (throw_exception, catcher): Ditto.
13114         * sparclet-rom.c (sparclet_load): Ditto.
13115         * remote.c (interrupt_query, minitelnet): Ditto.
13116         * remote-sds.c (interrupt_query): Ditto.
13117         * remote-mips.c (mips_error, mips_kill): Ditto.
13118         * ocd.c (interrupt_query): Ditto.
13119         * monitor.c (monitor_interrupt_query): Ditto.
13120         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13121         * target.h: Update comment.
13122
13123         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13124
13125 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13126
13127         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13128         default_double_format.
13129         * gdbarch.h, gdbarch.c: Re-generate.
13130         * findvar.c (floatformat_unknown): Delete variable definition.
13131         * doublest.h (floatformat_unknown): Delete variable declaration.
13132
13133 2002-02-09  Jim Blandy  <jimb@redhat.com>
13134
13135         * stabsread.c (read_type): Add code to parse Sun's syntax for
13136         prototyped function types.
13137
13138 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13139
13140         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13141         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13142
13143 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13144
13145         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13146         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13147         now _initialize_xcoffsolib gets called again and overrides the
13148         commands from solib.c in a native configuration.
13149
13150 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13151
13152         * doublest.c (store_typed_floating): Don't try to return a value.
13153         Fixes PR gdb/290.
13154
13155 2002-02-08  Jim Blandy  <jimb@redhat.com>
13156
13157         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13158         is prototyped and has no arguments, print its argument list as
13159         `(void)'.
13160
13161 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13162
13163         * MAINTAINERS (write-after-approval): Add myself.
13164         (paper-trail): I've escaped!
13165
13166 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13167
13168         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13169         changes.
13170         (_initialize_check_for_gdb_ini): Ditto.
13171
13172 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13173
13174         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13175         xaprintf -> xasprintf.
13176
13177 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13178
13179         * win32-nat.c: Remove use of printf and sprintf functions.
13180
13181 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13182
13183         * arm-tdep.c (arm_frame_chain_valid): Make static.
13184         (arm_push_arguments): Likewise.
13185         (arm_gdbarch_init): New function.
13186         (_initialize_arm_tdep): Call it.
13187         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13188         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13189         (FRAME_CHAIN_VALID): Delete.
13190         (arm_frame_chain_valid): Delete declaration.
13191         (PUSH_ARGUMENTS): Delete.
13192         (arm_push_arguments): Delete declaration.
13193         (CALL_DUMMY_P): Delete.
13194
13195 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13196             Corinna Vinschen  <vinschen@redhat.com>
13197
13198         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13199         on builtin float types.
13200
13201 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13202
13203         * utils.c: Include <curses.h> before "bfd.h".
13204         * tui/tui-hooks.c: Likewise.
13205         * tui/tui.c: Likewise.
13206         * tui/tuiCommand.c: Likewise.
13207         * tui/tuiData.c: Likewise.
13208         * tui/tuiDataWin.c: Likewise.
13209         * tui/tuiDisassem.c: Likewise.
13210         * tui/tuiGeneralWin.c: Likewise.
13211         * tui/tuiIO.c: Likewise.
13212         * tui/tuiLayout.c: Likewise.
13213         * tui/tuiRegs.c: Likewise.
13214         * tui/tuiSource.c: Likewise.
13215         * tui/tuiSourceWin.c: Likewise.
13216         * tui/tuiStack.c: Likewise.
13217         * tui/tuiWin.c: Likewise.
13218
13219 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13220
13221         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13222         to include space for pseudoregs as well. Update loops accordingly.
13223         (sh_fp_frame_init_saved_regs): Ditto.
13224         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13225
13226 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13227
13228         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13229         Add Richard Earnshaw to Arm maintainers.
13230
13231 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13232
13233         * defs.h (warning_begin): Delete declaration.
13234
13235         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13236         Delete macro.
13237
13238 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13239
13240         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13241         Logic bug, remove misplaced else.
13242
13243 2002-02-07  Klee Dienes  <klee@apple.com>
13244
13245         * fork-inferior.c (fork_inferior): Add '!' to the list of
13246         characters that need to be quoted when building a string for the
13247         shell.  Quote '!' specifically with a backslash, since CSH chokes
13248         when trying to evaluate "str!str".
13249
13250 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13251
13252         * rdi-share/host.h: Only provide a typedef for bool if it is not
13253         defined.
13254
13255 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13256
13257         * breakpoint.h (enum bptype): Add new overlay event bp type.
13258         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13259
13260         * breakpoint.c (create_internal_breakpoint): New function.
13261         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13262         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13263         (create_thread_event_breakpoint): Ditto.
13264         (create_solib_event_breakpoint): Ditto.
13265         (create_overlay_event_breakpoint): New function.
13266         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13267         (update_breakpoints_after_exec): Delete and re-initialize
13268         overlay event breakpoints after an exec.  Add FIXME comment
13269         about longjmp breakpoint.
13270         (print_it_typical): Ignore overlay event breakpoints.
13271         (print_one_breakpoint): Ditto.
13272         (mention): Ditto.
13273         (bpstat_what): Do not stop for overlay event breakpoints.
13274         (delete_breakpoint): Don't delete overlay event breakpoints.
13275         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13276         (breakpoint_re_set): Re-create overlay event breakpoint.
13277
13278         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13279         (overlay_manual_command): Disable overlay breakpoints.
13280         (overlay_off_command): Disable overlay breakpoints.
13281
13282 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13283
13284         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13285         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13286         to here from config/tm-arm.h.
13287         (coff_sym_is_thumb): Make static.
13288         (arm_elf_make_msymbol_special): New function.
13289         (arm_coff_make_msymbol_special): New function.
13290         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13291         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13292         (coff_sym_is_thumb): Delete declaration.
13293         (arm_elf_make_msymbol_special): Declare.
13294         (arm_coff_make_msymbol_special): Declare.
13295         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13296         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13297
13298 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13299
13300         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13301
13302 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13303
13304         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13305         * gdbarch.c gdbarch.h: Regenerate.
13306         * arch-utils.c (default_print_float_info): New function.
13307         * arch-utils.h (default_print_float_info): Prototype it.
13308         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13309         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13310         (PRINT_FLOAT_INFO): Document it.
13311
13312         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13313         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13314         (PRINT_FLOAT_INFO): Define.
13315
13316 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13317
13318         * win32-nat.c (_initialize_check_for_gdb_ini):
13319         Add typecast to sprintf argument to suppress a warning.
13320
13321 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13322
13323         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13324         to allow easier handling of pass state.
13325         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13326         that gives exception name and address.
13327         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13328         and set last_sig value to ourstatus->value.sig. Some missing
13329         exceptions added.
13330         (child_continue): Correctly report continue_status.
13331         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13332         TARGET_SIGNAL_0 (new default value).
13333         (child_resume): consider sig argument passed to decide if
13334         the exception should be passed to debuggee or not.
13335
13336 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13337
13338         * regcache.c (fetch_register): Call target_fetch_register
13339         only if we don't call FETCH_PSEUDO_REGISTER.
13340         (store_register): Call target_store_register only if we
13341         don't call STORE_PSEUDO_REGISTER.
13342
13343 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13344
13345         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13346         ELF_MAKE_MSYMBOL_SPECIAL.
13347         * gdbarch.c, gdbarch.h: Regenerate.
13348         * arch-utils.c (default_make_msymbol_special): New function.
13349         * arch-utils.h (default_make_msymbol_special): Export.
13350         * elfread.c (elf_symtab_read): Compile use of
13351         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13352         multiarched.
13353         * coffread.c (coff_symtab_read): Ditto, for
13354         COFF_MAKE_MSYMBOL_SPECIAL.
13355
13356 2002-02-05  Jim Blandy  <jimb@redhat.com>
13357
13358         * solib-svr4.c (svr4_truncate_ptr): New function.
13359         (svr4_relocate_section_addresses): Do the address arithmetic with
13360         the appropriate truncation for target addresses, even when
13361         CORE_ADDR is larger than a target address.
13362
13363 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13364
13365         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13366         to (int *).
13367
13368 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13369
13370         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13371         code.
13372
13373 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13374
13375         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13376
13377 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13378
13379         * gdbserver/linux-low.c: Remove unused include files.
13380
13381 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13382
13383         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13384         (read_inferior_memory): Use it.
13385         (write_inferior_memory): Likewise.
13386
13387 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13388
13389         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13390         grubbing through sys_errlist.
13391
13392 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13393
13394         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13395
13396 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13397         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13398
13399 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13400
13401         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13402         (do_sfunc, set_cmd_sfunc): New functions.
13403
13404         * command.h (struct cmd_list_element): Add field func.
13405         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13406         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13407         * cli/cli-decode.h: Ditto.
13408
13409         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13410         (help_all, help_cmd_list): Ditto.
13411         (find_cmd, complete_on_cmdlist): Ditto.
13412         * top.c (execute_command): Ditto.
13413
13414         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13415         function.sfunc.
13416
13417         * infcmd.c (notice_args_read): Fix function signature.
13418
13419         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13420         * cli/cli-decode.c (add_set_cmd): Ditto.
13421         * utils.c (initialize_utils): Ditto.
13422         * maint.c (_initialize_maint_cmds): Ditto.
13423         * infrun.c (_initialize_infrun): Ditto.
13424         * demangle.c (_initialize_demangler): Ditto.
13425         * remote.c (add_packet_config_cmd): Ditto.
13426         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13427         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13428         * proc-api.c (_initialize_proc_api): Ditto.
13429         * kod.c (_initialize_kod): Ditto.
13430         * valprint.c (_initialize_valprint): Ditto.
13431         * top.c (init_main): Ditto.
13432         * infcmd.c (_initialize_infcmd): Ditto.
13433         * corefile.c (_initialize_core): Ditto.
13434         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13435         * arch-utils.c (initialize_current_architecture): Ditto.
13436         (_initialize_gdbarch_utils): Ditto.
13437         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13438
13439         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13440         * wince.c (_initialize_inftarg): Ditto.
13441         * symfile.c (_initialize_symfile): Ditto.
13442         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13443         * language.c (_initialize_language): Ditto.
13444         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13445
13446 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13447
13448         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13449
13450 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13451
13452         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13453         Add rules for building the register data files.
13454
13455 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13456
13457         * regformats/regdat.sh: Add braces to the definition of
13458         expedite_regs_${arch}.
13459
13460 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13461
13462         * regformats/regdef.h (struct reg): Add comment describing the
13463         requirements for offset and size fields.
13464
13465 2002-02-04  Andreas Schwab  <schwab@suse.de>
13466
13467         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13468         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13469
13470 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13471
13472         * gdbarch.sh (copyright): Update years in generated header.
13473         (SMASH_TEXT_ADDRESS): Add rule.
13474         * gdbarch.h, gdbarch.c: Re-generate.
13475         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13476         * dbxread.c: Likewise.
13477         * dwarfread.c: Likewise.
13478         * elfread.c: Likewise.
13479         * somread.c: Likewise.
13480
13481         * arm-tdep.c (arm_smash_text_address): New function.
13482         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13483
13484 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13485
13486         Add support for hardware watchpoints on win32 native.
13487         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13488         CONTEXT_DEBUG_REGISTERS.
13489         (dr variable): New variable. Static array containing a local copy
13490         of debug registers.
13491         (debug_registers_changed): New variable.  Reflects when debug registers
13492         are changed and need to be written to inferior.
13493         (debug_registers_used): New variable. Reflects when any debug register
13494         was set, used when new threads are created.
13495         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13496         i386-nat code.
13497         (thread_rec): Set dr array if id is the thread of current_event .
13498         (child_continue, child_resume): Change the debug registers for all
13499         threads if debug_registers_changed.
13500         (child_add_thread): Change the debug registers if debug_registers_used.
13501         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13502         Link nm.h to new nm-cygwin.h file.
13503         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13504         of hardware registers.
13505
13506 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13507
13508         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13509         Restore behavour broken by 2002-01-20 Andrew Cagney
13510         <ac131313@redhat.com> IEEE_FLOAT removal.
13511
13512 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13513
13514         * c-valprint.c (c_val_print): Pass a proper valaddr to
13515         cp_print_class_method.
13516         * valops.c (search_struct_method): If there is only one method
13517         and args is NULL, return that method.
13518
13519 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13520
13521         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13522         accessing tag_name directly.
13523
13524 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13525
13526         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13527         of accessing tag_name directly.
13528
13529 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13530
13531         PR gdb/280
13532         * gdbtypes.c (replace_type): New function.
13533         * gdbtypes.h (replace_type): Add prototype.
13534         * stabsread.c (read_type): Use replace_type.
13535
13536 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13537
13538         * Makefile.in (memattr.o): Add missing dependencies rule.
13539
13540 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13541
13542         * breakpoint.c (break_at_finish_command): Really export.
13543         (break_at_finish_at_depth_command): Ditto.
13544         (tbreak_at_finish_command): Ditto.
13545         * hppa-tdep.c: Include completer.h.
13546         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13547         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13548
13549 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13550
13551         * utils.c (do_write): New function.
13552         (error_stream): Rewrite combining the code from error_begin and
13553         verror.
13554         (verror): Rewrite using error_stream.
13555         (error_begin): Delete function.
13556
13557 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13558
13559         * utils.c (error_begin): Make static.
13560         * defs.h (error_begin): Delete declaration.
13561
13562         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13563         (decode_line_1): Use cplusplus_error instead of error_begin,
13564         cplusplus_hint and return_to_top_level.
13565         * coffread.c (coff_symfile_read): Use error instead of error_begin
13566         and return_to_top_level.
13567         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13568
13569 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13570
13571         * language.h (type_error, range_error): Make string parameter
13572         constant.
13573         * language.c (warning_pre_print): Delete extern declaration.
13574         * dwarfread.c (warning_pre_print): Ditto.
13575         * language.c (type_error, range_error): Rewrite to use verror and
13576         vwarning instead of warning_begin.
13577
13578 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13579
13580         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13581         (set_ignore_count): Move misplaced comment back where it belongs.
13582
13583 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13584
13585         * command.h (NO_FUNCTION): Delete macro.
13586         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13587         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13588         * tracepoint.c (_initialize_tracepoint): Ditto.
13589         * cli/cli-decode.c (add_set_cmd): Ditto.
13590         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13591
13592 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13593
13594         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13595         Update ``this'' pointer when calling virtual functions.
13596
13597 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13598
13599         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13600         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13601
13602 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13603
13604         * regformats/reg-arm.dat: New file.
13605         * regformats/reg-i386.dat: New file.
13606         * regformats/reg-ia64.dat: New file.
13607         * regformats/reg-m68k.dat: New file.
13608         * regformats/reg-mips.dat: New file.
13609         * regformats/reg-ppc.dat: New file.
13610         * regformats/reg-sh.dat: New file.
13611         * regformats/regdef.h: New file.
13612         * regformats/regdat.sh: New file.
13613
13614 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13615
13616         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13617         (arm_frame_args_address, arm_frame_locals_address): New functions.
13618         (arm_frame_num_args): New function.
13619         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13620         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13621         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13622
13623 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13624
13625         * breakpoint.c (break_at_finish_command): Export.
13626         (break_at_finish_at_depth_command): Export.
13627         (tbreak_at_finish_command): Export.
13628         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13629         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13630         "txbreak" commands, which are HPPA specific.
13631
13632         * printcmd.c (disassemble_command): Remove an ancient
13633         artifact of an old merge.
13634
13635         * symfile.h (enum overlay_debugging_state):
13636         Define enum constant values for overlay mode.
13637         * symfile.c (overlay_debugging): Use enums instead of literals.
13638         (overlay_is_mapped, overlay_auto_command,
13639         overlay_manual_command): Ditto.
13640
13641         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13642         breakpoint_here_p, breakpoint_inserted_here_p,
13643         breakpoint_thread_match, bpstat_stop_status,
13644         describe_other_breakpoints, check_duplicates, clear_command):
13645         Coding standard fixes.
13646
13647         * target.c (target_xfer_memory): Add spaces, coding standard.
13648         (do_xfer_memory): Add missing line to trust-readonly
13649         code: check bfd SEC_READONLY flag for section.
13650
13651 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13652
13653         * PROBLEMS: Fix typo, 5.1->5.1.1.
13654
13655 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13656
13657         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13658         data symbols, since we search based on textlow and texthigh.
13659         (find_pc_sect_symtab): Likewise.
13660
13661 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13662
13663         * defs.h (vwarning): Declare.
13664         * utils.c (vwarning): New function.
13665         (warning): Call vwarning.
13666         (warning_begin): Delete function.
13667
13668         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13669         the warning message.
13670         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13671         warning_begin.
13672
13673 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13674
13675         * NEWS: Mention "set trust-readonly-sections" command.
13676         Mention generate-core-file command.
13677
13678 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13679
13680         * target.c: New command, "set trust-readonly-sections on".
13681         (do_xfer_memory): Honor the suggestion to trust readonly sections
13682         by reading them from the object file instead of from the target.
13683         (initialize_targets): Register command "set trust-readonly-sections".
13684
13685 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13686
13687         * parse.c (target_map_name_to_register): Simplify, search regs and
13688         pseudo-regs using a single loop.
13689
13690 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13691
13692         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13693
13694 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13695
13696         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13697         * config/i386/i386v42mp.mh: Add i387-nat.o .
13698         * i386v4-nat.c: Include i387-nat.h.
13699         (supply_fpregset): Use i387_supply_fsave.
13700         (fill_fpregset): Use i387_fill_fsave.
13701
13702 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13703
13704         * arm-tdep.c (arm_call_dummy_words): Define.
13705         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13706         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13707         (CALL_DUMMY_WORDS): Define.
13708         (arm_call_dummy_words): Declare.
13709         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13710         (arm_linux_call_dummy_words): Declare.
13711
13712 2002-01-30  Andreas Schwab  <schwab@suse.de>
13713
13714         * m68klinux-nat.c: Fix last change to use regcache_collect
13715         instead of referencing registers[] directly.
13716
13717 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13718
13719         * parse.c (target_map_name_to_register): Delete code wrapped in
13720         #ifdef REGISTER_NAME_ALIAS_HOOK.
13721
13722 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13723
13724         * regcache.c (legacy_read_register_gen): Need to be able to
13725         read pseudo-register as well as real register.
13726         (legacy_write_register_gen): Ditto.
13727
13728 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13729
13730         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13731         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13732         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13733         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13734         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13735         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13736         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13737         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13738         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13739         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13740         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13741         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13742         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13743         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13744         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13745         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13746         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13747         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13748         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13749         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13750
13751 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13752
13753         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13754         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13755         (initialize_current_architecture): Update target_byte_order using
13756         information from BFD.
13757         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13758         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13759
13760 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13761
13762         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13763         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13764
13765         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13766         #ifdef INVALID_FLOAT.
13767         * infcmd.c (do_registers_info): Ditto.
13768         * values.c (unpack_double): Ditto.  Add comment.
13769
13770         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13771         already commented out.
13772
13773 2002-01-26  Andreas Schwab  <schwab@suse.de>
13774
13775         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13776         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13777         registers and add support for PTRACE_GETREGS.
13778
13779 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13780
13781         GDB 5.1.1 released from 5.1 branch.
13782         * NEWS: Add 5.1.1 news.
13783         * README: Sync with 5.1 branch.
13784
13785 2002-01-23  Fred Fish  <fnf@redhat.com>
13786
13787         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13788         stabstring on initial malloc.  Reallocing will copy it for us,
13789         if necessary.
13790
13791 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13792
13793         * Makefile.in (hpread_h): Delete.
13794         (HFILES_NO_SRCDIR): Remove hpread.h.
13795         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13796         (hpread.o): Update dependencies.
13797         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13798
13799         * hp-psymtab-read.c: Remove file.
13800         * hp-symtab-read.c: Remove file.
13801         * hpread.h: Remove file.
13802
13803         * hpread.c: Merge all contents of hp-psymtab-read.c,
13804         hp-symtab-read.c and hpread.h into this file, as it was prior to
13805         January 1999.
13806
13807         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13808         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13809         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13810         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13811
13812 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13813
13814         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13815         fill_gregset): Call gdbarch_tdep() just once, assign result to
13816         variable and use that, instead of calling the function several
13817         times.
13818
13819 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
13820
13821         * configure.host: Accept sparcv9 as alias for sparc64.
13822         * configure.tgt: Likewise.
13823
13824 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
13825
13826         * solib-aix5.c (build_so_list_from_mapfile)
13827         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13828         arguments is not reversed.
13829         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13830         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13831
13832 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
13833
13834         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13835         modified version of obsolete sh_fetch_pseudo_register.
13836         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13837         (sh4_register_read): New function.
13838         (sh_pseudo_register_write): New function. Renamed and modified
13839         version of obsolete sh_store_pseudo_register.
13840         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13841         (sh4_register_write): New function.
13842         (sh_gdbarch_init): Remove setting of gdbarch function
13843         fetch_pseudo_register and store_pseudo_register. Remove setting of
13844         register_convert_to_raw, register_convert_to_virtual,
13845         register_convertible.
13846         (sh_sh4_register_convertible): Delete. No longer needed. All is
13847         taken care by architecture specific functions
13848         register_read/register_write.
13849         (sh_sh4_register_convert_to_virtual): Make static.
13850         (sh_sh4_register_convert_to_raw): Ditto.
13851
13852 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
13853
13854         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13855         (floatformat_is_nan, floatformat_mantissa): Ditto.
13856
13857         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13858         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13859         builtin_type_ieee_double_little,
13860         builtin_type_ieee_double_littlebyte_bigword,
13861         builtin_type_m68881_ext, builtin_type_i960_ext,
13862         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13863         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13864         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13865         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13866
13867 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
13868
13869         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13870         parameter.  Set frameless flag if it exists and depended of
13871         whether the scanned function is frameless or not.
13872         (xstormy16_skip_prologue): If function is frameless, return
13873         result of xstormy16_scan_prologue().
13874         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13875         call.
13876
13877 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
13878
13879         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13880         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13881         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13882         sh_sh4_register_byte, sh_sh4_register_raw_size,
13883         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13884         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13885         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13886         sh_store_pseudo_register, sh_do_pseudo_register): Call
13887         gdbarch_tdep() just once, assign result to variable and use that,
13888         instead of calling the function several times.
13889
13890 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
13891
13892         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13893         macros instead of LAST_FPU_CTRL_REGNUM.
13894         (store_register): Likewise.
13895
13896 2002-01-21  Jim Blandy  <jimb@redhat.com>
13897
13898         * infcmd.c (run_command): Check that the `exec' target layer's BFD
13899         is up-to-date before running the program, not just when a program
13900         exits.
13901
13902 2002-01-21  Fred Fish  <fnf@redhat.com>
13903
13904         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13905         when we have found all instructions we are looking for.
13906
13907 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13908
13909         * arm-tdep.c (arm_register_name): New function.
13910         (arm_registers_names): Make static.
13911         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13912         (arm_register_name): Declare.
13913         (REGISTER_NAME): Use it.
13914
13915 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13916             Kevin Buettner  <kevinb@redhat.com>
13917
13918         Convert arm targets to new FRAME interface.
13919         * arm-tdep.c (struct frame_extra_info): Remove fsr.
13920         (arm_frame_find_save_regs): Delete.
13921         (arm_frame_init_saved_regs): New.
13922         (arm_init_extra_frame_info): Alloacte saved_regs as required.
13923         Allocate extra_info as required.  Convert all uses of fsr.regs
13924         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13925         to use extra_info.
13926         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13927         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13928         (check_prologue_cache, save_prologue_cache): Likewise.
13929         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13930         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13931         (FRAME_FIND_SAVED_REGS): Delete.
13932         (arm_frame_find_saved_regs): Delete prototype.
13933         (arm_frame_init_saved_regs): New prototype.
13934         (FRAME_INIT_SAVED_REGS): Define.
13935
13936 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13937
13938         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13939
13940 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13941
13942         From Jeff Law <law@redhat.com>:
13943         * infttrace.c: Include <sys/pstat.h>.
13944         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
13945         exec file if the ttrace equivalent fails.
13946
13947 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13948
13949         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13950         (closeLogFile): Ditto.
13951
13952 2002-01-20  Michael Chastain  <mec@shout.net>
13953
13954         * top.c (print_gdb_version): Bump copyright year to 2002.
13955
13956 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13957
13958         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13959         Zannoni and Eli Zaretskii.
13960
13961 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13962
13963         * buildsym.c: Update copyright years.
13964         * c-typeprint.c: Likewise.
13965         * dwarf2read.c: Likewise.
13966         * f-typeprint.c: Likewise.
13967         * gdbtypes.c: Likewise.
13968         * gdbtypes.h: Likewise.
13969         * hp-symtab-read.c: Likewise.
13970         * hpread.c: Likewise.
13971         * mdebugread.c: Likewise.
13972         * p-typeprint.c: Likewise.
13973
13974 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13975
13976         * remote-sim.c (gdbsim_open): Simplify code testing the macro
13977         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
13978         byte-order selectable.
13979         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13980         * arch-utils.c: Ditto.
13981         (set_endian): Ditto.
13982         (set_endian_from_file): Ditto.
13983         * gdbserver/low-sim.c (create_inferior): Ditto.
13984         * gdbarch.sh: Ditto.
13985         * gdbarch.h: Re-generate.
13986         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13987         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13988         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13989         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13990         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13991         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13992         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13993         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13994         macro definition.
13995         * config/mips/tm-wince.h: Remove #undef of macro
13996         TARGET_BYTE_ORDER_SELECTABLE.
13997         * config/sh/tm-wince.h: Ditto.
13998
13999 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14000
14001         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14002         member function fields.  Add accessor macro
14003         TYPE_FN_FIELD_ARTIFICIAL.
14004         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14005         * c-typeprint.c (c_type_print_base): Skip artificial member
14006         functions.
14007
14008 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14009
14010         * f-typeprint.c: Delete unused function f_type_print_args.
14011         * p-typeprint.c: Delete unused function pascal_type_print_args.
14012
14013 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14014
14015         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14016         comment.  Add ``artificial'' to ``union field_location''.
14017
14018         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14019
14020         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14021         * mdebugread.c (parse_symbol): Likewise.
14022         * stabsread.c (define_symbol): Likewise.
14023         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14024         initializing TYPE_FIELD_BITPOS to n (obsolete).
14025         (hpread_doc_function_type): Likewise.
14026         * hpread.c (hpread_function_type): Likewise.
14027
14028 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14029
14030         * configure.in (host_makefile_frag): Only require a host makefile
14031         fragment when a native build.
14032         * configure: Re-generate.
14033
14034 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14035
14036         * doublest.h (floatformat_from_type): Declare.
14037         * doublest.c (floatformat_from_type): New function.
14038         (convert_typed_floating): Use.
14039
14040         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14041         call to function floatformat_from_type.
14042
14043         * gdbarch.sh (IEEE_FLOAT): Delete.
14044         * gdbarch.h, gdbarch.c: Re-generate.
14045         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14046         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14047         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14048         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14049         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14050         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14051         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14052         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14053         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14054         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14055         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14056         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14057
14058         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14059         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14060         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14061         * sh-tdep.c (sh_gdbarch_init): Ditto.
14062         * mips-tdep.c (mips_gdbarch_init): Ditto.
14063         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14064         * cris-tdep.c (cris_gdbarch_init): Ditto.
14065
14066 2002-01-20  Jiri Smid  <smid@suse.cz>
14067
14068         * configure.host, configure.tgt: Support x86-64.
14069         * NEWS: Note new target x86-64.
14070
14071         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14072         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14073         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14074         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14075         x86-64-linux-nat.o): Fix dependencies.
14076
14077 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14078
14079         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14080         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14081         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14082         * config/sparc/xm-sun4os4.h: Delete file.
14083         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14084
14085 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14086
14087         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14088         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14089         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14090         * config/i386/i386lynx.mh (XM_FILE): Delete.
14091         * config/rs6000/xm-rs6000ly.h: Delete file.
14092         * config/sparc/xm-sparclynx.h: Delete file.
14093         * config/m68k/xm-m68klynx.h: Delete file.
14094         * config/i386/xm-i386lynx.h: Delete file.
14095         * config/xm-lynx.h: Delete file.
14096         * config/djgpp/fnchange.lst: Update.
14097
14098 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14099
14100         * alpha-tdep.c (alpha_register_byte): New function.
14101         (alpha_register_raw_size): Ditto.
14102         (alpha_register_virtual_size): Ditto.
14103         (alpha_skip_prologue_internal): Renamed from
14104         alpha_skip_prologue.
14105         (alpha_skip_prologue): New version that calls
14106         alpha_skip_prologue_internal.
14107         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14108         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14109         second argument from alpha_skip_prologue.
14110         (REGISTER_BYTE): Use alpha_register_byte.
14111         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14112         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14113         (FRAMELESS_FUNCTION_INVOCATION): Use
14114         generic_frameless_function_invocation_not.
14115         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14116         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14117
14118 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14119
14120         * config/mips/xm-news-mips.h: Delete file.
14121         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14122
14123         * config/m88k/xm-m88k.h: Delete file.
14124         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14125         * config/m88k/xm-delta88v4.h: Ditto.
14126         * config/m88k/xm-delta88.h: Ditto.
14127
14128         * config/alpha/xm-fbsd.h: Delete file.
14129         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14130
14131         * config/sparc/xm-sparc.h: Delete file.
14132         * Makefile.in (xm-sun4os4.h): Delete dependency.
14133         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14134         * config/sparc/xm-sun4os4.h: Ditto.
14135         * config/sparc/xm-linux.h: Ditto.
14136
14137         * config/i386/xm-windows.h: Delete file.
14138
14139 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14140
14141         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14142         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14143
14144 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14145
14146         * alpha-tdep.c (alpha_call_dummy_words): New.
14147         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14148         (CALL_DUMMY_P): Define.
14149         (CALL_DUMMY_WORDS): Define.
14150         (SIZEOF_CALL_DUMMY_WORDS): Define.
14151
14152 2002-01-19  Per Bothner  <per@bothner.com>
14153
14154         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14155         isn't NULL, which can happen with some gcj-3.x-produced code.
14156
14157 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14158
14159         * alpha-tdep.c (alpha_register_virtual_type): New function.
14160         (alpha_init_frame_pc_first): Ditto.
14161         (alpha_fix_call_dummy): Ditto.
14162         (alpha_store_struct_return): Ditto.
14163         (alpha_extract_struct_value_address): Ditto.
14164         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14165         alpha_register_virtual_type.
14166         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14167         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14168         alpha_extract_struct_value_address.
14169         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14170         (INIT_FRAME_PC): Use init_frame_pc_noop.
14171         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14172
14173 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14174
14175         * i386gnu-nat.c: Include "i386-tdep.h".
14176         (fetch_fpregs): Simplify code dealing with uninitialized floating
14177         point states such that it doesn't require FP7_REGNUM.
14178
14179 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14180
14181         * alpha-tdep.c (frame_extra_info): New.
14182         (alpha_find_saved_regs): Make static.  Use
14183         frame->extra_info.
14184         (alpha_frame_init_saved_regs): New function.
14185         (alpha_frame_saved_pc): Use frame->extra_info.
14186         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14187         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14188         (init_extra_frame_info): Rename to...
14189         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14190         (alpha_print_extra_frame_info): New function.
14191         (alpha_frame_locals_address): Ditto.
14192         (alpha_frame_args_address): Ditto.
14193         (alpha_pop_frame): Use frame->extra_info.
14194         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14195         alpha_frame_args_address.
14196         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14197         (alpha_find_saved_regs): Remove prototype.
14198         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14199         (EXTRA_FRAME_INFO): Remove.
14200         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14201         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14202
14203 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14204
14205         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14206         (alpha_cannot_fetch_register): Ditto.
14207         (alpha_cannot_store_register): Ditto.
14208         (alpha_register_convertible): Ditto.
14209         (alpha_use_struct_convention): Ditto.
14210         * config/alpha/tm-alpha.h: Update copyright years.
14211         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14212         (INNER_THAN): Use core_addr_lessthan.
14213         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14214         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14215         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14216         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14217         (FRAME_CHAIN): Remove unnecessary cast.
14218
14219 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14220
14221         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14222         obsolete.
14223
14224 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14225
14226         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14227         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14228         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14229         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14230         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14231         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14232         * x86-64-linux-nat.c: Ditto.
14233
14234 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14235
14236         * alpha-tdep.c (alpha_register_name): New function.
14237         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14238         (REGISTER_NAME): Define.
14239
14240 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14241
14242         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14243
14244 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14245
14246         * alpha-tdep.c: Update copyright years.
14247         (alpha_next_pc): New function.
14248         (alpha_software_single_step): Ditto.
14249         * config/alpha/tm-alpha.h: Add prototype for
14250         alpha_software_single_step.
14251
14252 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14253
14254         * alphabsd-nat.c: Update copyright years.
14255         (fill_gregset): Use regcache_collect.
14256         (fill_fpregset): Likewise.
14257         (fetch_inferior_registers): Only fetch integer registers
14258         if requested to do so.
14259         (store_inferior_registers): Only store integer registers
14260         if requested to do so.
14261
14262 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14263
14264         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14265         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14266         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14267         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14268         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14269         * config/arm/linux.mh (XDEPFILES): Delete.
14270         * config/arm/nbsd.mh (XDEPFILES): Delete.
14271         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14272         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14273         * config/i386/i386m3.mh (XDEPFILES): Delete.
14274         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14275         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14276         * config/i386/fbsd.mh (XDEPFILES): Delete.
14277         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14278         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14279         * config/i386/i386v4.mh (XDEPFILES): Delete.
14280         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14281         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14282         * config/i386/i386aix.mh (XDEPFILES): Delete.
14283         * config/i386/go32.mh (XDEPFILES): Delete.
14284         * config/i386/cygwin.mh (XDEPFILES): Delete.
14285         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14286         * config/i386/i386mach.mh (XDEPFILES): Delete.
14287         * config/i386/i386v32.mh (XDEPFILES): Delete.
14288         * config/i386/linux.mh (XDEPFILES): Delete.
14289         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14290         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14291         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14292         * config/i386/i386sco.mh (XDEPFILES): Delete.
14293         * config/i386/i386v.mh (XDEPFILES): Delete.
14294         * config/i386/nbsd.mh (XDEPFILES): Delete.
14295         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14296         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14297         * config/i386/symmetry.mh (XDEPFILES): Delete.
14298         * config/i386/obsd.mh (XDEPFILES): Delete.
14299         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14300         * config/ia64/linux.mh (XDEPFILES): Delete.
14301         * config/ia64/aix.mh (XDEPFILES): Delete.
14302         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14303         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14304         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14305         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14306         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14307         * config/m68k/linux.mh (XDEPFILES): Delete.
14308         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14309         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14310         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14311         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14312         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14313         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14314         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14315         * config/m88k/delta88.mh (XDEPFILES): Delete.
14316         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14317         * config/m88k/m88k.mh (XDEPFILES): Delete.
14318         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14319         * config/mips/linux.mh (XDEPFILES): Delete.
14320         * config/mips/irix6.mh (XDEPFILES): Delete.
14321         * config/mips/irix5.mh (XDEPFILES): Delete.
14322         * config/mips/irix4.mh (XDEPFILES): Delete.
14323         * config/mips/irix3.mh (XDEPFILES): Delete.
14324         * config/mips/decstation.mh (XDEPFILES): Delete.
14325         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14326         (NATDEPFILES): Move core-aout.o to here.
14327         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14328         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14329         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14330         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14331         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14332         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14333         * config/pa/hpux11.mh (XDEPFILES): Delete.
14334         * config/powerpc/aix.mh (XDEPFILES): Delete.
14335         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14336         * config/powerpc/linux.mh (XDEPFILES): Delete.
14337         * config/romp/rtbsd.mh: Rename XDEPFILES.
14338         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14339         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14340         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14341         * config/s390/s390.mh (XDEPFILES): Delete.
14342         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14343         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14344         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14345         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14346         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14347         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14348         * config/sparc/linux.mh (XDEPFILES): Delete.
14349         * config/vax/vaxult.mh (XDEPFILES): Delete.
14350         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14351         * Makefile.in (DEPFILES): Remove XDEPFILES.
14352
14353 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14354
14355         * utils.c (internal_verror): Fix comments, default is yes not no.
14356         Update queries to match.  Default to quit and dump core.
14357
14358 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14359
14360         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14361         copyright.
14362         * defs.h, event-top.c, gdbcmd.h: Ditto.
14363         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14364         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14365         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14366         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14367         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14368         * mi/mi-main.c:Ditto.
14369
14370         * stack.c, symfile.c: Update copyright.
14371
14372 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14373
14374         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14375         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14376         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14377         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14378
14379 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14380
14381         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14382         * gdbserver/low-lynx.c (myattach): Likewise.
14383         * gdbserver/low-nbsd.c (myattach): Likewise.
14384         * gdbserver/low-sim.c (myattach): Likewise.
14385         * gdbserver/low-sparc.c (myattach): Likewise.
14386         * gdbserver/low-sun3.c (myattach): Likewise.
14387
14388         * gdbserver/low-linux.c (myattach): New function.
14389
14390         * gdbserver/server.c (attach_inferior): New function.
14391         (main): Handle "--attach".
14392
14393 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14394
14395         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14396         maintainer.
14397
14398 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14399
14400         * c-typeprint.c (is_type_conversion_operator): Add additional
14401         check for non-conversion operators.
14402
14403 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14404
14405         * linux-proc.c: Add "info proc" command, a la procfs.c.
14406         (read_mapping): New function, abstract and re-use code.
14407         (linux_find_memory_regions): Use new func read_mapping.
14408         (linux_info_proc_cmd): New function, implement "info proc".
14409         (_initialize_linux_proc): Add new command "info proc".
14410
14411 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14412
14413         * symfile.c (generic_load): Use bfd_map_over_sections method
14414         instead of manipulating bfd structure members directly.
14415         (add_section_size_callback): New function, bfd sections callback
14416         used by generic_load.
14417         (load_sections_callback): New function, bfd sections callback
14418         used by generic_load.
14419
14420 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14421
14422         [Based on work by Jim Blandy]
14423         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14424         (builtin_type_vec128): Export.
14425         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14426         types.
14427         (builtin_type_vec128): New builtin type for 128 bit vector
14428         registers.
14429         (build_gdbtypes): Initialize builtin_type_v16qi and
14430         builtin_type_v8hi. Create the vec128 register builtin type
14431         structure.
14432         (build_builtin_type_vec128): New function.
14433         (_initialize_gdbtypes): Register builtin_type_v16qi and
14434         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14435         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14436         AltiVec register to new builtin type.
14437
14438 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14439
14440         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14441         to make_cv_type.
14442
14443 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14444
14445         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14446         CLEAN_UP_REGISTER_VALUE.
14447         * regcache.c (supply_register): Update only call.
14448
14449 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14450
14451         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14452         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14453         a29k-*-vxworks* targets as obsolete.
14454
14455 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14456
14457         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14458         until we can resolve portability issues.
14459         * gregset.h: Remove references to fpxregs.
14460         * gcore.c (gcore_command): Initialize note_sec to NULL.
14461
14462 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14463
14464         * signals.c (target_signal_to_name): Rewrite.  Only use
14465         signals[].name when in bounds and non-NULL.
14466
14467 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14468
14469         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14470         * signals.c (target_signal_to_name): Verify that SIG is within the
14471         bounds of the signals array.
14472
14473 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14474
14475         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14476
14477 2002-01-13  Keith Seitz  <keiths@redhat.com>
14478
14479         * stack.c (print_frame_info_base): Print the frame's pc
14480         only if when print_frame_info_listing_hook is not defined.
14481
14482 2002-01-13  Keith Seitz  <keiths@redhat.com>
14483
14484         * varobj.c (varobj_set_value): Make sure that there were no
14485         errors evaluating the object before attempting to set its
14486         value.
14487         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14488         so this offset adjustment is no longer necessary.
14489         (create_child): Don't set the error flag if the child is
14490         a CPLUS_FAKE_CHILD.
14491         (value_of_child): If value_fetch_lazy fails, return NULL
14492         so that callers will be notified that an error occurred.
14493         (c_value_of_variable): Delay check of variable's validity
14494         until later. We actually want all structs and unions to have
14495         the value "{...}".
14496         Do not return "???" for variables which could not be evaluated.
14497         This error condition must be returned to the caller so that it
14498         can get the error condition from gdb.
14499         (cplus_name_of_child): Adjust index for vptr before figuring
14500         out the name of the child.
14501         (cplus_value_of_child): If a child's (real) parent is not valid,
14502         don't even bother trying to give a value for it. Just return
14503         an error. Change all instances in this function.
14504         (cplus_type_of_child): If our parent is one of the "fake"
14505         parents, we need to get at the type of the real parent, and
14506         derive the child's true type using this information.
14507
14508 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14509
14510         From 2002-01-09 John Marshall <johnm@falch.net>:
14511         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14512         sources.redhat.com, and tweak some related URLs which had
14513         suffered from linkrot.
14514
14515 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14516
14517         From Jeff law:
14518         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14519         structures passed in registers.
14520
14521 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14522
14523         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14524         white space which prevented compilation.  Reported by DSK
14525         <dsk@student.unsw.edu.au>.
14526
14527 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14528
14529         * symfile.c (build_section_addr_info_from_section_tab):
14530         Use bfd access method instead of manipulating bfd directly.
14531         (syms_from_objfile): Ditto.
14532         (simple_overlay_update_1): Ditto.
14533         (simple_overlay_update): Ditto.
14534         (generic_load): Ditto.
14535         (overlay_unmapped_address): FIXME comment, bfd access methods.
14536         (sections_overlap): FIXME comment, bfd access methods.
14537         (pc_in_mapped_range): FIXME comment, bfd access methods.
14538         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14539         (section_is_mapped): FIXME comment, bfd access methods.
14540         (section_is_overlay): FIXME comment, bfd access methods.
14541
14542         * symfile.c (generic_load): Whitespace and long line cleanups.
14543         Remove duplicate variable, change several local variables to
14544         more appropriate data types.
14545         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14546
14547 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14548
14549         From Peter Schauer:
14550         * language.c (longest_local_hex_string_custom): Use phex_nz to
14551         convert NUM to a hex string.
14552
14553 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14554
14555         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14556         the function.
14557         Update Copyright year.
14558
14559 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14560
14561         * language.c (longest_raw_hex_string): Delete unused function.
14562
14563 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14564
14565         * MAINTAINERS (write-after-approval): Add myself.
14566         * dwarf2read.c (read_tag_string_type): Handling of
14567         DW_AT_byte_size.
14568         (read_tag_string_type): FORTRAN fix to prevent propagation of
14569         first string size.
14570         (set_cu_language): Handling of DW_LANG_Fortran95
14571
14572 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14573
14574         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14575         GETPID(inferior_ptid).
14576         (store_inferior_registers): Likewise.
14577
14578 2002-01-10  Jason Merrill  <jason@redhat.com>
14579
14580         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14581         Fix DW_OP_minus.
14582
14583 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14584
14585         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14586         and bfd/elf32-sh-nbsd.c.
14587
14588 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14589
14590         * NEWS: Mention --pid and corefile/proc-id behavior change.
14591
14592         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14593         * gcore.c: Include cli/cli-decode.h instead of command.h.
14594
14595         * main.c (captured_main): Add new command line option "--pid".
14596         If the second command line argument (following the symbol-file)
14597         begins with a digit, try to attach to it before trying to open
14598         it as a corefile.
14599         (print_gdb_help): Document the "--pid" argument.
14600
14601 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14602
14603         * completer.c (command_completer): New function.
14604
14605         * completer.h <command_completer>: Add prototype.
14606
14607         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14608         completer for the "help" command.
14609
14610 2002-01-09  Jason Merrill  <jason@redhat.com>
14611
14612         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14613
14614 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14615
14616         * i386-linux-nat.c (fill_fpxregset): Make global.
14617         (store_fpxregset): Ditto.
14618
14619         * gregset.h (gdb_fpxregset_t): Define.
14620         (supply_fpxregset): Prototype.
14621         (fill_fpxregset): Prototype.
14622
14623         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14624
14625 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14626
14627         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14628         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14629         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14630
14631 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14632
14633         * MAINTAINERS: Update target maintainer rules so that any
14634         Maintainer can approve a tested patch for a maintenance-only
14635         target.
14636
14637 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14638
14639         * MAINTAINERS (write-after-approval): Add myself.
14640
14641         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14642         IN_SIGTRAMP.
14643
14644 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14645
14646         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14647         real name of the executable, rather than the /proc name.
14648
14649 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14650
14651         Implement a "generate-core-file" command in gdb, save target state.
14652         * gcore.c: New file.  Implement new command 'generate-core-file'.
14653         Save a corefile image of the current state of the inferior.
14654         * linux-proc.c: Add linux-specific code for saving corefiles.
14655         * target.h (struct target_ops): Add new target vectors for saving
14656         corefiles; to_find_memory_regions and to_make_corefile_notes.
14657         (target_find_memory_regions): New macro.
14658         (target_make_corefile_notes): New macro.
14659         * target.c (update_current_target): Inherit new target methods.
14660         (dummy_find_memory_regions): New place-holder method.
14661         (dummy_make_corefile_notes): New place-holder method.
14662         (init_dummy_target): Initialize new dummy target vectors.
14663         * exec.c (exec_set_find_memory_regions): New function.
14664         Allow the exec_ops vector for memory regions to be taken over.
14665         (exec_make_note_section): New function, target vector method.
14666         * defs.h (exec_set_find_memory_regions): Export prototype.
14667         * procfs.c (proc_find_memory_regions): New function, corefile method.
14668         (procfs_make_note_section): New function, corefile method.
14669         (init_procfs_ops): Set new target vector pointers.
14670         (find_memory_regions_callback): New function.
14671         (procfs_do_thread_registers): New function.
14672         (procfs_corefile_thread_callback): New function.
14673         * sol-thread.c (sol_find_memory_regions): New function.
14674         (sol_make_note_section): New function.
14675         (init_sol_thread_ops): Initialize new target vectors.
14676         * inftarg.c (inftarg_set_find_memory_regions): New function.
14677         Allow to_find_memory_regions vector to be taken over.
14678         (inftarg_set_make_corefile_notes): New function.
14679         Allow to_make_corefile_notes vector to be taken over.
14680         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14681         interface layer if not target_has_execution (may be a corefile).
14682         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14683         * config/sparc/sun4sol2.mh: Ditto.
14684         * config/alpha/alpha-linux.mh: Ditto.
14685         * config/arm/linux.mh: Ditto.
14686         * config/i386/x86-64linux.mh: Ditto.
14687         * config/ia64/linux.mh: Ditto.
14688         * config/m68k/linux.mh: Ditto.
14689         * config/mips/linux.mh: Ditto.
14690         * config/powerpc/linux.mh: Ditto.
14691         * config/sparc/linux.mh: Ditto.
14692
14693 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14694
14695         * arm-linux-nat.c: Remove references to regcache.c internal data
14696         (registers[] and register_valid[]).
14697
14698 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14699
14700         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14701         so that attaching to a pid will automatically read the process's
14702         symbol file and shlibs.
14703         * Makefile.in: Add rule for linux-proc.o.
14704         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14705         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14706         * config/arm/linux.mh: Ditto.
14707         * config/i386/linux.mh: Ditto.
14708         * config/i386/x86-64linux.mh: Ditto.
14709         * config/ia64/linux.mh: Ditto.
14710         * config/m68k/linux.mh: Ditto.
14711         * config/mips/linux.mh: Ditto.
14712         * config/powerpc/linux.mh: Ditto.
14713         * config/sparc/linux.mh: Ditto.
14714
14715 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14716
14717         * win32-nat.c: Add i386-tdep.h dependency.
14718
14719 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14720
14721         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14722         instead of bfd_get_arch_size.  Don't bail out just because
14723         there's no exec_bfd.
14724
14725         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14726         * p-valprint.c (pascal_object_print_value): Ditto.
14727         * somread.c (som_symtab_read): Ditto.
14728         * symfile.c (simple_free_overlay_region_table): Ditto.
14729         * valops.c (value_assign): Ditto.
14730
14731         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14732         use tilde_expand and strerror for opening save-tracepoints file.
14733
14734         * thread-db.c (thread_db_new_objfile): Indendation fix.
14735
14736         * infptrace.c (GDB_MAX_ALLOCA): New define.
14737         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14738         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14739         can be overridden with whatever value is appropriate to the host).
14740         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14741         alloca to allocate potentially large buffer.
14742         * rs6000-nat.c (child_xfer_memory): Ditto.
14743         * symm-nat.c (child_xfer_memory): Ditto.
14744         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14745
14746 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14747
14748         From Nick Clifton  <nickc@redhat.com>
14749         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14750
14751 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14752
14753         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14754         Don't use exec_bfd if it's NULL.
14755
14756 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14757
14758         * valops.c (value_arg_coerce): Fix formatting.
14759
14760 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14761
14762         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14763         * gnu-nat.c: Ditto.
14764
14765 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14766
14767         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14768         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14769         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14770         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14771         z8k-coff have not been multi-arched.  Update z8k-coff build
14772         status.
14773
14774 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14775
14776         * MAINTAINERS: Mark a29k target as obsolete.
14777         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14778         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14779         comments.
14780         * NEWS: Note that a29k targets are obsolete.
14781         * a29k-tdep.c: Mark as obsolete.
14782         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14783         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14784         a29k-*-vxworks* targets as obsolete.
14785         * remote-adapt.c: Obsolete.
14786         * remote-eb.c: Obsolete.
14787         * remote-mm.c: Obsolete.
14788         * remote-udi.c: Obsolete.
14789         * config/a29k/a29k-udi.mt: Obsolete.
14790         * config/a29k/a29k.mt: Obsolete.
14791         * config/a29k/tm-a29k.h: Obsolete.
14792         * config/a29k/tm-vx29k.h: Obsolete.
14793         * config/a29k/vx29k.mt: Obsolete.
14794
14795 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14796
14797         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14798         with BFD_ENDIAN_BIG.
14799
14800 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14801
14802         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14803         * configure, config.in: Re-generate.
14804         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14805         * defs.h: Do not include <endian.h>.
14806
14807 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
14808
14809         * acconfig.h (HAVE_PT_GETXMMREGS): New.
14810         * config.in: Regenerate.
14811         * configure.in: Update copyright years.
14812         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14813         * configure: Regenerate.
14814         * i386bsd-nat.c: Update copyright years.
14815         (fill_gregset): Use regcache_collect.
14816         (fetch_inferior_registers): Only fetch integer registers
14817         if requested to do so.  Add support for XMM registers
14818         using PT_GETXMMREGS.
14819         (store_inferior_registers): Only store integer registers
14820         if requested to do so.  Add support for XMM registers
14821         using PT_SETXMMREGS.
14822         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14823         (store_inferior_registers): Remove.
14824         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14825         (fetch_elfcore_registers): New function.
14826         (i386nbsd_elfcore_fns): New.
14827         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14828         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14829         i386bsd-nat.o.
14830         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14831         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14832         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14833         * config/i386/tm-nbsd.h: Update copyright years.
14834         (HAVE_SSE_REGS): Define.
14835         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14836         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14837         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14838         (SIGCONTEXT_PC_OFFSET): Remove.
14839         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14840
14841 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14842
14843         * configure.tgt: Remove powerpc-*-macos* target.
14844         * config/m68k/xm-mpw.h: Delete file.
14845         * config/xm-mpw.h: Delete file.
14846         * ser-mac.c: Delete file.
14847         * mpw-make.sed: Delete file.
14848         * mpw-config.in: Delete file.
14849         * mac-xdep.c: Delete file.
14850         * mac-gdb.r: Delete file.
14851         * mac-defs.h: Delete file.
14852         * mac-nat.c: Delete file.
14853         * config/powerpc/macos.mh: Delete file.
14854         * config/powerpc/macos.mt: Delete file.
14855         * config/powerpc/nm-macos.h: Delete file.
14856         * config/powerpc/tm-macos.h: Delete file.
14857         * source.c (openp, open_source_file): Remove obsolete code.
14858         * top.c (gdb_readline): Ditto.
14859         * utils.c (query): Ditto.
14860         * event-top.c (display_gdb_prompt): Ditto.
14861         * Makefile.in (ser-mac.o): Delete obsolete target.
14862         * NEWS: Update.
14863
14864 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14865
14866         * defs.h (BIG_ENDIAN): Delete macro definition.
14867         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14868         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14869         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14870         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14871         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14872         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14873         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14874         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14875         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14876         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14877         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14878         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14879         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14880         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14881         * gdbarch.c: Re-generate.
14882
14883 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14884
14885         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14886         for core files.
14887
14888 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14889
14890         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14891
14892 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14893
14894         * value.h (value_ptr): Delete typedef.
14895
14896 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14897
14898         * i386nbsd-nat.c: Update copyright years.
14899         Include i386-tdep.h.
14900
14901 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
14902
14903         * stabsread.c: Update copyright years.
14904
14905         From Debashis Mahata <debashis.mahata@wipro.com>:
14906         (read_struct_fields): Deal with Sun C compiler erroneous stab
14907         output for structs and unions.
14908         Fix PR gdb/269.
14909
14910 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14911
14912         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14913         prototype.
14914
14915 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14916
14917         * cp-abi.c: Fix whitespace.
14918         (baseclass_offset): New wrapper function.
14919         * cp-abi.h (baseclass_offset): Add prototype.
14920         (struct cp_abi_ops): Add baseclass_offset pointer.
14921
14922         * valops.c (vb_match): Move to...
14923         * gnu-v2-abi.c (vb_match): here.
14924         * valops.c (baseclass_offset): Move to...
14925         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14926
14927         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14928
14929         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14930         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14931         * hpacc-abi.c (init_hpacc_ops): Likewise.
14932
14933 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14934
14935         * valops.c (find_overload_match): Accept obj as a
14936         reference parameter.  Update it before returning.
14937         * value.h (find_overload_match): Update prototype.
14938         * eval.c (evaluate_subexp_standard): Pass object to
14939         find_overload_match by reference.
14940
14941 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
14942
14943         * valarith.c: Replace value_ptr with struct value pointer.  Remove
14944         register attribute from value declarations.
14945         * valops.c: Ditto.
14946         * value.h: Ditto.
14947         * scm-lang.c (scm_lookup_name): Ditto.
14948
14949 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14950
14951         Abstract the functionality of iterating over mapped memory
14952         regions into a general purpose iterator function.
14953         * procfs.c (iterate_over_mappings): New function, general purpose
14954         iterator for memory sections.
14955         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14956         (solib_mappings_callback): New function, callback for above.
14957         (info_proc_mappings): Reimpliment using iterate_over_mappings.
14958         (info_mappings_callback): New function, callback for above.
14959
14960         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14961
14962 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
14963
14964         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14965         * i386-tdep.c: Include "elf-bfd.h".
14966         (process_note_abi_tag_sections): New function.
14967         (i386_gdbarch_init): Add code to recognize various OS/ABI
14968         combinations.
14969
14970         * maint.c (_initialize_maint_cmds): Add missing \ in
14971         string-literal.
14972
14973 For older changes see ChangeLog-2001
14974 \f
14975 Local Variables:
14976 mode: change-log
14977 left-margin: 8
14978 fill-column: 74
14979 version-control: never
14980 End: