Continuing work to convert the hppa targets to multiarch partil.
[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 partil.
4
5         * hppa-tdep.c: Add some missing forward declarations.
6         (frameless_function_invocation): Prefix the function name
7         by "hppa_" to avoid polluting the namespace.  Update all calls
8         to use the new function name.
9         (saved_pc_after_call): Ditto.
10         (init_extra_frame_info): Ditto.
11         (frame_chain): Ditto.
12         (push_dummy_frame): Ditto.
13         (target_read_pc): Ditto.
14         (target_write_pc): Ditto.
15         (in_solib_call_trampoline): Ditto.
16         (in_solib_return_trampoline): Ditto.
17         (skip_trampoline_code): Ditto.
18         (hppa_read_fp): New function, renamed from target_read_fp.
19         (hppa_target_read_fp): New function, using hppa_read_fp.
20         This function conforms to the function profile for the
21         READ_FP gdbarch method.
22         (hppa_extract_struct_value_address): New function, extracted
23         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
24         macro.
25         (hppa_frame_num_args): New function.
26         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
27
28         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
29         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
30         for the switch to multiarch partial.
31         Update some of the macros definitions to match some changes
32         described above in the name of the function they are calling.
33         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
34         not be straightforward to convert. Do now wrap it inside
35         "#if !... #endif" to remember that this macro has still not
36         been taken care of.
37         (FIX_CALL_DUMMY): Likewise.
38
39 2002-12-26  J. Brobecker  <brobecker@gnat.com>
40
41         Continuing work to convert the hppa targets to multiarch partial.
42
43         * hppa-tdep.c (hppa_register_raw_size): New function replacing
44         the body of macro REGISTER_RAW_SIZE.
45         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
46         config/pa/tm-hppah.h. These functions will be used to initialize
47         the gdbarch structure.
48         (hppa_hpux_pc_in_sigtramp): New function.
49         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
50         (hppa_hpux_frame_base_before_sigtramp): New function.
51         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
52         Add gdbcore.h #include.
53         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
54         of this gdbarch-eligible macro to a call to the new associated
55         function.
56         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
57         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
58         into a call to the new associated function.
59         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
60         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
61         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
62
63 2002-12-24  David Carlton  <carlton@math.stanford.edu>
64
65         * config/sparc/tm-sparc.h: Delete duplicate definition of
66         DEPRECATED_PC_IN_CALL_DUMMY.
67
68 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
69
70         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
71         $(gdb_assert_h).
72         * configure.tgt: Recognize mips64*-*-linux*.
73         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
74         (supply_32_bit_reg): New function.
75         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
76         (fill_gregset): Use regcache_collect() instead of
77         deprecated_registers[].
78         (register_addr): Change name to mips_linux_register_addr().
79         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
80         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
81         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
82         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
83         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
84         (MIPS64_LINUX_JB_PC): New defines.
85         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
86         (mips64_elf_fpregset_t): New typedefs.
87         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
88         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
89         (mips64_linux_register_addr, set_mips_linux_register_addr)
90         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
91         (init_register_addr_data)
92         New functions.
93         (fetch_core_registers): Add support for core file formats with 64-bit
94         registers.
95         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
96         (register_addr_data): New static global variable.
97         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
98         gdbarch_register_osabi() for each MIPS machine.
99         * config/mips/linux64.mt: New file.
100         * config/mips/tm-linux64.h: New file.
101
102 2002-12-23  Adam Fedor  <fedor@gnu.org>
103
104         * maint.c (maintenance_demangle): Add switch to demangle
105         ObjC language symbols as well.
106
107 2002-12-23  Adam Fedor  <fedor@gnu.org>
108
109         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
110         last argument from complaint function call.
111
112 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
113
114         * exec.c (print_section_info): Add FIXME comments regarding format
115         string choices.
116
117 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
118
119         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
120         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
121
122 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
123
124         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
125
126 2002-12-23  David Carlton  <carlton@math.stanford.edu>
127
128         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
129         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
130         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
131         information associated to a minsym, not lookup_symbol.
132
133 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
134
135         * x86-64-tdep.h (x86_64_init_abi): New prototype.
136         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
137         (x86_64_init_abi): Make non-static.  Set number of pseudo
138         registers to 0.
139         (x86_64_gdbarch_init): Remove function.
140         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
141         Remove code dealing with dissambly.
142         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
143         (_initialize_x86_64_linux_tdep): New function.
144         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
145         i386-tdep.o.
146
147 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
148
149         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
150         (struct gdb_osabi_handler): Remove member `arch'.  Add member
151         `arch_info'.
152         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
153         construct a `struct bfd_arch_info' and store it in the `struct
154         gdb_osabi_handler' that is created.
155         (gdbarch_init_osabi): Check for compatibility based on machine
156         type and architecture.
157         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
158         comment.
159         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
160         second argument in call to gdbarch_register_osabi.
161         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
162         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
163         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
164         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
165         * arm-tdep.c (_initialize_arm_tdep): Likewise.
166         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
167         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
168         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
169         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
170         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
171         * i386-tdep.c (_initialize_i386_tdep): Likewise.
172         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
173         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
174         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
175         _initialize_i386bsd_tdep and updated likewise.
176         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
177         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
178         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
179         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
180         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
181         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
182         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
183         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
184         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
185         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
186
187 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
188
189         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
190         DT_MIPS_RLD_MAP case for 64-bit targets.
191
192 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
193
194         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
195         ``temp_saved_regs'', not the pointer or other storage contiguous
196         to this pointer.
197
198 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
199
200         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
201         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
202         (mips_linux_get_longjmp_target): Delete declarations.
203         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
204         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
205         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
206         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
207         (mips_linux_get_longjmp_target)
208         (mips_linux_svr4_fetch_link_map_offsets): Make static.
209         (mips_linux_init_abi): New function.
210         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
211
212 2002-12-19  Keith Seitz  <keiths@redhat.com>
213
214         patch committed by Elena Zannoni  <ezannoni@redhat.com>
215         * thread.c (do_captured_list_thread_ids): Call prune_threads and
216         target_find_new_threads. Fix for PR mi/669.
217
218 2002-12-19  David Carlton  <carlton@math.stanford.edu>
219
220         * linespec.c (decode_line_1): Move code into decode_all_digits.
221         (decode_all_digits): New function.
222
223 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
224
225         * exec.c (print_section_info): Select a format string to use with
226         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
227
228 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
229
230         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
231         deprecated_update_current_frame_pc_hack.
232         (deprecated_update_frame_base_hack): New function.
233         * frame.h (deprecated_update_frame_pc_hack): Replace
234         (deprecated_update_frame_base_hack): Declare.
235         * infrun.c (normal_stop): Update.
236
237 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
238
239         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
240         frame_extra_info_zalloc.
241         (rs6000_frame_args_address): Use get_frame_extra_info.
242         (frame_get_saved_regs): Use get_frame_saved_regs.
243         (frame_initial_stack_address): Use get_frame_saved_regs and
244         get_frame_extra_info.
245         (frame_initial_stack_address): Use get_frame_extra_info.
246
247 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
248
249         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
250         array size.
251         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
252         checks for r3900_regnames[].
253
254 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
255
256         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
257         All uses changed
258         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
259
260 2002-12-17  David Carlton  <carlton@math.stanford.edu>
261
262         * symtab.c (lookup_partial_symbol): Don't search past the end of
263         the partial symbols.
264
265 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
266
267         * stack.c (frame_info): Use get_frame_saved_regs.
268         * breakpoint.c (until_break_command): Use get_frame_pc.
269
270 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
271
272         * buildsym.c (block_end_complaint, anon_block_end_complaint)
273         (innerblock_complaint, innerblock_anon_complaint)
274         (blockvector_complaint): Delete deprecated complaint structs.
275         (finish_block, make_blockvector, end_symtab): Replace calls
276         to complain() with calls to complaint().
277         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
278         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
279         (unexpected_type_complaint, bad_sclass_complaint)
280         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
281         Delete deprecated complaint structs.
282         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
283         Replace calls to complain() with calls to complaint().
284         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
285         (unknown_symtype_complaint, unknown_symchar_complaint)
286         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
287         (lbrac_mismatch_complaint, repeated_header_complaint)
288         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
289         Delete deprecated complaint structs.
290         (unknown_symtype_complaint, lbrac_mismatch_complaint)
291         (repeated_header_complaint)
292         (function_outside_compiliation_unit_complaint): New functions.
293         (add_old_header_file, find_corresponding_bincl_psymtab)
294         (set_namestring, find_stab_function_addr, read_dbx_symtab)
295         (process_one_symbol): Replace calls to complain() with, possibly
296         indirect, calls to complaint().
297         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
298         (unknown_attribute_form, unknown_attribute_length)
299         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
300         (const_ignored, botched_modified_type, op_deref2, op_deref4)
301         (basereg_not_handled, dup_user_type_allocation)
302         (dup_user_type_definition, missing_tag, bad_array_element_type)
303         (subscript_data_items, unhandled_array_subscript_format)
304         (unknown_array_subscript_format, not_row_major)
305         (missing_at_name): Delete deprecated complaint structs.
306         (bad_die_ref_complaint, unknown_attribute_form_complaint)
307         (dup_user_type_definition_complaint)
308         (bad_array_element_type_complaint): New functions.
309         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
310         (decode_subscript_data_item, dwarf_read_array_type)
311         (read_tag_string_type, read_subroutine_type, read_func_scope)
312         (locval, scan_partial_symbols, decode_modified_type)
313         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
314         (attribute_size): Replace calls to complain() with, possibly
315         indirect, calls to complaint().
316         * elfread.c (section_info_complaint, section_info_dup_complaint)
317         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
318         Delete deprecated complaint structs.
319         (elf_symtab_read, elfstab_offset_sections): Replace calls to
320         complain() with calls to complaint().
321         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
322         struct.
323         (stub_noname_complaint): New function.
324         (check_typedef, add_mangled_type): Replace calls to complain()
325         with calls to complaint().
326         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
327         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
328         (hpread_unhandled_type_complaint, hpread_struct_complaint)
329         (hpread_array_complaint, hpread_type_lookup_complaint)
330         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
331         (hpread_unhandled_common_complaint)
332         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
333         struct definitions and declarations.
334         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
335         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
336         Replace calls to complain() with, possibly indirect, calls to
337         complaint().
338         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
339         Likewise.
340         * mdebugread.c (bad_file_number_complaint, index_complaint)
341         (aux_index_complaint, block_index_complaint)
342         (unknown_ext_complaint, unknown_sym_complaint)
343         (unknown_st_complaint, block_overflow_complaint)
344         (basic_type_complaint, unknown_type_qual_complaint)
345         (array_index_type_complaint, bad_tag_guess_complaint)
346         (block_member_complaint, stEnd_complaint)
347         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
348         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
349         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
350         (bad_continued_complaint, bad_rfd_entry_complaint)
351         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
352         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
353         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
354         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
355         complaint structs.
356         (index_complaint, unknown_ext_complaint, basic_type_complaint)
357         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
358         (unexpected_type_code_complaint)
359         (function_outside_compilation_unit_complaint): New functions.
360         (parse_symbol, parse_type, upgrade_type, parse_procedure)
361         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
362         Replace calls to complain() with, possibly indirect calls to
363         complaint().
364         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
365         Delete deprecated complaint structs.
366         (lookup__objc_class, lookup_child_selector): Replace complain()
367         with complaint().
368         * remote-vx.c (cant_contact_target): Delete deprecated complaint
369         struct.
370         (vx_lookup_symbol): Replace complain() with complaint().
371         * stabsread.c (invalid_cpp_abbrev_complaint)
372         (invalid_cpp_type_complaint, member_fn_complaint)
373         (const_vol_complaint, error_type_complaint)
374         (invalid_member_complaint, range_type_base_complaint)
375         (reg_value_complaint, vtbl_notfound_complaint)
376         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
377         (unresolved_sym_chain_complaint, stabs_general_complaint)
378         (lrs_general_complaint, multiply_defined_struct): Delete
379         deprecated complaint structs.
380         (invalid_cpp_abbrev_complaint, ref_value_complaint)
381         (stabs_general_complaint, lrs_general_complaint)
382         (msg_unknown_complaint): New functions.
383         (dbx_lookup_type, read_cfront_baseclasses)
384         (read_cfront_member_functions, resolve_symbol_reference)
385         (define_symbol, resolve_live_range, add_live_range, read_type)
386         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
387         (read_one_struct_field, read_baseclasses, read_tilde_fields)
388         (read_cfront_static_fields, attach_fields_to_type)
389         (complain_about_struct_wipeout, read_range_type)
390         (common_block_start, common_block_end, cleanup_undefined_types)
391         (scan_file_globals): Replace complain() with complaint().
392         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
393         Delete deprecated complaint struct declarations.
394         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
395         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
396         (bf_not_found_complaint, ef_complaint, eb_complaint)
397         (function_outside_compilation_unit_complaint): New functions.
398         (record_include_begin, record_include_end, enter_line_range)
399         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
400         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
401         complain() with complaint().
402
403 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
404
405         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
406         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
407         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
408         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
409         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
410         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
411         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
412         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
413         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
414         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
415         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
416         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
417         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
418         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
419         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
420         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
421         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
422         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
423         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
424         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
425         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
426         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
427         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
428         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
429         * config/m88k/xm-dgux.h: Delete.
430         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
431         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
432         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
433         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
434         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
435         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
436         * ch-valprint.c: Delete.
437         
438 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
439
440         * infrun.c (handle_inferior_event): Rearrange code to resume if
441         no catchpoint triggers for an event.
442
443 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
444
445         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
446         and TARGET_WAITKIND_VFORKED cases.
447
448 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
449
450         * infrun.c (handle_inferior_event): Assume that catchpoints
451         are not affected by DECR_PC_AFTER_BREAK.
452
453 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
454
455         * target.c (update_current_target): Don't inherit DONT_USE.
456         * target.h (struct target_ops): Remove DONT_USE.
457         (target_next): Remove macro.
458
459 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
460
461         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
462
463 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
464
465         * arm-tdep.c (convert_from_extended): New argument to hold the
466         type of floating point result we want to convert to.  Make input 
467         argument const.  Fix all callers.
468         (convert_to_extended): Similarly.
469         (arm_extract_return_value): Now takes a regcache argument.  Change
470         code to use regcache accessor functions.  Correctly extract 
471         smaller-than-word results on big-endian machines.
472         (arm_store_return_value): Now takes a regcache argument.  Change
473         code to use regcache accessor functions.  Correctly zero/sign extend
474         smaller than word results before storing into r0.
475         (arm_gdbarch_init): Register new-style extract_return_value and
476         store_return_value functions.
477
478 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
479
480         * thread-db.c (thread_from_lwp): Uniquify error msg.
481         (lwp_from_thread): Ditto.
482         (check_event): Ditto.
483         (find_new_threads_callback): Ditto.
484         (thread_db_pid_to_str): Ditto.
485
486 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
487
488         * frame.h (get_frame_saved_regs): Declare.
489         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
490         pointer.
491         * frame.c (get_frame_saved_regs): New function.
492         (frame_saved_regs_zalloc): Return the allocated saved_regs.
493
494 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
495
496         * frame.c (deprecated_update_current_frame_pc_hack): New
497         function.
498         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
499         * infrun.c (normal_stop): Use said function instead of directly
500         modifying the frame's PC.
501         
502 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
503
504         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
505
506 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
507
508         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
509         config/mips/tm-irix6.h (NUM_REGS): Delete.
510         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
511         (temp_saved_regs): Declare as a pointer rather than an array.
512         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
513         that ``temp_saved_regs'' has storage allocated to it and that
514         it's the correct size.
515
516 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
517
518         * defs.h (init_last_source_visited): New prototype.
519         (add_path): Ditto.
520         * source.c (add_path): New function that adds to a specified path.
521         (mod_path): Change to call add_path.
522         (init_last_source_visited): New function to allow interfaces to
523         initialize static variable: last_source_visited.  Part of fix
524         for PR gdb/741.
525         * Makefile.in: Add support for mi/mi-cmd-env.c.
526
527 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
528
529         * frame.h (frame_id_unwind): Declare.
530         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
531         id_unwind_cache.
532         (frame_id_unwind_ftype): Declare.
533         * frame.c (frame_id_unwind): New function.
534         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
535         (create_new_frame, get_prev_frame): Pass id_unwind to
536         set_unwind_by_pc.
537         (frame_saved_regs_id_unwind): New function.
538         (frame_saved_regs_id_unwind): New function.
539         * dummy-frame.c (dummy_frame_id_unwind): New function.
540         (struct dummy_frame): Add field id.
541         (generic_push_dummy_frame): Initialize `id'.
542         * dummy-frame.h (dummy_frame_id_unwind): Declare.
543
544 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
545
546         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
547         pass that to set_momentary_breakpoint.  Move comments to where they
548         belong.
549         * frame.h (set_current_frame): Delete declaration.
550         * frame.c (set_current_frame): Delete function.
551
552 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
553
554         * frame.c (frame_extra_info_zalloc): New function.
555         * frame.h (frame_extra_info_zalloc): Declare.
556
557 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
558
559         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
560         in the previous prototype change to set_momentary_breakpoint.
561
562 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
563
564         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
565         and saw_child_exec.
566         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
567         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
568         (stop_stepping): Remove outdated check for child vfork events.
569
570 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
571
572         * GDB 5.3 released from gdb_5_3-branch.
573
574 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
575
576         * corelow.c (init_core_ops): Delete references to to_require_attach
577         and to_require_detach.
578         * exec.c (init_exec_ops): Likewise.
579         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
580         hppa_require_detach directly.
581         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
582         * inftarg.c (child_detach): Remove.
583         (child_detach_from_process): Rename to child_detach, remove
584         after_fork argument.
585         (child_attach): Remove.
586         (child_attach_to_process): Rename to child_attach, remove after_fork
587         argument.
588         (init_child_ops): Delete references to to_require_attach
589         and to_require_detach.
590         * infttrace.c (hppa_require_attach): Update comment.
591         * target.c (cleanup_target, update_current_target)
592         (init_dummy_target, setup_target_debug): Delete references to
593         to_require_attach and to_require_detach.
594         (find_default_require_detach, find_default_require_attach)
595         (debug_to_require_attach, debug_to_require_detach): Remove
596         functions.
597         * target.h (struct target_ops): Remove to_require_attach
598         and to_require_detach.
599         (target_require_attach, target_require_detach): Delete macros.
600         (find_default_require_detach, find_default_require_attach): Delete
601         prototypes.
602         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
603
604 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
605
606         * frame.c (get_frame_extra_info): New function.
607         * frame.h (get_frame_extra_info): Declare.
608
609 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
610
611         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
612         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
613         with `struct frame_id'.
614         (set_longjmp_resume_breakpoint): Ditto.
615         * infrun.c (handle_inferior_event): Update.
616         * breakpoint.c (watch_command_1, until_break_command): Update.
617         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
618         (handle_inferior_event, step_over_function): Update.
619         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
620         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
621         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
622         * infcmd.c (finish_command, run_stack_dummy): Update.
623
624 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
625
626         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
627         (dwarf2_non_const_array_bound_ignored)
628         (dwarf2_missing_line_number_section)
629         (dwarf2_statement_list_fits_in_line_number_section)
630         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
631         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
632         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
633         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
634         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
635         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
636         (dwarf2_missing_member_fn_type_complaint)
637         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
638         (dwarf2_const_value_length_mismatch)
639         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
640         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
641         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
642         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
643         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
644         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
645         complaints using deprecated struct..
646         (dwarf2_non_const_array_bound_ignored_complaint)
647         (dwarf2_complex_location_expr_complaint)
648         (dwarf2_unsupported_at_frame_base_complaint)
649         (dwarf2_const_value_length_mismatch_complaint)
650         (dwarf2_macros_too_long_complaint)
651         (dwarf2_macro_malformed_definition_complaint)
652         (dwarf2_invalid_attrib_class_complaint): New functions.
653         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
654         (read_structure_scope, read_array_type, read_common_block)
655         (read_tag_pointer_type, read_base_type, read_partial_die)
656         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
657         (new_symbol, dwarf2_const_value, read_type_die)
658         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
659         (parse_macro_definition, dwarf_decode_macros): Replace calls to
660         complain() with, possibly indirect, calls to complaint().
661
662 2002-12-11  Andrew Cagney  <cagney@redhat.com>
663
664         * frame.c (deprecated_get_frame_saved_regs): Rename
665         get_frame_saved_regs.
666         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
667         * sparc-tdep.c: Update.
668         * hppa-tdep.c: Update.
669         * h8500-tdep.c: Update.
670
671 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
672
673         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
674         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
675         ``char *'' for return and parameter types.
676         * gdbarch.h, gdbarch.c: Regenerate.
677         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
678         return type from ``char *'' to ``const char *''.
679         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
680         const.
681
682 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
683
684         * i386-tdep.c: Include "dummy-frame.h".
685         (i386_frame_chain, i386_frame_saved_pc): Replace
686         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
687         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
688
689 2002-12-10  Andrew Cagney  <cagney@redhat.com>
690
691         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
692         Change to a function with predicate.
693         * gdbarch.h, gdbarch.c: Re-generate.
694         * frame.c (get_prev_frame): Update.  Test
695         DEPRECATED_INIT_FRAME_PC_P.
696         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
697         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
698         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
699         * alpha-tdep.c (alpha_gdbarch_init): Update.
700         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
701         * mips-tdep.c (mips_gdbarch_init): Update.
702         * i386-interix-tdep.c (i386_interix_init_abi): Update.
703         * arm-tdep.c: Update comments.
704         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
705         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
706         * frv-tdep.c (frv_gdbarch_init): Ditto.
707         * x86-64-tdep.c (x86_64_init_abi): Ditto.
708         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
709         * s390-tdep.c (s390_gdbarch_init): Ditto.
710         * v850-tdep.c (v850_gdbarch_init): Ditto.
711         * vax-tdep.c (vax_gdbarch_init): Ditto.
712         * sh-tdep.c (sh_gdbarch_init): Ditto.
713         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
714         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
715         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
716         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
717         * i386-tdep.c (i386_gdbarch_init): Ditto.
718         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
719         * cris-tdep.c (cris_gdbarch_init): Ditto.
720         * avr-tdep.c (avr_gdbarch_init): Ditto.
721         * arm-tdep.c (arm_gdbarch_init): Ditto.
722         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
723         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
724
725 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
726
727         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
728         CHILD_FOLLOW_FORK.
729         * hppah-nat.c (saved_vfork_pid): Add.
730         (child_post_follow_vfork): Remove.
731         (child_follow_fork): New function.
732         (child_wait): Call detach_breakpoints after receiving the child vfork.
733         Call child_resume directly instead of going through resume ().
734         Make sure we have the exec before reporting the vfork.
735         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
736         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
737         (follow_fork): New function.  Call target_follow_fork.
738         (follow_inferior_reset_breakpoints): New function broken out from
739         old follow_inferior_fork.
740         (resume): Remove hack to follow exec after vfork.
741         * inftarg.c (child_post_follow_vfork): Remove.
742         (child_follow_fork): New function.
743         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
744         * target.c (cleanup_target): Replace to_post_follow_vfork with
745         to_follow_fork.
746         (update_current_target): Likewise.
747         (setup_target_debug): Likewise.
748         (debug_to_post_follow_vfork): Remove.
749         (debug_to_follow_fork): New function.
750         * target.h (struct target_ops): Replace to_post_folow_vfork with
751         to_follow_fork.
752         (child_post_follow_vfork): Remove prototype.
753         (child_follow_fork): Add prototype.
754         (target_post_follow_vfork): Remove macro.
755         (target_follow_fork): Add macro.
756
757 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
758
759         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
760         (child_post_follow_vfork): Cancel pending exec event if we follow
761         the parent.
762         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
763         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
764         event at the following wait call if necessary.
765         * infrun.c (follow_vfork): Don't follow_exec here.
766         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
767         case about HP/UX 10.20.  Remove code pushed down to
768         hppah-nat.c:child_wait.
769         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
770         vfork_in_flight is set.
771
772 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
773
774         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
775         for the parent's fork event.
776         * infrun.c (handle_inferior_event): Only expect one fork event.
777         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
778         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
779
780 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
781
782         * PROBLEMS: Delete reference to PR gdb/725.
783         
784         * MAINTAINERS (gdb.c++): Add David Carlton.
785
786 2002-12-09  David Carlton  <carlton@math.stanford.edu>
787
788         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
789         * cli/cli-cmds.c: Ditto.
790
791 2002-12-09  Andrew Cagney  <cagney@redhat.com>
792
793         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
794         function address in <>.
795         * gdbarch.c: Re-generate.
796
797 2002-12-09  David Carlton  <carlton@math.stanford.edu>
798
799         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
800
801 2002-12-09  David Carlton  <carlton@math.stanford.edu>
802
803         * linespec.c (symtab_from_filename): New function.
804         (decode_line_1): Move code into symtab_from_filename.
805
806 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
807
808         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
809
810 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
811
812         * f-valprint.c (info_common_command): Use get_frame_pc.
813         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
814         * ax-gdb.c (agent_command): Ditto.
815         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
816         (rs6000_pop_frame): Ditto.
817         (rs6000_frameless_function_invocation): Ditto.
818         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
819         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
820         * macroscope.c (default_macro_scope): Ditto.
821         * stack.c (print_frame_info_base): Ditto.
822         (print_frame, frame_info, print_frame_label_vars): Ditto.
823         (return_command, func_command, get_frame_language): Ditto.
824         * infcmd.c (finish_command): Ditto.
825         * dummy-frame.c (cached_find_dummy_frame): Ditto.
826         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
827         (break_at_finish_at_depth_command_1): Ditto.
828         (break_at_finish_command_1): Ditto.
829         (until_break_command, get_catch_sals): Ditto.
830         * blockframe.c (func_frame_chain_valid): Ditto.
831         (frameless_look_for_prologue): Ditto.
832         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
833
834 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
835
836         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
837         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
838
839 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
840
841         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
842         to pure functions.
843         * gdbarch.h, gdbarch.c: Re-generate.
844         * frame.c (get_prev_frame): Explictly assign prev's pc with value
845         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
846
847         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
848         declaration to a function returning a CORE_ADDR.
849         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
850         * arch-utils.c (init_frame_pc_noop): Return the PC value.
851         (init_frame_pc_default): Ditto.
852         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
853         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
854         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
855         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
856         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
857         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
858
859         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
860         to init_frame_pc_noop.
861         (i386_interix_init_frame_pc): Delete function.
862         * z8k-tdep.c (init_frame_pc): Delete function.
863         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
864         (INIT_FRAME_PC_FIRST): Ditto.
865         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
866         (INIT_FRAME_PC_FIRST): Ditto.
867         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
868         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
869         init_frame_pc_noop.
870         (INIT_FRAME_PC_FIRST): Convert to an expression.
871         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
872
873 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
874
875         * blockframe.c: Use get_frame_base instead of directly accessing
876         the `struct frame_info' member frame.
877         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
878         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
879
880 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
881
882         * Makefile.in (readline_h): Define.
883         (completer.o): Depend on readline_h.
884         (corelow.o): Ditto.
885         (event-top.o): Ditto.
886         (exec.o): Ditto.
887         (solib.o): Ditto.
888         (source.o): Ditto. 
889         (symfile.o): Ditto. 
890         (symmisc.o): Ditto. 
891         (top.o): Ditto.
892         (tracepoint.o): Ditto. 
893         (utils.o): Ditto.
894         (cli-dump.o): Ditto.
895         (tui-hooks.o): Ditto. 
896         (tuiWin.o): Ditto. 
897
898 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
899
900         More cleanup from import of readline 4.3.
901         * completer.h (complete_line, readline_line_completion_function):
902         Update prototypes.
903         (line_completion_function): Removed, not used outside of completer.c.
904         * completer.c (readline_line_completion_function,
905         complete_function, line_completion_function): Use const for first
906         parameter.
907         (line_completion_function): Make static.
908         (filename_completer): filename_completion_function is now called
909         rl_filename_completion_function
910         * corelow.c: Include <readline/readline.h>.
911         * exec.c: Ditto.
912         * solib.c: Ditto.
913         * source.c: Ditto.
914         * symfile.c: Ditto.
915         * symmisc.c: Ditto.
916         * top.c (init_main): No need to coerce
917         readline_line_completion_function anymore.
918         * cli/cli-dump.c: Include <readline/readline.h>.
919
920 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
921
922         * stack.c (frame_info): Use get_prev_frame.
923         * blockframe.c (frame_address_in_block): Ditto.
924         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
925         (rs6000_frameless_function_invocation): Ditto.
926         (rs6000_frame_saved_pc): Ditto.
927         (rs6000_frame_chain): Ditto.
928         * arch-utils.c (init_frame_pc_default): Ditto.
929
930 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
931
932         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
933         Delete redundant definition.
934
935 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
936
937         Import of readline 4.3:
938         * cli/cli-cmds.c: Include readline/tilde.h.
939         * cli/cli-setshow.c: Ditto.
940         * defs.h: Don't declare tilde_expand anymore, since readline
941         exports it.
942
943 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
944
945         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
946         -Werror on this file.
947
948 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
949
950         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
951         the format name.
952         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
953         * gdbarch.c: Regenerate.
954         
955 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
956
957         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
958         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
959         provide a default value.
960         * gdbarch.h, gdbarch.c: Regenerate.
961         * frame.c (get_prev_frame): Update.  Check
962         DEPRECATED_INIT_FRAME_PC_FIRST_P.
963         * s390-tdep.c (s390_gdbarch_init): Update.
964         * mips-tdep.c (mips_gdbarch_init): Update.
965         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
966         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
967         * alpha-tdep.c (alpha_gdbarch_init): Update.
968         
969 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
970
971         * ia64-linux-nat.c: Include gdb_string.h.
972         * alpha-nat.c: Ditto.
973         * ppc-linux-nat.c: Ditto.
974         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
975         Update dependencies.
976
977 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
978
979         * gdbthread.h: Include "frame.h".
980         (struct thread_info): Replace step_frame_address with
981         step_frame_id.
982         * inferior.h: Include "frame.h".
983         (step_frame_id): Replace external variable step_frame_address.
984         * gdbthread.h (save_infrun_state): Replace step_frame_address
985         parameter with step_frame_id parameter.
986         (load_infrun_state): Ditto.
987         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
988         * infcmd.c (step_frame_id, step_1, step_once): Update.
989         * thread.c (load_infrun_state, save_infrun_state): Update.
990         * infrun.c (clear_proceed_status, save_inferior_status): Update.
991         (handle_inferior_event, step_over_function): Update.
992         (normal_stop, context_switch, restore_inferior_status): Update.
993         (struct inferior_status): Replace step_frame_address with
994         step_frame_id.
995
996 2002-12-05  David Carlton  <carlton@math.stanford.edu>
997
998         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
999         DW_TAG_member as well as a declaration as being a C++ static data
1000         member.
1001         (read_structure_scope): Combine tests for DW_TAG_member and
1002         DW_TAG_variable.
1003
1004 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1005
1006         * linespec.c (decode_compound): New function.
1007         (decode_line_1): Move code into decode_compound.
1008
1009 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1010
1011         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1012         argument.
1013         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1014         the static block.  See PR gdb/804.
1015
1016 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1017
1018         * symtab.c (lookup_symbol_aux_block): New function.
1019         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1020
1021 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1022
1023         * gdbarch.sh: Dump the predicate function and macro values.
1024         (read): Print error on standard error.
1025         * gdbarch.c: Regenerate.
1026         
1027 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1028
1029         * Makefile.in (mips_tdep_h): Define.
1030         (mips-tdep.o): Add mips_tdep_h to dependency list.
1031         * mips-tdep.h: New file.
1032         * mips-tdep.c (mips-tdep.h): Include.
1033         (enum mips_abi): Move to mips-tdep.h.
1034         (mips_abi): New function.
1035
1036 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1037
1038         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1039
1040 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1041
1042         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1043         function.
1044         (lookup_symbol_aux_minsyms): New function.
1045
1046 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1047
1048         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1049
1050 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1051
1052         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1053         which is an obsolete macro name.
1054
1055 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1056
1057         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1058         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1059
1060 2002-12-03  H.J. Lu  (hjl@gnu.org)
1061
1062         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1063         (create_breakpoints): Make sure the addr_string field is not
1064         NULL.
1065
1066 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1067
1068         * sparc-nat.c (fetch_inferior_registers)
1069         (store_inferior_registers): Add comment on problem of LWP vs
1070         threads.
1071         
1072         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1073         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1074         (lin_lwp_store_registers): Remove.
1075         (init_lin_lwp_ops): Use fetch_inferior_registers
1076         and store_inferior_registers directly.
1077         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1078         (store_inferior_registers): Likewise.
1079         Fix PR gdb/725.
1080
1081 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1082
1083         * frame.h (get_frame_id): Convert to a function.
1084         (null_frame_id, frame_id_p): Declare.
1085         (frame_id_eq, frame_id_inner): Declare.
1086         (frame_id_build): New function.
1087         * frame.c (get_frame_id): Update.  Use null_frame_id.
1088         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1089         frame_id_inner.
1090         (null_frame_id, frame_id_p): Define.
1091         (frame_id_eq, frame_id_inner): Define.
1092         (frame_id_build): New function.
1093         * varobj.c (varobj_create): Update.
1094         (varobj_update): Update.
1095         * valops.c (value_assign): Update.
1096         (new_root_variable): Update.
1097         * infrun.c (save_inferior_status): Update.
1098         * breakpoint.c (watch_command_1): Update.
1099
1100 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1101
1102         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1103         (SNAP2): Likewise.
1104
1105 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1106
1107         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1108         patch.
1109
1110         * PROBLEMS: Mention PR gdb/725.
1111
1112 2002-12-03  Andreas Schwab  <schwab@suse.de>
1113
1114         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1115
1116 2002-12-02  Adam Fedor  <fedor@gnu.org>
1117             Klee Dienes  <kdienes@apple.com>
1118
1119         * objc-lang.c (objc_printstr): Add width arg to match
1120         printstr prototype.
1121         (compare_selectors): Add 'const' to arg types.
1122         (compare_classes): Likewise.
1123         (find_imps): Cast msym pointer to avoid compiler warning.
1124         (print_object_command): Validate the address before
1125         passing it to the print routine.
1126         (find_objc_msgcall_submethod): Change function argument to
1127         return an int.
1128         * objc-lang.h: Add 'extern' to all function declarations.
1129         (value_nsstring): Add declaration.
1130
1131 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1132
1133         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1134         Fixes a build failure on HP/UX.
1135
1136         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1137         failure on HP/UX. 
1138         (hpread_has_name): Advance declaration to avoid a compilation warning.
1139         (pst_syms_count): Add missing variable type. By change, the compiler
1140         was defaulting to int, which seems a good choice. Fixes a compilation
1141         warning.
1142         (pst_syms_size): Likewise.
1143  
1144 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1145
1146         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1147         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1148         later to set the proper gdbarch methods depending on the osabi.
1149         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1150
1151 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1152
1153         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1154         * osabi.c (gdb_osabi_name): Add strings images for the two new
1155         enum values.
1156         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1157
1158 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1159
1160         * MAINTAINERS (Java): Global maintainers are responible for Java.
1161         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1162         part Java maintainers.
1163
1164 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1165
1166         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1167         Fixes a compilation failure on AiX.
1168
1169 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1170
1171         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1172         why aix-thread.o is not listed.
1173
1174 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1175
1176         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1177         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1178         * gdbarch.h, gdbarch.c: Re-generate.
1179         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1180         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1181         * config/pa/tm-hppa.h, frame.h: Update.
1182         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1183         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1184         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1185         * cris-tdep.c, alpha-tdep.c: Update.
1186         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1187         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1188         (get_prev_frame): Ditto.
1189
1190 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1191
1192         * exec.c (xfer_memory): Replace boolean with int.
1193         * p-exp.y: Use 0 instead of false.
1194         * corelow.c (gdb_check_format): Change return type to int from
1195         boolean.
1196         * utils.c: Don't include <curses.h> or <term.h> first.
1197
1198 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1199
1200         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1201         (m68hc11_register_byte): Remove.
1202         (m68hc11_gdbarch_init): Don't set the above.
1203
1204 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1205
1206         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1207         by calling get_selected_frame.
1208         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1209         set_current_frame, create_new_frame, select_frame and
1210         get_current_frame.
1211         * remote-e7000.c (e7000_start_remote): Ditto.
1212         * remote-mips.c (common_open): Ditto
1213         * remote-rdp.c (remote_rdp_open): Ditto.
1214
1215 2002-11-29  Andreas Schwab  <schwab@suse.de>
1216
1217         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1218         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1219         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1220         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1221         read_memory_unsigned_integer instead of read_memory_integer when
1222         dealing with addresses and instruction opcodes.
1223         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1224         (m68k_linux_frame_saved_pc): Likewise.
1225
1226 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1227
1228         * stack.c (selected_frame, select_frame): Move from here ...
1229         * frame.c (selected_frame, select_frame): ... to here.  Include
1230         "language.h".
1231         * Makefile.in (frame.o): Update dependencies.
1232         * frame.c (get_selected_frame): New function.
1233         * frame.h (get_selected_frame): Declare.
1234         (deprecated_selected_frame): Rename selected_frame.
1235         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1236         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1237         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1238         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1239         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1240         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1241         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1242         * z8k-tdep.c, cli/cli-cmds.c: Update.
1243         
1244 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1245
1246         * frame.h (get_selected_block): Add comments.
1247
1248 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1249
1250         * frame.c (pc_notcurrent): New function.
1251         (find_frame_sal): New function.
1252         * frame.h (find_frame_sal): Declare.
1253         (struct symtab_and_line): Add opaque declaration.
1254         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1255         find_pc_line.
1256         (frame_info): Ditto.
1257         * ada-lang.c (find_printable_frame): Ditto.
1258
1259 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1260
1261         * configure.in: Check that the pthdebug library is recent enough
1262         before enabling thread support on native AiX.
1263         * configure: Regenerate.
1264
1265         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1266         from the list of object files as it is now appended by configure
1267         if thread support is enabled.
1268         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1269         if thread support is enabled.
1270
1271 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1272
1273         * stack.c (get_selected_block): In-line get_current_block.
1274         * frame.h (get_current_block): Delete declaration.
1275         * blockframe.c (get_current_block): Delete function.
1276
1277 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1278
1279         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1280         USE_GENERIC_DUMMY_FRAMES.
1281         * gdbarch.h, gdbarch.c: Regenerate.
1282         * valops.c, frame.c: Update.
1283         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1284         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1285         * config/pa/tm-hppa.h, blockframe.c: Update.
1286         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1287         * m68k-tdep.c, alpha-tdep.c: Ditto.
1288
1289         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1290         * mips-tdep.c: Ditto.
1291
1292 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1293
1294         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1295         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1296         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1297         * gdbarch.c, gdbarch.h: Re-generate.
1298         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1299         (CALL_DUMMY_LOCATION): Delete macro definition.
1300         (PC_IN_CALL_DUMMY): Delete macro definitions.
1301         
1302         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1303         default is already generic_pc_in_call_dummy.
1304         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1305         * v850-tdep.c (v850_gdbarch_init): Ditto.
1306         * sh-tdep.c (sh_gdbarch_init): Ditto.
1307         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1308         * mips-tdep.c (mips_gdbarch_init): Ditto.
1309         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1310         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1311         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1312         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1313         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1314         * avr-tdep.c (avr_gdbarch_init): Ditto.
1315         
1316         * arm-tdep.c (arm_gdbarch_init): Do not set
1317         use_generic_dummy_frames, default is already 1.
1318         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1319         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1320         * v850-tdep.c (v850_gdbarch_init): Ditto.
1321         * sh-tdep.c (sh_gdbarch_init): Ditto.
1322         * s390-tdep.c (s390_gdbarch_init): Ditto.
1323         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1324         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1325         * mips-tdep.c (mips_gdbarch_init): Ditto.
1326         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1327         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1328         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1329         * i386-tdep.c (i386_gdbarch_init): Ditto.
1330         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1331         * frv-tdep.c (frv_gdbarch_init): Ditto.
1332         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1333         * cris-tdep.c (cris_gdbarch_init): Ditto.
1334         * avr-tdep.c (avr_gdbarch_init): Ditto.
1335
1336         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1337         call_dummy_location, default is already AT_ENTRY_POINT.
1338         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1339         * v850-tdep.c (v850_gdbarch_init): Ditto.
1340         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1341         * sh-tdep.c (sh_gdbarch_init): Ditto.
1342         * s390-tdep.c (s390_gdbarch_init): Ditto.
1343         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1344         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1345         * mips-tdep.c (mips_gdbarch_init): Ditto.
1346         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1347         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1348         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1349         * i386-tdep.c (i386_gdbarch_init): Ditto.
1350         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1351         * frv-tdep.c (frv_gdbarch_init): Ditto.
1352         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1353         * cris-tdep.c (cris_gdbarch_init): Ditto.
1354         * avr-tdep.c (avr_gdbarch_init): Ditto.
1355         * arm-tdep.c (arm_gdbarch_init): Ditto.
1356         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1357
1358 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1359
1360         * frame.h: Update comments on set_current_frame, create_new_frame,
1361         flush_cached_frames, reinit_frame_cache, select_frame and
1362         selected_frame.
1363         
1364 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1365
1366         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1367         deprecated pc_in_call_dummy function.
1368         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1369         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1370         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1371         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1372         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1373
1374 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1375
1376         * Makefile.in: Remove Tix dependencies.
1377         * acinclude.m4: Ditto.
1378         * aclocal.m4: Ditto.
1379         * configure.in: Ditto.
1380         * configure: Regenerated.
1381         
1382 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1383
1384         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1385         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1386         * gdbarch.c: Re-generate.
1387         
1388 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1389
1390         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1391         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1392         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1393         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1394         pc_in_call_dummy_at_entry_point.
1395         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1396         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1397         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1398         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1399         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1400         pc_in_call_dummy_on_stack.
1401         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1402         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1403         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1404         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1405         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1406         
1407 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1408
1409         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1410         pc_in_call_dummy_before_text_end
1411         (deprecated_pc_in_call_dummy_after_text_end): Rename
1412         pc_in_call_dummy_after_text_end.
1413         (deprecated_pc_in_call_dummy_on_stack): Rename
1414         pc_in_call_dummy_on_stack.
1415         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1416         pc_in_call_dummy_at_entry_point.
1417         * m68k-tdep.c (m68k_gdbarch_init): Update.
1418         * s390-tdep.c (s390_gdbarch_init): Update.
1419         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1420         * vax-tdep.c (vax_gdbarch_init): Update.
1421         * sparc-tdep.c (sparc_gdbarch_init): Update.
1422         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1423         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1424         * i386-tdep.c (i386_gdbarch_init): Update.
1425         * frv-tdep.c (frv_gdbarch_init): Update.
1426         * cris-tdep.c (cris_gdbarch_init): Update.
1427         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1428         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1429         (deprecated_pc_in_call_dummy_after_text_end)
1430         (deprecated_pc_in_call_dummy_on_stack)
1431         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1432         * alpha-tdep.c (alpha_gdbarch_init): Update.
1433
1434 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1435
1436         * acconfig.h (HAVE_PREAD64): Add.
1437         * configure.in: Check for pread64.
1438         * config.in: Regenerated.
1439         * configure: Regenerated.
1440         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1441         * linux-proc.c (linux_proc_xfer_memory): New function.
1442         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1443
1444 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1445
1446         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1447         pdi's with no name.
1448
1449 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1450
1451         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1452         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1453
1454 2002-11-25  Jim Blandy  <jimb@redhat.com>
1455
1456         * symfile.c (init_objfile_sect_indices): New function.
1457         (default_symfile_offsets): Move the section-index-initializing
1458         stuff into init_objfile_sect_indices, and call that.
1459
1460         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1461         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1462
1463         * symfile.c (syms_from_objfile): Adjust indentation.
1464
1465         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1466         || info_verbose isn't true.
1467
1468 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1469
1470         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1471         default to get_frame_base.
1472         * gdbarch.h, gdbarch.c: Regenerate.
1473         * arch-utils.c (default_frame_address): Delete function.
1474         * arch-utils.h (default_frame_address): Delete declaration
1475
1476 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1477
1478         * varobj.c (find_frame_addr_in_frame_chain):
1479         Use get_frame_base instead of FRAME_FP,
1480         obvious fix.
1481
1482 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1483
1484         * frame.h (FRAME_FP): Delete macro.
1485         (get_frame_base): New function declaration.
1486         * frame.c (get_frame_base): New function.
1487         (get_frame_id): Use ->frame.
1488         (frame_find_by_id): Rewrite to use get_frame_id.
1489         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1490         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1491         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1492         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1493         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1494         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1495         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1496
1497 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1498
1499         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1500
1501 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1502
1503         * frame.c (set_unwind_by_pc): Revert change below, use
1504         PC_IN_CALL_DUMMY.
1505         (get_prev_frame): Ditto.
1506
1507 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1508
1509         * dummy-frame.c (pc_in_dummy_frame): New function.
1510         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1511         (find_dummy_frame): Update comment.
1512         (generic_pop_current_frame): Use get_frame_type.
1513         * dummy-frame.h (pc_in_dummy_frame): Declare.
1514         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1515         (create_new_frame): Use pc_in_dummy_frame.
1516         (get_prev_frame): Use pc_in_dummy_frame.
1517         (frame_saved_regs_register_unwind): Use get_prev_frame.
1518         (deprecated_generic_get_saved_register): Use get_prev_frame.
1519
1520 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1521
1522         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1523         from here ...
1524         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1525         (varobj_create): Note that frame ID should be used.
1526         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1527
1528 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1529
1530         * breakpoint.c: Include "gdb_assert.h".
1531         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1532         not being used.
1533         * Makefile.in (breakpoint.o): Update dependencies.
1534         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1535         deprecated_frame_in_dummy.
1536         * stack.c (print_frame_info_base): Ditto.
1537         (frame_info): Ditto.
1538         (print_frame_info_base): Ditto.  Delete dead code.
1539         
1540 2002-11-23  Andreas Schwab  <schwab@suse.de>
1541
1542         * Makefile.in (m68k_tdep_h): Define.
1543         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1544         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1545         * m68k-tdep.c: Move register number enum ...
1546         * m68k-tdep.h: ... to this new file and rename the constants from
1547         E_* to M68K_*.  All uses changed.
1548         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1549         * abug-rom.c: Include "m68k-tdep.h".  Use
1550         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1551         * cpu32bug-rom.c: Likewise.
1552         * dbug-rom.c: Likewise.
1553         * m68k-tdep.c: Likewise.
1554         * m68klinux-nat.c: Likewise.
1555         * remote-est.c: Likewise.
1556         * rom68k-rom.c: Likewise.
1557         * config/m68k/tm-linux.h: Likewise.
1558
1559 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1560
1561         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1562         dummy frame initialization code.
1563         * mips-tdep.c (mips_gdbarch_init): Ditto.
1564
1565 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1566
1567         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1568         attach will hang.
1569
1570 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1571
1572         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1573         to default_frame_address.
1574         * gdbarch.h, gdbarch.c: Re-generate.
1575
1576         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1577         or frame_locals_address to default_frame_address.
1578         * m68k-tdep.c (m68k_gdbarch_init): Update.
1579         * i386-tdep.c (i386_gdbarch_init): Update.
1580         * frv-tdep.c (frv_gdbarch_init): Update.
1581         * sh-tdep.c (sh_gdbarch_init): Update.
1582         * v850-tdep.c (v850_gdbarch_init): Update.
1583         * sparc-tdep.c (sparc_gdbarch_init): Update.
1584         * mips-tdep.c (mips_gdbarch_init): Update.
1585         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1586         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1587         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1588
1589         * cris-tdep.c (cris_frame_args_address): Delete function.
1590         (cris_frame_locals_address): Delete function.
1591         (cris_gdbarch_init): Do not set frame_args_address or
1592         frame_locals_address.
1593
1594 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1595
1596         * thread-db.c (thread_db_load): Tell the user what's going on
1597         if dlopen fails on libthread_db.
1598
1599 2002-11-23  Andreas Schwab  <schwab@suse.de>
1600
1601         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1602         invariant return values.
1603
1604 2002-11-22  Andreas Schwab  <schwab@suse.de>
1605
1606         * valops.c (value_slice): Move declaration of `offset' to avoid
1607         warning.
1608
1609 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1610
1611         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1612         (struct so_stuff): Add end_addr field.
1613         (register_loaded_dll): Calculate and store end address of loaded dll.
1614         (solib_address): New function.
1615         (child_solib_loaded_library_pathname): Pass carefully constructed
1616         section info to safe_symbol_file_add rather than ignoring it.
1617         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1618         DLL is loaded.
1619         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1620         (child_create_inferior): Fix a compiler warning.
1621         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1622         (solib_address): Declare new function.
1623
1624 2002-11-22  Andreas Schwab  <schwab@suse.de>
1625
1626         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1627         and FPS registers.
1628
1629 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1630
1631         * maint.c (_initialize_maint_cmds): Fix typo.  From
1632         Francesco Potorti` <pot@gnu.org>.
1633
1634 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1635
1636         * mips-tdep.c (mips_dump_tdep): Delete references to
1637         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1638         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1639         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1640         * printcmd.c (build_address_symbolic): Delete calls to
1641         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1642         (address_info): Ditto.
1643         Fix PR gdb/773.
1644         
1645 2002-11-19  Klee Dienes  <kdienes@apple.com>
1646             Adam Fedor  <fedor@gnu.org>
1647
1648         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1649         the ability to explicitly specify the quote characters and word
1650         break characters; if NULL is specified for either, use the old
1651         behavior of using the characters used by the completer.
1652         (skip_chars): New function.  Convenience wrapper around
1653         skip_quoted_chars to provide the original skip_chars behavior.
1654         * completer.h (skip_quoted_chars): Add prototype.
1655
1656 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1657
1658         Problems reported by Paul Eggert.
1659         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1660
1661 2002-11-19  Andreas Schwab  <schwab@suse.de>
1662
1663         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1664         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1665         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1666         (m68k_linux_frame_saved_pc): Move to ...
1667         * m68klinux-tdep.c: ... here.  New file.
1668         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1669         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1670
1671 2002-11-19  Adam Fedor  <fedor@gnu.org>
1672
1673         * objc-exp.y: Revert to old skip_quoted usage.
1674
1675 2002-11-19  Adam Fedor  <fedor@gnu.org>
1676
1677         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1678         (objc_lang_h): Define.
1679         (YYFILES): Add objc-exp.tab.c.
1680         (local-maintainer-clean): Remove objc-exp.tab.c.
1681         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1682         
1683 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1684
1685         * p-exp.y (typecast rule): Add automatic dereference of
1686         pascal classes if needed.
1687         (THIS): Set current_type.
1688         Automatically dereference pascal classes. 
1689         (typebase rule): Add ^typebase recognition.
1690
1691 2002-11-18  Adam Fedor  <fedor@gnu.org>
1692
1693         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1694         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1695         (op_name): Handle OP_OBJC_SELF.
1696         * Makefile.in (expprint.o): Add additional depends.
1697
1698 2002-11-18  Adam Fedor  <fedor@gnu.org>
1699
1700         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1701         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1702         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1703         * objc-exp.y: Likewise. 
1704
1705 2002-11-18  Adam Fedor  <fedor@gnu.org>
1706
1707         * gdb/parser-defs.h: (struct objc_class_str): New structure
1708         for parsing ObjC classes.
1709
1710 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1711
1712         * stack.c (frame_relative_level): Copy function from here ...
1713         * frame.c (frame_relative_level): ...to here.
1714
1715 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1716
1717         * frame.h (enum frame_type): Define.
1718         (get_frame_type): Declare.
1719         (struct frame_info): Add field `type'.  Delete field
1720         signal_handler_caller.
1721         (deprecated_set_frame_signal_handler_caller): Declare.
1722         * frame.c (get_frame_type): New function.
1723         (deprecated_set_frame_type): New function.
1724         (create_new_frame): Set the frame's type.
1725         (get_prev_frame): Similar.
1726         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1727         * s390-tdep.c: Ditto.
1728         * m68klinux-nat.c: Ditto.
1729         * ns32k-tdep.c: Ditto.
1730         * x86-64-linux-tdep.c: Ditto.
1731         * vax-tdep.c: Ditto.
1732         * rs6000-tdep.c: Ditto.
1733         * ppc-linux-tdep.c: Ditto.
1734         * i386-interix-tdep.c: Ditto.
1735         * mips-tdep.c: Ditto.
1736         * m68k-tdep.c: Ditto.
1737         * hppa-tdep.c: Ditto.
1738         * ia64-tdep.c: Ditto.
1739         * cris-tdep.c: Ditto.
1740         * arm-tdep.c: Ditto.
1741         * alpha-tdep.c: Ditto.
1742         * i386-tdep.c: Ditto.
1743         * stack.c: Ditto.
1744         * ada-lang.c: Ditto.
1745         * blockframe.c: Update.
1746         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1747         deprecated_set_frame_type instead of signal_handler_caller.
1748         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1749         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1750         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1751
1752 2002-11-18   Klee Dienes  <kdienes@apple.com>
1753
1754         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1755
1756 2002-11-18  Klee Dienes  <kdienes@apple.com>
1757
1758         * buildsym.c (pop_context): Add comment.
1759         
1760 2002-11-18  Klee Dienes  <kdienes@apple.com>
1761
1762         * buildsym.h (pop_context): Convert to function, defined in
1763         buildsym.c.
1764         * buildsym.c: Include gdb_assert.h.
1765         (pop_context): Implement as C function.  Add check for stack
1766         underflow.
1767         * dbxread.c (process_one_symbol): Complain and stop processing
1768         that symbol if we are already at the top of the context stack for
1769         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1770         when processing N_RBRAC.
1771
1772 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1773
1774         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1775         define.
1776         (struct target_waitstatus): Add opaque definition.
1777         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1778         * exec.c (init_exec_ops): Likewise.
1779         * fork-child.c (clone_and_follow_inferior): Remove.
1780         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1781         * inferior.h (clone_and_follow_inferior): Remove prototype.
1782         * infrun.c (follow_fork_mode_both): Remove.
1783         (follow_fork_mode_kind_names): Remove commented out "both".
1784         (follow_inferior_fork): Remove follow_fork_mode_both support.
1785         * inftarg.c (child_clone_and_follow_inferior): Remove.
1786         (child_post_follow_inferior_by_clone): Remove.
1787         (init_child_ops): Don't set to_clone_and_follow_inferior
1788         or to_post_follow_inferior_by_clone.
1789         * target.c (default_clone_and_follow_inferior): Remove.
1790         (cleanup_target): Don't set to_clone_and_follow_inferior
1791         or to_post_follow_inferior_by_clone.
1792         (find_default_clone_and_follow_inferior): Remove.
1793         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1794         (debug_to_clone_and_follow_inferior): Remove.
1795         (debug_to_post_follow_inferior_by_clone): Remove.
1796         (setup_target_debug): Don't set to_clone_and_follow_inferior
1797         or to_post_follow_inferior_by_clone.
1798         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1799         and to_post_follow_inferior_by_clone.
1800         (child_clone_and_follow_inferior): Remove prototype.
1801         (child_post_follow_inferior_by_clone): Remove prototype.
1802         (target_clone_and_follow_inferior): Remove macro.
1803         (target_post_follow_inferior_by_clone): Remove macro.
1804         (find_default_clone_and_follow_inferior): Remove prototype.
1805
1806 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1807
1808         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1809         inferior_has_vforked, and inferior_has_execd instead of
1810         target_has_forked, target_has_vforked, and target_has_execd.
1811         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1812         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1813         (CHILD_WAIT): Define.
1814         (child_wait): Add prototype.
1815         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1816         Add prototype.
1817         (hpux_has_vforked): Likewise, from child_has_vforked.
1818         (hpux_has_execd): Likewise, from child_has_execd.
1819         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1820         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1821         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1822         and hpux_has_syscall_event instead of the target hooks.
1823         * infrun.c (inferior_has_forked, inferior_has_vforked)
1824         (inferior_has_execd): New functions.
1825         * inftarg.c (not_same_real_pid): Remove.
1826         (child_wait): Remove references to not_same_real_pid,
1827         target_has_forked, target_has_vforked, target_has_execd,
1828         and target_has_syscall_event.
1829         (child_has_forked, child_has_vforked, child_has_execd)
1830         (child_has_syscall_event): Remove.
1831         (init_child_ops): Remove references to child_has_forked,
1832         child_has_vforked, child_has_execd, and child_has_syscall_event.
1833         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1834         (hpux_has_vforked): Likewise, from child_has_vforked.
1835         (hpux_has_execd): Likewise, from child_has_execd.
1836         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1837         * target.c (cleanup_target): Remove references to
1838         to_has_forked, to_has_vforked, to_has_execd, and
1839         to_has_syscall_event.
1840         (update_current_target): Likewise.
1841         (setup_target_debug): Likewise.
1842         (debug_to_has_forked): Remove.
1843         (debug_to_has_vforked): Remove.
1844         (debug_to_has_execd): Remove.
1845         (debug_to_has_syscall_event): Remove.
1846         * target.h (struct target_ops): Remove to_has_forked.
1847         to_has_vforked, to_has_execd, and to_has_syscall_event.
1848         (child_has_forked, child_has_vforked, child_has_execd)
1849         (child_has_syscall_event): Remove prototypes.
1850         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1851         prototypes.
1852         (target_has_forked, target_has_vforked, target_has_execd)
1853         (target_has_syscall_event): Remove macros.
1854
1855 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1856
1857         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1858         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1859         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1860         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1861         * target.c (cleanup_target): Remove reference to
1862         to_can_follow_vfork_prior_to_exec.
1863         (update_current_target): Likewise.
1864         (debug_to_can_follow_vfork_prior_to_exec): Remove.
1865         (setup_target_debug): Remove reference to
1866         to_can_follow_vfork_prior_to_exec.
1867         * target.h (struct target_ops): Remove
1868         to_can_follow_vfork_prior_to_exec.
1869         (child_can_follow_vfork_prior_to_exec): Remove prototype.
1870         (target_can_follow_vfork_prior_to_exec): Remove definition.
1871         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1872         define.
1873         * infrun.c (follow_vfork_when_exec): Remove.
1874         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1875         (follow_exec): Likewise.
1876         (handle_inferior_event): Likewise.
1877         (keep_going): Likewise.
1878
1879 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1880
1881         * frame.c (generic_unwind_get_saved_register): Make static.
1882         * frame.h (generic_unwind_get_saved_register): Delete declaration.
1883         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1884         defaults to generic_unwind_get_saved_register.
1885         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1886         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1887         * frv-tdep.c (frv_gdbarch_init): Ditto.
1888         * i386-tdep.c (i386_gdbarch_init): Ditto.
1889         * s390-tdep.c (s390_gdbarch_init): Ditto.
1890         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1891         * v850-tdep.c (v850_gdbarch_init): Ditto.
1892         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1893         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1894         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1895
1896 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1897
1898         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
1899         i386-tdep.c.
1900
1901 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1902
1903         * frame.h (sigtramp_saved_pc): Delete declaration.
1904         * blockframe.c (sigtramp_saved_pc): Delete function.
1905         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1906         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1907         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1908         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1909
1910 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1911
1912         * frame.c (frame_pc_unwind): New function.
1913         (frame_saved_regs_pc_unwind): New function.
1914         (frame_register_unwind): Pass unwind_cache instead of
1915         register_unwind_cache.
1916         (set_unwind_by_pc): Add unwind_pc parameter, set.
1917         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1918         (get_prev_frame): Ditto.
1919         * frame.h (frame_pc_unwind_ftype): Declare.
1920         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1921         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
1922         (frame_pc_unwind): Declare.
1923         * dummy-frame.c (dummy_frame_pc_unwind): New function.
1924         (struct dummy_frame): Add comment mentioning that values are for
1925         previous frame.
1926         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1927         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1928         (generic_file_frame_chain_valid): Ditto.
1929         * stack.c (frame_info): Ditto.
1930
1931 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1932
1933         * linespec.c (locate_first_half): New function.
1934         (decode_line_1): Move code into locate_first_half.
1935
1936 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1937
1938         * complaints.h: Add comment explaining how to eliminate a
1939         deprecated_complain call.
1940         * complaints.h: Fix spelling errors.
1941
1942 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1943
1944         * printcmd.c: Remove #include "disasm.h".
1945
1946 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1947
1948         * frame.h: Move the most relevant interface functions to the start
1949         of the file.
1950
1951 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1952
1953         * regcache.h (deprecated_registers): Rename registers.
1954         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1955         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1956         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1957         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1958         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1959         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1960         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1961         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1962         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1963         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1964         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1965         * v850ice.c: Update.
1966
1967 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
1968
1969         * utils.c (gdb_realpath): Add comment mentioning realpath with a
1970         NULL buffer.
1971
1972 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1973
1974         * regcache.h (deprecated_read_register_bytes): Rename
1975         read_register_bytes.
1976         (deprecated_write_register_bytes): Rename write_register_bytes.
1977         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1978         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1979         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1980         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1981         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1982         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1983         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1984         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1985         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1986         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1987         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1988         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1989         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1990         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1991
1992 2002-11-13  Jim Blandy  <jimb@redhat.com>
1993
1994         * findvar.c (read_var_value): Doc fix.
1995
1996 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1997
1998         * regcache.c (struct regcache): Replace passthough_p with
1999         readonly_p.
2000         (regcache_xmalloc): Initialize readonly_p.
2001         (build_regcache): Initialize readonly_p.
2002         (regcache_save): New function.
2003         (regcache_restore): New function.
2004         (regcache_cpy): Re-implement using regcache_save and
2005         regcache_restore.
2006         (regcache_raw_read): Update.
2007         (regcache_cooked_read): When a read-only cache, checked for cached
2008         pseudo register values.
2009         (regcache_raw_write): Assert that the cache is not read-only.
2010         Remove code handling a non-passthrough cache.
2011         * regcache.h (regcache_save): Declare.
2012         (regcache_restore): Declare.
2013
2014 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2015
2016         * regcache.c (struct regcache_descr): Add fields
2017         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2018         (init_legacy_regcache_descr): Compute the size of a cooked
2019         register cache and then assign that to sizeof_raw_registers.  Set
2020         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2021         (init_legacy_regcache_descr): Ditto.
2022
2023 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2024
2025         * regcache.c (register_buffer): Move to near start of file, update
2026         description.
2027         (regcache_raw_read): Use.
2028         (regcache_raw_write): Use.
2029         (struct regcache): Rename raw_registers to registers and
2030         raw_register_valid_p to register_valid_p.
2031         (regcache_xmalloc): Update.
2032         (regcache_xfree): Update.
2033         (register_buffer): Update.
2034         (regcache_cpy): Update.
2035         (regcache_cpy_no_passthrough): Update.
2036         (regcache_valid_p): Update.
2037         (deprecated_grub_regcache_for_registers): Update.
2038         (deprecated_grub_regcache_for_register_valid): Update.
2039         (set_register_cached): Update.
2040         (regcache_raw_write): Update.
2041
2042 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2043
2044         * p-exp.y (name_not_typename): Use copy_name to
2045         set current_type variable for fields of THIS.
2046
2047 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2048
2049         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2050         * monitor.c (init_base_monitor_ops): Likewise.
2051         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2052         * remote-array.c (init_array_ops): Likewise.
2053         * remote-e7000.c (init_e7000_ops): Likewise.
2054         * remote-es.c (init_es1800_ops): Likewise.
2055         (init_es1800_child_ops): Likewise.
2056         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2057         * remote-sim.c (init_gdbsim_ops): Likewise.
2058         * remote-st.c (init_st2000_ops): Likewise.
2059         * sol-thread.c (init_sol_core_ops): Likewise.
2060         (init_sol_thread_ops): Likewise.
2061         * v850ice.c (init_850ice_ops): Likewise.
2062         * win32-nat.c (init_child_ops): Likewise.
2063         * wince.c (init_child_ops): Likewise.
2064
2065 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2066
2067         * utils.c (gdb_realpath): Make rp a constant pointer.
2068
2069 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2070
2071         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2072         a constant buffer; cannonicalize_file_name(); realpath() with a
2073         pathconf() defined buffer, xstrdup().
2074
2075 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2076
2077         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2078         to hang2.C; hang3.c to hang3.C.
2079
2080 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2081
2082         * findvar.c (read_var_value): Reenable TLS code.
2083
2084 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2085             Jim Blandy  <jimb@redhat.com>
2086         
2087         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2088         * target.c (update_current_target): Add
2089         to_get_thread_local_address.
2090         * target.h (to_get_thread_local_address): Export.
2091         (target_get_thread_local_address): Define.
2092         (target_get_thread_local_address_p): Define.
2093         * thread-db.c: Include solib-svr4.h.
2094         (td_thr_tls_get_addr_p): Define.
2095         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2096         (thread_db_get_thread_local_address): New function.
2097         (init_thread_db_ops): Initialize to_get_thread_local_address.
2098         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2099         * configure: Regenerate.
2100         * config.in: Regenerate.
2101
2102 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2103
2104         * linespec.c (set_flags): New function.
2105         (decode_line_1): Move code into set_flags.
2106
2107 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2108
2109         * linespec.c (decode_line_1): Move chunks of code to separate
2110         functions.
2111         (initialize_defaults): New function.
2112         (decode_indirect): New function.
2113
2114 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2115
2116         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2117         instead of void_code_ptr.
2118         (sigtramp_saved_pc): Ditto.
2119
2120         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2121         i386_fp_regnum_p.
2122
2123 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2124
2125         * gdbtypes.h (struct main_type): Move artificial flag out of
2126         loc.  New member of ``struct field'' named static_kind.  Reduce
2127         overloaded meaning of bitsize.
2128         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2129         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2130         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2131
2132         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2133         new fields.
2134         (template_to_fixed_record_type, template_to_static_fixed_type)
2135         (to_record_with_fixed_variant_part): Likewise.
2136         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2137         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2138         * dwarfread.c (struct_type, enum_type): Likewise.
2139         * hpread.c (hpread_read_enum_type)
2140         (hpread_read_function_type, hpread_read_doc_function_type)
2141         (hpread_read_struct_type): Likewise.
2142         * mdebugread.c (parse_symbol): Likewise.
2143
2144 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2145
2146         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2147         * stack.c (print_frame_info_base): Update.
2148         (print_frame_info_base, frame_info): Update.
2149         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2150         (sparc_frame_saved_pc): Update.
2151         * ada-lang.c (find_printable_frame): Update.
2152         * breakpoint.c (deprecated_frame_in_dummy): Update.
2153         
2154 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2155
2156         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2157         defined.
2158         (regmap): Extend to cover all registers.
2159         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2160         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2161         definitions.
2162         (fetch_register, sore_register): Simplify.
2163         (old_fetch_inferior_registers, old_store_inferior_registers):
2164         Remove functions.
2165         (cannot_fetch_register, cannot_store_register): Change
2166         implementation to use regmap array to decide which registers
2167         cannot be fetched/stored.  This removes $orig_eax from the
2168         registers that cannot be fetched/stored.
2169         (fetch_inferior_registers): Call fetch_register directly instead
2170         of calling old_fetch_inferior_registers.
2171         (store_inferior_registers): Call store_register directly instead
2172         of calling old_store_inferior_registers.
2173         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2174         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2175         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2176
2177 2002-11-09  Klee Dienes  <kdienes@apple.com>
2178
2179         * i387-tdep.c (i387_supply_register): When called with NULL as a
2180         buffer, mark the register as not provided (to mirror the behavior
2181         of supply_register).
2182         (i387_supply_fxsave): Ditto.
2183         (i387_supply_fsave): Ditto (inherits the behavior from
2184         i387_supply_register).
2185
2186 2002-11-09  Klee Dienes  <kdienes@apple.com>
2187
2188         * blockframe.c (sigtramp_saved_pc): Use
2189         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2190         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2191         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2192         
2193 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2194
2195         * frame.c (get_prev_frame): Test prev_p to identify a previously
2196         unwound frame.  Initialize prev_p.
2197         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2198         comment.
2199
2200 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2201
2202         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2203         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2204         more comments.  Zap dead code.
2205
2206 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2207
2208         * infcmd.c (print_vector_info, print_float_info): Move code that
2209         checks whether the target has any registers and whether there is a
2210         selected frame up, such that it is also used if a target provides
2211         multi-arch definitions of these functions.
2212
2213 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2214
2215         * Makefile.in (DESTDIR): Define.
2216         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2217         prefix.
2218
2219         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2220         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2221
2222 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2223
2224         * i386-linux-tdep.c: Include "reggroups.h".
2225         (i386_linux_register_reggroup_p): New function.
2226         (i386_linux_init_abi): Set register_reggroup_p to
2227         i386_linux_register_reggroup_p.
2228         * i386-tdep.h (i386_register_reggroup_p): Declare.
2229         * i386-tdep.c: Include "reggroups.h".
2230         (i386_init_reggroups): New function.
2231         (i386_add_reggroups): New function.
2232         (i386_register_reggroup_p): New function.
2233         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2234         (_initialize_i386_tdep): Call i386_init_reggroups.
2235         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2236         specific reggroups.
2237
2238 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2239
2240         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2241         request that's available in *BSD.
2242
2243         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2244
2245         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2246         FDOFF_REGNUM.
2247
2248 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2249
2250         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2251         * dummy-frame.c (find_dummy_frame): Rename
2252         generic_find_dummy_frame, make static.  Return the dummy frame
2253         instead of the regcache.
2254         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2255         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2256         (dummy_frame_register_unwind): Rename
2257         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2258         * dummy-frame.h (dummy_frame_register_unwind): Rename
2259         generic_call_dummy_register_unwind.
2260
2261 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2262
2263         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2264         except the inclusion of "i386/tm-i386.h", to...
2265         * config/i386/nm-i386v42mp.h: ...here.
2266         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2267
2268 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2269
2270         * Makefile.in (frame.o): Update dependencies.
2271         * blockframe.c (current_frame, frame_obstack_alloc)
2272         (frame_saved_regs_zalloc, get_current_frame)
2273         (set_current_frame, create_new_frame)
2274         (set_unwind_by_pc, get_next_frame)
2275         (flush_cached_frames, reinit_frame_cache)
2276         (frame_saved_regs_register_unwind)
2277         (deprecated_generic_get_saved_register)
2278         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2279         (_initialize_blockframe): Move frame code from here...
2280         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2281         "annotate.h" and "dummy-frame.h".
2282         (_initialize_frame): New function.
2283
2284 2002-11-08  Jim Blandy  <jimb@redhat.com>
2285
2286         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2287         when we finish a function a context.
2288         * buildsym.h (outermost_context_p): New macro.
2289         (Bug analyzed by David Edelsohn.)
2290
2291 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2292
2293         * blockframe.c: Include "dummy-frame.h".
2294         (struct dummy_frame, dummy_frame_stack)
2295         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2296         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2297         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2298         (generic_save_call_dummy_addr, generic_pop_current_frame)
2299         (generic_pop_dummy_frame, generic_fix_call_dummy)
2300         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2301         dummy frame code from here...
2302         * dummy-frame.c: ...to here.  New file.
2303         * dummy-frame.h: New file.
2304         (generic_call_dummy_register_unwind): Declare.
2305         (generic_find_dummy_frame): Declare.
2306         * Makefile.in (SFILES): Add dummy-frame.c.
2307         (dummy-frame.o): Specify dependencies.
2308         (dummy_frame_h): Define.
2309         (COMMON_OBS): Add dummy-frame.o.
2310         (blockframe.o): Update dependencies.
2311
2312 2002-11-08  Jim Blandy  <jimb@redhat.com>
2313
2314         * dwarf2read.c (read_func_scope): Restore local_symbols and
2315         param_symbols after we finish the function context.  (Based on a
2316         patch from David Edelsohn.)
2317
2318 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2319
2320         * linespec.c (symbol_found): New function.
2321         (minsym_found): New function.
2322         (decode_line_1): Separate out some code into separate functions.
2323
2324 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2325
2326         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2327         the benefit of the interix target.
2328         * i386-tdep.h (i386_frameless_signal_p): Declare.
2329
2330 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2331
2332         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2333         declaration that snuck in from change below.
2334
2335 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2336
2337         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2338         all callers.
2339         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2340         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2341         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2342         (i386_mxcsr_regnum_p): new function.  Use instead of
2343         MXCSR_REGNUM_P.
2344         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2345         (i386_sse_regnum_p): Declare.
2346         (i386_mxcsr_regnum_p): Declare.
2347         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2348         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2349         (IS_FP_REGNUM): Update definition.
2350         (IS_FPU_CTRL_REGNUM): Update definition..
2351         (IS_SSE_REGNUM): Update definition..
2352         * i386v-nat.c (register_u_addr): Update.
2353         * go32-nat.c (fetch_register): Update.
2354         (store_register): Update.
2355
2356 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2357
2358         Preparation work to convert the hppa targets to multiarch partial.
2359
2360         * hppa-tdep.c: Add new functions replacing macro bodies from
2361         config/pa/tm-hppa.h. These function will be used to initialize
2362         the gdbarch structure. Import some comments from tm-hppa.h,
2363         and place them where appropriate, to avoid loosing them when
2364         we cleanup this file.
2365         (hppa_reg_struct_has_addr): New function.
2366         (hppa_inner_than): New function.
2367         (hppa_stack_align): New function.
2368         (hppa_pc_requires_run_before_use): New function.
2369         (hppa_instruction_nullified): New function.
2370         (hppa_register_byte): New function.
2371         (hppa_register_virtual_type): New function.
2372         (hppa_store_struct_return): New function.
2373         (hppa_cannot_store_register): New function.
2374         (hppa_frame_args_address): New function.
2375         (hppa_frame_locals_address): New function.
2376         (hppa_smash_text_address): New function.
2377         (hppa_coerce_float_to_double): New function. Requires the inclusion
2378         of "language.h".
2379
2380         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2381
2382         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2383         gdbarch-eligible macro to a call to the new associated function
2384         created in hppa-tdep.c.
2385         (INNER_THAN): Likewise.
2386         (STACK_ALIGN): Likewise.
2387         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2388         (INSTRUCTION_NULLIFIED): Likewise.
2389         (REGISTER_BYTE): Likewise.
2390         (REGISTER_VIRTUAL_TYPE): Likewise.
2391         (STORE_STRUCT_RETURN): Likewise.
2392         (CANNOT_STORE_REGISTER): Likewise.
2393         (FRAME_ARGS_ADDRESS): Likewise.
2394         (FRAME_LOCALS_ADDRESS): Likewise.
2395         (SMASH_TEXT_ADDRESS): Likewise.
2396         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2397         (ABOUT_TO_RETURN): Delete, as no longer used.
2398
2399 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2400
2401         * printcmd.c (disassemble_command): Remove obsolete function.
2402         (_initialize_printcmd): Do not create disassemble command here.
2403         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2404         disassemble command.
2405         (init_cli_cmds): Create disassemble command here instead.
2406
2407 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2408
2409         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2410
2411 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2412
2413         * regcache.h (regcache_cooked_read_using_offset_hack)
2414         (regcache_cooked_write_using_offset_hack): Delete declarations.
2415         (register_changed): Delete declaration.
2416         * regcache.c (regcache_cooked_read_using_offset_hack)
2417         (regcache_cooked_write_using_offset_hack): Delete functions.
2418         (cooked_xfer_using_offset_hack): Delete function.
2419         (register_changed): Delete function.
2420
2421 2002-11-07  Jim Blandy  <jimb@redhat.com>
2422
2423         * macroscope.c: #include "complaints.h".
2424         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2425         but not in the macro table.
2426         * Makefile.in (macroscope.o): Record dependency.
2427
2428 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2429
2430         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2431
2432 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2433
2434         * regcache.c (deprecated_registers_fetched): Update.
2435         * regcache.h (deprecated_registers_fetched): Rename
2436         registers_fetched.
2437         * remote-vxsparc.c (vx_read_register): Update.
2438         * remote-vxmips.c (vx_read_register): Update.
2439         * remote-vx68.c (vx_read_register): Update.
2440         * irix5-nat.c (fetch_core_registers): Update.
2441         * mipsm3-nat.c (fetch_inferior_registers): Update.
2442         * sun3-nat.c (fetch_inferior_registers): Update.
2443         * symm-nat.c (fetch_inferior_registers): Update.
2444         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2445         (fetch_core_registers): Update.
2446         (fetch_kcore_registers): Update.
2447         * mips-nat.c (fetch_inferior_registers): Update.
2448         * corelow.c (get_core_registers): Update.
2449         * a68v-nat.c (fetch_inferior_registers): Update.
2450
2451 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2452
2453         Put in place the framework necessary for multiarching the hppa targets.
2454         * hppa-tdep.c (hppa_gdbarch_init): New function.
2455         (hppa_dump_tdep): New function.
2456         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2457         tdep structure dumper.
2458         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2459         until the multi-arching conversion has partially been completed.
2460
2461 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2462
2463         * valops.c (value_assign): Merge lval_register case into
2464         lval_reg_frame_relative.  Use frame_register and
2465         regcache_cooked_write instead of get_saved_register and
2466         write_register_bytes.  After flushing the register cache, try to
2467         re-select the selected frame.
2468
2469 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2470
2471         * regcache.h (deprecated_register_valid): Rename register_valid.
2472         * regcache.c: Update.
2473         * ia64-aix-nat.c: Update.
2474         * i386gnu-nat.c: Update.
2475         * alpha-nat.c: Update.
2476         * sparc-nat.c: Update.
2477         * lynx-nat.c: Update.
2478         * remote-mips.c: Update.
2479
2480 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2481
2482         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2483         to end of file, to be more consistent with the pratice followed
2484         by other targets.
2485
2486 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2487
2488         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2489         (print_float_info): Print registers in float_reggroup.
2490         (print_vector_info): Print registers in vector_reggroup.
2491         (default_print_registers_info): When all, print registers in
2492         all_reggroup.  Otherwize, print registers in general_reggroup.
2493         (registers_info): Rewrite.  Add support for register groups.
2494         Eliminate a goto.
2495
2496 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2497
2498         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2499         ages.
2500         (symtab_symbol_info): Remove eons old ifdeffed out code.
2501         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2502         command.
2503
2504 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2505
2506         * c-exp.y: Add missing semi-colons.
2507         * f-exp.y: Add missing semi-colons.
2508         * m2-exp.y: Add missing semi-colons.
2509         * p-exp.y: Add missing semi-colons.
2510         Add empty action to start rule to avoid a type clash error when
2511         building with bison >= 1.50.
2512
2513 2002-11-06  Jim Blandy  <jimb@redhat.com>
2514
2515         * macrotab.h (struct macro_source_file): Doc fix.
2516
2517 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2518
2519         * varobj.c (child_exists, cplus_number_of_children): Change
2520         STREQ macro references to strcmp.
2521         (cplus_name_of_child): Change code to handle the fact that
2522         fields are not necessarily contiguous with regards to their 
2523         access control. This is a fix for PR gdb/792.
2524
2525 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2526
2527         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2528         * gdbarch.h, gdbarch.c: Regnerate.
2529         * frame.h (frame_register): Declare.
2530         * frame.c (frame_register): New function.
2531         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2532         GET_SAVED_REGISTER, otherwize call
2533         generic_unwind_get_saved_register.
2534         (frame_register_read): Use frame_register instead of
2535         get_saved_register.
2536
2537 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2538         
2539         From Jim Ingham  <jingham@apple.com>:
2540         * event-top.c (gdb_disable_readline): New function.
2541         (_initialize_event_loop): Move comment.
2542
2543 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2544
2545         * event-loop.c (start_event_loop): Add comment.
2546         Update copyright.
2547
2548 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2549
2550         * infcmd.c (default_print_registers_info): Do not call
2551         PRINT_REGISTER_HOOK.
2552
2553 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2554
2555         * sparc-tdep.c (sparc_print_register_hook): Make static.
2556         (sparc_print_registers_info): New function.
2557         (sparc_do_registers_info): New function.
2558         (sparclet_print_registers_info): New function.
2559         (sparclet_do_registers_info): New function.
2560         (do_sparc_print_registers_info): New function.
2561         (sparc_print_registers): New static function, clone of infcmd.c's
2562         default_print_registers_info.
2563         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2564         (sparclet_do_registers_info): Declare.
2565         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2566         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2567         Re-define.
2568         (sparc_do_registers_info): Declare.
2569         (PRINT_REGISTER_HOOK): Delete macro.
2570         (sparc_print_register_hook): Delete declaration.
2571
2572 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2573
2574         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2575         functions.
2576         (lookup_symbol_aux_local): New function.
2577         (lookup_symbol_aux_symtabs): New function.
2578         (lookup_symbol_aux_psymtabs): New function.
2579
2580 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2581
2582         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2583         previous values of 'objfile' and 'block'.
2584
2585 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2586
2587         * values.c (value_change_enclosing_type): Set 
2588         enclosing_type field correctly also for the case where 
2589         more memory needs to be allocated.
2590
2591 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2592
2593         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2594         of puts_filtered.
2595
2596         * i387-tdep.c (i387_print_float_info): Replace calls to
2597         register_read and deprecated_read_register_gen with calls to
2598         frame_register_read, and make the necessary adjustments to the
2599         surrounding code.
2600
2601 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2602
2603         * gdbarch.sh (register_reggroup_p): Allow default value.
2604         * gdbarch.h, gdbarch.c: Regenerate.
2605
2606 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2607
2608         * regcache.h: Add coment indicating replacements for deprecated
2609         functions.
2610
2611 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2612
2613         * reggroups.h, reggroups.c: New files.
2614         * regcache.c: Include "reggroups.h".
2615         (enum regcache_dump_what): Add `regcache_dump_groups'.
2616         (regcache_dump): Contract size of the "Type" column.  When
2617         specified, dump the register's groups.
2618         (maintenance_print_register_groups): New function.
2619         (_initialize_regcache): Add command `maint print register-groups'.
2620         * Makefile.in (COMMON_OBS): Add reggroups.o
2621         (SFILES): Add reggroups.c.
2622         (reggroups_h): Define.
2623         (regcache.o, gdbarch.o): Update dependencies.
2624         (reggroups.o): Specify dependencies.
2625         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2626         Add opaque declaration for `struct reggroup' in generated .h file.
2627         Include "reggroups.h" in generated .c file.
2628         gdbarch.h, gdbarch.c: Re-generate.
2629
2630 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2631
2632         * regcache.h (deprecated_read_register_gen): Rename
2633         read_register_gen.
2634         (deprecated_write_register_gen): Rename write_register_gen.
2635         * i387-tdep.c: Update.
2636         * x86-64-linux-nat.c: Update
2637         * wince.c: Update.
2638         * thread-db.c: Update.
2639         * win32-nat.c: Update.
2640         * mips-tdep.c: Update.
2641         * d10v-tdep.c: Update.
2642         * cris-tdep.c: Update.
2643         * remote-sim.c: Update.
2644         * remote-rdi.c: Update.
2645         * remote-rdp.c: Update.
2646         * frame.c: Update.
2647         * target.c: Update.
2648         * blockframe.c: Update.
2649         * x86-64-tdep.c: Update.
2650         * xstormy16-tdep.c: Update.
2651         * sh-tdep.c: Update.
2652         * s390-tdep.c: Update.
2653         * rs6000-tdep.c: Update.
2654         * sparc-tdep.c: Update.
2655         * i386-tdep.c: Update.
2656         * dwarf2cfi.c: Update.
2657         * regcache.c: Update.
2658
2659 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2660
2661         New interix-specific files:
2662         * config/i386/nm-interix.h: New file.
2663         * config/i386/interix.mh: New file.
2664         * config/i386/interix.mt: New file.
2665         * i386-interix-nat.c: New file.
2666         * i386-interix-tdep.c: New file.
2667
2668 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2669
2670         * frame.h (deprecated_generic_get_saved_register): Rename
2671         generic_get_saved_register.
2672         * blockframe.c (deprecated_generic_get_saved_register): Update.
2673         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2674         (xstormy16_frame_saved_register): Update.
2675         * sh-tdep.c (sh_gdbarch_init): Update.
2676         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2677         * ia64-tdep.c (ia64_get_saved_register): Update.
2678         * cris-tdep.c (cris_gdbarch_init): Update.
2679         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2680         * arm-tdep.c (arm_gdbarch_init): Update.
2681
2682 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2683
2684         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2685
2686 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2687
2688         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2689         trampolines in sigaction.
2690
2691 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2692
2693         * h8300-tdep.c: Include "gdb_assert.h".
2694         (h8300_print_register): Add gdbarch, file and frame parameters.
2695         Use frame_read_unsigned_register to read the register's value.
2696         Use fprintf_filtered to display output.
2697         (h8300_print_registers_info): Replace h8300_do_registers_info.
2698         (h8300_gdbarch_init): Set print_registers_info.
2699
2700 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2701
2702         * frame.c (frame_read_unsigned_register): New function.
2703         (frame_read_signed_register): New function.
2704         * frame.h (frame_read_unsigned_register): Declare.
2705         (frame_read_signed_register): Declare.
2706
2707 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2708
2709         * h8500-tdep.c (h8500_print_registers_info): New static function,
2710         clone of infcmd.c's default_print_registers_info.
2711         (h8500_do_registers_info): New funtion.
2712         (h8500_print_register_hook): Rename print_register_hook, make
2713         static.
2714
2715         * config/h8500/tm-h8500.h: Update copyright.
2716         (DEPRECATED_DO_REGISTERS_INFO): Define.
2717         (h8500_do_registers_info: Declare.
2718         (PRINT_REGISTER_HOOK): Delete macro.
2719         (print_register_hook): Delete function.
2720
2721 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2722
2723         * z8k-tdep.c (z8k_print_register_hook): Make static.
2724         (z8k_print_registers_info): New static function, clone of
2725         infcmd.c's default_print_registers_info.
2726         (z8k_do_registers_info): New function.  Wrap
2727         z8k_print_registers_info.
2728         * config/z8k/tm-z8k.h: Update copyright.
2729         (PRINT_REGISTER_HOOK): Delete macro.
2730         (z8k_print_register_hook): Delete declaration.
2731         (DEPRECATED_DO_REGISTERS_INFO): Define.
2732         (z8k_do_registers_info): Declare.
2733
2734 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2735
2736         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2737         as this is already provided by value.h, and was actually causing
2738         a compilation error because of a conflict in parameter type
2739         declaration due to a missing const keyword.
2740         (low_text_segment_addres): Fix a compilation warning.
2741
2742 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2743
2744         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2745         registers without a name.
2746         (mips_linux_cannot_store_register): Don't store registers without
2747         a name.
2748
2749 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2750
2751         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2752         out.)
2753         * symtab.h: Delete prototype for find_addr_symbol.
2754
2755 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2756
2757         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2758         DO_REGISTERS_INFO.
2759         gdbarch.h, gdbarch.c: Re-generate.
2760         * infcmd.c (default_print_registers_info): Update reference.
2761         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2762         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2763         * sh-tdep.c (sh_gdbarch_init): Ditto.
2764         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2765         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2766
2767 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2768
2769         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2770         cfi_init_extra_frame_info.
2771         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2772         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2773
2774         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2775         target where necessary.  Add more comments and remove the ones
2776         that don't provide any useful information.
2777
2778         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2779         deprecated_read_register_dummy with
2780         frame_unwind_unsigned_register.
2781
2782         * i386-tdep.c (i386_extract_struct_value_address): Use
2783         regcache_raw_read_unsigned instead of
2784         regcache_cooked_read_unsigned since we know that the register
2785         we're reading isn't a pseudo register.  Rename variable 'val' into
2786         the more descriptive 'addr'.
2787
2788         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2789         (x86_64_push_return_address): Add comment.
2790         (x86_64_pop_frame): Make static.
2791         (examine_argument): Clarify comment.
2792         (x86_64_skip_prologue): Make prolog_expact variable static.
2793
2794         * dwarf2cfi.c: Fix some formatting problems.
2795         (context_cpy, read_encoded_pointer): Clarify comments.
2796
2797         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2798         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2799         i386 target back into x86_64_gdbarch_init.  Add some comments and
2800         remove meaningless ones.
2801
2802 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2803
2804         * complaints.h (struct deprecated_complaint): Rename `struct
2805         complaint'.
2806         * complaints.c (complain): Update.
2807         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2808         incorrect comment indicating that "symfile.h" was being included
2809         for the `struct complaint' definition.
2810         * remote-vx.c: Update.
2811         * objc-lang.c: Update.
2812         * xcoffread.c: Update.
2813         * hpread.c: Update.
2814         * mdebugread.c: Update.
2815         * stabsread.c: Update.
2816         * dwarf2read.c: Update.
2817         * dwarfread.c: Update.
2818         * elfread.c: Update.
2819         * coffread.c: Update.
2820         * stabsread.h: Update.
2821         * dbxread.c: Update.
2822         * buildsym.c: Update.
2823         * gdbtypes.c: Update.
2824         * macrotab.c: Update.
2825
2826 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2827
2828         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2829         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2830         (x86_64_init_abi): ...new function.
2831
2832         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2833         * i386v-nat.c: Include "i386-tdep.h".
2834
2835 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2836
2837         * gdbtypes.c (address_space_name_to_int): Update.
2838         (address_space_int_to_name): Update.
2839         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2840         multi-arch predicate.
2841         (address_class_name_to_type_flags): Ditto.
2842         * gdbarch.h, gdbarch.c: Re-generate.
2843         
2844         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2845
2846 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
2847
2848         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2849
2850 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
2851
2852         * symtab.h (INIT_SAL): Delete macro.
2853         (init_sal): Export.
2854         * symtab.c (init_sal): New function.
2855
2856         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2857         to init_sal function call.
2858         (find_sal_from_funcs_and_line): Ditto.
2859         (all_sals_for_line): Ditto. 
2860         * breakpoint.c (create_internal_breakpoint): Ditto. 
2861         (create_fork_vfork_event_catchpoint): Ditto. 
2862         (create_exec_event_catchpoint): Ditto. 
2863         (parse_breakpoint_sals): Ditto. 
2864         (watch_command_1): Ditto. 
2865         (handle_gnu_4_16_catch_command): Ditto.
2866         (clear_command): Ditto. 
2867         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
2868         * infcmd.c (run_stack_dummy): Ditto. 
2869         * infrun.c (process_event_stop_test): Ditto.
2870         (check_sigtramp2): Ditto.
2871         (step_over_function): Ditto. 
2872         * linespec.c (decode_line_2): Ditto. 
2873         (decode_line_1): Ditto. 
2874         * source.c (line_info): Ditto. 
2875         * symtab.c (find_pc_sect_line): Ditto.
2876
2877 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
2878
2879         * dwarf2cfi.c (struct context)
2880         (struct context_reg): Moved to dwarf2cfi.h
2881         (context_alloc, frame_state_alloc, context_cpy):
2882         Made extern instead of static, removed prototypes.
2883         * dwarf2cfi.h (struct context)
2884         (struct context_reg): New, moved from dwarf2cfi.c
2885         (context_alloc, frame_state_alloc, context_cpy):
2886         New prototypes.
2887         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2888         Changed from static to extern.
2889         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2890         (LINUX_SIGCONTEXT_FP_OFFSET)
2891         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2892         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2893         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2894         * x86-64-tdep.c (x86_64_gdbarch_init): Several
2895         set_gdbarch_*() calls now use x86-64 specific functions 
2896         instead of DWARF2 CFI ones.
2897         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2898         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2899         (x86_64_init_extra_frame_info): New prototypes.
2900         
2901 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2902
2903         * linespec.c: #include "parser-defs.h".
2904         Delete prototype for find_template_name_end.
2905         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2906
2907 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
2908
2909         * NEWS: add recent mi fixes.
2910         * varobj.c (struct varobj): Add new "updated" flag.
2911         (new_variable): Default "updated" flag to 0.
2912         (varobj_set_value): Set "updated" flag to 1 if value
2913         changes.
2914         (varobj_update): Check varobj "updated" flag before
2915         comparing old and refreshed values.  Fix for
2916         PR gdb/702.
2917
2918 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2919
2920         * parse.c (parse_exp_1): Use BLOCK_START.
2921         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2922         SYMBOL_BLOCK_VALUE.
2923         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2924
2925 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2926
2927         * symtab.c: Delete cplusplus_hint.
2928         Delete prototype for find_template_name_end.
2929
2930 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2931
2932         * symtab.h: Update comment.
2933
2934 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2935
2936         * printcmd.c (address_info): Restore quotes in output.
2937         * valops.c (value_of_local): Restore quotes in error message.
2938
2939 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2940
2941         * symtab.c (symbol_demangled_name): New function.
2942         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2943         turning most of it into a function.
2944         (symbol_demangled_name): Export.
2945
2946 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2947
2948         * valops.c (value_of_local): Restore quotes in error message.
2949
2950 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2951
2952         * symtab.c (symbol_init_language_specific): New function.
2953         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2954         turning most of it into a function.
2955         (symbol_init_language_specific): Export.
2956
2957 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2958
2959         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2960         (dwarf_attr_name): Ditto.
2961         (dwarf_type_encoding_name): Ditto.
2962         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2963         (process_die): Handle DW_TAG_namespace,
2964         DW_TAG_imported_declaration, DW_TAG_imported_module.
2965         (read_namespace): New function.
2966
2967 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
2968
2969         * configure.in: Define NEW_PROC_API on Interix too.
2970         * configure: Regenerate.
2971
2972 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
2973
2974         * configure: Regenerate using the proper version of autoconf.
2975
2976 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2977
2978         * findvar.c (read_var_value): Temporarily disable TLS code, until
2979         complete TLS support is added.
2980
2981 2002-10-21  Jim Blandy  <jimb@redhat.com>
2982             Elena Zannoni  <ezannoni@redhat.com>
2983
2984         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2985         for thread local storage locations.
2986         (struct symbol): Add objfile field.
2987         (SYMBOL_OBJFILE): Define.
2988         * dwarf2read.c (is_thread_local): New static variable.
2989         (new_symbol): If variable is in thread local fill in address class
2990         and objfile appropriately.
2991         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2992         stack operation.
2993         * printcmd.c (address_info): Print the information for thread
2994         local storage variable.
2995         * findvar.c (read_var_value): In case of thread local variable,
2996         defer to the target vector code to compute address.
2997
2998 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2999
3000         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3001         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3002
3003 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3004
3005         * symtab.h (address_class):  Rename
3006         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3007         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3008         * printcmd.c (address_info): Ditto.
3009         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3010
3011 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3012
3013         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3014         DBREG_DRX macro to acces debug registers.
3015
3016         * Makefile.in (i386obsd-tdep.o): New target.
3017
3018         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3019         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3020
3021         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3022         * config/i386/obsd.mt: New file.
3023         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3024         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3025         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3026         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3027         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3028         * i386obsd-tdep.c: New file.
3029
3030 2002-10-19  Adam Fedor  <fedor@gnu.org>
3031
3032         * objc-exp.y (name_not_typename): Fix invalid comment.  
3033
3034 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3035
3036         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3037         to allocate partial syms and macro byte caches.
3038
3039 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3040
3041         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3042
3043 2002-10-18  Adam Fedor  <fedor@gnu.org>
3044
3045         * stabsread.c (find_name_end): New function.
3046         (define_symbol): Use it.
3047
3048 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3049
3050         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3051         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3052         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3053         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3054
3055 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3056
3057         * symfile.h: Add opaque declaration for struct obstack.
3058         Declare obsavestring to take a const char *.
3059         * symfile.c (obsavestring): Make first argument a const char *.
3060
3061 2002-10-16  Adam Fedor  <fedor@gnu.org>
3062
3063         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3064         names when matching breakpoints in current file.
3065
3066 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3067
3068         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3069         (read_tag_pointer_type): Add address class support.
3070         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3071         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3072         New methods.
3073         * gdbarch.h, gdbarch.c: Regenerate.
3074         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3075         (make_type_with_address_space, recursive_type_dump): Add address
3076         class support.
3077         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3078         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3079         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3080
3081 2002-10-16  Klee Dienes  <kdienes@apple.com>
3082
3083         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3084         to get the last character of a char[] buffer, not
3085         name[sizeof(vptr_name)-1].
3086
3087 2002-10-14  Adam Fedor  <fedor@gnu.org>
3088
3089         * symtab.h: New objc_specific struct.
3090         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3091         (SYMBOL_DEMANGLED_NAME): Likewise.
3092
3093 2002-10-14  Adam Fedor  <fedor@gnu.org>
3094
3095         * symfile.c (init_filename_language_table): Add ObjC file extension.
3096
3097 2002-10-14  Adam Fedor  <fedor@gnu.org>
3098
3099         * utils.c (puts_filtered_tabular): New function.
3100         (fprintf_symbol_filtered): Get ObjC demangled name.
3101         * defs.h (puts_filtered_tabular): Declared.
3102
3103 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3104
3105         * c-lang.h (c_type_print_varspec_prefix): Delete.
3106         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3107         ``need_post_space'' parameter.  Adjust all callers.
3108
3109 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3110  
3111         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3112         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3113         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3114         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3115
3116 2002-10-13  Adam Fedor  <fedor@gnu.org>
3117
3118         * source.c (print_source_lines): Update comments.
3119
3120 2002-10-13  Adam Fedor  <fedor@gnu.org>
3121
3122         * valops.c (value_of_local): New function.
3123         (value_of_this): Use it.
3124         * value.h (value_of_local): Declared.
3125
3126 2002-10-13  Adam Fedor  <fedor@gnu.org>
3127
3128         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3129         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3130
3131 2002-10-12  Adam Fedor  <fedor@gnu.org>
3132
3133         * language.c (binop_result_type): Add language_objc to case.
3134         (integral_type): Likewise.
3135         (character_type): Likewise.
3136         (string_type): Likewise.
3137         (boolean_type): Likewise.
3138         (structured_type): Likewise.
3139         (binop_type_check): Likewise.
3140
3141 2002-10-11  Adam Fedor  <fedor@gnu.org>
3142
3143         * printcmd.c (address_info): Print 'self' for ObjC.
3144
3145 2002-10-11  Adam Fedor  <fedor@gnu.org>
3146
3147         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3148         OP_SELF.
3149
3150 2002-10-11  Adam Fedor  <fedor@gnu.org>
3151
3152         * language.h (CAST_IS_CONVERSION): Add language_objc.
3153
3154 2002-10-11  Adam Fedor  <fedor@gnu.org>
3155
3156         * defs.h (enum language): Add language_objc.
3157
3158 2002-10-11  Klee Dienes  <kdienes@apple.com>
3159
3160         * corefile.c (read_memory_typed_address): New function.
3161         * gdbcore.h (read_memory_typed_address): Add prototype.
3162         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3163         to read a value destined for a CORE_ADDR, not read_memory_integer.
3164         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3165         (f77_get_dynamic_lowerbound): Ditto.
3166
3167 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3168
3169         * utils.c (string_to_core_addr): After turning string into
3170         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3171         which will do necessary sign-extension, etc.
3172
3173 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3174
3175         * c-exp.y (THIS): Delete token and grammar rule.
3176         (yylex): Don't return THIS.
3177         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3178         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3179         * demangle.c (cplus_markers): Update comment.  Put '$'
3180         first.  Remove CPLUS_MARKER.
3181         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3182         * jv-exp.y (THIS): Delete token and grammar rule.
3183         (yylex): Don't return THIS.
3184         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3185         * objc-exp.y (THIS): Delete token and grammar rule.
3186         (yylex): Don't return THIS.
3187         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3188         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3189         (read_member_functions): Likewise for opname.
3190         (read_tilde_fields): Use is_cplus_marker.
3191
3192         * defs.h (CPLUS_MARKER): Don't define.
3193         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3194         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3195         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3196         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3197         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3198
3199         * config/i386/tm-i386v4.h: Delete file.
3200         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3201         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3202         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3203         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3204         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3205         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3206         * config/i386/i386v4.mt (TM_FILE): Likewise.
3207         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3208
3209 2002-10-10  Marko Mlinar  <markom@opencores.org>
3210
3211         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3212         accidentially not commited 2002-10-09
3213         * gdbarch.h, gdbarch.c: Re-generate.
3214
3215 2002-10-09  Marko Mlinar  <markom@opencores.org>
3216
3217         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3218         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3219         * gdbarch.h, gdbarch.c: Re-generate.
3220
3221 2002-10-08  Petr Sorfa <petrs@caldera.com>
3222
3223         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3224
3225         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3226         so we can work on more than one compilation unit at a time.  This
3227         helps prepare GDB to handle inter-CU die references.
3228         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3229         the code to be defined before struct comp_unit_head.
3230         (comp_unit_head): Added new members - offset, cu_head,
3231         begin_die, next and dwarf2_abbrevs.
3232         (dwarf2_abbrevs): Removed single static var; now member of
3233         struct comp_unit_head.
3234         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3235         members.
3236         (psymtab_to_symtab_1): Changed to work with the new
3237         struct comp_unit_head.
3238         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3239         constructs the dwarf2_abbrevs[] inside the cu_header.
3240         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3241         dwarf2_abbrev table to clean up.
3242         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3243         handling of dwarf2_abbrevs inside the cu_header.
3244         (read_partial_die): Now supports the call to the new
3245         dwarf2_lookup_abbrev.
3246         (read_full_die): Now supports the call to the new
3247         dwarf2_lookup_abbrev.
3248
3249 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3250
3251         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3252         insure that shell variables, such as "transformed_name" are propagated
3253         to later shell statements in rule.
3254
3255 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3256
3257         * config/i386/nm-i386sco.h: Add protection against
3258         multiple-inclusion.  Include "i386/nm-i386v.h".
3259         (REGISTER_U_ADDR): Remove define.
3260         (i386_register_u_addr): Remove prototype.
3261
3262 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3263
3264         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3265         before treating it as a single-step event.
3266
3267 2002-10-03  Adam Fedor  <fedor@gnu.org>
3268
3269         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3270         (objc_demangle): Remove assignment in if statements, Replace
3271         free with xfree.
3272         (add_msglist): Likewise.
3273         (end_msglist): Likewise.
3274         (complare_selectors): Likewise.
3275         (selectors_info): Likewise.
3276         (compare_classes): Likewise.
3277         (classes_info): Likewise.
3278         (print_object_command): Likewise.
3279         (find_objc_msgcall_submethod): Replace PTR with void *.
3280         * objc-lang.h: Remove check for __STDC__.
3281
3282 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3283
3284         * ui-out.h (ui_out_field_fmt_int): New prototype.
3285         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3286         of field width and alignment.
3287         * stack.c (print_frame_info_base): When printing frame level, use
3288         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3289         PR gdb/192
3290
3291 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3292
3293         * MAINTAINERS: Add self to Write After Approval list.
3294
3295 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3296
3297         * infcmd.c (interrupt_target_command_wrapper): Delete.
3298         (interrupt_target_command): Make non static.
3299         (nofp_registers_info): Make static.
3300         * stack.c (return_command_wrapper): Delete.
3301         (return_command): Make non static.
3302
3303 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3304
3305         * event-top.c (gdb_setup_readline): New function. Code moved from
3306         _initialize_event_loop().
3307         (_initialize_event_loop): Call gdb_setup_readline().
3308
3309 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3310
3311         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3312         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3313         * gdbarch.h, gdbarch.c: Re-generate.
3314
3315 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3316
3317         Fix PR gdb/778
3318         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3319         before recursing.
3320         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3321         of fill_in_vptr_fieldno.
3322
3323 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3324
3325         * inferior.h (registers_info, stepi_command, nexti_command,
3326         continue_command, interrupt_target_command): Export from infcmd.c.
3327         * frame.h (args_info, selected_frame_level_changed_hook,
3328         return_command): Export from stack.c.
3329         * v850ice.c (stepi_command, nexti_command, continue_command): use
3330         prototypes from inferior.h.
3331         * tracepoint.c (registers_info, args_info, locals_info): Use
3332         prototypes from frame.h and inferior.h.
3333         * Makefile.in (mi-main.o): Add dependency on frame.h.
3334
3335 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3336
3337         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3338         value in register 3 adjusted by ppc_gp0_regnum.
3339
3340         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3341
3342 2002-10-02  Marko Mlinar <markom@opencores.org>
3343
3344         * MAINTAINERS: Add myself to the Write After Approval list.
3345
3346 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3347
3348         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3349         of the section for the N64 ABI, fixed.
3350
3351         * config/mips/tm-irix6.h: Include solib.h.
3352
3353 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3354
3355         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3356         GNU operators.
3357
3358 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3359
3360         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3361         and that "mi0" syntax has been removed.
3362
3363 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3364
3365         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3366         * ppc-sysv-tdep.c: #include "gdb_string.h".
3367         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3368         pacify GCC.
3369
3370 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3371
3372         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3373         "vrsave"'s register number.
3374
3375 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3376
3377         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3378         use frame_unwind_signed_register to obtain the PC.
3379         (mips_frame_chain): Handle a generic dummy frame.
3380         (mips_init_extra_frame_info): When a generic dummy frame, don't
3381         re-compute the frame base.
3382         (mips_pop_frame): Handle generic dummy frames.
3383         (mips_gdbarch_init): When generic dummy frames, set
3384         use_generic_dummy_frames, push_dummy_frame to
3385         generic_push_dummy_frame, pc_in_call_dummy to
3386         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3387         generic_save_dummy_frame_tos.
3388
3389 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3390
3391         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3392         against TOP when TOP was explictly set.
3393         (generic_push_dummy_frame): Set TOP to zero.
3394
3395 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3396
3397         * event-loop.c (start_event_loop): Rename variable 'result' to
3398         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3399
3400 2002-09-30  Keith Seitz  <keiths@redhat.com>
3401
3402         * gdb-events.sh (selected_thread_changed): New event.
3403         * gdb-events.c: Regenerated.
3404         * gdb-events.h: Regenerated.
3405
3406 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3407
3408         * MAINTAINERS: Add self to Write After Approval list.
3409
3410 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3411
3412         * disasm.c: New file.  
3413         * disasm.h: New file.  
3414         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3415         (compare_lines): Ditto.
3416         (dump_insns): Ditto.
3417         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3418         argument.
3419         (do_assembly_only): Ditto.
3420         (do_disassembly): Renamed to gdb_disassembly and moved to
3421         disasm.c.  Sdded uiout argument.
3422         * Makefile.in: Add new files.  Reorder SFILES list. Update
3423         dependencies.  Include libgdb.a later in the insight executable.
3424
3425 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3426
3427         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3428         bfd/elf64-alpha-fbsd.c.
3429
3430 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3431
3432         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3433         i386gnu-tdep.c.
3434
3435 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3436
3437         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3438         __FUNCTION__.
3439         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3440         function name.
3441         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3442         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3443         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3444         (S_msg_sig_post_reply): Ditto.
3445         
3446 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3447
3448         * sh-tdep.c (sh_use_struct_convention): Use definition according
3449         to ABI.
3450         (sh_push_arguments): Store in register with correct endianess.
3451         (sh_default_store_return_value): Ditto.
3452         (sh_gdbarch_init): Set sizeof long double to 8.
3453
3454 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3455
3456         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3457         Fix some whitespace problems.
3458
3459 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3460
3461         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3462         (mcore-tdep.o): Ditto.
3463         (ns32k-tdep.o): Ditto.
3464         (ns32knbsd-tdep.o): Ditto.
3465         (sh3-rom.o): Ditto.
3466         (vax-tdep.o): Ditto.
3467         * cris-tdep.c: #include "gdb_string.h"
3468         * mcore-tdep.c: Ditto.
3469         * ns32k-tdep.c: Ditto.
3470         * ns32knbsd-tdep.c: Ditto.
3471         * sh3-rom.c: Ditto.
3472         * vax-tdep.c: Ditto.
3473
3474 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3475
3476         * config/djgpp/fnchange.lst: Add entries for
3477         gdb/testsuite/gdb.c++/m-static files.
3478
3479 2002-09-27  Jim Wilson  <wilson@redhat.com>
3480
3481         * MAINTAINERS: Add myself to the Write After Approval list.
3482
3483 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3484
3485         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3486
3487
3488 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3489
3490         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3491         frame.
3492
3493 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3494
3495         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3496         (rs6000_struct_return_address): Delete variable.
3497         (rs6000_store_struct_return): Update.
3498         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3499         deprecated_extract_struct_value_address.
3500         (rs6000_frame_align): New function.
3501         (rs6000_gdbarch_init): Set frame_align.
3502
3503 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3504
3505         From Grace Sainsbury <graces@redhat.com>:
3506         * Makefile.in (gdbtk-main.o): New target.
3507         (gdb.o): New target.
3508         (main_h): Define.
3509         (main.o): Update dependencies.
3510         (gdb$(EXEEXT)): Add gdb.o.
3511         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3512         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3513         (SUBDIR_GDBTK_CLEAN): Set.
3514         (install-gdbtk): Install the insight binary.
3515         (uninstall-gdbtk): New target.
3516         (all-gdbtk, clean-gdbtk): New rule.
3517         * top.c (use_windows): Default to zero.
3518         * main.c: Include "main.h".
3519         (main): Delete.
3520         (struct captured_main_args): Delete.
3521         (gdb_main): New function.
3522         * main.h: New file.
3523         * gdb.c: New File.
3524
3525 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3526
3527         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3528         (frame_map_regnum_to_name): New function.
3529         (frame_map_name_to_regnum): New function.
3530         * frame.h (frame_map_name_to_regnum): Declare.
3531         (frame_map_regnum_to_name): Declare.
3532         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3533         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3534         * parse.c: Do not include "builtin-regs.h".
3535         (target_map_name_to_register): Delete function.
3536         (write_dollar_variable): Use frame_map_name_to_regnum.
3537         * parser-defs.h (target_map_name_to_register): Delete declaration.
3538         * expprint.c: Include "frame.h".
3539         (print_subexp): Use frame_map_regnum_to_name.
3540         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3541         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3542
3543 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3544
3545         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3546         wasn't saved, and the next innermost frame is a dummy, return the
3547         dummy frame's link register.
3548
3549 2002-09-24  Jim Blandy  <jimb@redhat.com>
3550
3551         Fix from Paul Breed:
3552         * main.c (captured_main): Add a `break' after the case for 'b'.
3553
3554 2002-09-24  Keith Seitz  <keiths@redhat.com>
3555
3556         * varobj.c (c_type_of_child): Use get_target_type instead
3557         of TYPE_TARGET_TYPE.
3558
3559 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3560
3561         * source.c (get_current_or_default_source_symtab_and_line): Remove
3562         function.
3563         (set_default_source_symtab_and_line): New function. Attempts to
3564         determine a source file to list lines from if one is not currently
3565         defined.
3566         (get_current_source_symtab_and_line): Initialize sal.pc and
3567         sal.end fields.
3568         (set_current_source_symtab_and_line): Mark argument as const.
3569         * source.h: Update declarations and comments.
3570         * linespec.c (decode_line_1): Replace call to removed routine above.
3571         * stack.c (print_frame_info_base): Ditto.
3572         * cli/cli-cmds.c (edit_command): Ditto.
3573         (list_command): Ditto.
3574
3575 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3576
3577         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3578         sal.pc and sal.end fields.
3579         (get_current_or_default_source_symtab_and_line): Ditto.
3580         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3581         so we do not cause a new source symtab to be searched for (reverting an
3582         unintentional change from the 2002-09-20 patch).
3583         * scm-lang.c (scm_unpac): Ditto.
3584
3585 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3586
3587         * complaints.c (symfile_explanations): Remove new-line from
3588         ``isolated_message''.
3589         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3590         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3591
3592 2002-09-20  Nick Clifton  <nickc@redhat.com>
3593         
3594         * NEWS: Announce that V850EA ISA is no longer supported.
3595         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3596
3597 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3598
3599         * Makefile.in (c-lang.o): Correct dependencies.
3600         (utils.o): Gather dependencies.
3601         (charset.o): Move.
3602         * c-lang.c: #include "gdb_string.h"
3603
3604 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3605
3606         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3607         * cli/cli-cmds.c (list_command): New function.  Implements the new
3608         cli edit command.
3609         (_init_cli_cmds): Add new command definition.
3610         * gdb.1: Document edit command.
3611         * doc/gdb.texinfo: Document edit command.
3612
3613 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3614
3615         * source.c: Make global variables current_source_symtab and
3616         current_source_line static.
3617         (list_command): Moved to cli/cli-cmds.c.
3618         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3619         (get_first_line_listed): New accessor function.
3620         (get_lines_to_list): New accessor function.
3621         (get_current_source_symtab_and_line): New function. Retrieves the
3622         position in the source code that we consider current.
3623         (get_current_or_default_source_symtab_and_line): New function.
3624         Like the above but attempts to determine a default position if one
3625         is not currently defined.
3626         (set_current_source_symtab_and_line): New function. Sets the source
3627         code position considered current and returns the previously set one.
3628         (clear_current_source_symtab_and_line): Reset stored information about
3629         a current source line.
3630         (_initialize_source): Remove registration for the "list" command and
3631         its alias.
3632         * source.h: Add declarations for the new functions above.
3633         * symtab.h: Remove declarations for the global variables mentioned
3634         above.
3635         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3636         obtain current source line.
3637         * linespec.c (decode_line_1): Ditto.
3638         * macroscope.c (default_macro_scope): Ditto.
3639         * scm-lang.c (scm_unpac): Ditto.
3640         * stack.c (print_frame_info_base): Ditto.
3641         * symfile.c (clear_symtab_users): Ditto.
3642         * symtab.c (decode_line_spec): Ditto.
3643         * cli/cli-cmds.c (list_command): Moved here from source.c.
3644         (ambiguous_line_spec): Moved here from source.c.
3645         (_init_cli_cmds): Add definition for "list" and its alias.
3646         * Makefile.in: Update dependencies.
3647
3648 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3649
3650         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3651         with what gcc thinks is correct.
3652
3653 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3654
3655         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3656         multiple register push instruction.
3657
3658 2002-09-19  Jim Blandy  <jimb@redhat.com>
3659
3660         Add support for distinct host and target character sets.
3661         * charset.c, charset.h: New files.
3662         * c-exp.y: #include "charset.h".
3663         (yylex): Convert character and string literals to the target
3664         character set, before returning them as the semantic value of the
3665         token.
3666         * c-lang.c: #include "charset.h".
3667         (c_emit_char): Use charset-specific methods to recognize
3668         characters with backslash escape forms, to decide which characters
3669         to print literally and which to print using numeric escape
3670         sequences, and to convert target characters to host characters
3671         before printing.
3672         * utils.c: #include "charset.h".
3673         (no_control_char_error): New function.
3674         (parse_escape): Use charset-specific methods to recognize
3675         backslash escapes, parse `control character' notation, and convert
3676         characters from the host character set to the target character set.
3677         * configure.in: Set the default host character set.
3678         Check where to find iconv, and what its argument types might be.
3679         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3680         * Makefile.in (SFILES): List charset.c.
3681         (COMMON_OBS): List charset.o.   
3682         (charset.o): New rule.
3683         (charset_h): New header dependency variable.
3684         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3685         (LIBICONV): New variable, set by configure.
3686         (CLIBS): Include $(LIBICONV) here.
3687         * aclocal.m4, config.in, configure: Regenerated.
3688
3689 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3690
3691         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3692         bison 1.35 warning.
3693
3694 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3695
3696         * gdb_mbuild.sh: New file.
3697
3698 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3699
3700         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3701
3702 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3703
3704         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3705         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3706         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3707         valops.c, value.h: Revert previous change.
3708         
3709 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3710
3711         Preliminary support for Objective-C:
3712         * defs.h (language_objc): New enum value.
3713         (puts_filtered_tabular): Declaration only, exported from utils.c.
3714         (skip_quoted): Delete, declared in completer.h.
3715         * c-exp.y: Include completer.h.
3716         * p-exp.y: Ditto.
3717         * jv-exp.y: Ditto.
3718         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3719         New operator enum values.
3720         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3721         * language.c (binop_result_type): Handle language_objc case.
3722         (integral_type, character_type, string_type, boolean_type,
3723         structured_type, binop_type_check): Ditto.
3724         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3725         (struct objc_specific): Add to general_symbol_info.
3726         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3727         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3728         * parser-defs.h (struct objc_class_str): New struct type.
3729         (start_msglist, end_msglist, add_msglist): Declaration only,
3730         exported from objc-lang.c.
3731         * value.h (value_of_local, value_nsstring, 
3732         call_function_by_hand_expecting_type): Exported from valops.c.
3733         * valops.c (find_function_addr): Export.
3734         (call_function_by_hand_expecting_type): New function.
3735         (value_of_local): New function.
3736         * symfile.c (init_filename_language_table): Add ".m" extension
3737         for Objective-C.
3738         * utils.c (puts_filtered_tabular): New function.
3739         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3740         (set/show demangle): Extend help-string to refer to ObjC.
3741         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3742         * stabsread.c (symbol_reference_defined): Objective-C symbols
3743         may contain colons: make allowances when scanning stabs strings
3744         for colons.
3745         (objc_find_colon): New function.
3746         * printcmd.c (address_info): If language == objc then print
3747         "self" instead of "this".
3748         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3749         OP_NSSTRING, and OP_SELF.
3750         (prefixify_subexp): Ditto.
3751         * source.c (print_source_lines): Mention objc in comment.
3752         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3753         method names.
3754
3755 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3756
3757         * complaints.h: Update copyright.
3758         (struct complaints): Declare.
3759         (struct complaint): Make `message' constant.
3760         (internal_complaint): Declare.
3761         (complaint): Declare.
3762         (complaint_root): Delete declaration.
3763         (symfile_complaints): Delete declaration.
3764         (struct complaints): Add opaque declaration.
3765         (clear_complaints): Add a complaints parameter.
3766         * complaints.c: Update copyright.
3767         (enum complaint_series): Define.
3768         (complaint_root): Delete.
3769         (struct complaints): Define.
3770         (complaint_sentinel, symfile_complaint_book): New variables.
3771         (symfile_explanations, symfile_complaints): New variables.
3772         New variables.
3773         (get_complaints): New function.
3774         (vcomplaint): New function.
3775         (complaint): New function.
3776         (internal_complaint): New function.
3777         (complain): Call vcomplain with symfile_complaint.
3778         (clear_complaints): Rewrite.
3779         (_initialize_complaints): Use add_setshow_command.
3780         * Makefile.in (complaints.o): Update dependencies.
3781         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3782         to call to clear_complaints.
3783         (new_symfile_objfile, reread_symbols): Ditto.
3784         (oldsyms_complaint): Delete.
3785         (empty_symtab_complaint, unknown_option_complaint): Delete.
3786         (free_named_symtabs): Use complaint instead of complain.
3787
3788 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3789
3790         Contributed by Apple Computer, Inc.  Merged with current sources
3791         by Adam Fedor <fedor@doc.com> [cagney].
3792         
3793         * objc-lang.c: First clean-up round: comments, indentation.
3794         * objc-lang.h: Ditto.
3795         * objc-lang.y: Ditto.
3796
3797 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3798
3799         * maint.c (maintenance_internal_error): Print the parameter as the
3800         error message.
3801         (maintenance_internal_warning): New function.
3802         (_initialize_maint_cmds): Add command `maint internal-warning'.
3803
3804         * defs.h (internal_warning, internal_vwarning): Declare.
3805         * utils.c (struct internal_problem): Define.
3806         (internal_vproblem): New function.
3807         (internal_warning): New function.
3808         (internal_vwarning): New function.
3809         (internal_warning_problem, internal_error_problem): New variables.
3810         (internal_verror): Just call internal_vproblem.
3811
3812 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3813
3814         * objc-lang.c: New file, support for Objective-C.
3815         Preliminary check-in, not yet integrated into gdb.
3816         * objc-lang.h: New file.
3817         * objc-exp.y:  New file.
3818
3819 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3820
3821         * infrun.c (signal_stop_update): Convert definition to ISO C.
3822         (signal_print_update): Ditto.
3823         (signal_pass_update): Ditto.
3824         * inflow.c (terminal_save_ours): Ditto.
3825
3826         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3827         comments.
3828         
3829         * config/djgpp/fnchange.lst: Handle name clashes between
3830         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3831         bfd/coff-tic80.c.
3832
3833         * i386-linux-tdep.h: Fix tipo.
3834
3835 2002-09-18  Adam Fedor  <fedor@gnu.org>
3836
3837         * MAINTAINERS: Add myself to the Write After Approval list.
3838
3839 2002-09-18  Jim Blandy  <jimb@redhat.com>
3840
3841         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3842         texthigh and textlow to reader-specific structs caused
3843         objfile_relocate to miss them.  This is fixable, but the work that
3844         the change was supposed to prepare GDB for never got done anyway.
3845
3846 2002-09-18  David Carlton  <carlton@math.stanford.edu>
3847
3848         * MAINTAINERS: Alphabetize Write After Approval list.
3849
3850 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
3851
3852         Fix PR gdb/709
3853         * values.c (value_static_field): Call read_var_value.
3854
3855 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3856
3857         * valops.c (hand_function_call): Align the initial stack pointer
3858         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
3859         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3860         return value.
3861         * mips-tdep.c (mips_frame_align): New function.
3862         (mips_gdbarch_init): Set frame_align.
3863         * gdbarch.sh (FRAME_ALIGN): New method.
3864         * gdbarch.h, gdbarch.c: Re-generate.
3865
3866 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
3867
3868         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3869         registers.
3870
3871 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3872
3873         * NEWS: Mention that MIPS $fp behavior changed.
3874         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3875         reference to FP_REGNUM.
3876         (mipsnbsd_cannot_store_register): Ditto.
3877         * mips-linux-nat.c: Update copyright.
3878         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3879         (mips_linux_cannot_store_register): Ditto.
3880         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
3881         * config/mips/tm-mips.h: Update copyright.
3882         (FP_REGNUM): Delete macro.
3883         (MIPS_REGISTER_NAMES): Replace "fp" with "".
3884         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3885         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3886         (mips_r3041_reg_names, mips_r3051_reg_names)
3887         (mips_r3081_reg_names): Replace "fp" with "".
3888         Fix PR gdb/480.
3889
3890 2002-09-17  Theodore A. Roth  <troth@verinet.com>
3891
3892         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
3893         generic_read_register_dummy() (PR gdb/703).
3894         (avr_push_return_address): #if 0 out unused vars.
3895         (avr_gdbarch_init): Enable use of avr_push_return_address().
3896
3897 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3898
3899         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3900         RTE will take care of it.
3901
3902 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3903
3904         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3905         invalid, return SP_REGNUM.
3906
3907 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3908
3909         * mips-tdep.c (mips_pop_frame): Read saved values of floating
3910         point registers without sign extension.
3911
3912 2002-09-17  Andrew Cagney  <cagney@redhat.com>
3913
3914         * blockframe.c (deprecated_read_register_dummy): Rename
3915         generic_read_register_dummy.
3916         * frame.c (frame_unwind_signed_register): New function.
3917         (frame_unwind_unsigned_register): New function.
3918         * frame.h (frame_unwind_signed_register): Declare.
3919         (frame_unwind_unsigned_register): Declare.
3920         (deprecated_read_register_dummy): Rename
3921         generic_read_register_dummy.
3922
3923         * h8300-tdep.c (h8300_frame_chain): Update.
3924         (h8300_frame_saved_pc): Update.
3925         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3926         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3927         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3928         (s390_frame_chain): Update.
3929         * v850-tdep.c (v850_find_callers_reg): Update.
3930         (v850_frame_saved_pc): Update.
3931         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3932         (m32r_find_callers_reg): Update.
3933         (m32r_frame_saved_pc): Update.
3934         * sh-tdep.c (sh_find_callers_reg): Update.
3935         (sh64_get_saved_pr): Update.
3936         (sh_init_extra_frame_info): Update.
3937         (sh_init_extra_frame_info): Update.
3938         (sh64_init_extra_frame_info): Update.
3939         (sh64_init_extra_frame_info): Update.
3940         * mcore-tdep.c (mcore_find_callers_reg): Update.
3941         (mcore_frame_saved_pc): Update.
3942         (mcore_init_extra_frame_info): Update.
3943         * i386-tdep.c (i386_frame_saved_pc): Update.
3944         * ia64-tdep.c (ia64_frame_saved_pc): Update.
3945         (ia64_init_extra_frame_info): Update.
3946         (ia64_init_extra_frame_info): Update.
3947         * d10v-tdep.c (d10v_frame_saved_pc): Update.
3948         * cris-tdep.c (cris_init_extra_frame_info): Update.
3949         * avr-tdep.c (avr_frame_chain): Update.
3950         (avr_init_extra_frame_info): Update.
3951         (avr_frame_saved_pc): Update.
3952         * arm-tdep.c (arm_find_callers_reg): Update.
3953         (arm_init_extra_frame_info): Update.
3954         (arm_frame_saved_pc): Update.
3955
3956 2002-09-17  Tom Tromey  <tromey@redhat.com>
3957
3958         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3959         is "'".
3960
3961 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
3962
3963         * MAINTAINERS: Remove "non multi-arched" text from h8300.
3964         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3965         NEXT_PROLOGUE_INSN.
3966         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3967         NEXT_PROLOGUE_INSN.
3968
3969 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
3970
3971         * osfsolib.c: Remove file, replaced by solib-osf.c.
3972         * Makefile.in: Remove compilation rules for osfsolib.c.
3973
3974 2002-09-16  David Carlton  <carlton@math.stanford.edu>
3975
3976         * cp-valprint.c (cp_print_class_method): Correct args to
3977         check_stub_method_group.
3978
3979 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
3980
3981         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
3982         `set architecture'.  Unify naming convention of functions.
3983         (h8300_skip_prologue): Improve prologue analysis.
3984         (h8300_push_arguments): Rewritten to more closely match GCC's
3985         bizarre argument-passing behavior, along with the comment describing
3986         said behavior.
3987         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3988         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
3989         sim, remote-e7000.c, remote-hms.c and remote.c
3990
3991 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
3992
3993         * i386-tdep.c (gdb_print_insn_i386): Removed.
3994         (i386_print_insn): New function.
3995         (i386_gdbarch_init): Set print_insn to i386_print_insns.
3996         (_initialize_i386_tdep): Don't initialize tm_print_insn and
3997         tm_print_insn_info.
3998
3999 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4000
4001         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4002         zero.
4003
4004 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4005
4006         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4007         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4008         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4009
4010 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4011
4012         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4013
4014 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4015
4016         * gdbtypes.c (check_stub_method): Make static.
4017         (check_stub_method_group): New function.
4018         * gdbtypes.h: Update prototypes.
4019         * cp-support.c: New file.
4020         * cp-support.h: New file.
4021
4022         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4023         (update_method_name_from_physname): New function.
4024         (read_member_functions): Correct method names for operators
4025         and v3 constructors/destructors.  Separate v2 constructors and
4026         destructors.
4027         * Makefile.in (stabsread.o): Update dependencies.
4028         (SFILES): Add cp-support.c.
4029         (COMMON_OBS): Add cp-support.o.
4030         (cp_support_h, cp-support.o): Add.
4031
4032         * cp-valprint.c (cp_print_class_method): Call
4033         check_stub_method_group instead of check_stub_method.  Remove
4034         extraneous QUITs.
4035         * p-valprint.c (pascal_object_print_class_method): Likewise.
4036         * valops.c (search_struct_method): Likewise.
4037         (find_method_list, value_struct_elt_for_reference): Likewise.
4038
4039 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4040
4041         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4042         * gdbarch.h, gdbarch.c: Regenerate.
4043
4044 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4045
4046         * frame.c (find_saved_register): Delete function.
4047         * frame.h (find_saved_register): Delete declaration.
4048         Fix PR gdb/631.
4049
4050 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4051
4052         * mips-tdep.c (read_next_frame_reg): Re-hack using
4053         frame_register_unwind.
4054
4055 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4056
4057         * mips-tdep.c (mips_get_saved_register): Re-hack using
4058         frame_register_unwind.
4059
4060 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4061
4062         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4063         vector. Will be useful for Interix.  
4064         * gdbarch.h, gdbarch.c: Regenerate.
4065
4066         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4067         name of the malloc function by NAME_OF_MALLOC.
4068
4069 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4070
4071         * value.h (find_function_in_inferior): Add const keyword to
4072         one of the parameters. Allows us to invoke this function with
4073         a const char *.
4074         * valops.c (find_function_in_inferior): Likewise.
4075
4076 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4077
4078         * exec.c (xfer_memory): Fix compilation warning with old versions
4079         of GCC.
4080         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4081
4082 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4083
4084         * symtab.h: Run through gdb_indent.h.
4085         Add 2002 to Copyright year list.
4086
4087 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4088
4089         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4090         mach constants.
4091         * MAINTAINERS: Add myself to write after approval list.
4092
4093 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4094
4095         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4096
4097 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4098
4099         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4100         Interix.
4101
4102 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4103
4104         * procfs.c (do_detach): Clear current signal, not just fault.
4105         Corrects problem with breakpoint trap signal leaking to detached
4106         process on Tru64.
4107
4108 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4109
4110         * buildsym.c (finish_block): Protect against null pointer.
4111
4112 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4113
4114         * infcmd.c (default_print_registers_info): Send all output to
4115         ``file'' instead of ``gdb_stdout''.
4116
4117 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4118
4119         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4120         LONGEST, and use signed register read (addresses are sign-
4121         extended for mips).
4122
4123 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4124
4125         * event-loop.c (gdb_do_one_event): Make public.
4126         * event-loop.h (gdb_do_one_event): Declare.
4127
4128 2002-09-10  Jeff Law  <law@redhat.com>
4129
4130         * infttrace.c (child_resume): Simplify and rework to avoid
4131         TT_PROC_CONTINUE.
4132
4133 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4134
4135         * printcmd.c (print_scalar_formatted): "len" is the number of
4136         target bytes, NOT the number of target bits.
4137
4138 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4139
4140         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4141         * top.c (init_main): Set rl_terminal_name.
4142
4143 2002-09-08  Aidan Skinner <aidan@velvet.net>
4144
4145         * ada-lang.c (ada_array_bound, ada_type_match,
4146         _initialize_ada_language): Fix K&R definitions.
4147         * ada-tasks.c (get_current_task): Fix K&R definitions.
4148         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4149                         
4150 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4151
4152         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4153         Add XP.
4154
4155 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4156
4157         * i386-tdep.c (i386_register_virtual_type,
4158         i386_register_convertible, i386_register_convert_to_virtual,
4159         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4160         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4161         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4162         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4163         Don't set push_arguments twice.
4164
4165         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4166         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4167         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4168         sigtramp_end to NULL.
4169         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4170         defines.
4171         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4172
4173         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4174         whitespace.
4175
4176         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4177         * gdbarch.h, gdbarch.c: Re-generate.
4178         * blockframe.c (find_pc_sect_partial_function): Convert to use
4179         SIGTRAMP_START_P predicate.
4180
4181 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4182
4183         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4184         generic_dummy_frame method and old method.  Also distinguish
4185         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4186         (arm_extract_return_value): Use new regcache method.
4187
4188         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4189         adjustment that doesn't conform to the ABI.
4190         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4191         saved regcache, not from current regcache.
4192
4193 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4194
4195         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4196         * README: Update.
4197
4198 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4199
4200         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4201         if arm_apcs_32 is false.
4202
4203 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4204
4205         GDB 5.3 branch created.
4206
4207 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4208
4209         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4210         generic_unwind_get_saved_register.
4211
4212 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4213
4214         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4215         argument (PR gdb/653).  Update call to smash_to_method_type.
4216         (read_structure_scope): Update call to dwarf2_add_member_fn.
4217
4218 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4219
4220         * x86-64-linux-tdep.c: Include gdb_string.h
4221         * x86-64-linux-nat.c: Ditto.
4222
4223 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4224
4225         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4226         when YYDEBUG is set to 1.  
4227         * c-exp.y: Likewise.
4228         * f-exp.y: Likewise.
4229         * jv-exp.y: Likewise.
4230         * m2-exp.y: Likewise.
4231         * p-exp.y: Likewise.
4232
4233 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4234
4235         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4236         dependency list.
4237         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4238         solib_svr4_fetch_link_map_offsets to
4239         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4240         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4241         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4242         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4243         solib-svr4.o, and solib-legacy.o.
4244         * config/i386/tm-nbsd.h: Include solib.h.
4245
4246 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4247
4248         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4249         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4250         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4251         comment noting that this needs its own target configuration.
4252         * config/i386/nbsd.mt: New file.
4253         * config/i386/nbsdaout.mt: Remove.
4254         * config/i386/nbsdelf.mt: Ditto.
4255         * config/i386/tm-nbsdaout.h: Ditto. 
4256
4257 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4258
4259         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4260         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4261         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4262         tdep->sigtramp_end.
4263         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4264         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4265         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4266
4267 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4268
4269         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4270         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4271         * i386-tdep.h (i386bsd_init_abi): New prototype.
4272         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4273         function declaration.
4274         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4275         for NetBSD-a.out or NetBSD-ELF.
4276         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4277         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4278         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4279         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4280         and nbsd-tdep.h.
4281         (i386nbsd_pc_in_sigtramp): New function.
4282         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4283         i386nbsd_pc_in_sigtramp.
4284         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4285         and i386nbsdelf_init_abi OS ABI handlers.
4286         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4287         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4288
4289 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4290
4291         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4292         registers if the target really has them.
4293
4294 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4295
4296         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4297         than nbsd-tdep.h.
4298
4299 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4300
4301         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4302         list.
4303         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4304         (alphanbsd_skip_sigtramp_frame): New functions. 
4305         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4306         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4307         to alphanbsd_sigcontext_addr. 
4308
4309 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4310
4311         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4312         list.
4313         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4314         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4315         nbsd_pc_in_sigtramp. 
4316         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4317         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4318         * nbsd-tdep.c: Include gdb_string.h.
4319         (nbsd_pc_in_sigtramp): New function. 
4320         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4321         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4322         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4323         ppcnbsd_pc_in_sigtramp. 
4324         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4325         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4326         shnbsd_pc_in_sigtramp. 
4327         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4328         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4329         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4330
4331 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4332
4333         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4334         watchpoints to NULL.
4335         (insert_breakpoints): set val field of watchpoints if NULL.
4336
4337
4338 2002-08-29  Jim Blandy  <jimb@redhat.com>
4339
4340         * symtab.c (lookup_symbol_aux): In the cases where we find a
4341         minimal symbol of an appropriate name and use its address to
4342         select a symtab to read and search, use `name' (as passed to us)
4343         as the demangled name when searching the symtab's global and
4344         static blocks, not the minsym's name.
4345
4346 2002-08-29  Keith Seitz  <keiths@redhat.com>
4347
4348         * stack.c (print_frame_info_base): Always set current_source_symtab
4349         and current_source_line.
4350
4351 2002-08-29  Donn Terry  <donnte@microsoft.com>
4352
4353         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4354
4355 2002-08-28  Keith Seitz  <keiths@redhat.com>
4356
4357         * stack.c (select_frame): Add FIXME concerning selected-frame
4358         events.
4359         (select_frame_command): Send selected-frame-level-changed
4360         event notification, but only if the level actually changed.
4361         (up_silently_base): Add selected-frame-level-changed event
4362         notification.
4363         (down_silently_base): Likewise.
4364
4365 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4366
4367         * Makefile.in: Update dependencies for all gdb/*.c files.
4368
4369 2002-08-27  Tom Tromey  <tromey@redhat.com>
4370
4371         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4372         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4373         Update dependencies.
4374         * i387-tdep.c: Include gdb_string.h.
4375         * osabi.c: Likewise.
4376         * i386-linux-nat.c: Likewise.
4377         * lin-lwp.c: Likewise.
4378         * ax-gdb.c: Likewise.
4379         * signals/signals.c: Likewise.
4380         * jv-valprint.c: Likewise.
4381         * p-lang.c: Likewise.
4382         * c-valprint.c: Likewise.
4383         * cp-abi.c: Likewise.
4384
4385 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4386
4387         * cli/cli-script.h (copy_command_lines): Export.
4388         * breakpoint.c: Include cli/cli-script.h.
4389         * Makefile.in (breakpoint.o): Update dependencies.
4390
4391 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4392
4393         * breakpoint.c (insert_breakpoints): Protect all references
4394         to 'process_warning'.  Shorten long lines.
4395
4396 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4397
4398         * cli/cli-script.c (copy_command_lines): New function.
4399         * defs.h (copy_command_lines): Export.
4400         * testsuite/gdb.base/commands.exp: New tests for commands
4401         attached to a temporary breakpoint, and for commands that
4402         delete the breakpoint they are attached to.
4403         
4404 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4405
4406         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4407         pointer to the breakpoint commands struct, make a new copy
4408         of the struct and point to that.
4409         (bpstat_clear): Free the commands struct.
4410         (bpstat_clear_actions): Free the commands struct.
4411         (bpstat_do_actions): Free the command actions.  Also execute
4412         the local cleanups, instead of deleting them.
4413         (delete_breakpoint): Leave the commands field of the bpstat
4414         chain alone -- it will be freed later.
4415
4416 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4417
4418         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4419         deleted in 2002-08-20 commit.  This function is still used by
4420         ppc-linux-nat.c.
4421
4422 2002-08-26  Keith Seitz  <keiths@redhat.com>
4423
4424         * gdb-events.sh: Add selected-frame-level-changed event.
4425         * gdb-events.c: Regenerated.
4426         * gdb-events.h: Regenerated.
4427         
4428 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4429
4430         Fix PR gdb/393:
4431         * inflow.c (terminal_save_ours): New function to save terminal
4432         settings.
4433         * inferior.h (terminal_save_ours): Declare.
4434         * target.c (debug_to_terminal_save_ours): New function.
4435         (cleanup_target): Defaults to_terminal_save_ours.
4436         (update_current_target): Inherit to_terminal_save_ours.
4437         (setup_target_debug): Set to_terminal_save_ours.
4438         * target.h (target_terminal_save_ours): New to save terminal settings.
4439         (target_ops): New member to_terminal_save_ours.
4440         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4441         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4442         * inftarg.c (init_child_ops): Likewise.
4443         * m3-nat.c (init_m3_ops): Likewise.
4444         * procfs.c (init_procfs_ops): Likewise.
4445         * wince.c (init_child_ops): Likewise.
4446         * win32-nat.c (init_child_ops): Likewise.
4447         * sol-thread.c (init_sol_thread_ops): Likewise.
4448
4449 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4450
4451         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4452         use regcache_* functions.
4453         (i386_gdbarch_init): Set store_return_value instead of
4454         deprecated_store_return_value.
4455
4456         * regcache.c (regcache_raw_write_signed,
4457         regcache_raw_write_unsigned): New functions.
4458         * regcache.h (regcache_raw_write_signed,
4459         regcache_raw_write_unsigned): New prototypes.
4460
4461 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4462
4463         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4464         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4465         source file dependencies.  Cleanup corresponding generator rules.
4466
4467 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4468
4469         * regcache.h (register_offset_hack): Declare.
4470         (regcache_cooked_read_using_offset_hack): Declare.
4471         (regcache_cooked_write_using_offset_hack): Declare.
4472
4473         * regcache.c (register_offset_hack): New function.
4474         (regcache_cooked_read_using_offset_hack): New function.
4475         (regcache_cooked_write_using_offset_hack): New function.
4476         (regcache_dump): Check that the registers, according to their
4477         offset, are packed hard against each other.
4478         (cooked_xfer_using_offset_hack): New function.
4479
4480 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4481
4482         * regcache.c (struct regcache_descr): Add field register_type.
4483         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4484         in as a parameter
4485         (init_regcache_descr): Initialize register_type.  Pass the descr
4486         to init_legacy_regcache_descr.  Use register_type instead of
4487         REGISTER_VIRTUAL_TYPE.
4488         (register_type): New function.
4489         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4490         * regcache.h (register_type): Declare.
4491
4492 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4493
4494         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4495         instead of deprecated_store_return_value.  Fix fallout from
4496         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4497
4498 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4499
4500         * regcache.c (max_register_size): New function.
4501         (init_legacy_regcache_descr): Ensure that max_register_size is
4502         large enough for REGISTER_VIRTUAL_SIZE.
4503         * regcache.h (max_register_size): Declare.
4504
4505 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4506
4507         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4508         store_return_value.
4509         (e500_extract_return_value): Change type of valbuf pointer to
4510         void.
4511
4512 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4513
4514         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4515         workaround.
4516
4517         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4518         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4519         long long) to prevent compiler warning on 64-bit systems.
4520
4521 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4522
4523         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4524         (DEPRECATED_STORE_RETURN_VALUE): New method.
4525         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4526         * gdbarch.h, gdbarch.c: Re-generate.
4527
4528         * values.c (set_return_value): Pass current_regcache to
4529         STORE_RETURN_VALUE.
4530         * arch-utils.h (legacy_store_return_value): Declare.
4531         * arch-utils.c (legacy_store_return_value): New function.
4532         (legacy_extract_return_value): Update parameters.
4533
4534         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4535         STORE_RETURN_VALUE.
4536         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4537         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4538         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4539         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4540         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4541         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4542         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4543         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4544         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4545         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4546
4547         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4548         * i386-tdep.c (i386_extract_return_value): Update.
4549         * arch-utils.c (legacy_extract_return_value): Update.
4550         * frv-tdep.c (frv_gdbarch_init): Update.
4551         * cris-tdep.c (cris_gdbarch_init): Update.
4552         * d10v-tdep.c (d10v_gdbarch_init): Update.
4553         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4554         * m68k-tdep.c (m68k_gdbarch_init): Update.
4555         * mcore-tdep.c (mcore_gdbarch_init): Update.
4556         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4557         * s390-tdep.c (s390_gdbarch_init): Update.
4558         * sparc-tdep.c (sparc_gdbarch_init): Update.
4559         * sh-tdep.c (sh_gdbarch_init): Update.
4560         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4561         * v850-tdep.c (v850_gdbarch_init): Update.
4562         * avr-tdep.c (avr_gdbarch_init): Update.
4563         * ia64-tdep.c (ia64_gdbarch_init): Update.
4564         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4565         * vax-tdep.c (vax_gdbarch_init): Update.
4566         * alpha-tdep.c (alpha_gdbarch_init): Update.
4567         * arm-tdep.c (arm_gdbarch_init): Update.
4568         * mips-tdep.c (mips_gdbarch_init): Update.
4569         * i386-tdep.c (i386_gdbarch_init): Update.
4570
4571 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4572
4573         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4574         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4575
4576 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4577
4578         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4579         problems.
4580
4581 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4582
4583         * infrun.c (handle_inferior_event): Move a comment outside of a
4584         function call, in order to avoid indent reformatting this part
4585         of the code in an unreadable way.
4586
4587 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4588
4589         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4590         when breakpoints fail. Move general breakpoint error messages to
4591         insert_breakpoints.  
4592         * breakpoint.c (insert_breakpoints): Change warnings when
4593         breakpoints are nto inserted to specify the type. Remove call to
4594         memory_error when hardware breakpoints can't be inserted. Remove
4595         multiple calls to warning so all messages are sent to the user at
4596         once.
4597         (delete_breakpoints): Make insert error messsages more explicit.
4598
4599 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4600
4601         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4602         gdbserver/ChangeLog.
4603
4604 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4605
4606         * i386-tdep.c: Include "objfiles.h".
4607         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4608         skip_trampoline_code.
4609         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4610         (CPLUS_MARKER): Define to '.'.
4611
4612         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4613         member.
4614         (linux_corefile_thread_callback): Increase args->num_notes.
4615         (linux_make_note_section): Initialize thread_args.num_notes, and
4616         use it to determine whether notes for any threads were created.
4617
4618 2002-08-23  Donn Terry  <donnte@microsoft.com>
4619
4620         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4621         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4622         and PCUNKILL.
4623         (write_with_trace): Conditionalize out the switch branch handling
4624         PCSHOLD if the corresponding macro is not defined. Likewise for
4625         PRSABORT and PRSTOP.
4626         This change will be needed by the Interix port.
4627
4628 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4629
4630         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4631         write_register wherever possible instead of manipulating the
4632         register bytes directly.
4633         Assign VALUE_CONTENTS to a variable and use that.
4634         The GPR numbers are now dependent on the architecture.
4635         
4636 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4637
4638         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4639         ev_offset fields.
4640         (skip_prologue): Add support for BookE/e500 instructions.
4641         (e500_extract_return_value): New function.
4642         (frame_get_saved_regs): Add support for saving ev registers and
4643         pseudo gpr's.
4644         (e500_store_return_value): New function.
4645         (rs6000_gdbarch_init): Move up default intializations of
4646         deprecated_extract_return_value and store_return_value.  Overwrite
4647         init of store_return_value with e500 specific version.
4648         Set extract_return_value for e500.
4649         
4650 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4651
4652         * blockframe.c (generic_call_dummy_register_unwind): Use
4653         regcache_cooked_read to catch cases in which the variable is
4654         stored in a pseudo register.
4655
4656 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4657
4658         * NEWS: Mention that the i960 has been made obsolete.
4659         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4660         i960-tdep.c
4661         (remote-nrom.o): Obsolete target.
4662         (remote-nindy.o, i960-tdep.o): Ditto.
4663         * remote-nrom.c: Make file obsolete.
4664         * remote-nindy.c, remote-vx960.c: Ditto.
4665         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4666         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4667         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4668         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4669         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4670         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4671         i960-*-vxworks* obsolete.
4672         * MAINTAINERS: Note that the i960 is obsolete.
4673
4674 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4675
4676         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4677         detach to allow reinitialization.
4678
4679 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4680
4681         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4682         attempt).
4683
4684 2002-08-22  Jim Blandy  <jimb@redhat.com>
4685
4686         * coffread.c (coff_symfile_read): Don't try to read the line
4687         number table from disk if the image file doesn't have a symbol
4688         table; we'll never actually look at the info anyway, and Windows
4689         ships DLL's with bogus file offsets for the line number data.
4690
4691 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4692
4693         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4694         an e500 executable.
4695
4696 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4697
4698         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4699         (MSYMBOL_SIZE): Replace macro with function.
4700         (DEFAULT_MIPS_TYPE): Delete unused macro.
4701         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4702         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4703
4704 2002-08-21  Jim Blandy  <jimb@redhat.com>
4705
4706         * valops.c (value_cast): Simplify and correct logic for doing a
4707         static cast from a pointer to a base class to a pointer to a
4708         derived class.
4709
4710 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4711
4712         * infcmd.c (default_print_registers_info): Replace
4713         do_registers_info.
4714         (registers_info): Use gdbarch_print_registers_info instead of
4715         DO_REGISTERS_INFO.
4716         * inferior.h (default_print_registers_info): Replace
4717         do_registers_info.
4718         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4719         (DO_REGISTERS_INFO): Change to a predicate function.
4720         * gdbarch.h, gdbarch.c: Regenerate.
4721         
4722 2002-08-21  Keith Seitz  <keiths@redhat.com>
4723
4724         * gdb-events.sh: Add target-changed event.
4725         * gdb-events.c: Regenerated.
4726         * gdb-events.c: Regenerated.
4727         * valops.c (value_assign): Add target-changed event notification
4728         to inlval_register, lval_memory, and lval_reg_frame_relative.
4729
4730 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4731
4732         * NEWS: Add an entry regarding the improvement of the next/step
4733         operation on Alpha Tru64 multi-processor machines.
4734
4735 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4736
4737         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4738         directores.
4739         * Makefile.in: Update all _h macro definitions.
4740         * Makefile.in (install-gdbtk): Move to install section.
4741         (rdi-share/libangsd.a): Move to end of file.
4742
4743 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4744
4745         * frame.c (frame_register_unwind): When a register, set addrp to
4746         the register's byte.
4747
4748 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4749
4750         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4751         used locally, so move them from the target machine header to here.
4752         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4753         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4754         Make static.
4755         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4756
4757 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4758
4759         * NEWS: Mention that the Apollo line was made obsolete.
4760         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4761         m68*-hp-hpux* obsolete.
4762         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4763         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4764         * buildsym.c (make_blockvector): Make static.
4765         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4766         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4767         (ALLDEPFILES): Remove dstread.c.
4768         (dstread.o): Obsolete make rule.
4769         * dstread.c: Makefile obsolete.
4770         * dst.h: Ditto.
4771         * config/m68k/hp300hpux.mt: Ditto.
4772         * config/m68k/hp300hpux.mh: Ditto.
4773         * config/m68k/hp300bsd.mt: Ditto.
4774         * config/m68k/hp300bsd.mh: Ditto.
4775         * config/m68k/apollo68b.mt: Ditto.
4776         * config/m68k/apollo68v.mh: Ditto.
4777         * config/m68k/apollo68b.mh: Ditto.
4778
4779 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4780
4781         * mips-tdep.c (mips_in_return_stub): Make static.
4782         (mips_gdbarch_init): Set in_solib_return_trampoline.
4783         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4784
4785 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4786
4787         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4788         * gdbarch.c, gdbarch.h: Regenerate.
4789         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4790         Add.
4791         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4792
4793 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4794
4795         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4796         (mips_gdbarch_init): Set skip_trampoline_code, 
4797         in_solib_call_trampoline.
4798         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4799         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4800
4801 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4802
4803         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4804
4805         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4806         vector type for ev registers.
4807         (e500_pseudo_register_read): New function.
4808         (e500_pseudo_register_write): New function.
4809         (e500_dwarf2_reg_to_regnum): New function.
4810         (PPC_UISA_NOFP_SPRS): New macro.
4811         (PPC_EV_REGS): New macro.
4812         (PPC_GPRS_PSEUDO_REGS): New macro.
4813         (registers_e500): New register set for e500.
4814         (variants): Add e500 variant.
4815         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4816         before setting architectural dependent variations.  Initialize ev
4817         registers numbers.  Add case for e500 architecture.  Set the
4818         number of pseudo registers.
4819
4820 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4821
4822         * rs6000-tdep.c: Clean up comments.
4823
4824 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4825
4826         * h8300-tdep.c: Re-indent file.
4827
4828 2002-08-20  Jim Blandy  <jimb@redhat.com>
4829
4830         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4831         default for this.
4832
4833 2002-08-20  Keith Seitz  <keiths@redhat.com>
4834
4835         * breakpoints.c (watch_command_1): Use internal breakpoint
4836         when setting a watchpoint_scope breakpoint.
4837
4838 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4839
4840         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4841         (build_builtin_type_vec64i): Ditto.
4842         (build_builtin_type_vec128): Ditto.
4843         (build_builtin_type_vec128i): Ditto.
4844
4845 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4846
4847         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4848         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4849         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4850         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4851         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4852         CALL_DUMMY_ADDRESS): Delete.
4853         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4854         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4855         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
4856         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
4857         push_return_address.
4858         (mips_register_raw_size, mips_eabi_use_struct_convention, 
4859         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4860         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4861         mips_init_extra_frame_info, mips_eabi_push_arguments, 
4862         mips_n32n64_push_arguments, mips_push_return_address,
4863         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4864         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4865
4866 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4867
4868         * mips-tdep.c (mips_frame_num_args): New function.
4869         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4870         frame_saved_pc, frame_args_address, frame_locals_address, 
4871         frame_num_args, and frame_args_skip.
4872         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4873         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
4874         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4875         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4876
4877 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4878
4879         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4880         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4881         * mips-tdep.c (mips_store_struct_return): New function.
4882         (mips_extract_struct_value_address): New function.
4883         (mips_gdbarch_init): Set store_struct_return and
4884         extract_struct_value_address.
4885
4886 2002-08-20  David Carlton  <carlton@math.stanford.edu>
4887
4888         * dwarf2read.c (dwarf2_build_psymtabs): Check that
4889         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4890         (read_file_scope): Check that line_header is nonzero before
4891         decoding macro information.
4892
4893 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
4894
4895         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4896         flag the general-purpose registers as floating-point on targets
4897         that don't support the floating-point registers.
4898
4899 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4900
4901         * rs6000-tdep.c (altivec_register_p): Delete.
4902         (rs6000_do_altivec_registers): Delete.
4903         (rs6000_altivec_registers_info): Delete.
4904         (rs6000_do_registers_info): Delete.
4905         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4906         (rs6000_gdbarch_init): Remove setting of do_registers_info.
4907
4908 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4909
4910         * infcmd.c (do_registers_info): Print vector registers in hex
4911         format only.
4912         (print_vector_info): Check that printing registers
4913         makes sense.
4914         (print_float_info): Ditto.
4915
4916 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4917
4918         * mips-tdep.c (mips_gdbarch_init): Update.
4919         (mips_o32_extract_return_value): Rewrite.
4920         (mips_o32_store_return_value): Rewrite.
4921         (mips_o32_xfer_return_value): New function.
4922         (mips_xfer_register): Tweak debug print message.  Allow for
4923         buf_offset when dumping the value transfered.
4924
4925 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4926
4927         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4928         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4929         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4930         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4931         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4932
4933 2002-08-14  Michael Snyder  <msnyder@redhat.com>
4934
4935         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4936
4937 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4938
4939         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4940         register.
4941         (P): New macro to define a register as a pseudo register.
4942         (R, R4, R8, R16, FR32, R64, R0): Updated.
4943         (struct variant): Add new fields for number of pseudo registers
4944         and number of total registers.
4945         (tot_num_registers): New macro replacing....
4946         (num_registers): ...deleted macro.
4947         (num_registers): New function.
4948         (num_pseudo_registers): New function.
4949         (variants): Update all variants to intialize new fields correctly.
4950         Postpone initialization of number of pseudo regs and real regs.
4951         (init_variants): New function.
4952         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
4953         registers offsets.
4954
4955 2002-08-19  David Carlton  <carlton@math.stanford.edu>
4956
4957         * valops.c (search_struct_field): Change error message to treat
4958         return value of 0 from value_static_field as meaning that field is
4959         optimized out.
4960         (value_struct_elt_for_reference): Ditto.
4961         * values.c (value_static_field): Treat an unresolved location the
4962         same as a nonexistent symbol.  Fix PR gdb/635.
4963         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4964         enclosed.  Fix PR gdb/574.
4965         * MAINTAINERS: Add self to Write After Approval list.
4966
4967 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4968
4969         * mips-tdep.c (mips_xfer_register): New function.
4970         (mips_n32n64_extract_return_value): Rewrite.
4971         (mips_gdbarch_init): For N32 and N64, set extract_return_value
4972         instead of deprecated_extract_return_value.
4973
4974 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4975
4976         * rs6000-tdep.c (TDEP): Delete macro.
4977         (branch_dest): Replace use of TDEP macro with its body.
4978         (rs6000_pop_frame): Ditto.
4979         (rs6000_push_arguments): Ditto.
4980         (rs6000_skip_trampoline_code): Ditto.
4981         (rs6000_frame_saved_pc): Ditto.
4982         (rs6000_frame_chain): Ditto.
4983         (rs6000_register_name): Ditto.
4984         (rs6000_register_byte): Ditto.
4985         (rs6000_register_raw_size): Ditto.
4986         (rs6000_register_virtual_type): Ditto.
4987         (rs6000_register_convertible): Ditto.
4988         (rs6000_convert_from_func_ptr_addr): Ditto.
4989
4990 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
4991
4992         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4993         conditionally.
4994         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4995         MIPS_LINUX_JB_ELEMENT_SIZE.
4996         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4997         for MAX_REGISTER_RAW_SIZE arrays.
4998         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4999         MIPS_LINUX_JB_ELEMENT_SIZE.
5000
5001 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5002
5003         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5004
5005 2002-08-19  Aidan Skinner <aidan@velvet.net>
5006
5007         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5008         ada-valprint.c ada-tasks.c.
5009         (YYFILES): Add ada-exp.y.
5010         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5011         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5012         (ada-exp.tab.o): New target.
5013                 
5014 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5015
5016         * regcache.c (regcache_xfer_part): New function.
5017         (regcache_raw_read_part): New function.
5018         (regcache_raw_write_part): New function.
5019         (regcache_cooked_read_part): New function.
5020         (regcache_cooked_write_part): New function.
5021         * regcache.h (regcache_raw_read_part): Declare.
5022         (regcache_raw_write_part): Declare.
5023         (regcache_cooked_read_part): Declare.
5024         (regcache_cooked_write_part): Declare.
5025
5026 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5027
5028         * remote.c (remote_open_1): Add async_p.
5029         (remote_async_open_1): Delete.
5030         (open_remote_target): Delete.
5031         (remote_open, extended_remote_open): Update calls to remote_open_1.
5032         (remote_async_open, extended_remote_async_open): Call
5033         remote_open_1 instead of remote_async_open_1.
5034
5035 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5036
5037         * blockframe.c: Fix a few coding standard violations.
5038
5039 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5040
5041         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5042         here from ...
5043         * config/i386/tm-i386sco5.h: ... here.  File removed.
5044         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5045
5046         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5047         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5048         (TM_FILE): Set to tm-i386.h.
5049         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5050         * config/i386/tm-i386v.h: Remove file.
5051         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5052         instead of "i386/tm-i386v.h".
5053         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5054         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5055         "i386/tm-i386v.h".
5056         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5057         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5058         "i386/tm-i386.h".
5059
5060 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5061
5062         * config/i386/nm-i386v.h: Add protection against
5063         multiple-inclusion.
5064         (i386_register_u_addr): Remove prototype.
5065         (register_u_addr): New prototype.
5066         (REGISTER_U_ADDR): Redefine accordingly.
5067         * i386v-nat.c: Improve several comments.
5068         (i386_register_u_addr): Change signature and rename to
5069         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5070         ubase variable.
5071
5072 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5073
5074         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5075         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5076         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5077         deprecated_extract_return_value.
5078         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5079         rename mips_o32o64_push_arguments.
5080         (mips_gdbarch_init): Update.
5081         (mips_extract_return_value): Delete.
5082         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5083         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5084         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5085         (mips_n32n64_extract_return_value): Clone
5086         mips_extract_return_value.
5087         (mips_store_return_value): Delete.
5088         (mips_o32_store_return_value): Clone mips_store_return_value.
5089         (mips_o64_store_return_value): Clone mips_store_return_value.
5090         (mips_eabi_store_return_value): Clone mips_store_return_value.
5091         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5092
5093 2002-08-18  Aidan Skinner <aidan@velvet.net>
5094
5095         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5096         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5097                 
5098 2002-08-18  Aidan Skinner <aidan@velvet.net>
5099
5100         * ada-lang.c: Run through gdb_indent.sh.
5101         * ada-lang.h: Run through gdb_indent.sh.
5102         * ada-tasks.c: Run through gdb_indent.sh.
5103         * ada-typeprint.c: Run through gdb_indent.sh.
5104         * ada-valprint.c: Run through gdb_indent.sh.
5105
5106 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5107
5108         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5109         ABI.
5110
5111 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5112
5113         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5114
5115         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5116         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5117
5118         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5119         write_register_gen instead of write_register_bytes.
5120
5121         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5122         i[3456]-*-osf1mk* configurations have been made obsolete.
5123         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5124         i[3456]86-*-osf1mk* hosts obsolete.
5125         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5126         targets obsolete.
5127         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5128         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5129         config/i386/i386m3.mt, config/i386/nm-m3.h,
5130         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5131         config/i386/i386mk.mh, config/i386/i386mk.mt,
5132         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5133         obsolete.
5134         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5135         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5136         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5137
5138 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5139
5140         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5141         (hppa_value_returned_from_stack): Declare.
5142         (hppa_extract_return_value): Declare.
5143         * config/pa/hppa.mt: New file.
5144         * configure.tgt: Recognize hppa*-*-*.
5145         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5146
5147 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5148
5149         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5150         comment.
5151
5152 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5153
5154         * top.c (gdb_rl_operate_and_get_next): Make sure
5155         operate-and-get-next functions correctly even when the history
5156         list is completely filled.
5157
5158 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5159
5160         * MAINTAINERS (Target Instruction Set Architectures): Rename
5161         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5162         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5163         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5164         already listed under Host/Native.
5165
5166         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5167         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5168         mips*-*-*.
5169
5170 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5171
5172         * config/ia64/ia64.mt: New file.
5173         * config/alpha/alpha.mt: New file.
5174         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5175         ia64-linux-gnu.  Mention that ia64-elf is broken.
5176         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5177
5178 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5179
5180         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5181         generic_func_frame_valid instead of func_frame_valid.
5182
5183 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5184
5185         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5186         procfs appears to be broken when debugging on multi-processor
5187         machines. So enable software single stepping in order to avoid
5188         using the procfs interface to do next/step operations, using
5189         internal breakpoints instead.
5190
5191         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5192         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5193         make this pc address equal to the value it would have if the
5194         system stepping capability was used. Also set a new flag used
5195         to ensure that we don't readjust the PC one more time later.
5196
5197         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5198         address by DECR_PC_AFTER_BREAK when software single step is
5199         in use for this architecture, as this has already been taken
5200         care of in handle_inferior_event().
5201
5202 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5203
5204         * infrun.c (handle_inferior_event): Minor reformatting, to make
5205         a rather long condition expression easier to read.
5206
5207 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5208
5209         * Makefile.in (gdbtk.o): Move to end of file.
5210         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5211         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5212         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5213         (gdbtk-wrapper.o, gdbres.o): Ditto.
5214
5215 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5216
5217         * Makefile.in (copying.o): Separate out compile rule.
5218         (hpux-thread.o, procfs.o, signals.o): Ditto.
5219         (v850ice.o, z8k-tdep.o): Ditto.
5220         (tui-file.o): Move to TUI section.
5221         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5222         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5223
5224 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5225
5226         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5227         skip_trampoline_code, for better namespace-proofing.   
5228
5229         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5230
5231 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5232
5233         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5234
5235 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5236
5237         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5238         signal, check whether we hit a breakpoint before checking for a
5239         single step breakpoint. Otherwise, GDB fails to notice that a
5240         breakpoint has been hit when stepping onto a breakpoint.
5241
5242 2002-08-16  Keith Seitz  <keiths@redhat.com>
5243
5244         * gdb-events.sh (clear_gdb_event_hooks): New function.
5245         * gdb-events.c: Regenerate.
5246         * gdb-events.h: Regenerate.
5247
5248 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5249
5250         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5251         not_a_sw_breakpoint.
5252         * breakpoint.h (bpstat_stop_status): Add parameter names.
5253
5254 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5255
5256         * remote.c (remote_insert_hw_breakpoint)
5257         (remote_remove_hw_breakpoint): Fix calculation of length field
5258         for Z-packet.
5259
5260 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5261
5262         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5263         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5264         (supply_fpregset): Ditto.
5265         
5266         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5267         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5268         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5269         (TARGET_READ_SP): Delete.
5270         (DO_REGISTERS_INFO): Delete.
5271         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5272         Delete.
5273         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5274         from macros to functions.
5275
5276         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5277         (mips_register_convertible, mips_register_convert_to_virtual,
5278         mips_register_convert_to_raw): Make static.
5279         (mips_read_sp): New function.
5280         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5281         (mips_do_registers_info): Make static.
5282         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5283         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5284         (mips_register_convert_from_type, mips_register_convert_to_type):
5285         New functions.
5286         (mips_gdbarch_init): Set up function_start_offset, 
5287         register_virtual_size, pc_in_sigtramp.
5288
5289 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5290
5291         * infcmd.c (vector_info): New function.
5292         (_initialize_infcmd): Add command "info vector".
5293         (print_vector_info): New function.
5294
5295         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5296         * gdbarch.h, gdbarch.c: Regenerate.
5297
5298 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5299
5300         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5301         ``print_all''.  Only print vector registers when ``print_all''.
5302
5303 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5304
5305         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5306         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5307
5308         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5309         Add `args' parameter.
5310         * gdbarch.h, gdbarch.c: Regenerate.
5311         
5312         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5313         
5314         * infcmd.c (float_info): Call print_float_info.
5315         (print_float_info): New function.  By default, print the
5316         floating-point registers.
5317
5318         * arch-utils.h (default_print_float_info): Delete declaration.
5319         * arch-utils.c (default_print_float_info): Delete function.
5320         
5321 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5322
5323         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5324         out define.
5325
5326         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5327         FRAME.
5328
5329         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5330         * configure.host: Make i[3456]86-*-aix host obsolete.
5331         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5332         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5333         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5334         config/i386/xm-i386aix.h: Make files obsolete.
5335         * i386aix-nat.c: Make file obsolete.
5336         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5337         (i386aix-nat.o): Make target obsolete.
5338
5339         * config/i386/nm-gnu.h: Removed.
5340         * config/i386/nm-i386gnu.h: New file.
5341         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5342         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5343         Moved here from ...
5344         * config/i386/tm-i386gnu.h: ... here.  Removed.
5345         * config/i386/xm-i386gnu.h: Removed.
5346         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5347         (NAT_FILE): Set to nm-i386gnu.h.
5348         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5349         * i386-tdep.c: New file.
5350         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5351         (i386gnu-tdep.o): Specify dependencies.
5352
5353 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5354
5355         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5356         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5357         Adjust a few comments to reflect reality a bit closer.
5358         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5359         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5360         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5361         target_insert_watchpoint, target_remove_watchpoint):
5362         Move defines to ...
5363         * config/i386/nm-i386sco5.h: ... here.
5364         (kernel_u_size): Add prototype.  Improve a few comments and add
5365         protection against multiple inclusion.
5366         
5367         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5368         out define.
5369
5370         * uw-thread.c (SP_ARG0): Define if not already defined.
5371         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5372
5373         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5374
5375         * config/i386/tm-i386.h: Don't include "regcache.h".
5376
5377         * i387-tdep.h (i387_print_float_info): New prototype.
5378         * i387-tdep.c (print_i387_value, print_i387_ext,
5379         print_i387_status_word, print_i387_control_word): Add `struct
5380         ui_file *' argument and use it for output.
5381         (i387_print_float_info): Renamed from i387_float_info.  Add
5382         `struct gdbarch *' and `struct ui_file *' arguments and use the
5383         latter for output.
5384         * i386-tdep.c: Include "i387-tdep.h".
5385         (i386_gdbarch_init): Set print_float_info.
5386         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5387         (FLOAT_INFO): Remove define.
5388
5389 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5390
5391         * mips-tdep.c (mips_push_arguments): Rename to
5392         mips_eabi_push_arguments, and tune for EABI.
5393         (MIPS_REGS_HAVE_HOME_P): Delete.
5394         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5395         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5396         Delete references to mips_regs_have_home_p.
5397
5398 2002-08-14  Keith Seitz  <keiths@redhat.com>
5399
5400         * Makefile.in (install-gdbtk): Create insight plugin directory.
5401         Install plugins.tcl file.
5402
5403 2002-08-14  Keith Seitz  <keiths@redhat.com>
5404
5405         * configure.in: Move SUBDIRS to near top of the file so that
5406         --enable options may add things to it.
5407         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5408         * configure: Regenerate.
5409
5410 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5411
5412         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5413         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5414         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5415
5416 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5417
5418         * vax-tdep.c (vax_get_saved_register): Delete function.
5419         (vax_gdbarch_init): Update.
5420         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5421         (ns32k_gdbarch_init): Update.
5422         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5423         (alpha_gdbarch_init): Update.
5424
5425 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5426
5427         * regcache.c (init_regcache_descr): Overallocate the
5428         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5429         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5430         nr_raw_registers.
5431         (set_register_cached): Add range checking assertions.  Use
5432         current_regcache.
5433
5434 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5435
5436         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5437         numbers for MMX registers.
5438
5439 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5440
5441         * i386-tdep.c (i386_gdbarch_init): Use
5442         generic_unwind_get_saved_register.
5443
5444 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5445
5446         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5447         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5448         target vector.
5449         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5450         Delete.  Add comment regarding this now-deleted target method.
5451
5452 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5453
5454         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5455         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5456         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5457         real PC and the page number (if it's within the memory bank window).
5458         (m68hc11_pseudo_register_write): Likewise when saving.
5459         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5460         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5461         (m68hc11_register_raw_size): And use 32-bit for it.
5462         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5463         16K memory bank is used by the prog; also use the virtual pc.
5464
5465 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5466
5467         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5468         (m68hc11_gdbarch_init): Install it in gdbarch.
5469         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5470         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5471         (MSYMBOL_SIZE): New for documentation.
5472         (insn_return_kind): Enum to specify how a function returns.
5473         (frame_extra_info): Cleanup and record the return mode.
5474         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5475         register in address computation.
5476         (m68hc11_get_return_insn): New to obtain the return instruction used
5477         by the function.
5478         (m68hc11_frame_init_saved_regs): Take into account the return
5479         instruction used by the function for far and interrupt functions.
5480         (m68hc11_init_extra_frame_info): Take into account page register.
5481         (m68hc11_frame_args_address): Adjust according to the return mode.
5482         (show_regs): Print page register only when it's used.
5483
5484 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5485
5486         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5487         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5488         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5489         registers.
5490         (m68hc11_register_raw_size): Likewise.
5491
5492 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5493
5494         * i386-tdep.c (i386_register_name): Handle mmx registers.
5495         (mmx_regnum_p): New function.
5496         (i386_mmx_names): New array.
5497         (mmx_num_regs): New variable.
5498         (i386_pseudo_register_read): New function.
5499         (i386_pseudo_register_write): New function.
5500         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5501
5502         * regcache.c (regcache_raw_read_unsigned): New function.
5503         (regcache_raw_read_signed): New function.
5504         * regcache.h (regcache_raw_read_unsigned): Declare.
5505         (regcache_raw_read_signed): Declare.
5506
5507 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5508
5509         * regcache.c (regcache_raw_read_as_address): Delete function.
5510         (regcache_cooked_read_signed): New function.
5511         (regcache_cooked_read_unsigned): New function.
5512         * regcache.h (regcache_cooked_read_signed): Declare.
5513         (regcache_cooked_read_unsigned): Declare.
5514         (regcache_raw_read_as_address): Delete declaration.
5515
5516         * blockframe.c (generic_read_register_dummy): Use
5517         regcache_cooked_read_unsigned.
5518         * i386-tdep.c (i386_extract_struct_value_address): Use
5519         regcache_cooked_read_unsigned.
5520
5521 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5522
5523         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5524         double sizes according to ELF ABI flags.
5525         (gdbarch_tdep): Record elf_flags.
5526
5527 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5528
5529         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5530         (m6812_prolog): They can appear in 68HC12 function prologue.
5531         (m68hc11_frame_chain): Cleanup.
5532
5533 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5534
5535         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5536         declarations.
5537         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5538         (i386_linux_register_raw_size): Delete function.
5539         (i386_linux_init_abi): Update.
5540         * i386-tdep.c (i386_register_raw_size): Delete function.
5541         (i386_register_byte): Delete function.
5542         (i386_gdbarch_init): Update.
5543         (i386_register_size): Delete array.
5544         (i386_register_offset): Delete array.
5545
5546         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5547         (REGISTER_RAW_SIZE): Delete macro.
5548         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5549         (REGISTER_BYTE): Delete macro.
5550
5551 2002-08-11  Aidan Skinner <aidan@velvet.net>
5552
5553         * ada-lang.c (ada_lookup_partial_symbol)
5554         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5555         prototype names so that grep ^func works properly.
5556
5557         * ada-lang.c (ada_array_element_type)
5558         (ada_lookup_partial_symbol): Fix typos in parameter list.
5559
5560         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5561         Fix prototype names so that grep ^func works properly.
5562         
5563 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5564             Elena Zannoni  <ezannoni@redhat.com>
5565             Martin M. Hunt  <hunt@redhat.com>
5566
5567         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5568         (build_builtin_type_vec128i): Set the vector bit.
5569         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5570         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5571         (build_builtin_type_vec64): New function.
5572         (build_builtin_type_vec64i): New function.
5573         (build_gdbtypes): Initialize builtin_type_vec64 and
5574         builtin_type_vec64i.
5575
5576 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5577
5578         * regcache.c (regcache_dump): Compare the register offset
5579         with REGISTER_BYTE.
5580         * arch-utils.c (generic_register_byte): New function.
5581         * arch-utils.h (generic_register_byte): Declare.
5582         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5583         * gdbarch.h, gdbarch.c: Regenerate.
5584
5585 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5586
5587         * regcache.c: Include "gdbcmd.h"
5588         (_initialize_regcache): Add commands "maintenance print
5589         registers", "maintenance print raw-registers" and "maintenance
5590         print cooked-registers".
5591         (enum regcache_dump_what): Define.
5592         (dump_endian_bytes): New function.
5593         (regcache_dump): New function.
5594         (regcache_print): New function.
5595         (maintenance_print_registers): New function.
5596         (maintenance_print_raw_registers): New function.
5597         (maintenance_print_cooked_registers): New function.
5598         * Makefile.in (regcache.o): Update dependencies.
5599
5600 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5601
5602         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5603         (mips_push_arguments): Correct some comments.  Use paddr_nz
5604         for printing addresses in debug output.  Replace static
5605         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5606         (mips_n32n64_push_arguments): New function, cloned from
5607         mips_push_arguments and tuned for the n32/n64 ABI.
5608         (mips_push_register): Buffer needs dynamic allocation.
5609         (mips_print_register): Ditto.
5610         (do_gp_register_row): Ditto.
5611         (mips_store_return_value): Ditto.
5612         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5613
5614 2002-08-09  Don Howard  <dhoward@redhat.com>
5615
5616         * memattr.c (mem_info_command): Print special case of upper bound
5617         as max CORE_ADDR + 1.
5618
5619 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5620
5621         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5622         returns structs by ref if they're too big to fit in two registers.
5623
5624 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5625
5626         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5627         saved regs value.
5628         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5629         mips_find_saved_regs().
5630         (mips_pop_frame): Likewise.
5631
5632 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5633
5634         * blockframe.c (frame_saved_regs_register_unwind): Revise
5635         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5636         frames are in use.
5637
5638 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5639         
5640         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5641         T-packets; the 'a' is not taken as a register number.
5642         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5643         (remote_stopped_data_address): New functions; add to target
5644         vector.
5645         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5646         prototypes to match other implementations of this
5647         function. replace integer argument with pointer -- the length
5648         field in the Z-packet is the length of what is pointed to or 1 if
5649         pointer is null. Add to target vector.
5650         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5651         target vector.
5652
5653         From Mark Salter:
5654         * remote.c (remote_wait): Add support to extract optional
5655         watchpoint information from T-packet. Ignore unrecognized
5656         optional info in T-packet.
5657         (remote_async_wait): Ditto.
5658
5659 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5660
5661         * cli/cli-dump.c: Change fopen modes to use binary open modes
5662         as defined in include/fopen-bin.h throughout.
5663
5664 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5665
5666         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5667
5668 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5669
5670         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5671         assertion failure by returning early after a warning.
5672
5673 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5674
5675         * mips-tdep.c (mips_find_saved_regs): Make static.
5676         (mips_frame_init_saved_regs): New function.
5677         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5678         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5679         (mips_find_saved_regs): Delete declaration.
5680
5681 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5682
5683         * remote.c (remote_wait, remote_async_wait): Change
5684         thread_num from int to ULONGEST.
5685         (unpack_varlen_hex): Change result parameter from
5686         int * to ULONGEST *.
5687
5688 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5689
5690         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5691         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5692         powerpc*-*-*.
5693         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5694
5695 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5696
5697         * gcore.c (override_derive_stack_segment): Delete variable.
5698         (preempt_derive_stack_segment): Delete function.
5699         (derive_stack_segment): Delete function.
5700         (default_derive_stack_segment): Renamed to derive_stack_segment.
5701         (override_derive_heap_segment): Delete variable.
5702         (preempt_derive_heap_segment): Delete function.
5703         (derive_heap_segment): Delete function.
5704         (default_derive_heap_segment): Rename to derive_heap_segment.
5705
5706 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5707
5708         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5709         * mips-tdep.c (mips_EABI_use_struct_convention, 
5710         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5711         New functions.  (mips_use_struct_convention): Delete.
5712         (mips_gdbarch_init): set use_gdbarch_convention.
5713
5714 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5715
5716         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5717         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5718         mips_o32_reg_struct_has_addr): New functions.
5719         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5720
5721 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5722
5723         * regcache.c (pseudo_register): Delete function.
5724         (fetch_register): Delete function.
5725         (store_register): Delete function.
5726         (regcache_raw_read, legacy_read_register_gen): Use
5727         target_fetch_registers instead of fetch_register.
5728         (legacy_write_register_gen, regcache_raw_write): Use
5729         target_store_register instead of store_register.
5730         (write_register_bytes): Ditto.
5731
5732         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5733         (STORE_PSEUDO_REGISTER): Delete.
5734         * gdbarch.h, gdbarch.c: Regenerate.
5735
5736 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5737
5738         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5739         write dump file binary.
5740
5741 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5742
5743         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5744         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5745         (mips_gdbarch_init): Set N32 target to be mips64.
5746
5747 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5748
5749         * frame.c (find_saved_register): Break out of loop once saved
5750         register address is found.  Don't mention sparc in loop comment
5751         anymore.
5752
5753 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5754
5755         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5756         mips_default_saved_regsize to 8.
5757
5758 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5759
5760         * gcore.c: Do not include <sys/procfs.h>.
5761         * Makefile.in (gcore.o): Update dependencies.
5762
5763 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5764
5765         * configure.tgt: Make arc-*-* obsolete.
5766         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5767         * MAINTAINERS: Make arc-elf obsolete.
5768         * arc-tdep.c: Make file obsolete.
5769         * config/arc/arc.mt: Ditto.
5770         * config/arc/tm-arc.h: Ditto.
5771
5772 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5773
5774         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5775
5776 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5777
5778         * mcore-tdep.c (mcore_gdbarch_init): Use
5779         generic_unwind_get_saved_register instead of
5780         generic_get_saved_register.
5781         * v850-tdep.c (v850_gdbarch_init): Ditto.
5782         * frv-tdep.c (frv_gdbarch_init): Ditto.
5783         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5784         * s390-tdep.c (s390_gdbarch_init): Ditto.
5785         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5786         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5787         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5788
5789 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5790
5791         * objfiles.h: Add missing #include "symfile.h"
5792
5793         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5794
5795 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5796
5797         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5798         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5799         of FIELD_BITSIZE.
5800
5801 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5802
5803         * NEWS: Cleanup and nitpick.
5804
5805 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5806
5807         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5808
5809 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5810
5811         * Makefile.in (gdbtk-bp.o): Update dependencies.
5812         (gdbtk-register.o): Ditto.
5813         (gdbtk-varobj.o): Ditto.
5814
5815 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5816
5817         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5818         m68hc11_fetch_pseudo_register.
5819         (m68hc11_pseudo_register_write): Replace
5820         m68hc11_store_pseudo_register.
5821         (m68hc11_gdbarch_init): Update.
5822
5823 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5824
5825         * gdbarch.sh: Include "gdb_string.h".
5826         * gdbarch.c: Regenerate.
5827
5828         * regcache.c: Include "gdb_string.h".
5829         * ax-general.c: Ditto.
5830         * varobj.c: Ditto.
5831         * std-regs.c: Ditto.
5832         * fbsd-proc.c: Ditto.
5833         * thread.c: Ditto.
5834
5835         * Makefile.in (regcache.o): Update dependencies.
5836         (thread.o, gdbarch.o): Ditto.
5837         (ax-general.o, gdbarch.o): Ditto.
5838         (varobj.o, std-regs.o): Ditto.
5839         (fbsd-proc.o): Specify dependencies.
5840
5841 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5842
5843         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5844         regnum.
5845         (regcache_cooked_write): Ditto.
5846
5847 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
5848
5849         * regcache.c (regcache_cooked_read): New function.
5850         (regcache_cooked_write): New function.
5851         (read_register_gen): Rewrite using regcache_cooked_read.
5852         (write_register_gen): Rewrite using regcache_cooked_write.
5853
5854         * regcache.h (regcache_cooked_read, regcache_cooked_write):
5855         Declare.
5856
5857 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5858
5859         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5860         Replace the architecture methods register_read and register_write.
5861         * gdbarch.h, gdbarch.c: Regenerate.
5862         * regcache.c (init_regcache_descr): Update.
5863         (read_register_gen): Update.
5864         (write_register_gen): Update.
5865         (supply_register): Update comment.
5866
5867         * sh-tdep.c (sh_gdbarch_init): Update.
5868         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5869         `regcache' and `gdbarch' parameters.  Make `buffer' a void
5870         pointer.  Update code.
5871         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5872         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
5873         void pointer.  Update code.
5874         (sh64_register_write): Delete.
5875         (sh4_register_read): Delete.
5876         (sh64_register_read): Delete.
5877         (sh4_register_write): Delete.
5878         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5879         void pointer, `to' parameter a void pointer.
5880         (sh_sh64_register_convert_to_raw): Ditto.
5881
5882 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5883
5884         * mips-tdep.c (mips_register_virtual_type): Use architecture
5885         invariant return values.
5886
5887 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5888
5889         * linux-proc.c: Include "gdb_string.h".
5890         * Makefile.in (linux-proc.o): Update dependency list.
5891
5892 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5893
5894         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
5895         comment.
5896
5897 2002-08-01  Grace Sainsbury  <graces@redhat.com>
5898
5899         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5900         to_insert_watchpoint, to_remove_watchpoint,
5901         to_stopped_by_watchpoint, to_stopped_data_address,
5902         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5903         target vecctor. Define their corresponding macros so they call
5904         them.
5905         
5906         * target.c: Add default and debug versions of for
5907         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5908         to_insert_watchpoint, to_remove_watchpoint,
5909         to_stopped_by_watchpoint, to_stopped_data_address,
5910         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5911
5912 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5913
5914         * mips-tdep.c (mips_register_virtual_type): New function.
5915         (mips_gdbarch_init): Register mips_register_virtual_type()
5916         with gdbarch machinery.
5917         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5918         this file instead of tm-bigmips.h.
5919         (MIPS_REGSIZE): Delete this macro.
5920         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
5921         multiarch version in mips-tdep.c will be found.
5922
5923 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5924
5925         * NEWS: Menion that CHILL has been made obsolete.
5926
5927         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5928         * stabsread.c (read_range_type): Ditto.
5929         * gdbtypes.h: Ditto.
5930         * language.c (binop_type_check): Ditto.
5931         (binop_result_type): Ditto.
5932         (integral_type): Ditto.
5933         (character_type): Ditto.
5934         (string_type): Ditto.
5935         (boolean_type): Ditto.
5936         (structured_type): Ditto.
5937         (lang_bool_type): Ditto.
5938         (binop_type_check): Ditto.
5939         * language.h (_LANG_chill): Ditto.
5940         * dwarfread.c (set_cu_language): Ditto.
5941         * dwarfread.c (CHILL_PRODUCER): Ditto.
5942         * dwarfread.c (handle_producer): Ditto.
5943         * expression.h (enum exp_opcode): Ditto.
5944         * eval.c: Ditto for comments.
5945         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5946         * expprint.c (print_subexp): Ditto.
5947         (print_subexp): Ditto.
5948         * valops.c (value_cast): Ditto.
5949         (search_struct_field): Ditto.
5950         * value.h (COERCE_VARYING_ARRAY): Ditto.
5951         * symfile.c (init_filename_language_table): Ditto.
5952         (add_psymbol_with_dem_name_to_list): Ditto.
5953         * valarith.c (value_binop): Ditto.
5954         (value_neg): Ditto.
5955         * valops.c (value_slice): Ditto.
5956         * symtab.h (union language_specific): Ditto.
5957         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5958         (SYMBOL_DEMANGLED_NAME): Ditto.
5959         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5960         * defs.h (enum language): Ditto.
5961         * symtab.c (got_symtab): Ditto.
5962         * utils.c (fprintf_symbol_filtered): Ditto.
5963
5964         * ch-typeprint.c: Make file obsolete.
5965         * ch-valprint.c: Make file obsolete.
5966         * ch-lang.h: Make file obsolete.
5967         * ch-exp.c: Make file obsolete.
5968         * ch-lang.c: Make file obsolete.
5969
5970         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5971         CHILL_LIB.
5972         (TARGET_FLAGS_TO_PASS): Ditto.
5973         (CHILLFLAGS): Obsolete.
5974         (CHILL): Obsolete.
5975         (CHILL_FOR_TARGET): Obsolete.
5976         (CHILL_LIB): Obsolete.
5977         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5978         ch-valprint.c.
5979         (HFILES_NO_SRCDIR): Remove ch-lang.h.
5980         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5981         ch-lang.o.
5982         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5983         targets.
5984
5985 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
5986
5987         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5988         This does not change anything at the moment, but will be helpful
5989         later when full Ada support is integrated.
5990
5991 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5992
5993         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5994         help message.
5995
5996 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5997
5998         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5999         and save it in a local variable.  Use variable in later test.
6000
6001 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6002
6003         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6004         test.  (Thanks to Daniel Jacobowitz.)
6005         
6006 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6007
6008         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6009         (mips_abi_strings): Add "n64".
6010         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6011
6012 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6013
6014         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6015         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6016
6017 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6018
6019         * utils.c (host_pointer_to_address, address_to_host_pointer):
6020         Use gdb_assert() instead of explicit call to internal_error().
6021
6022 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6023
6024         * Makefile.in (rs6000-nat.o): Update dependencies.
6025
6026         From Nicholas Duffek:
6027         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6028         (aix-thread.o): New rule.
6029         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6030         * config/powerpc/aix432.mh: New file.
6031
6032 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6033
6034         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6035         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6036         (fetch_core_registers, ppc_linux_supply_gregset)
6037         (ppc_linux_supply_fpregset): New functions.
6038         (ppc_linux_regset_core_fns): New.
6039         (_initialize_ppc_linux_tdep): Call add_core_fns.
6040         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6041         and ppc_linux_supply_gregset.
6042         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6043         (supply_fpregset): Call ppc_linux_supply_fpregset.
6044         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6045         corelow.o.
6046         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6047
6048 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6049
6050         * symtab.c (lookup_symbol): Demangle before lowercasing.
6051
6052 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6053
6054         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6055         declaration.
6056         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6057         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6058         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6059         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6060         "gdb_string.h".
6061         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6062         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6063         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6064         (avr-tdep.o, mon960-rom.o): Ditto.
6065         (aout_stabs_gnu_h): Define.
6066         (symtab_h): Remove $(gdb_obstack_h).
6067
6068 2002-07-30  Jim Blandy  <jimb@redhat.com>
6069
6070         Patch from David Carlton <carlton@math.stanford.edu>:
6071         * gdbinit.in: Move the `dir' commands that add GDB's own source
6072         directory to the search path to the end, so that the `gdb' source
6073         directory will be searched first.
6074
6075 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6076
6077         * gdb_obstack.h: New file.
6078         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6079         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6080         * objfiles.h: Include "gdb_obstack.h".
6081         * Makefile.in (gdb_obstack_h): Define.
6082         (symtab_h): Add $(gdb_obstack_h).
6083         (objfiles_h): Add $(gdb_obstack_h).
6084         
6085         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6086         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6087         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6088         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6089         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6090         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6091         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6092         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6093
6094         * Makefile.in (bcache.o): Update dependencies.
6095         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6096         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6097         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6098         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6099         (stabsread.o, symfile.o, symmisc.o): Ditto.
6100         (symtab.o, typeprint.o, macroexp.o): Ditto.
6101         (macrotab.o, mdebugread.o): Ditto.
6102         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6103         (coff_ecoff_h, aout_aout64_h): Define.
6104         (aout_stabs_gnu_h, libaout_h): Define.
6105
6106 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6107
6108         * regcache.c (struct regcache_descr): Rename nr_registers to
6109         nr_cooked_registers.  Revise comments describing the structure
6110         member fields.
6111         (init_regcache_descr): Update.
6112         (init_legacy_regcache_descr): Update.
6113         (read_register_gen, write_register_gen): When a cooked register in
6114         the raw register range, directly access the value from the raw
6115         register cache.
6116
6117 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6118
6119         * z8k-tdep.c: Do not include "obstack.h".
6120         * h8300-tdep.c, h8500-tdep.c: Ditto.
6121         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6122         * valprint.c, v850-tdep.c: Ditto.
6123         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6124         * mn10200-tdep.c: Ditto.
6125
6126         * Makefile.in (z8k-tdep.o): Update dependencies.
6127         (m68hc11-tdep.o, valprint.o): Ditto.
6128         (v850-tdep.o, d10v-tdep.o): Ditto.
6129         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6130         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6131         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6132         (sh_opc_h, gdb_sim_sh_h): Define.
6133         (elf_sh_h, elf_bfd_h): Define.
6134         (opcode_m68hc11_h): Define.
6135         (OPCODES_SRC, OPCODES_DIR): define.
6136         (OPCODES): Use $(OPCODES_DIR).
6137         (gdb_sim_d10v_h): Rename sim_d10v_h.
6138         (gdb_sim_arm_h): Rename sim_arm_h.
6139
6140 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6141
6142         * utils.c (host_pointer_to_address, address_to_host_pointer):
6143         Change internal_error() message to indicate function responsible
6144         for the error.
6145
6146 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6147
6148         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6149         calls to local_hex_string_custom().
6150
6151 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6152
6153         * irix5-nat.c: Move IRIX shared library support from here...
6154         * solib-irix.c: ...to here.  Revised substantially to work with
6155         generic solib framework.
6156
6157         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6158         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6159         * mips-irix-tdep.c: New file.
6160
6161         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6162         (mips-irix-tdep.o, solib-irix.o): New rules.
6163         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6164         solib-irix.o.
6165         * config/mips/irix6.mt (TDEPFILES): Likewise.
6166         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6167
6168 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6169
6170         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6171         disabled (via ``#if 0'') includes.
6172
6173 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6174
6175         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6176         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6177         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6178         Add support for the fpscr register.
6179         * rs6000-nat.c (regmap, fetch_inferior_registers)
6180         (store_inferior_registers, fetch_core_registers): Likewise.
6181
6182 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6183
6184         * rs6000-nat.c (language.h): Include.
6185         (special_regs): Delete this array.
6186         (regmap): New function.
6187         (fetch_register, store_register):  Use regmap() to map gdb
6188         register numbers to ptrace register numbers.  Also, use
6189         outputs from regmap() to make decisions regarding type of
6190         ptrace() call to make.  In particular, don't compare against
6191         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6192         (fetch_inferior_registers, store_inferior_registers): Where
6193         possible, obtain register numbers from tdep struct.  Don't
6194         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6195         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6196         (LAST_UISA_SP_REGNUM): Delete.
6197         
6198 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6199
6200         * rs6000-nat.c (ppc-tdep.h): Include.
6201         (fetch_registers, store_register, fetch_core_registers): Don't
6202         access registers[] directly.  Instead, use supply_register() or
6203         regcache_collect() as appropriate.
6204         (find_toc_address): Format hex address with local_hex_string().
6205
6206 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6207
6208         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6209         bfd/elf32-frv.c.
6210
6211 2002-07-24  Tom Tromey  <tromey@redhat.com>
6212
6213         * jv-exp.y: Marked all strings with _().
6214         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6215         internal_error.
6216         (MethodInvocation, CastExpression, parse_number, yyerror,
6217         java_type_from_name, push_expression_name, yylex): Typo fixes.
6218
6219 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6220
6221         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6222         (tee_file_flush, tee_file_write, tee_file_fputs)
6223         (tee_file_isatty): New.
6224         * ui-file.h (tee_file_new): Add prototype.
6225
6226 2002-07-24  Aidan Skinner <aidan@velvet.net>
6227
6228         * ada-lang.c: Change k&r style function definitions to prototyped
6229         form.
6230         * ada-typeprint.c: Change k&r style function definitions to prototyped
6231         form.
6232         * ada-valprint.c: Change k&r style function definitions to prototyped
6233         form.
6234         
6235 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6236
6237         * README: Remove reference to remote-bug.
6238         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6239         remote-bug.c.
6240         (m88k-nat.o): Delete rule.
6241         (m88k-tdep.o): Delete rule.
6242         (remote-bug.o): Delete rule.
6243         * MAINTAINERS: Mark as obsolete.
6244         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6245         * m88k-tdep.c: Make file obsolete.
6246         * config/m88k/m88k.mh: Ditto.
6247         * config/m88k/delta88v4.mh: Ditto.
6248         * config/m88k/delta88v4.mt: Ditto.
6249         * config/m88k/delta88.mt: Ditto.
6250         * config/m88k/delta88.mh: Ditto.
6251         * remote-bug.c: Ditto.
6252         * config/m88k/tm-delta88.h: Ditto.
6253         * config/m88k/nm-delta88v4.h: Ditto.
6254         * config/m88k/xm-delta88.h: Ditto.
6255         * config/m88k/xm-dgux.h: Ditto.
6256         * config/m88k/tm-m88k.h: Ditto.
6257         * config/m88k/nm-m88k.h: Ditto.
6258         * config/m88k/tm-delta88v4.h: Ditto.
6259         * m88k-nat.c: Ditto.
6260         * cxux-nat.c: Ditto.
6261         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6262         and m88*-*-* obsolete.
6263         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6264         m88*-*-* obsolete.
6265
6266 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6267
6268         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6269         constant.  Same for local pointer variables.
6270         (extract_signed_integer): Ditto.
6271         * defs.h (extract_unsigned_integer): Update.
6272         (extract_signed_integer): Update.
6273
6274 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6275
6276         * regcache.c (regcache_raw_write): Change buf parameter to a
6277         constant void pointer.
6278         (regcache_raw_read): Change buf parameter to a void pointer.
6279         (legacy_write_register_gen): Change myaddr parameter a constant
6280         void pointer.
6281         (supply_register): Change val parameter to a const void pointer.
6282         * regcache.h (regcache_raw_write): Update declaration.
6283         (regcache_raw_read): Update declaration.
6284         (supply_register): Update declaration.
6285
6286 2002-07-24  Tom Tromey  <tromey@redhat.com>
6287
6288         * defs.h (gdb_readline_wrapper): Declare.
6289         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6290         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6291         * top.c (gdb_readline_wrapper): New function.
6292         (command_line_input): Use it.
6293
6294 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6295
6296         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6297         regcache_read and regcache_write.
6298         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6299         * regcache.c: Update.
6300         * sh-tdep.c (sh64_push_arguments): Update comment.
6301         (sh_pseudo_register_read): Update.
6302         (sh_pseudo_register_write): Update.
6303         (sh4_register_read): Update.
6304         (sh4_register_write): Update.
6305         (sh64_pseudo_register_read): Update.
6306         (sh64_pseudo_register_write): Update.
6307         (sh64_register_read): Update.
6308         (sh64_register_write): Update.
6309         * i386-tdep.c (i386_extract_return_value): Update.
6310         (i386_extract_struct_value_address): Update.
6311         (i386_extract_return_value): Update.
6312         * blockframe.c (generic_read_register_dummy): Update.
6313         (generic_call_dummy_register_unwind): Update
6314         * infrun.c (write_inferior_status_register): Update.
6315
6316 2002-07-23  Jim Blandy  <jimb@redhat.com>
6317
6318         * parser-defs.h (expression_context_pc): Make this extern.
6319         (Thanks to Michael Snyder.)
6320
6321 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6322
6323         GDB 5.2.1 released from 5.2 branch.
6324         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6325         * README: Update to mention 5.2.1.
6326
6327 2002-07-23  Mark Salter  <msalter@redhat.com>
6328
6329         * remote.c (remote_read_bytes): Fix check for error.
6330
6331 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6332
6333         * aix-thread.c (language.h): Include.
6334         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6335         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6336         Print newlines at end of debug messages.
6337         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6338         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6339
6340 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6341
6342         * aix-thread.c (ppc-tdep.h): Include.
6343         (special_register_p): New function.
6344         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6345         (store_regs_user_thread): Use register number information from
6346         gdbarch_tdep struct instead of hardcoded offsets relative to
6347         FIRST_UISA_SP_REGNUM.
6348         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6349         special_register_p() instead of using FPLAST_REGNUM and
6350         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6351         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6352         will be MQ's register number.
6353
6354 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6355
6356         * aix-thread.c (ops): Rename to aix_thread_ops.
6357         (base_ops): Rename to base_target.
6358         (ops_attach): Rename to aix_thread_attach.
6359         (ops_detach): Rename to aix_thread_detach.
6360         (ops_resume): Rename to aix_thread_detach.
6361         (ops_wait):   Rename to aix_thread_wait.
6362         (ops_kill):   Rename to aix_thread_kill.
6363         (init_ops):   Rename to init_aix_thread_ops.
6364         (ops_fetch_register): Rename to aix_thread_fetch_register.
6365         (ops_store_register): Rename to aix_thread_store_register.
6366         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6367         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6368         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6369         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6370         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6371         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6372         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6373         (store_regs_lib):  Rename to store_regs_user_thread.
6374         (store_regs_kern): Rename to store_regs_kernel_thread.
6375
6376 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6377
6378         * aix-thread.c (ops_prepare_to_store): Eliminate.
6379         (init_ops): Don't initialize ops.prepare_to_store.
6380         (store_regs_kern): Pre-fetch register buffers from child, 
6381         because some registers may not be in the cache.  Copy
6382         regs from register cache only if they are cached.
6383         (store_regs_lib): Copy regs from register cache only
6384         if they are cached.
6385         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6386         fill_gprs64): Ditto.
6387
6388 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6389
6390         * aix-thread.c (gdb_assert.h): Include.
6391         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6392         register sizes (from register cache) match size of buffer holding
6393         register data.
6394         (fill_sprs32): Change parameter types to match those in the ptrace()
6395         buffer.
6396         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6397         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6398
6399 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6400
6401         * aix-thread.c (supply_sprs64): Cosmetic change.
6402         (supply_sprs32): Cosmetic change.
6403         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6404         (fill_sprs64): Use regcache_collect instead of read_register.
6405         (store_regs_lib): Use regcache_collect instead of 
6406         read_register.  Use fill_sprs32 instead of fill_sprs64,
6407         if debugging a 32-bit architecture.
6408         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6409         out of the register cache, instead of passing a pointer into
6410         the register cache directly to ptrace.  Use regcache_collect
6411         insteaad of read_register.
6412         (ops_prepare_to_store): Use target_read_registers instead
6413         of read_register_bytes.
6414
6415 2002-07-20  Aidan Skinner <aidan@velvet.net>
6416
6417         * MAINTAINERS: Add self under write after approval. 
6418                 
6419 2002-07-20  Aidan Skinner <aidan@velvet.net>
6420
6421         * ada-tasks.c: Change k&r style function definitions to prototyped
6422         form.
6423                 
6424 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6425
6426         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6427         * x86-64-tdep.c: Include "objfiles.h".
6428         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6429         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6430
6431 2002-07-17  Michal Ludvig  <michal@suse.cz>
6432
6433         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6434         (update_context): Initialise cfa variable.
6435
6436 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6437
6438         * aix-thread.c: Shorten some long lines.  
6439         Bring comments into line with code spec.
6440
6441 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6442
6443         * infrun.c: Re-indent using gdb_indent.sh.
6444
6445 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6446
6447         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6448         Leave the indentation temporarily untouched, to minimize the diffs.
6449
6450 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6451
6452         * stabsread.c: Make os9k sections of the code obsolete,
6453         for real this time.
6454         * stabsread.h: Make os9k sections of the code obsolete.
6455
6456 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6457
6458         * linux-low.c (regsets_store_inferior_registers): Add free()
6459         at the end of a loop to prevent memory leak.
6460         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6461         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6462         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6463         line a comment.
6464         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6465
6466 2002-07-17  Jim Blandy  <jimb@redhat.com>
6467
6468         * macrocmd.c (info_macro_command): Remove newline from error
6469         message.
6470
6471 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6472
6473         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6474         (sh_gdbarch_init): Use it for sh-dsp.
6475
6476 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6477
6478         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6479         64-bit DWARF2 format.
6480
6481 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6482
6483         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6484         <sys/proc.h> when not available.
6485
6486 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6487
6488         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6489         * stabsread.c: Make os9k sections of the code obsolete.
6490         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6491         * config/i386/i386os9k.mt: Make file obsolete.
6492         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6493         (COMMON_OBS): Remove os9kread.o
6494         (SFILES): Remove os9kread.c.
6495         (os9kread.o, remote-os9k.o): Make target obsolete.
6496         * remote-os9k.c: Make file obsolete.
6497         * os9kread.c: Make file obsolete.
6498         * Makefile.in
6499
6500 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6501
6502         * NEWS: Mention that the FR30 has been made obsolete.
6503         * fr30-tdep.c: Make file obsolete.
6504         * config/fr30/tm-fr30.h: Ditto.
6505         * config/fr30/fr30.mt: Ditto.
6506         * configure.tgt: Make fr30-*-elf obsolete.
6507         * MAINTAINERS: Make fr30-elf obsolete.
6508
6509 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6510
6511         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6512         found is not inside a section.
6513
6514 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6515
6516         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6517         strerror().
6518         (pdc_realloc): Use xrealloc() instead of realloc().
6519
6520 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6521
6522         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6523         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6524         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6525         macros.
6526
6527 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6528
6529         * aix-thread.c (ptrace_check): Eliminate goto.
6530         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6531         problem.
6532
6533 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6534
6535         * aix-thread.c (gdbcmd.h): Include.
6536         (DEBUG, DBG, DBG2, dbg): Eliminate.
6537         (debug_aix_thread): New static global.
6538         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6539         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6540         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6541         invocations to DBG and DBG2 macros to test against
6542         ``debug_aix_thread'' and call fprintf_unfiltered().
6543         (_initialize_aix_thread): Add new command "set debug aix-thread".
6544
6545 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6546
6547         From Gerhard Tonn <TON@de.ibm.com>:
6548         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6549         instead of supply_register.
6550
6551 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6552
6553         * dwarf2cfi.c: Include "gdb_assert.h".
6554         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6555         non-NULL.
6556         (update_context): Do not use __func__.  Add missing ``break''.
6557         (update_context): Do not use __func__.
6558
6559 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6560
6561         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6562         and its setting.  Set gdbarch instruction printing functions
6563         directly.  For non-rs6000 case use new function
6564         gdb_print_insn_powerpc.
6565         (gdb_print_insn_powerpc): New function.
6566
6567 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6568
6569         * NEWS: Mention that the d30v has been marked obsolete.
6570         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6571         * configure.tgt: Mark d30v-*-* as obsolete.
6572         * d30v-tdep.c: Mark file as obsolete.
6573         * config/d30v/d30v.mt: Ditto.
6574         * config/d30v/tm-d30v.h: Ditto.
6575
6576 2002-07-13  Aidan Skinner <aidan@velvet.net>
6577
6578         * ada-tasks.c (add_task_entry): replace calls to
6579         malloc() with xmalloc
6580         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6581         
6582         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6583         ada_finish_decode_line_1, all_sals_for_line
6584         ada_breakpoint_rewrite): replace calls to free() with xfree()
6585                 
6586 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6587
6588         From Nicholas Duffek (with minor changes by Martin Hunt, 
6589         Louis Hamilton, and Kevin Buettner):
6590         * aix-thread.c: New file.
6591
6592 2002-07-12  Petr Sorfa <petrs@caldera.com>
6593
6594         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6595         complaint for invalid attribute class or form.
6596         (read_func_scope): DW_AT_frame_base
6597         better handling of DW_AT_block*.
6598         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6599         better handling of DW_AT_block*.
6600         (read_common_block): DW_AT_location
6601         better handling of DW_AT_block*.
6602         (read_partial_die): DW_AT_location better handling
6603         of DW_AT_block*.
6604         (new_symbol): DW_AT_external better handling of
6605         DW_AT_block*. Proper initialization of variable
6606         "addr".
6607         (attr_form_is_block): New function that returns true
6608         if the attribute's form is of DW_FORM_block*.
6609
6610 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6611
6612         * valops.c (find_method_list): Remove comment about
6613         removed STATIC_MEMFUNCP argument.
6614         (value_find_oload_method_list): Likewise.
6615
6616 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6617
6618         From Nicholas Duffek:
6619         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6620         target_new_objfile_hook.
6621
6622 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6623
6624         From Nicholas Duffek:
6625         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6626         csect.
6627
6628 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6629
6630         * MAINTAINERS: Mention --enable-sim-build-warnings.
6631         (m68hc11-elf): Disable sim build warnings.
6632         (m32r-elf): Mark as broken obsolete candidate.
6633         (x86_64-linux-gnu): Mark as buildable with -Werror.
6634         (arm-elf): Change -w to ``,'' which enables warnings but not
6635         -Werror.
6636
6637 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6638
6639         * bcache.h: Update copyright.
6640         (struct bstring, struct bcache): Move definition to "bcache.c".
6641         Replaced by opaque declaration.
6642         (bcache_xfree): Replace free_bcache.
6643         (bcache_xmalloc, bcache_memory_used): Declare.
6644         
6645         * bcache.c: Update copyright.
6646         (struct bstring, struct bcache): Moved to here from "bcache.h".
6647         Update comments.
6648         (bcache_xmalloc, bcache_memory_used): New functions.
6649         (bcache_xfree): Replace function free_bcache.
6650         
6651         * Makefile.in (objfiles.o): Add $(bcache_h).
6652         (objfiles_h): Remove $(bcache_h).
6653         (symfile.o): Add $(bcache_h).
6654
6655         * symmisc.c: Update copyright.
6656         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6657         (print_objfile_statistics): Use bcache_memory_used.
6658
6659         * symfile.c: Include "bcache.h".
6660         (reread_symbols): Use bcache_xfree.
6661         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6662         (add_psymbol_to_list): Pass psymbol_cache by value.
6663         (add_psymbol_with_dem_name_to_list): Ditto.
6664
6665         * objfiles.h: Update copyright.
6666         (struct bcache): Declare opaque.  Do not include "bcache.h".
6667         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6668         bcache'' pointers.
6669         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6670
6671         * objfiles.c: Include "bcache.h".  Update copyright.
6672         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6673         macro_cache.
6674         (free_objfile): Use bcache_xfree.
6675
6676 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6677
6678         * monitor.c (monitor_fetch_register): Make name a constant.
6679         (monitor_store_register): Same.
6680
6681 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6682
6683         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6684         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6685         (finish_block) For non-function blocks, hash the symbol table.  For
6686         function blocks, mark the symbol table as unhashed.
6687         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6688         (msymbol_hash_iw): Likewise.
6689         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6690         value.
6691         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6692         (lookup_minimal_symbol): Likewise for both.
6693         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6694         hashtable.
6695         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6696         (ALL_BLOCK_SYMBOLS): Update.
6697         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6698         (struct symbol): Add `hash_next' pointer.
6699         * symtab.c (lookup_block_symbol): Search using the hash table when
6700         possible.
6701         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6702         (search_symbols, find_addr_symbol): Likewise.
6703
6704         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6705         (read_dst_symtab): Likewise.
6706         * jv-lang.c (get_java_class_symtab): Likewise.
6707         * mdebugread.c: Include "gdb_assert.h".
6708         (shrink_block): Assert that the block being modified is not hashed.
6709         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6710         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6711         symbols.
6712         (dump_symtab): Recognize hashed blocks.
6713         * printcmd.c (print_frame_args):  Assert that function blocks do not
6714         have hashed symbol tables.
6715         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6716         (fill_in_ada_prototype, debug_print_block): Likewise.
6717         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6718
6719 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6720
6721         * stack.c (print_frame): Use result of frame_address_in_block()
6722         instead of fi->pc when evaluating symbols.
6723         (backtrace_command_1): Ditto.
6724
6725 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6726
6727         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6728         Make static.
6729
6730         * arm-tdep.c (arm_register_name): Make return type constant.
6731
6732 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6733
6734         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6735         prototype.
6736         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6737         * s390-tdep.c (s390_fp_regnum): Ditto.
6738         (s390_read_fp): Ditto.
6739         (s390_pop_frame): Ditto.
6740         (_initialize_s390_tdep): Ditto.
6741         * remote.c (get_remote_state): Ditto.
6742         * procfs.c (mappingflags): Ditto.
6743         * memattr.c (_initialize_mem): Ditto.
6744         * mcore-tdep.c (mcore_pop_frame): Ditto.
6745         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6746         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6747         * language.c (set_case_str): Ditto.
6748         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6749         * frv-tdep.c (new_variant): Ditto.
6750         (frv_stopped_data_address): Ditto.
6751         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6752         (context_alloc): Ditto.
6753         (frame_state_alloc): Ditto.
6754         (unwind_tmp_obstack_init): Ditto.
6755         (unwind_tmp_obstack_free): Ditto.
6756         (cfi_read_fp): Ditto.
6757         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6758         (cris_pop_frame): Ditto.
6759         * c-lang.c (scanning_macro_expansion): Ditto.
6760         (finished_macro_expansion): Ditto.
6761         (c_preprocess_and_parse): Ditto.
6762         * gdbarch.sh: Ditto.
6763         * gdbarch.h, gdbarch.c: Regenerate.
6764         * config/mn10200/tm-mn10200.h: Adjust indentation.
6765         * target.c: Adjust indentation.
6766         * symtab.h: Adjust indentation.
6767         * stabsread.h: Adjust indentation.
6768         * remote-es.c: Adjust indentation.
6769         * os9kread.c: Adjust indentation.
6770
6771 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6772         
6773         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6774         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6775
6776 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6777         
6778         * NEWS: Mention m68k, mcore multi-arching.  
6779         * MAINTAINERS: Change status of m68k, mcore to reflect
6780         multi-arching.
6781
6782 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6783
6784         * valops.c (find_overload_match): Free oload_syms.
6785
6786 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6787
6788         Define HAVE_SYS_PROC_H if sys/proc.h exists
6789         * configure.in: Add check for sys/proc.h
6790         * config.in: Regenerate.
6791         * configure: Regenerate.
6792
6793 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6794
6795         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6796         #if !GDB_MULTI_ARCH. 
6797
6798 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6799
6800         * config.in, configure: Regenerate.
6801
6802 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6803
6804         * dwarf2cfi.c: Include "gcore.h".
6805         (execute_stack_op): Fix implementation of the
6806         DW_OP_deref and DW_OP_deref_size operators by letting do their
6807         lookup in the target.
6808
6809 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6810
6811         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6812         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6813         tdep->sc_sp_offset.
6814
6815 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6816
6817         Fix PR gdb/595, gdb/602
6818         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6819         Don't call value_cast, just read the vtable pointer; update comments
6820         to match.
6821
6822 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6823
6824         * config/mcore/tm-mcore.h: Remove file.
6825         * config/mcore/mcore.mt: Remove definition of TM_FILE
6826         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6827
6828 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6829
6830         * i386bsd-tdep.c: Include "gdb_string.h".
6831
6832 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6833
6834         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6835         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6836         mcore-tdep.
6837         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6838         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6839         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6840         (RETVAL_REGNUM): Move macros from tm-mcore.h
6841         (mcore_reg_struct_has_addr): New function.
6842         (mcore_gdbarch_init): Added initializations for the macros removed
6843         from tm-mcore.h.
6844
6845 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6846
6847         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6848         traditonal string branding within the ELF header.
6849
6850 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6851
6852         * symtab.c (remove_params): New function.
6853         (make_symbol_overload_list): Use it instead of cplus_demangle.
6854         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
6855
6856 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6857
6858         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6859
6860         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6861         New variables.
6862         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6863         and tdep->sigtramp_end.
6864         * i386obsd-nat.c: New file.
6865         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6866
6867         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6868         Don't call get_current_frame().
6869
6870 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6871
6872         * i386-nat.c (child_post_startup_inferior): New function
6873         calling i386_cleanup_dregs if
6874         I386_USE_GENERIC_WATCHPOINTS is defined.
6875         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6876         conditional to acknowledge that i386-nat.c has its
6877         own child_post_startup_inferior function.
6878
6879 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6880
6881         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6882         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6883         instead of MAX_REGISTER_RAW_SIZE.
6884         (i386_extract_return_value, i386_extract_struct_value_address):
6885         Convert to use regcache.
6886         (i386_gdbarch_init): Set max_register_raw_size and
6887         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6888         Set extract_return_value and extract_struct_value_address instead
6889         of their deprecated variants.
6890
6891         Convert i386 target to generic dummy frames.
6892         * i386-tdep.c: Include "symfile.h".
6893         (i386_frameless_signal_p): Consider a function to be frameless if
6894         the pc points at the first instruction of the function.
6895         (i386_frame_chain): Handle (generic) call dummies.
6896         (i386_frame_saved_pc): Likewise.
6897         (i386_frame_init_saved_regs): Remove code dealing with call
6898         dummies on the stack.
6899         (i386_push_dummy_frame): Removed.
6900         (i386_call_dummy_words): Removed.
6901         (i386_fix_call_dummy): Removed.
6902         (i386_push_return_address): New function.
6903         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
6904         parameter, and don't call get_current_frame.
6905         (i386_pop_frame): New function.
6906         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6907         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6908         entry_point_address, set call_dummy_breakpoint_offset to 0, set
6909         call_dummy_length to 0, set call_dummy_words to NULL, set
6910         sizeof_call_dummy_words to 0, set fix_call_dummy to
6911         generic_fix_call_dummy, set pc_in_call_dummy to
6912         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6913         generic_push_dummy_frame, set push_return_address to
6914         i386_push_return_address and set frame_chain_valid to
6915         generic_file_frame_chain_valid.
6916
6917 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6918
6919         * gdbarch.sh (struct regcache): Add opaque declaration.
6920         (EXTRACT_RETURN_VALUE): New architecture method.
6921         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6922         * gdbarch.h, gdbarch.c: Regenerate.
6923         * arch-utils.c (legacy_extract_return_value): New function.
6924         * arch-utils.h (legacy_extract_return_value): Declare.
6925         * values.c (value_being_returned): Re-enable code handling
6926         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
6927         deprecated_grub_regcache_for_registers call to block handling
6928         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6929         (EXTRACT_RETURN_VALUE): Do not define.
6930
6931 2002-07-03  Grace Sainsbury  <graces@redhat.com>
6932
6933         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6934         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6935         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6936         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6937         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6938         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6939         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6940         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6941         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6942         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6943         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6944         argument so the function fits the prototype in the architecture
6945         vector.
6946         (mcore_pop_frame): Remove argument so the function fits the
6947         prototype. Use get_current_frame instead of the argument.
6948         (mcore_push_arguments): Change type of struct_return so the
6949         function can be used in the architecture vector.
6950         (mcore_store_struct_return): Add.
6951         (mcore_frame_init_saved_regs): Add.
6952         (mcore_gdbarch_init): Add function calls to replace the macros
6953         removed from tm-mcore.h
6954
6955 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6956
6957         * infcmd.c (print_return_value): Remove compatibility code calling
6958         deprecated_grub_regcache_for_registers.
6959         
6960         * values.c: Include "regcache.h".
6961         (value_being_returned): Update.  Use
6962         deprecated_grub_regcache_for_registers to extract the register
6963         buffer address.  
6964         * value.h (value_being_returned): Change ``retbuf'' parameter to a
6965         ``struct regcache''.
6966         * Makefile.in (values.o): Add dependency on $(regcache_h).
6967
6968         * inferior.h (run_stack_dummy): Change type of second parameter to
6969         a ``struct regcache''.
6970         * valops.c (hand_function_call): Change type of retbuf to ``struct
6971         regcache''.  Allocate using regcache_xmalloc, clean using
6972         make_cleanup_regcache_xfree.
6973         * infcmd.c (run_stack_dummy): Update.  Use
6974         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6975
6976         * regcache.c (do_regcache_xfree): New function.
6977         (make_cleanup_regcache_xfree): New function.
6978         * regcache.h (make_cleanup_regcache_xfree): Declare.
6979
6980 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6981
6982         * event-top.c (command_line_handler): Don't read past
6983         beginning of buffer.
6984
6985 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6986         
6987         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
6988         struct frame_id. 
6989         (varobj_create): Store frame_id for root.
6990         (varobj_gen_name): Use xasprintf.
6991         (varobj_update): Save and restore frame using get_frame_id() and
6992         frame_find_by_id().
6993         (create_child): Use xasprintf.
6994         (new_root_variable): Initialize frame_id.
6995         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6996         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6997         to prevent memory leak.
6998
6999 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7000
7001         * valops.c (hand_function_call): Move declaration of retbuf to
7002         start of function, allocate using malloc, add a cleanup but before
7003         the inf_status cleanup, cleanup the buffer.  Rename local variable
7004         old_chain to inf_status_cleanup.
7005
7006 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7007
7008         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7009
7010         * cli/cli-decode.c (cmd_func_p): New function.
7011         (cmd_func): New function.
7012
7013         * command.h: Add cmd_func() and cmd_func_p().   
7014         
7015 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7016
7017         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7018         (REGISTER_SIZE): Remove.
7019         (MAX_REGISTER_RAW_SIZE): Remove.
7020         (REGISTER_VIRTUAL_TYPE): Remove.
7021         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7022         (REGISTER_NAME): Remove.
7023         (USE_GENERIC_DUMMY_FRAMES): Remove.
7024         (CALL_DUMMY): Remove.
7025         (CALL_DUMMY_START_OFFSET): Remove.
7026         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7027         (CALL_DUMMY_LOCATION): Remove.
7028         (FIX_CALL_DUMMY): Remove.
7029         (CALL_DUMMY_ADDRESS): Remove.
7030         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7031         (SAVE_DUMMY_FRAME_TOS): Remove.
7032         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7033         (mcore_register_virtual_type): New function.
7034         (mcore_register_byte): New function.
7035         (mcore_register_size): New function.
7036         (mcore_register_name): New function.
7037         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7038         macros removed from tm-mcore.h.
7039         (mcore_dump_tdep): Add.
7040         (_initialize_mcore_tdep): Add gdbarch_register call.
7041
7042 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7043
7044         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7045         frameless_look_for_prologue, such that we actually call this
7046         function.
7047
7048 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7049
7050         * frame.h (frame_address_in_block): New function.
7051
7052         * blockframe.c (frame_address_in_block): New function extracted
7053         from get_frame_block().
7054         (get_frame_block): Use frame_address_in_block().
7055         (block_innermost_frame): Use frame_address_in_block() to match
7056         the frame pc address against the block boundaries rather than
7057         the frame pc directly. This prevents a failure when a frame pc
7058         is actually a return-address pointing immediately after the end
7059         of the given block. 
7060
7061 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7062
7063         * MAINTAINERS: Add self under write after approval. 
7064
7065 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7066
7067         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7068         used in architecture vector. The default is
7069         m68k_local_breakpoint_from_pc.
7070         (m68k_local_breakpoint_from_pc): Add.
7071         (enum): Add register numbers from tm-m68k.h.
7072         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7073         vector.  
7074         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7075         GDB_MULTI_ARCH_PARTIAL.
7076         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7077         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7078         m68k-tdep.c.
7079         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7080         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7081         to enum in m68k-tdep.c
7082
7083 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7084
7085         * solib-osf.c (open_map): Compute the list of shared libraries
7086         loaded by the inferior, rather than the list of libraries loaded
7087         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7088         the wrong shared libraries...
7089
7090 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7091
7092         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7093         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7094         macros.
7095         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7096         Remove functions.
7097         (FRAMELESS_SIGNAL): Remove function.
7098         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7099         i386_linux_saved_pc_after_call): Removed.
7100         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7101         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7102         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7103
7104         * i386-tdep.c (i386_frameless_signal_p): New function.
7105         (i386_frame_chain): Deal with frameless signals.
7106         (i386_sigtramp_saved_sp): New function.
7107         (i386_frame_saved_pc): Deal with frameless signals.
7108         (i386_saved_pc_after_call): Make sure the correct value is
7109         returned just after entry into a sigtramp.
7110         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7111         i386fbsd4_sc_sp_offset): New variables.
7112         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7113         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7114         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7115         similiar to what we already did for sc_pc_offset.
7116         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7117         tdep->sc_sp_offset.
7118
7119         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7120
7121 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7122
7123         * config/i386/tm-x86-64linux.h: New.
7124         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7125         definitions.
7126         * config/i386/nm-x86-64.h: Rename to ...
7127         * config/i386/nm-x86-64linux.h: ... this one.
7128         * config/i386/x86-64linux.mh: Reflect the above change.
7129         
7130 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7131
7132         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7133         with sigcontext_addr.  Add sc_sp_offset.
7134         (i386bsd_sigtramp_saved_pc): Remove prototype.
7135         (i386bsd_sicontext_addr): Add prototype.
7136         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7137         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7138         (i386_svr4_sigtramp_saved_pc): Removed.
7139         (i386_svr4_sigcontext_addr): New function.
7140         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7141         Initialize tdep->sigcontext_addr instead.  Initialize
7142         tdep->sc_pc_offset and tdep->sc_sp_offset.
7143         (i386_gdbarch_init): Likewise.
7144         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7145         any more.
7146         (i386bsd_sigtramp_saved_pc): Remove function.
7147         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7148         Initialize tdep->sigcontext_addr instead.  Initialize
7149         tdep->sc_pc_offset.
7150         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7151         of tdep->sigtramp_saved_pc.
7152         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7153         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7154         instead.
7155
7156         * i386-tdep.c (i386_frameless_function_invocation,
7157         i386_frame_num_args, i386_frame_init_saved_regs,
7158         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7159         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7160         i386_extract_return_value, i386_store_return_value,
7161         i386_extract_struct_value_address, i386_register_virtual_type,
7162         i386_register_convertible, i386_register_convert_to_virtual,
7163         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7164         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7165         static.
7166
7167 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7168
7169         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7170
7171         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7172         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7173         this macro.  Include "value.h".
7174
7175 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7176
7177         * ada-exp.tab.c: remove as it's a generated file
7178         * ada-lex.c: remove as it's a generated file
7179                 
7180 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7181
7182         * config/i386/tm-i386.h (struct frame_info, struct
7183         frame_saved_regs, struct value, struct type): Remove forward
7184         declarations.
7185
7186         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7187         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7188         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7189         (FILL_FPXREGSET): Define.
7190
7191         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7192
7193         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7194         i[3456]86-*-netbsd* case.
7195         * config/i386/tm-obsd.h: Removed.
7196         * config/i386/obsd.mt: Removed.
7197         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7198         core-aout.o.
7199         (MH_CFLAGS): Add -DYYDEBUG=0.
7200
7201         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7202         i386nbsd_sc_pc_offset on OpenBSD too.
7203
7204         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7205         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7206         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7207         define.
7208         * i386bsd-tdep.c: Include "arch-utils.h".
7209         (i386bsd_aout_in_solib_call_trampoline): New function.
7210         (i386bsd_init_abi): Set in_solib_call_trampoline to
7211         i386bsd_aout_in_solib_call_trampoline.
7212         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7213         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7214
7215 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7216
7217         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7218         (struct obstack, struct bcache): Add opaque declarations.
7219         * Makefile.in (macrotab_h): Update
7220
7221 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7222
7223         * blockframe.c (generic_find_dummy_frame): Change return type to
7224         ``struct regcache''.
7225         (struct dummy_frame): Replace field ``registers'' with regcache, a
7226         struct regcache object.
7227         (generic_find_dummy_frame): Update.
7228         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7229         regcache_xmalloc and regcache_cpy.
7230         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7231         regcache_xfree.
7232         (deprecated_generic_find_dummy_frame): Update.
7233         (generic_read_register_dummy): Update.  Use
7234         regcache_read_as_address.
7235         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7236         (generic_get_saved_register): Update.  Use regcache_read.
7237
7238 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7239
7240         * Makefile.in (objfiles_h): Add $(bcache_h).
7241         * objfiles.h: Include "bcache.h".
7242
7243         * Makefile.in (symtab_h): Remove $(bcache_h).
7244         * symtab.h: Do not include "bcache.h".
7245
7246 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7247
7248         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7249         generic_func_frame_chain_valid.
7250
7251 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7252
7253         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7254         * config/i386/tm-fbsd.h: Likewise.
7255
7256 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7257
7258         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7259         generic_unwind_get_saved_register.
7260
7261 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7262
7263         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7264         * regcache.c (supply_register): Add missing argument to
7265         register_buffer call.
7266
7267 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7268
7269         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7270         Solaris /bin/grep does not not like it.  From Peter Schauer.
7271
7272 2002-06-26  Tom Tromey  <tromey@redhat.com>
7273
7274         * command.h (add_setshow_cmd): Declare.
7275         (add_setshow_cmd_full): Declare.
7276         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7277         returns void.  Use add_setshow_cmd_full.
7278         (add_setshow_cmd_full): New function.
7279         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7280         (add_setshow_boolean_cmd): Likewise.
7281
7282 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7283
7284         * config/vax/tm-vax.h: Protect from multiple inclusion.
7285         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7286         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7287         * config/vax/tm-vaxbsd.h: ...here.  New file.
7288         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7289
7290 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7291
7292         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7293         (BELIEVE_PCC_PROMOTION): Remove.
7294         (AP_REGNUM): Move to...
7295         * config/vax/nm-vax.h: ...here.
7296         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7297         (vax_breakpoint_from_pc): New function.
7298         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7299         and gdbarch_believe_pcc_promotion.
7300
7301 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7302
7303         * Makefile.in (vax_tdep_h): Define.  
7304         (vax-tdep.o): Use $(vax_tdep_h).
7305         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7306         (vax_dump_tdep): New function. 
7307         (_initialize_vax_tdep): Register vax_dump_tdep.
7308         * vax-tdep.h: Include osabi.h.     
7309         (struct gdbarch_tdep): New. 
7310
7311 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7312
7313         * frame.h (deprecated_generic_find_dummy_frame): Rename
7314         generic_find_dummy_frame.
7315         * blockframe.c (generic_find_dummy_frame): Make static.
7316         (deprecated_generic_find_dummy_frame): New function.
7317         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7318         generic_find_dummy_frame with deprecated_find_dummy_frame.
7319         (sh64_nofp_frame_init_saved_regs): Ditto.
7320         (sh_fp_frame_init_saved_regs): Ditto.
7321         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7322         (s390_frame_chain): Ditto.
7323         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7324
7325 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7326
7327         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7328         gdbarch vector are at the top.
7329         (NUM_REGS): Remove.
7330         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7331         (FRAME_ARGS_ADDRESS): Remove.
7332         (FRAME_LOCALS_ADDRESS): Remove.
7333         (FRAME_NUM_ARGS): Remove.
7334         (FRAME_ARGS_SKIP): Remove.  
7335         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7336         (m68k_gdbarch_init): Add gdbarch initializations for macros
7337         undefined in tm-m68k.h
7338
7339 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7340
7341         * monitor.h: Add the function regname to monitor_ops
7342         structure. This way NUM_REGS does not have to be a constant.
7343         * monitor.c (monitor_fetch_register): Added support for regname
7344         function. The function is called if the array regnames is NULL.
7345         (monitor_store_register): Same.
7346         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7347         regnames array.
7348         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7349         cpu32bug_cmds.regname to point to new function.
7350         * abug-rom.c (abug_regname): Same as above.
7351         (init_abug_cmds): Same.
7352         * dbug-rom.c (dbug_regname): Same as above.
7353         (init_dbug_cmds): Same.
7354         * remote-est.c (est_regname): Same. 
7355         (init_est_cmds): Same.
7356         * rom68k-rom.c (rom68k_regname): Same. 
7357         (init_rom68k_cmds): Same.
7358
7359 2002-06-25  Tom Tromey  <tromey@redhat.com>
7360
7361         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7362
7363 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7364
7365         * infrun.c (stop_registers): Change variable's type to ``struct
7366         regcache'''.
7367         (xmalloc_inferior_status): Delete function.
7368         (free_inferior_status): Delete function.
7369         (normal_stop): Use regcache_cpy.
7370         (struct inferior_status): Change type of fields ``stop_registers''
7371         and ``registers'' to ``struct regcache''.
7372         (write_inferior_status_register): Use regcache_write.
7373         (save_inferior_status): Instead of calling
7374         xmalloc_inferior_status, allocate the inf_status buffer directly.
7375         Use regcache_dup_no_passthrough and regcache_dup to save the
7376         buffers.
7377         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7378         Replace the stop_registers regcache instead of overriding it.  Use
7379         regcache_xfree.  Instead of calling free_inferior_status, xfree
7380         the buffer directly.
7381         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7382         free_inferior_status, xfree the buffer directly.
7383         (build_infrun): Use regcache_xmalloc.
7384         (_initialize_infrun): Delete redundant call to build_infrun.
7385
7386         * Makefile.in (infcmd.o): Add $(regcache_h).
7387
7388         * infcmd.c: Include "regcache.h".
7389         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7390         obtain the address of `stop_registers' register buffer.
7391         (print_return_value): Ditto.
7392
7393         * inferior.h (struct regcache): Add opaque declaration.
7394         (stop_registers): Change variable's declared type to ``struct
7395         regcache''.
7396
7397 2002-06-24  Tom Tromey  <tromey@redhat.com>
7398
7399         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7400         * target.c (initialize_targets): Fixed typo in
7401         trust-readonly-sections `show' documentation.
7402
7403         * main.c: Marked all strings with _().
7404
7405 2002-06-24  Don Howard  <dhoward@redhat.com>
7406
7407         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7408         that means max CORE_ADDR+1.
7409         (lookup_mem_region): Ditto.
7410         (mem_info_command): Ditto.
7411
7412 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7413
7414         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7415         (REGISTER_BYTES_OK): Remove.
7416         (REGISTER_BYTES): Remove.
7417         (STORE_STRUCT_RETURN): Remove.
7418         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7419         (STORE_RETURN_VALUE): Remove.
7420         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7421         (FRAME_CHAIN): Remove.
7422         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7423         (FRAME_SAVED_PC): Remove.  
7424         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7425         (m68k_store_struct_return): Add.
7426         (m68k_deprecated_extract_return_value): Add.
7427         (m68k_deprecated_extract_struct_value_address): Add.
7428         (m68k_store_return_value): Add.
7429         (m68k_frame_chain): Add.
7430         (m68k_frameless_function_invocation): Add.
7431         (m68k_frame_saved_pc): Add.
7432         (m68k_gdbarch_init): added set_gdbarch calls for new 
7433         functions and deleted macros.
7434
7435 2002-06-23  Tom Tromey  <tromey@redhat.com>
7436
7437         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7438         (ALLDEPFILES): Likewise.
7439         (udiheaders): Removed.
7440         (udip2soc.o): Likewise.
7441         (udi2go32.o): Likewise.
7442         (udr.o): Likewise.
7443         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7444
7445 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7446
7447         * infrun.c (_initialize_infrun): Delete unnecessary call to
7448         build_infrun.
7449
7450         * regcache.h: Update comments describing the regcache_cpy family
7451         of functions.
7452         (regcache_save, regcache_restore): Delete declaration.
7453         (regcache_save_no_passthrough): Delete declaration.
7454         (regcache_restore_no_passthrough): Delete declaration.
7455         * regcache.c (regcache_save): Delete function.
7456         (regcache_save_no_passthrough): Delete function.
7457         (regcache_restore): Delete function.
7458         (regcache_restore_no_passthrough): Delete function.
7459
7460 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7461
7462         * config/m68k/tm-m68k.h: Fix typo.
7463         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7464         (m68k_frame_init_saved_regs): Declare.
7465
7466 2002-06-21  Jim Blandy  <jimb@redhat.com>
7467
7468         Remove some vestiges of Harris 88k support.
7469         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7470         register numbering quirk.
7471         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7472         odd symbols occurring in Harris 88k ELF targets.
7473
7474 2002-06-21  Tom Tromey  <tromey@redhat.com>
7475
7476         * gdb_locale.h: New file.
7477         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7478         (defs_h): Added gdb_locale.h.
7479         * configure, config.in: Rebuilt.
7480         * configure.in (PACKAGE): Define.
7481         * defs.h: Include gdb_locale.h.
7482         * main.c (captured_main): Call setlocale, bindtextdomain,
7483         textdomain.
7484
7485 2002-06-21  Dave Brolley  <brolley@redhat.com>
7486
7487         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7488         * config/frv/frv.mt: New file.
7489         * config/frv/tm-frv.h: New file.
7490         * configure.tgt: Support frv-*-*.
7491         * Makefile.in (frv-tdep.o): New target.
7492         * frv-tdep.c: New file.
7493         * NEWS: Mention frv.
7494
7495 2002-06-21  Dave Brolley  <brolley@redhat.com>
7496
7497         * MAINTAINERS: Add self to "Write After Approval" list.
7498
7499 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7500
7501         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7502         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7503         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7504         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7505         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7506
7507         * m68k-tdep.c: Include arch-utils.h
7508         (m68k_register_raw_size): Add.
7509         (m68k_register_virtual_size): Add.
7510         (m68k_register_virtual_type): Add.
7511         (m68k_register_name): Add.
7512         (m68k_stack_align): Add.
7513         (m68k_register_byte): Add.
7514         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7515         tm-m68k.h.
7516
7517 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7518
7519         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7520         m68k_find_saved_regs.
7521         (m68k_pop_frame): Removed saved_regs structure, and replaced
7522         references to it with frame->saved_regs.
7523         (m68k_gdbarch_init): Added function calls to initialize the
7524         gdbarch structure.
7525         (m68k_fix_call_dummy): Add. 
7526         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7527         (CALL_DUMMY): Remove.
7528         (CALL_DUMMY_LENGTH): Remove.
7529         (CALL_DUMMY_START_OFFSET): Remove.
7530         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7531         (FIX_CALL_DUMMY): Remove.
7532         (PUSH_DUMMY_FRAME): Remove.
7533         (POP_FRAME): Remove.
7534
7535 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7536
7537         * parse.c (parse_fprintf): New function used to avoid calls to
7538         fprintf in bison parser generated debug code.
7539         * parser-defs.h: Declaration of new parse_fprintf function.
7540         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7541         Set YYDEBUG to 1 by default.
7542         Set YYFPRINTF as parse_fprintf.
7543
7544 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7545
7546         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7547         encoding anymore.
7548         (pointer_encoding, enum ptr_encoding): New.
7549         (execute_cfa_program): Take care about pointer encoding.        
7550         (dwarf2_build_frame_info): Only call parse_frame_info for 
7551         .debug_frame and .eh_frame.
7552         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7553         fixed augmentation handling, added relative addressing, 
7554         ignore duplicate FDEs. Added comments.
7555         * dwarf2cfi.c: Reindented.
7556         
7557 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7558
7559         * event-top.c (command_handler): Don't use space_at_cmd_start
7560         unless there is sbrk() on the host. Assign time and space data
7561         to union fields of the appropriate length.
7562
7563 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7564
7565         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7566         x86_64_register_name. Return type changed to 'const char *'.
7567         (x86_64_register_name2nr): Rename to x86_64_register_number.
7568         (x86_64_gdbarch_init): Update to reflect the change.
7569         * x86-64-tdep.h: Ditto.
7570         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7571         (supply_fpregset): Ditto.
7572
7573 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7574
7575         * regcache.h: Update copyright.
7576         (struct regcache, struct gdbarch): Add opaque declarations.
7577         (current_regcache): Declare global variable.
7578         (regcache_read, regcache_write): Add gdbarch parameter.
7579         (regcache_save, regcache_save_no_passthrough)
7580         (regcache_restore, regcache_restore_no_passthrough)
7581         (regcache_dup, regcache_dup_no_passthrough)
7582         (regcache_cpy, regcache_cpy_no_passthrough)
7583         (deprecated_grub_regcache_for_registers)
7584         (deprecated_grub_regcache_for_register_valid)
7585         (regcache_valid_p): Add function declarations.
7586         
7587         * regcache.c: Update copyright.
7588         (regcache_descr_handle): New global variable.
7589         (struct regcache_descr): Define.
7590         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7591         (regcache_descr, xfree_regcache_descr): New functions.
7592         (struct regcache): Define.
7593         (regcache_xmalloc, regcache_xfree): New functions.
7594         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7595         (regcache_dup, regcache_dup_no_passthrough): New functions.
7596         (regcache_valid_p, regcache_read_as_address): New functions.
7597         (deprecated_grub_regcache_for_registers): New function.
7598         (deprecated_grub_regcache_for_register_valid): New function.
7599         (current_regcache): New global variable.
7600         (register_buffer): Add regcache parameter.  Update calls.
7601         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7602         (read_register_gen, write_register_gen): Update register_buffer
7603         call.  Test for legacy_p instead of gdbarch_register_read_p or
7604         gdbarch_register_write_p.
7605         (regcache_collect): Update register_buffer call.
7606         (build_regcache): Rewrite.  Use deprecated grub functions.
7607         (regcache_save, regcache_save_no_passthrough): New functions.
7608         (regcache_restore, regcache_restore_no_passthrough): New
7609         functions.
7610         (_initialize_regcache): Create the regcache_data_handle. Swap
7611         current_regcache global variable.
7612         
7613         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7614         parameter to regcache_read and regcache_write calls.
7615         (sh4_register_read): Ditto.
7616         (sh64_pseudo_register_read): Ditto.
7617         (sh64_register_read): Ditto.
7618         (sh_pseudo_register_write): Ditto.
7619         (sh4_register_write): Ditto.
7620         (sh64_pseudo_register_write): Ditto.
7621         (sh64_register_write): Ditto.
7622
7623         * defs.h (XCALLOC): Define.
7624
7625 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7626
7627         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7628         * m68k-tdep.c (m68k_gdbarch_init): Added.
7629         (m68k_dump_tdep): Added.
7630
7631 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7632
7633         * ada-lang.c (fill_in_ada_prototype): Update comment.
7634
7635 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7636
7637         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7638         MIPS_ABI_LAST.
7639         (mips_abi_string, mips_abi_strings): New.
7640         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7641         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7642         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7643         O32 if no ABI is found.
7644         (mips_dump_tdep): Use mips_abi_strings.
7645         (mips_abi_update): New function.
7646         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7647         ``set mips abi'' and ``show mips abi''.  Check the size of
7648         mips_abi_strings.
7649
7650 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7651
7652         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7653         constant.
7654
7655 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7656
7657         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7658         current frame using only the first stack size adjustment. All
7659         subsequent size adjustments are not considered to be part of
7660         the "static" part of the current frame.
7661         Compute the address of the saved registers relative to the
7662         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7663         in use in this frame.
7664
7665 2002-06-18  Don Howard  <dhoward@redhat.com>
7666  
7667         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7668         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7669         suggesting this solution.
7670
7671 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7672
7673         * config/romp/xm-rtbsd.h: Delete file.
7674         * config/romp/rtbsd.mh: Delete file.
7675
7676 2002-06-18  Keith Seitz  <keiths@redhat.com>
7677
7678         * breakpoint.c (condition_command): Post breakpoint_modify
7679         when a condition is added to an existing breakpoint.
7680         (commands_command): Likewise for commands.
7681         (set_ignore_count): Likewise for ignore counts.
7682         If no tty, do not simply return, still need to send event
7683         notification.
7684         (ignore_command): Only print a newline if the command came
7685         from a tty.
7686         Don't call breakpoints_changed, since this is now properly
7687         handled by set_ignore_count.
7688
7689 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7690
7691         * MAINTAINERS: Note that cris-elf target can be compiled with
7692         -Werror.
7693         * cris-tdep.c (cris_register_name): Make return type constant.
7694         (cris_breakpoint_from_pc): Ditto.
7695
7696 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7697
7698         * frame.h (struct frame_info): Change type of context to 
7699         'struct context'.
7700
7701 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7702
7703         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7704         pointer.
7705         * gdbarch.h, gdbarch.c: Regenerate.
7706         * config/mips/tm-mips.h (mips_register_name): Update.
7707         * i386-tdep.h (i386_register_name): Update.
7708         * mips-tdep.c (mips_register_name): Update
7709         * alpha-tdep.c (alpha_register_name): Update.
7710         * arch-utils.c (legacy_register_name): Update.
7711         * arch-utils.h (legacy_register_name): Update.
7712         * avr-tdep.c (avr_register_name): Update.
7713         * ia64-tdep.c (ia64_register_name): Update.
7714         * i386-tdep.c (i386_register_name): Update.
7715         * sparc-tdep.c (sparc32_register_name): Update.
7716         (sparc64_register_name): Update.
7717         (sparclite_register_name): Update.
7718         (sparclet_register_name): Update.
7719         * sh-tdep.c (sh_generic_register_name): Update.
7720         (sh_sh_register_name): Update.
7721         (sh_sh3_register_name): Update.
7722         (sh_sh3e_register_name): Update.
7723         (sh_sh_dsp_register_name): Update.
7724         (sh_sh3_dsp_register_name): Update.
7725         (sh_sh4_register_name): Update.
7726         (sh_sh64_register_name): Update.
7727         * s390-tdep.c (s390_register_name): Update.
7728         * rs6000-tdep.c (rs6000_register_name): Update.
7729         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7730         (ns32k_register_name_32382): Update.
7731         * d10v-tdep.c (d10v_ts2_register_name): Update.
7732         (d10v_ts3_register_name): Update.
7733         * xstormy16-tdep.c (xstormy16_register_name): Update.
7734         * vax-tdep.c (vax_register_name): Update.
7735         * v850-tdep.c (v850_register_name): Update.
7736         * m68hc11-tdep.c (m68hc11_register_name): Update.
7737         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7738         (am33_register_name): Update.
7739
7740 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7741
7742         * m68k-tdep.c: Reindented.
7743
7744 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7745
7746         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7747         list of predefined types.
7748
7749 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7750
7751         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7752         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7753         REGISTER_CONVERT_TO_RAW): Remove defines.
7754         (i386_register_virtual_type, i386_register_convertible,
7755         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7756         Remove prototypes.
7757         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7758         macros mentioned above.
7759
7760         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7761         (i386lynx_saved_pc_after_call): Remove prototype.
7762         * i386ly-tdep.c: Include "i386-tdep.h".
7763         (i386lynx_saved_pc_after_call): Make static.  Use
7764         read_memory_nobpt instead of read_memory.  Use
7765         read_memory_unsigned_integer instead of read_memory_integer.
7766         (i386lynx_init_abi): New function.
7767         (i386lynx_coff_osabi_sniffer): New function.
7768         (_initialize_i386bsd_tdep): New function.
7769
7770         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7771         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7772         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7773         (i386_fix_call_dummy): Remove prototype.
7774         * i386-tdep.c (i386_call_dummy_words): New variable.
7775         (i386_gdbarch_init): Adjust for removal of the
7776         macros mentioned above.
7777
7778 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7779
7780         * command.h (add_setshow_auto_boolean_cmd): Replace
7781         add_set_auto_boolean_cmd.
7782         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7783         add_set_auto_boolean_cmd.
7784         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7785         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7786         mask-address'' command.
7787         (show_mask_address): Add cmd parameter.
7788         * remote.c (add_packet_config_cmd): Update.  Change type of
7789         set_func and show_func to cmd_sfunc_ftype.
7790         (_initialize_remote): Update `set remote Z-packet'
7791         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7792         (show_remote_protocol_e_packet_cmd): Ditto.
7793         (show_remote_protocol_E_packet_cmd): Ditto.
7794         (show_remote_protocol_P_packet_cmd): Ditto.
7795         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7796         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7797         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7798         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7799         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7800         (show_remote_protocol_Z_packet_cmd): Ditto.
7801         (show_remote_protocol_binary_download_cmd): Ditto.
7802         (show_remote_cmd): Pass NULL to all of above.
7803
7804 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7805
7806         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7807         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7808         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7809         POP_FRAME): Remove defines.
7810         (i386_push_arguments, i386_store_struct_return,
7811         i386_extract_return_value, i386_store_return_value,
7812         i386_extract_struct_value_address, i386_push_dummy_frame,
7813         i386_pop_frame): Renove prototypes.
7814         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7815         macros mentioned above.
7816
7817 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7818
7819         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7820         add_set_boolean_cmd.
7821         (add_setshow_cmd): New function.
7822         * command.h (add_setshow_boolean_cmd): Replace
7823         add_set_boolean_cmd.
7824         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7825         and ``set rdiromatzero''.
7826         * maint.c (_initialize_maint_cmds): Update commented out code.
7827         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7828         * target.c (initialize_targets): Update `set
7829         trust-readonly-sections'.
7830         * remote.c (_initialize_remote): Update `set remotebreak'.
7831
7832 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7833
7834         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7835         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7836         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7837         fit into multi-arch framework.
7838         (i386_breakpoint_from_pc): New function.
7839         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7840         above.
7841
7842         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7843         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7844         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7845         (i386_frameless_function_invocation, i386_frame_num_args,
7846         i386_frame_init_saved_regs): Remove prototypes.
7847         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7848         macros mentioned above.
7849
7850 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7851
7852         * cli/cli-decode.c (set_cmd_cfunc): Update.
7853         (set_cmd_sfunc): Update.
7854         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7855         (set_cmd_sfunc, set_cmd_cfunc): Update.
7856         * cli/cli-decode.h: Update.
7857
7858 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7859
7860         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7861         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7862
7863 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7864
7865         * defs.h (auto_boolean): Declare enum.
7866         * command.h (cmd_auto_boolean): Delete enum.
7867         * mips-tdep.c (mask_address_var): Update.
7868         (mips_mask_address_p): Update.
7869         (show_mask_address): Update.
7870         * remote.c (struct packet_config): Update.
7871         (update_packet_config): Update.
7872         (show_packet_config_cmd): Update.
7873         (packet_ok): Update.
7874         (add_packet_config_cmd): Update.
7875         (_initialize_remote): 
7876         * command.h: Update.
7877         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7878         (do_setshow_command): Update.
7879         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7880         * cli/cli-decode.h: Update.
7881
7882 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7883
7884         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7885         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7886         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7887         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7888         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7889         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7890
7891         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7892         list of DJGPP COFF targets.
7893
7894         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7895         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7896         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7897         (FP0_REGNUM): Remove define.
7898         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7899         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7900         (i386_register_virtual_size): Remove protoype.
7901         * i386-tdep.c (i386_register_virtual_size): Removed.
7902         (i386_extract_return_value, i386_store_return_value): Use
7903         FP0_REGNUM instead of NUM_FREGS to determine whether the
7904         floating-point registers are available.
7905         (i386_gdbarch_init): Tweak FIXME about FPU registers.
7906         Adjust for removal of macros mentioned above.
7907
7908 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7909
7910         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
7911         comments.
7912         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7913         Remove prototypes.
7914         (supply_gregset, fill_gregset): Remove use of register keyword and
7915         remove declaration for regmap.  Use I386_NUM_GREGS instead of
7916         NUM_REGS and NUM_FREGS.
7917         (FPREGSET_FSAVE_OFFSET): Remove.
7918         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7919         NUM_FREGS to determine whether the floating-point registers are
7920         available.
7921
7922         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7923         gnu_store_registers): Replace usage of NUM_GREGS with
7924         I386_NUM_GREGS.
7925
7926         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7927         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7928         usage of NUM_GREGS with I386_NUM_GREGS.
7929
7930         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7931
7932         * i386bsd-nat.c: Include "i386-tdep.h".
7933         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7934         I386_NUM_GREGS.
7935
7936         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7937         and associated comment.  They no longer make any sense, since we
7938         don't use this file anymore on Linux.
7939
7940         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7941         * i386-tdep.c (i386_register_offset, i386_register_size): Use
7942         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7943         elements in these arrays.
7944         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7945         MAX_NUM_REGS.
7946
7947 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7948
7949         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7950         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7951
7952 2002-06-14  Andrew Cagney  <cagney@redhat.com>
7953
7954         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7955         EXTRACT_RETURN_VALUE.
7956         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7957         EXTRACT_STRUCT_VALUE_ADDRESS.
7958         * gdbarch.h, gdbarch.c: Regenerate.
7959         
7960         * values.c (value_being_returned): Handle
7961         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7962         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7963
7964         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
7965         * arm-tdep.c (arm_gdbarch_init): Update.
7966         * avr-tdep.c (avr_gdbarch_init): Update.
7967         * cris-tdep.c (cris_gdbarch_init): Update.
7968         * d10v-tdep.c (d10v_gdbarch_init): Update.
7969         * ia64-tdep.c (ia64_gdbarch_init): Update.
7970         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7971         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7972         * s390-tdep.c (s390_gdbarch_init): Update.
7973         * sh-tdep.c (sh_gdbarch_init): Update.
7974         * s390-tdep.c (s390_gdbarch_init): Update.
7975         * sparc-tdep.c (sparc_gdbarch_init): Update.
7976         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7977         * v850-tdep.c (v850_gdbarch_init): Update.
7978         * vax-tdep.c (vax_gdbarch_init): Update.
7979         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7980         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7981
7982         * config/arc/tm-arc.h: Update.
7983         * config/d30v/tm-d30v.h: Update.
7984         * config/fr30/tm-fr30.h: Update.
7985         * config/h8300/tm-h8300.h: Update.
7986         * config/h8500/tm-h8500.h: Update.
7987         * config/i386/tm-i386.h: Update.
7988         * config/i386/tm-ptx.h: Update.
7989         * config/i386/tm-symmetry.h: Update.
7990         * config/i960/tm-i960.h: Update.
7991         * config/m32r/tm-m32r.h: Update.
7992         * config/m68k/tm-delta68.h: Update.
7993         * config/m68k/tm-linux.h: Update.
7994         * config/m68k/tm-m68k.h: Update.
7995         * config/m88k/tm-m88k.h: Update.
7996         * config/mcore/tm-mcore.h: Update.
7997         * config/mips/tm-mips.h: Update.
7998         * config/mn10200/tm-mn10200.h: Update.
7999         * config/pa/tm-hppa.h: Update.
8000         * config/pa/tm-hppa64.h: Update.
8001         * config/sparc/tm-sp64.h: Update.
8002         * config/sparc/tm-sparc.h: Update.
8003         * config/sparc/tm-sparclet.h: Update.
8004         * config/z8k/tm-z8k.h: Update.
8005
8006 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8007
8008         * Makefile.in (i386_linux_tdep_h): Define.
8009         (i386_tdep_h, i387_tdep_h): Define.
8010         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8011         $(i386_tdep_h) and $(i387_tdep_h).
8012         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8013
8014 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8015
8016         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8017         Already covered by the default.
8018
8019         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8020         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8021         (i386_gdbarch_init): Initialize long_double_format and long_double
8022         bit.
8023
8024         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8025         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8026         Move these to ...
8027         * config/i386/i386sol2.mh: ... here.
8028         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8029         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8030         (SIGCONTEXT_PC_OFFSET): Remove define.
8031         (IN_SIGTRAMP): Remove define.
8032         * i386-sol2-tdep.c: New file.
8033         
8034         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8035         * config/i386/tm-i386nw.h: Removed.
8036
8037         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8038         USE_STRUCT_CONVENTION): Remove defines.
8039         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8040         (get_longjmp_target): Remove prototype.
8041         (IN_SIGTRAMP): Remove define.
8042         (i386bsd_in_sigtramp): Remove prototype.
8043         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8044         function.  Update comment accordingly
8045         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8046         (FRAME_SAVED_PC): Remove define.
8047         (i386bsd_frame_saved_pc): Remove prototype.
8048         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8049         GET_LONGJMP_TARGET): Remove defines.
8050         (get_longjmp_target): Remove prototype.
8051         (IN_SIGTRAMP): Remove define.
8052         (i386bsd_in_sigtramp): Remove prototype.
8053         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8054         function.  Update comment accordingly
8055         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8056         (FRAME_SAVED_PC): Remove define.
8057         (i386bsd_frame_saved_pc): Remove prototype.
8058         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8059         Remove prototype.
8060         (USE_STRUCT_CONVENTION): Remove prototype.
8061         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8062         declaration.
8063         (_initialize_i386bsd_nat): Revise logic to determine some
8064         constants at compile time when compiling a native GDB.  Warn if
8065         things don't match up with what we expect.
8066         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8067         Remove variables.
8068         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8069         to use date stored in `struct gdbarch_tdep'.
8070         (i386bsd_sigcontext_offset): Remove varaible.
8071         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8072         stored in `struct gdbarch_tdep'.
8073         (i386bsd_frame_saved_pc): Make static.
8074         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8075         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8076         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8077         i386fbsd4_sc_pc_offset): New variables.
8078         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8079         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8080         functions.
8081         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8082         functions.
8083         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8084         Modify the value of i386fbsd_sigtramp_start and
8085         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8086         i386fbsd_sigtramp_end.
8087         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8088         function.
8089
8090         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8091         define to i386-linux-tdep.h.
8092         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8093         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8094         defines.
8095         (i386_linux_register_name, i386_linux_register_byte,
8096         i386_linux_register_raw_size): Remove prototypes.
8097         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8098         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8099         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8100         TARGET_WRITE_PC): Remove defines.
8101         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8102         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8103         i386_linux_write_pc): Remove prototypes.
8104         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8105         (get_longjmp_target): Remove prototype.
8106         * i386-linux-tdep.h: New file.
8107         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8108         * i386-linux-tdep.c: Include "i386-tdep.h" and
8109         "i386-linux-tdep.h".
8110         (i386_linux_register_name, i386_linux_register_byte,
8111         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8112         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8113         Make static.
8114         (i386_linux_init_abi): New function.
8115         (_initialize_i386_linux_tdep): New function.
8116
8117         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8118         (i386_saved_pc_after_call): Remove prototype.
8119         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8120         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8121         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8122         (i386_register_name, i386_stab_reg_to_regnum,
8123         i386_dwarf_reg_to_regnum): Remove prototypes.
8124         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8125         SIZEOF_SSE_REGS): Remove defines.
8126         (REGISTER_BYTES): Remove define.
8127         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8128         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8129         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8130         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8131         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8132         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8133         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8134         (get_longjmp_target): Remove prototype.
8135         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8136         (sigtramp_saved_pc): Remove define.
8137         (i386v4_sigtramp_saved_pc): Remove prototype.
8138         * config/i386/tm-go32.h (FRAME_CHAIN,
8139         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8140         (i386go32_frame_saved_pc): Remove prototype.
8141         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8142         (get_longjmp_target): Remove prototype.
8143         * i386-tdep.h: Include "osabi.h".
8144         (enum i386_abi): Removed.
8145         (enum struct_return): New enum.
8146         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8147         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8148         sc_pc_offset members.
8149         (i386_gdbarch_register_os_abi): Remove prototype.
8150         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8151         I386_SSE_NUM_REGS): New defines.
8152         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8153         I386_SSE_SIZEOF_REGS): New defines.
8154         (i386_register_name, i386_register_byte, i386_register_raw_size):
8155         New prototypes.
8156         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8157         (i386bsd_sigtramp_saved_pc): New prototype.
8158         * i386-tdep.c: Don't include "elf-bfd.h".
8159         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8160         i386_frame_chain, i386_saved_pc_after_call): Make static.
8161         (i386_frame_saved_pc): Rewrite to call architecture dependent
8162         function to deal with signal handlers.  Make static.
8163         (i386go32_frame_saved_pc): Removed.
8164         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8165         Removed.
8166         (i386_get_longjmp_target): New function.
8167         (default_struct_convention, pcc_struct_convention,
8168         reg_struct_convention, valid_conventions, struct_convention): New
8169         variables.
8170         (i386_use_struct_convention): New function.
8171         (i386v4_sigtramp_saved_pc): Renamed to
8172         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8173         (i386_pc_in_sigtramp): New function.
8174         (i386_abi_names): Removed.
8175         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8176         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8177         Removed.
8178         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8179         i386_gdbarch_register_os_abi): Removed.
8180         (struct i386_abi_handler): Removed.
8181         (i386_abi_handler_list): Removed.
8182         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8183         functions.
8184         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8185         i386_nw_init_abi): New functions.
8186         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8187         Use set_gdbarch_xxx() calls instead of relying on macros for a
8188         number of calls.
8189         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8190         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8191         Register the various architecture variants defined in this file.
8192
8193 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8194
8195         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8196         (struct main_type): Remove arg_types member.  Update comments for
8197         struct field.
8198         (TYPE_ARG_TYPES): Remove.
8199         (TYPE_FN_FIELD_ARGS): Update.
8200         (smash_to_method_type): Update prototype.
8201
8202         * c-typeprint.c (cp_type_print_method_args): Take method type
8203         instead of argument list.  Use new argument layout.  Simplify.
8204         (c_type_print_args): Use new argument layout.  Simplify.
8205         (c_type_print_base): Update call to cp_type_print_method_args.
8206         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8207         argument; use die->type instead.  Update call to
8208         smash_to_method_type.
8209         (read_structure_scope): Update call to dwarf2_add_member_fn.
8210         * gdbtypes.c (allocate_stub_method): Update comment.
8211         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8212         Use new argument layout.
8213         (check_stub_method): Use new argument layout.  Don't count
8214         void as an argument.
8215         (print_arg_types): Update comments.  Use new argument layout.
8216         (recursive_dump_type): Don't print arg_types member.
8217         * hpread.c (hpread_read_struct_type): Use new argument layout.
8218         (fixup_class_method_type): Likewise.
8219         (hpread_type_lookup): Likewise.
8220         * stabsread.c (read_type): Update calls to read_args and
8221         smash_to_method_type.
8222         (read_args): Use new argument layout.  Simplify.
8223         * valops.c (typecmp): Use new argument layout.  Update parameters
8224         and comments.  Simplify.
8225         (hand_function_call): Use new argument layout.
8226         (search_struct_method): Update call to typecmp.
8227         (find_overload_match): Use new argument layout.
8228
8229 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8230
8231         * NEWS: Mention multithreaded debug support for gdbserver.
8232
8233 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8234
8235         * MAINTAINERS: Mention NEWS.
8236
8237 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8238
8239         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8240         (struct mips_objfile_private, compare_pdr_entries): New.
8241         (non_heuristic_proc_desc): Read the ".pdr" section if it
8242         is present.
8243
8244 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8245
8246         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8247         (arm_debug): New static variable.
8248         (_initialize_arm_tdep): Add ``set debug arm'' command.
8249
8250 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8251
8252         * Makefile.in (sim_arm_h): Define.
8253         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8254         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8255         (arm_register_sim_regno): New function, map an internal REGNUM
8256         onto a simulator register number.
8257         (arm_gdbarch_init): Set register_sim_regno.
8258
8259 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8260
8261         * MAINTAINERS: Add self.
8262
8263 2002-06-11  Jim Blandy  <jimb@redhat.com>
8264
8265         * source.c (source_info): Mention whether the symtab has
8266         information about preprocessor macros.
8267
8268         Call the command `info macro', not `show macro'.
8269         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8270         Fix error message.
8271         (_initialize_macrocmd): Register `info_macro_command' in
8272         `infolist', not `showlist'.
8273
8274 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8275
8276         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8277         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8278         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8279         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8280         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8281         unconditionally.
8282         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8283         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8284         (_initialize_mips_tdep): Remove dead code.
8285         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8286         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8287         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8288         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8289         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8290         MIPS_LAST_FP_ARG_REGNUM): Remove.
8291
8292 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8293
8294         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8295         (unwind_tmp_obstack_free, parse_frame_info)
8296         (update_context, cfi_read_fp, cfi_write_fp)
8297         (cfi_frame_chain, cfi_init_extra_frame_info)
8298         (cfi_virtual_frame_pointer): Use the above function.
8299         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8300
8301 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8302
8303         * v850-tdep.c (v850_type_is_scalar): New function.
8304         (v850_use_struct_convention): Match current gcc implementation
8305         as close as possible.
8306         (v850_push_arguments): Fix stack_offset handling.  Don't write
8307         struct_addr into register.  This is done by v850_store_struct_return.
8308         (v850_extract_return_value): Care for structs.
8309         (v850_store_return_value): Ditto.
8310         (v850_store_struct_return): Actually write address.
8311
8312 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8313
8314         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8315         without debug information too.
8316
8317 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8318
8319         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8320         Make multi-arch pure.
8321         * gdbarch.h, gdbarch.c: Re-generate.
8322         * arm-tdep.c (arm_print_float_info): Update.
8323         * arch-utils.h (default_print_float_info): Update.
8324         * arch-utils.c (default_print_float_info): Update.
8325         * infcmd.c (float_info): Update call.
8326
8327 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8328
8329         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8330         the front of the initialize list.
8331
8332 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8333
8334         * infrun.c (struct inferior_status): Replace fields
8335         selected_frame_address and selected_level with field
8336         selected_frame_id.
8337         (save_inferior_status): Update.  Use get_frame_id.
8338         (struct restore_selected_frame_args): Delete.
8339         (restore_selected_frame): Update.  Use frame_find_by_id.
8340         (restore_inferior_status): Update.
8341
8342         * breakpoint.h (struct breakpoint): Change type of
8343         watchpoint_frame to frame_id.
8344         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8345         call to get_current_frame.
8346         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8347         get_current_frame.
8348         (watchpoint_check): Use frame_find_by_id.
8349
8350         * frame.h (record_selected_frame): Delete declaration.
8351         * stack.c (record_selected_frame): Delete function.
8352         
8353         * frame.h (struct frame_id): Define.
8354         (get_frame_id): Declare.
8355         (frame_find_by_id): Declare.
8356         * frame.c (frame_find_by_id): New function.
8357         (get_frame_id): New function.
8358
8359 2002-06-10  Andrey Volkov <avolkov@transas.com>
8360
8361         * ser-e7kpc.c: Fix duplicated define and call of 
8362         _initialize_ser_e7000pc
8363             
8364 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8365
8366         * signals/signals.c (target_signal_from_host): Fix #ifdef
8367         SIGRTMIN case.
8368         (do_target_signal_to_host): Likewise.
8369
8370 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8371
8372         * mips-tdep.c (mips_find_abi_section): New function.
8373         (mips_gdbarch_init): Call it.
8374
8375 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8376
8377         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8378         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8379         after Andrew's 2002-06-08 gdbarch change.
8380
8381 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8382
8383         * i386-linux-nat.c (suppy_gregset): Don't supply
8384         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8385         register cache.
8386         (fill_gregset): Don't fetch it under the same circumstances.
8387
8388 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8389
8390         * Makefile.in (callback_h): Define.
8391         (remote_sim_h): Update path to remote-sim.h.
8392         (remote-rdp.o): Add $(callback_h).
8393         (remote-sim.o): Use $(callback_h).
8394         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8395         * remote-rdp.c: Include "gdb/callback.h".
8396
8397 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8398
8399         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8400         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8401
8402 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8403
8404         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8405         * rdi-share/serpardr.c: Ditto.
8406         * rdi-share/unixcomm.c: Ditto.
8407         * rdi-share/serdrv.c: Ditto.
8408         * rdi-share/hostchan.h: Ditto.
8409         * rdi-share/hostchan.c: Ditto.
8410         * rdi-share/host.h: Ditto.
8411         * rdi-share/devsw.c: Ditto.
8412
8413         * objfiles.h: Change type of obj_private to void pointer.
8414         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8415         strcmp instead of STREQ, use LONGEST, do not use PTR
8416         * somsolib.c: Ditto.
8417
8418         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8419         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8420         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8421
8422 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8423
8424         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8425         (default_get_saved_register): Delete function.
8426         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8427         generic_unwind_get_saved_register.
8428         * gdbarch.h, gdbarch.c: Re-generate.
8429         
8430 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8431
8432         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8433         generic_func_frame_chain_valid.
8434         * gdbarch.h, gdbarch.c: Re-generate.
8435         * blockframe.c (generic_func_frame_chain_valid): Only check
8436         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8437         passing FP to PC_IN_CALL_DUMMY.
8438         Fix PR gdb/360.
8439
8440 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8441
8442         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8443         (register_gdbarch_data): Initialize init_p.
8444         (gdbarch_data): Initialize data pointer using the init function.
8445         (init_gdbarch_data): Delete function.
8446         (gdbarch_update_p): Update.
8447         (initialize_non_multiarch): Update.
8448         (struct gdbarch): Add field initialized_p.
8449         * gdbarch.h, gdbarch.c: Re-generate.
8450
8451 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8452
8453         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8454         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8455         better do the things actually here.
8456         * x86-64-tdep.c (x86_64_register_name2nr): New.
8457         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8458         (x86_64_gdbarch_init): Respect the above change.
8459         * x86-64-tdep.h (x86_64_register_name2nr)
8460         (x86_64_register_nr2name): Add prototypes.
8461         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8462
8463 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8464
8465         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8466         Delete extra braces and re-indent.
8467         (d10v_store_return_value): Char return values
8468         must be shifted over by one byte in R0.
8469         (d10v_extract_return_value): Delete extra braces, re-indent.
8470
8471 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8472
8473         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8474         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8475         (d10v_integer_to_address): Rewrite.
8476         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8477         the d10v specific functions which take care of converting to the
8478         correct space.
8479
8480 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8481
8482         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8483         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8484
8485 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8486
8487         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8488         includes.
8489         * config/tm-linux.h: Ditto.
8490         * config/alpha/tm-alphalinux.h: Ditto.
8491         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8492         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8493         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8494         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8495         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8496         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8497         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8498         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8499         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8500         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8501         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8502         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8503         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8504         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8505         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8506         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8507         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8508         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8509         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8510         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8511         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8512         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8513         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8514         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8515         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8516         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8517         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8518         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8519         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8520         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8521         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8522         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8523         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8524         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8525         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8526         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8527         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8528
8529 2002-05-04  Aidan Skinner <aidan@velvet.net>
8530
8531         * ada-exp.tab.c: New file
8532         * ada-exp.y: New file
8533         * ada-lang.c: New file
8534         * ada-lang.h: New file
8535         * ada-lex.c: New file
8536         * ada-lex.l: New file
8537         * ada-tasks.c: New file
8538         * ada-typeprint.c: New file
8539         * ada-valprint.c: New file
8540         
8541 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8542
8543         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8544         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8545
8546 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8547
8548         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8549         insetead of ppc-linux-tdep.o.
8550         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8551         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8552
8553 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8554
8555         2002-05-07 Christian Groessler <chris@groessler.org>
8556         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8557         bit register contents for little endian hosts.
8558
8559 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8560
8561         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8562         any maintainer.
8563
8564 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8565
8566         * gdbarch.h: Regenerate.
8567
8568 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8569
8570         * MAINTAINERS: Add everyone to write-after-approval list.
8571
8572 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8573
8574         * stack.c (frame_info): Use frame_register_unwind instead of
8575         saved_regs.  Mention when the SP is on the stack or in a register.
8576
8577         * frame.h (frame_register_unwind_ftype): Define.  Document.
8578         (struct frame_info): Add field register_unwind and
8579         register_unwind_cache.
8580         (frame_register_unwind): Declare.
8581         (generic_unwind_get_saved_register): Declare.
8582
8583         * frame.c (frame_register_unwind): New function.
8584         (generic_unwind_get_saved_register): New function.
8585
8586         * blockframe.c (generic_call_dummy_register_unwind): New function.
8587         (frame_saved_regs_register_unwind): New function.
8588         (set_unwind_by_pc): New function.
8589         (create_new_frame): New function.
8590         (get_prev_frame): New function.
8591
8592 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8593
8594         * a29k-share/: Delete directory.
8595         * remote-vx29k.c: Delete file.
8596
8597 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8598
8599         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8600         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8601
8602 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8603
8604         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8605         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8606         (sparc64nbsd-nat.o)
8607         (sparcnbsd-nat.o)
8608         (sparcnbsd-tdep.o): New dependency lists.
8609         * NEWS: Note new UltraSPARC NetBSD native configuration.
8610         * configure.host (sparc64-*-netbsd*): New host.
8611         * configure.tgt (sparc-*-netbsdelf*)
8612         (sparc-*-netbsd*): Set gdb_target to nbsd.
8613         (sparc64-*-netbsd*): New target.
8614         * sparc64nbsd-nat.c: New file.
8615         * sparcnbsd-nat.c: New file.
8616         * sparcnbsd-tdep.c: New file.
8617         * sparcnbsd-tdep.h: New file.
8618         * config/sparc/nbsd.mt: New file.
8619         * config/sparc/nbsd64.mh: New file.
8620         * config/sparc/nbsd64.mt: New file.
8621         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8622         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8623         (HOST_IPC): Remove.
8624         * config/sparc/nbsdaout.mt: Remove.
8625         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8626         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8627         (HOST_IPC): Remove.
8628         * config/sparc/nbsdelf.mt: Remove.
8629         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8630         sparc-nat.c compatiblity defines.
8631         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8632         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8633         * config/sparc/tm-nbsd64.h: New file.
8634         * config/sparc/tm-nbsdaout.h: Remove.
8635         * config/sparc/xm-nbsd.h: Remove.
8636
8637 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8638
8639         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8640         * sparc-tdep.c: Include osabi.h.
8641         (gdbarch_tdep): Add osabi member.
8642         (_initialize_sparc_tdep): Use gdbarch_register.
8643         (sparc_gdbarch_init): Use generic OS ABI framework.
8644         (sparc_dump_tdep): New function.
8645
8646 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8647
8648         * corefile.c (do_captured_read_memory_integer): Return non-zero
8649         result.
8650         (safe_read_memory_integer): Copy result of memory read when
8651         status is non-zero.  Also, add comments.
8652
8653 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8654
8655         * Makefile.in (ppc_tdep_h): Define.
8656         (ppc-linux-nat.o)
8657         (ppc-linux-tdep.o)
8658         (rs6000-tdep.o): Use $(ppc_tdep_h).
8659         (ppc-sysv-tdep.o)
8660         (ppcnbsd-nat.o)
8661         (ppcnbsd-tdep.o): New dependency lists.
8662         * ppc-tdep.h: Use generic OS ABI framework.
8663         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8664         (ppc_linux_init_abi): New functions.
8665         (ppc_sysv_abi_broken_use_struct_convention)
8666         (ppc_sysv_abi_use_struct_convention)
8667         (ppc_sysv_abi_push_arguments): Move to...
8668         * ppc-sysv-tdep.c: ...here.
8669         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8670         * rs6000-tdep.c (process_note_abi_tag_sections)
8671         (get_elfosabi): Remove.
8672         (rs6000_gdbarch_init): Use generic OS ABI framework.
8673         (rs6000_dump_tdep): New function.
8674         (_initialize_rs6000_tdep): Use gdbarch_register.
8675         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8676         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8677         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8678         of ppc-linux-tdep.o.
8679         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8680         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8681         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8682         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8683         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8684         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8685
8686 2002-05-29  Jim Blandy  <jimb@redhat.com>
8687
8688         * macroscope.c (default_macro_scope): Put `void' in empty argument
8689         list.
8690
8691 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8692
8693         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8694         * arch-utils.c: Include "sim-regno.h".
8695         * gdbarch.sh: Don't include "sim-regno.h".
8696         * gdbarch.h, gdbarch.c: Regenerate.
8697         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8698         here.
8699         * arch-utils.h (legacy_register_sim_regno): To here.
8700         * remote-sim.c (legacy_register_sim_regno): Move function from
8701         here.
8702         * arch-utils.c (legacy_register_sim_regno): To here.
8703
8704 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8705
8706         * sim-regno.h: New file.
8707         * Makefile.in (sim_regno_h): Define.
8708         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8709         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8710         (legacy_register_sim_regno): New function.
8711         (one2one_register_sim_regno): New function.
8712         (gdbsim_fetch_register): Rewrite.
8713         (gdbsim_store_register): Only store a register when
8714         REGISTER_SIM_REGNO is valid.
8715         * d10v-tdep.c: Include "sim-regno.h".
8716         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8717         (d10v_ts3_register_sim_regno): Ditto.
8718         * gdbarch.sh: Include "sim-regno.h".
8719         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8720         * gdbarch.h, gdbarch.c: Regenerate.
8721         * arch-utils.h (default_register_sim_regno): Delete declaration.
8722         * arch-utils.c (default_register_sim_regno): Delete function.
8723
8724 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8725
8726         * ppcnbsd-nat.c: Rewrite.
8727         * ppcnbsd-tdep.c: New file.
8728         * ppcnbsd-tdep.h: New file.
8729         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8730         solib.o, and solib-svr4.o.
8731         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8732         nbsd-tdep.o, and corelow.o.
8733
8734 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8735
8736         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8737         `tr' and `sed'.  Mention that `broken' targets are not expected to
8738         build.
8739
8740 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8741
8742         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8743         Let PC point right after the prologue before looking up symbols.
8744         
8745 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8746
8747         * i386-tdep.c (i386_register_virtual_type): Return 
8748         builtin_type_vec128i for SSE registers.
8749
8750         * gdbtypes.h (builtin_type_vec128i): Declare.
8751
8752         * gdbtypes.c (build_builtin_type_vec128i): New function.
8753         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8754         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8755         (build_gdbtypes): Initialize new builtin vector types.
8756         (_initialize_gdbtypes): Register new vector types with gdbarch.
8757
8758 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8759
8760         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8761         since it has been multi-arch'd.
8762         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8763         Move Alpha and VAX multi-arch news entries to same section
8764         as other multi-arch news.
8765
8766 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8767
8768         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8769         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8770         static.  Rename some register numbers to put them in ns32k-tdep
8771         private namespace.
8772         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8773         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8774         functions.
8775         (_initialize_ns32k_tdep): Use gdbarch_register.
8776         * ns32k-tdep.h: New file.
8777         * ns32knbsd-tdep.c: New file.
8778         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8779         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8780         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8781         REGISTER_BYTES, REGISTER_BYTE): Remove.
8782         * config/ns32k/tm-ns32k.h: New file.
8783         * config/ns32k/tm-umax.h: Remove.
8784
8785 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8786
8787         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8788         ns32k_store_struct_return, ns32k_extract_return_value,
8789         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8790         functions.
8791         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8792         ns32k_saved_pc_after_call.
8793         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8794         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8795         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8796         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8797         ns32k_extract_struct_value_address.
8798
8799 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8800
8801         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8802         ns32k_fix_call_dummy): New.
8803         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8804         ns32k_call_dummy_words.
8805         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8806         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8807         CALL_DUMMY_NARGS): Remove.
8808         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8809
8810 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8811
8812         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8813         ns32k_frame_saved_pc, ns32k_frame_args_address,
8814         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8815         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8816         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8817         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8818         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8819         (BREAKPOINT): Remove..
8820         (FRAME_CHAIN): Define as ns32k_frame_chain.
8821         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8822         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8823         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8824         (FRAME_FIND_SAVED_REGS): Remove.
8825         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8826         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8827         (POP_FRAME): Define as ns32k_pop_frame.
8828
8829 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8830
8831         * ns32k-tdep.c (ns32k_register_byte_32082,
8832         ns32k_register_byte_32382, ns32k_register_raw_size,
8833         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8834         functions.
8835         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8836         ns32k_register_byte_32382.
8837         * config/ns32k/tm-umax.h: Update copyright years.
8838         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8839         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8840         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8841         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8842         (ns32k_get_enter_addr): Fix prototype.
8843
8844 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8845
8846         * ns32k-tdep.c: Update copyright years.
8847         (ns32k_register_name_32082): New function.
8848         (ns32k_register_name_32382): Ditto.
8849         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8850         (REGISTER_NAME): Define as ns32k_register_name_32382.
8851         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8852         (REGISTER_NAME): Define as ns32k_register_name_32082.
8853
8854 2002-05-24  Jim Blandy  <jimb@redhat.com>
8855
8856         * dwarf2read.c (free_line_header): Use xfree, not free.
8857
8858 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
8859
8860         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8861         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8862
8863 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8864
8865         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8866
8867 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8868
8869         From Ross Alexander at NEC Europe:
8870         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8871
8872 2002-05-23  Michael Snyder  <msnyder@redhat.com>
8873
8874         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8875         for input, rather than parse_and_eval_address.  
8876
8877 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8878
8879         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8880         * Makefile.in (sim_d10v_h): Update definition.
8881
8882 2002-05-24  Andrew Cagney  <cagney@redhat.com>
8883
8884         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8885         change `2002-05-22 Michael Snyder' below.
8886         (d10v_push_arguments): Ditto.
8887         (d10v_extract_return_value): Ditto.
8888
8889 2002-05-23  Jim Blandy  <jimb@redhat.com>
8890
8891         * macrotab.c (check_for_redefinition): Don't complain if the new
8892         definition is the same as the previous one.  Take more arguments
8893         to allow the comparison.
8894         (macro_define_object, macro_define_function): Pass more arguments
8895         to check_for_redefinition.
8896
8897 2002-05-22  Michael Snyder  <msnyder@redhat.com>
8898
8899         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8900         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8901         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8902         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8903         Don't bail if return_pc is PC_IN_CALL_DUMMY.
8904         Add a temp variable to save a call (and a memory read).
8905         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8906         if possible (so that PC_IN_CALL_DUMMY will work).
8907
8908 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
8909
8910         * MAINTAINERS: Remove status `OBSOLETE' from v850.
8911
8912 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
8913
8914         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8915         fde->cie_ptr.
8916         (dwarf2_build_frame_info): Corrected handling of eh_frame.
8917         (dwarf2_build_frame_info): Add offset to fde->initial_location 
8918         so that frames of shared libraries are mapped correctly.
8919         (execute_stack_op): Change type of 'result' from ULONGEST to
8920         CORE_ADDR.
8921         
8922 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8923
8924         * config/alpha/tm-nbsd.h: Include solib.h.
8925
8926 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8927
8928         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8929         assumptions about the host's byte order.
8930
8931 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8932
8933         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8934         to dependency list.
8935         * alphanbsd-tdep.c: Include solib-svr4.h.
8936         * shnbsd-tdep.c: Ditto.
8937
8938 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8939
8940         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8941         nbsd-tdep.h to dependency list.
8942         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8943         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8944         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8945         nbsdaout.mh and nbsdelf.mh consistently.
8946         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8947         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8948         nbsdaout.mt and nbsdelf.mh consistently.
8949         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
8950         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8951         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8952         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
8953         a.out shared library stuff from here...
8954         * config/nm-nbsdaout.h: ...to here.
8955         * config/tm-nbsd.h: Remove.
8956         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8957         * config/arm/nbsd.mh: Remove.
8958         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8959         nbsd-tdep.o.
8960         * config/arm/nbsdaout.mh: New file. 
8961         * config/arm/nbsdelf.mh: New file.
8962         * config/arm/nm-nbsdaout.h: New file.
8963         * config/i386/nbsd.mh: Remove.
8964         * config/i386/nbsd.mt: Remove.
8965         * config/i386/nbsdaout.mh: New file.
8966         * config/i386/nbsdaout.mt: New file.
8967         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8968         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8969         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
8970         i386_register_u_addr): Remove.
8971         * config/i386/nm-nbsdaout.h: New file.
8972         * config/i386/nm-nbsdelf.h: Remove.
8973         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8974         (USE_STRUCT_CONVENTION): Remove.
8975         * config/i386/tm-nbsdaout.h: New file.
8976         * config/i386/tm-nbsdelf.h: Remove.
8977         * config/m68k/nbsd.mh: Remove.
8978         * config/m68k/nbsd.mt: Remove.
8979         * config/m68k/nbsdaout.mh: New file.
8980         * config/m68k/nbsdaout.mt: New file. 
8981         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8982         * config/m68k/nm-nbsdaout.h: New file.
8983         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8984         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8985         * config/ns32k/nbsd.mh: Remove.
8986         * config/ns32k/nbsd.mt: Remove. 
8987         * config/ns32k/nbsdaout.mh: New file.
8988         * config/ns32k/nbsdaout.mt: New file.
8989         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
8990         * config/ns32k/nm-nbsdaout.h: New file.
8991         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
8992         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8993         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8994         (SVR4_SHARED_LIBS): Remove.
8995         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8996         * config/sparc/nbsd.mh: Remove.
8997         * config/sparc/nbsd.mt: Remove.
8998         * config/sparc/nbsdaout.mh: New file.
8999         * config/sparc/nbsdaout.mt: New file.
9000         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9001         * config/sparc/nbsdelf.mt: New file.
9002         * config/sparc/nm-nbsdaout.h: New file.   
9003         * config/sparc/nm-nbsdelf.h: Remove.
9004         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9005         * config/sparc/tm-nbsdaout.h: New file.
9006
9007 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9008
9009         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9010         mipsnbsd-tdep.c
9011         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9012
9013 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9014
9015         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9016         shnbsd-nat.c.
9017         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9018
9019 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9020
9021         * NEWS: Note new MIPS NetBSD native configuration. 
9022         * configure.host (mips*-*-netbsd*): New host. 
9023         * configure.tgt (mips*-*-netbsd*): New target. 
9024         * mipsnbsd-nat.c: New file.
9025         * mipsnbsd-tdep.c: New file.
9026         * mipsnbsd-tdep.h: New file.
9027         * config/mips/nbsd.mh: New file.
9028         * config/mips/nbsd.mt: New file.
9029         * config/mips/nm-nbsd.h: New file.
9030         * config/mips/tm-nbsd.h: New file.
9031
9032 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9033
9034         * Makefile.in (SFILES): Add osabi.c.
9035         (COMMON_OBS): Add osabi.o.
9036         (osabi.o): New dependency list.
9037         * osabi.c: New file.
9038         * osabi.h: New file.
9039         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9040
9041         * Makefile.in (alpha_tdep_h): Define and use instead of
9042         alpha-tdep.h.
9043         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9044         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9045         Remove.
9046         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9047         * alpha-tdep.h: Include osabi.h.
9048         (alpha_abi): Remove.
9049         (gdbarch_tdep): Use generic OS ABI framework.
9050         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9051         gdbarch_register_osabi.
9052         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9053         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9054         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9055
9056         * Makefile.in (sh_tdep_h): Add osabi.h.
9057         * sh-tdep.h (sh_osabi): Remove.
9058         (gdbarch_tdep): Use generic OS ABI framework.
9059         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9060         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9061         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9062         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9063
9064         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9065         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9066         gdbarch_register_osabi.
9067         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9068         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9069         (get_elfosabi): Rename to...
9070         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9071         ABI framework support routines.
9072         (arm_gdbarch_init): Use generic OS ABI framework.
9073         (arm_dump_tdep): Likewise.
9074         (_initialize_arm_tdep): Likewise.
9075         * arm-tdep.h: Include osabi.h.
9076         (arm_abi): Remove.
9077         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9078         osabi member.
9079         (arm_gdbarch_register_os_abi): Remove prototype.
9080         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9081         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9082
9083         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9084         * mips-tdep.c: Include osabi.h.
9085         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9086         OS ABI framework.
9087
9088 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9089
9090         * h8300-tdep.c: Fix formatting.
9091
9092 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9093
9094         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9095         printing vector registers.
9096
9097 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9098
9099         From Fernando Nasser:
9100         * remote.c (remote_async_open_1): Re-throw the exception when the
9101         connection fails.
9102         (remote_cisco_open): Ditto.
9103         (remote_open_1): Ditto.
9104
9105 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9106
9107         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9108         (remote_start_remote): Add uiout parameter.  Pass through to
9109         remote_start_remote_dummy.
9110         (remote_open_1): Use catch_exception instead of catch_errors.
9111         (remote_async_open_1): Ditto.
9112         (remote_cisco_open): Ditto.
9113
9114 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9115
9116         * remote.c (remote_start_remote): Replace PTR with void pointer.
9117         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9118         static.
9119
9120 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9121
9122         * gdb_indent.sh: Allow the script to be run in the sim directory.
9123
9124 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9125
9126         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9127         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9128
9129         * corelow.c (core_open): Only call set_gdbarch_from_file if
9130         exec_bfd is NULL.
9131
9132 2002-05-17  Andrey Volkov <avolkov@transas.com>
9133
9134         * h8300-tdep.c: Add support of EXR register
9135         * config/h8300/tm-h8300.h: Ditto. 
9136         
9137 2002-05-17  Andrey Volkov <avolkov@transas.com>
9138
9139         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9140         
9141 2002-05-17  Andrey Volkov <avolkov@transas.com>
9142
9143         * h8300-tdep.c: Change literal regnums to REGNO.
9144         
9145 2002-05-17  Jim Blandy  <jimb@redhat.com>
9146
9147         * NEWS: Note addition of macro support.
9148
9149         Expand preprocessor macros in C expressions.
9150         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9151         (scan_macro_expansion, scanning_macro_expansion,
9152         finished_macro_expansion): New function declarations.
9153         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9154         variable declarations.
9155         * parser-defs.h (expression_context_pc): New declaration.
9156         * parse.c (expression_context_pc): New variable.
9157         (parse_exp_1): Set expression_context_pc, as well as
9158         expression_context_block.
9159         * c-exp.y (yylex): If we're not already reading the result of a
9160         macro expansion, try to macro-expand the next token.  When we're
9161         done scanning a macro expansion, switch back to the mainline text.
9162         Commas and `if's in a macro's expansion don't terminate the input.
9163         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9164         (macro_original_text, macro_expanded_text,
9165         expression_macro_lookup_func, expression_macro_lookup_baton): New
9166         variables.
9167         (scan_macro_expansion, scanning_macro_expansion,
9168         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9169         c_preprocess_and_parse): New functions.
9170         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9171         c_preprocess_and_parse, instead of c_parse.
9172         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9173         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9174
9175 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9176
9177         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9178         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9179         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9180
9181 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9182
9183         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9184
9185 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9186
9187         * Makefile.in (sh_tdep_h): Define and use.
9188         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9189         register enum): Move to...
9190         * * sh-tdep.h: ...here.
9191         * sh-tdep.c: Include sh-tdep.h.
9192         * sh3-rom.c: Likewise.
9193         * shnbsd-tdep.c: Likewise.
9194
9195 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9196
9197         * arm-tdep.c: Spelling fix in comment.
9198
9199 2002-05-16  Jim Blandy  <jimb@redhat.com>
9200
9201         Add commands for manually expanding macros and showing their
9202         definitions.
9203         * macrocmd.c, macroscope.c, macroscope.h: New files.
9204         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9205         (macroscope_h): New variable.
9206         (HFILES_NO_SRCDIR): Add macroscope.h.
9207         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9208         (macroscope.o, macrocmd.o): New rules.
9209
9210         Teach the Dwarf 2 reader to read macro information.
9211         * dwarf2read.c: #include "macrotab.h".
9212         (dwarf_macinfo_buffer): New variable.
9213         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9214         dwarf_macinfo_size.
9215         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9216         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9217         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9218         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9219         dwarf2_macro_spaces_in_definition): New complaints.
9220         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9221         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9222         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9223         the partial symbol table.
9224         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9225         from what's recorded in the partial symbol table.
9226         (read_file_scope): If the compilation unit has a
9227         `DW_AT_macro_info' attribute, read its macro information.
9228         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9229
9230 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9231
9232         Fix PR gdb/546
9233         * ser-tcp.c: Don't include <netinet/udp.h>.
9234
9235 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9236
9237         * MAINTAINERS: Update my email address.
9238
9239 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9240
9241         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9242         include file of the same name.
9243
9244 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9245
9246         * configure.tgt: Mark v850 as multi-arched.
9247         * config/v850/tm-v850.h: Remove file.
9248         * config/v850/v850.mt: Eliminate TM_FILE.
9249
9250 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9251
9252         * v850-tdep.c: Full multi-arch.
9253         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9254         Define GDB_MULTI_ARCH to 2.
9255
9256 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9257
9258         * p-exp.y (current_type): New static variable.
9259         Carries the type of the expression at the position that is parsed.
9260         (push_current_type, pop_current_type): Two new functions. Used
9261         to store/restore current_type in expression on specific tokens.
9262         (search_field): New static variable. Set to one after parsing a point
9263         as at that point only a FIELDNAME token should be searched.
9264         (FIELDNAME): New token. After a point only a token belonging to 
9265         current_type type definition is allowed.
9266         (all over token rules): reset and change current_type according
9267         to rules.
9268         (exp '[' rule): insert implicit array index field if
9269         exp is a pascal string type.
9270
9271 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9272
9273         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9274         frame info.  Use frame_info's saved_regs instead of matching member
9275         in extra_frame_info throughout.
9276         (v850_frame_init_saved_regs): New function.
9277         (v850_init_extra_frame_info): Move most functionality into
9278         v850_frame_init_saved_regs().
9279         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9280         (v850_frame_find_saved_regs): Remove declaration.
9281         (FRAME_FIND_SAVED_REGS): Remove definition.
9282         (v850_frame_init_saved_regs): Add declaration.
9283         (FRAME_INIT_SAVED_REGS): Add definition.
9284
9285 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9286
9287         * v850-tdep.c: Begin multi-arch'ing v850.
9288         (v850_target_architecture_hook): Remove function.
9289         (v850_gdbarch_init): New function.  Add code previously in
9290         v850_target_architecture_hook().
9291         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9292         Call register_gdbarch_init() instead.
9293
9294 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9295
9296         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9297         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9298         (fixup_class_method_type): Likewise.
9299
9300 2002-05-15  Jim Blandy  <jimb@redhat.com>
9301
9302         Add macro structures to GDB's symbol tables.  Nobody puts anything
9303         in them yet.
9304         * symtab.h (struct symtab): New member: `macro_table'.
9305         * buildsym.h (pending_macros): New global variable.
9306         * buildsym.c: #include "macrotab.h".
9307         (buildsym_init): Initialize `pending_macros'.
9308         (end_symtab): If we found macro information while reading a CU's
9309         debugging info, do build a symtab structure for it.  Make the
9310         symtab point to the macro information, and clear the
9311         `pending_macros' pointer which held it while we were reading the
9312         debug info.
9313         (really_free_pendings): Free any pending macro table.
9314         * objfiles.h (struct objfile): New member: `macro_cache'.
9315         * objfiles.c (allocate_objfile): Set allocate and free functions
9316         for the macro cache's objstack.
9317         (free_objfile): Empty the macro cache's obstack.
9318         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9319         set new allocate and free functions for it.
9320         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9321         free functions for the macro cache's objstack.  (Why is this
9322         function building its own objfile?)
9323         * symmisc.c (print_objfile_statistics): Print statistics on the
9324         macro bcache.
9325         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9326
9327 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9328
9329         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9330         (REGISTER_U_ADDR): Delete definition.
9331         (arm_register_u_addr): Delete declaration.
9332
9333 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9334
9335         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9336         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9337
9338 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9339
9340         * regcache.c (register_valid): Revise comments refering to "Not
9341         available" and "unavailable".
9342         * frame.c (frame_register_read): Ditto.
9343         * findvar.c (value_of_register): Ditto.
9344
9345 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9346
9347         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9348         (remote-sim.o): Update dependencies.
9349         (d10v-tdep.o): Specify dependencies.
9350         (sim_d10v_h): Define.
9351
9352 2002-05-14  Jim Blandy  <jimb@redhat.com>
9353
9354         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9355         * macrotab.c (macro_lookup_inclusion, find_definition,
9356         new_macro_table): Same.
9357         
9358         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9359         not `! strcmp ()'.  This is a dubious improvement.
9360         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9361
9362         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9363         although it's not necessary, to avoid a warning.
9364
9365 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9366
9367         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9368         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9369         TYPE_INSTANCE_FLAGS.
9370         (struct main_type): New.
9371         (struct type): Move most members to struct main_type.  Change
9372         cv_type and as_type to new type_chain member.  Add instance_flags.
9373         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9374         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9375         (finish_cv_type): Remove prototype.
9376         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9377         Set TYPE_CHAIN.
9378         (alloc_type_instance): New function.
9379         (smash_type): New function.
9380         (make_pointer_type, make_reference_type, make_function_type)
9381         (smash_to_member_type, smash_to_method_type): Call smash_type.
9382         (make_qualified_type): New function.
9383         (make_type_with_address_space): Call make_qualified_type.
9384         (make_cv_type): Likewise.
9385         (finish_cv_type): Remove unnecessary function.
9386         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9387         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9388         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9389         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9390         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9391         * hpread.c (hpread_read_struct_type): Likewise.
9392         * stabsread.c (read_struct_type): Likewise.
9393
9394 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9395
9396         * configure.tgt: Add a catch all sh* target, for cases like
9397         sh[2,3,4]-elf and sh-hms.
9398
9399 2002-05-14  Keith Seitz  <keiths@redhat.com>
9400
9401         * event-loop.c (create_file_handler): Don't do anything but
9402         update data when we are given a fd which we are already
9403         monitoring.
9404
9405 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9406
9407         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9408         (update_context): Use __func__ in warnings.
9409         
9410 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9411
9412         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9413         and tcp_close to net_open and net_close.
9414         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9415         using UDP if requested.  Don't try to disable Nagle on UDP
9416         sockets.
9417         * remote.c (remote_serial_open): New function.  Warn about UDP.
9418         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9419
9420 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9421
9422         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9423
9424 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9425
9426         * configure.tgt: Remove sh-hms target.
9427         * MAINTAINERS: Don't list sh-hms as a separate target.
9428
9429 2002-05-13  Jim Blandy  <jimb@redhat.com>
9430
9431         Add first preprocessor macro-expansion files.
9432         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9433         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9434         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9435         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9436         (COMMON_OBS): Add macrotab.o, macroexp.o.
9437         (macroexp.o, macrotab.o): New rules.
9438
9439 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9440
9441         * config/m88k/tm-m88k.h: Update copyright.
9442         (m88k_target_write_pc): Declare
9443         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9444         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9445         (SHIFT_INST_REGS): Update definition.
9446         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9447         using old definition of TARGET_WRITE_PC.
9448         * regcache.c (generic_target_write_pc): Delete code handling
9449         NNPC_REGNUM.
9450         * gdbarch.sh (NNPC_REGNUM): Delete.
9451         * gdbarch.h, gdbarch.c: Regenerate.
9452
9453 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9454
9455         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9456         builtin reg number.
9457
9458 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9459
9460         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9461         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9462         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9463         access macros.
9464         * c-typeprint.c (cp_type_print_method_args): Likewise.
9465         (c_type_print_args): Likewise.
9466         * d10v-tdep.c (d10v_push_arguments): Likewise.
9467         (d10v_extract_return_value): Likewise.
9468         * expprint.c (print_subexp): Likewise.
9469         * gdbtypes.c (lookup_primitive_typename): Likewise.
9470         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9471         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9472         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9473         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9474         (TYPE_VECTOR): Likewise.
9475         * hpread.c (hpread_read_struct_type)
9476         (fix_static_member_physnames, fixup_class_method_type)
9477         (hpread_type_lookup): Likewise.
9478         * mdebugread.c (parse_symbol, parse_type): Likewise.
9479         * p-lang.c (is_pascal_string_type): Likewise.
9480         * valops.c (hand_function_call): Likewise.
9481         * x86-64-tdep.c (classify_argument): Likewise.
9482
9483         * hpread.c (hpread_read_function_type)
9484         (hpread_read_doc_function_type): Call replace_type.
9485         * dstread.c (create_new_type): Delete.
9486         (decode_dst_structure, process_dst_function): Call alloc_type.
9487         Use type access macros.
9488
9489 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9490
9491         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9492         the're not supported by the current architecture.
9493         (i387_fill_fxsave): Likewise.
9494
9495 2002-05-12  Fred Fish  <fnf@redhat.com>
9496
9497         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9498         sect_index_xxx members to index the first slot in section_offsets
9499         if all of the section_offsets are zero.
9500
9501 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9502
9503         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9504         checked in with last change.
9505
9506 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9507
9508         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9509         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9510         config.sub.
9511
9512 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9513
9514         * Makefile.in: Update dependencies.
9515
9516 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9517
9518         * language.c (local_hex_string_custom): Simplify.  Do not depend
9519         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9520
9521         * memattr.c (mem_info_command): Replace calls to
9522         longest_local_hex_string and longest_local_hex_string_custom.
9523         * buildsym.c (make_blockvector): Ditto.
9524         * solib.c (info_sharedlibrary_command): Ditto.
9525         * tracepoint.c (tracepoints_info): Ditto.
9526         * symtab.c (print_msymbol_info): Ditto.
9527
9528         * language.c (local_hex_string): Delete.
9529         (local_hex_string_custom): Delete.
9530         (longest_local_hex_string): Rename to local_hex_string.
9531         (longest_local_hex_string_custom): Rename to
9532         local_hex_string_custom.
9533         * language.h (local_hex_string): Change parameter type to LONGEST.
9534         (local_hex_string_custom): Ditto.
9535         (longest_local_hex_string): Delete declaration.
9536         (longest_local_hex_string_custom): Ditto.
9537
9538         * solib.c: Update copyright.
9539         * memattr.c: Update copyright.
9540         
9541 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9542
9543         * arch-utils.h (legacy_register_to_value): Declare.
9544         (legacy_value_to_register): Declare.
9545         (legacy_convert_register_p): Declare.
9546         * arch-utils.c (legacy_register_to_value): New function.
9547         (legacy_value_to_register): New function.
9548         (legacy_convert_register_p): New function.
9549
9550         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9551         (VALUE_TO_REGISTER): Define.
9552         (CONVERT_REGISTER_P): Define.
9553         * gdbarch.h, gdbarch.c: Regenerate.
9554
9555         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9556         VALUE_TO_REGISTER.
9557         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9558         CONVERT_REGISTER_P.
9559
9560 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9561             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9562
9563         * Makefile.in: Update dependencies for valops.c.
9564         * valops.c: Include "gdb_assert.h".
9565         (typecmp): Skip THIS parameter to methods.
9566         (find_method_list): Remove static_memfuncp argument,
9567         update callers.  Check for stub methods.
9568         (find_value_oload_method_list): Don't set *static_memfuncp.
9569         (find_overload_match): Don't check for stub methods.  Assert
9570         that methods are not stubbed.  Handle static methods.
9571         (value_find_oload_method_list): Remove static_memfuncp argument.
9572         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9573         to the argument list for static stub methods.
9574         * value.h (value_find_oload_method_list): Update prototype.
9575
9576 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9577
9578         * arch-utils.h (generic_register_size): Declare.
9579         (generic_register_raw_size, generic_register_virtual_size): Delete
9580         declarations.
9581         * arch-utils.c (generic_register_raw_size): Delete.
9582         (generic_register_size): New function.
9583         (generic_register_virtual_size): Delete.
9584
9585         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9586         default generic_register_size.
9587         * gdbarch.h, gdbarch.c: Re-generate.
9588         
9589         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9590         register_virtual_size.
9591         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9592         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9593
9594 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9595
9596         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9597         * gdbarch.h, gdbarch.c: Regenerate.
9598         * gnu-v3-abi.c: Update copyright.
9599         (vtable_address_point_offset): Update.
9600         (gnuv3_rtti_type): Update.
9601         (gnuv3_baseclass_offset): Update.
9602         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9603         (init_fetch_link_map_offsets): Update.
9604         * remote.c (get_remote_state): Update.
9605         
9606 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9607
9608         * TODO: Remove value_headof/value_from_vtable_info comment.
9609         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9610         * values.c (value_headof, value_from_vtable_info): Delete.
9611         * value.h (value_from_vtable_info): Delete prototype.
9612
9613 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9614
9615         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9616         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9617         $(gdb_regex_h).
9618         (gdb_assert_h): Define.
9619         (gdb_wait_h): Define.
9620         (gdb_regex_h): Define.
9621
9622 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9623
9624         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9625         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9626
9627 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9628
9629         * nbsd-tdep.c: Fix comment.
9630
9631 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9632
9633         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9634         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9635         (nbsd-tdep.o): New dependency list.
9636         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9637         nbsd-tdep.h.
9638         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9639         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9640         * nbsd-tdep.c: New file.
9641         * nbsd-tdep.h: New file.
9642         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9643         nbsd-tdep.h.
9644         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9645         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9646         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9647         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9648
9649 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9650
9651         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9652         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9653         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9654         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9655         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9656         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9657
9658 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9659
9660         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9661         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9662         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9663         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9664         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9665         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9666         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9667
9668 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9669
9670         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9671         fetch_elfcore_registers to...
9672         * i386nbsd-tdep.c: ...here.
9673         (i386nbsd_use_struct_convention): Rename to...
9674         (i386nbsd_aout_use_struct_convention): ...this.
9675         (i386nbsd_supply_reg): New function.
9676         (i386nbsd_fill_reg): New function.
9677         (fetch_core_registers): Use i386nbsd_supply_reg.
9678         (fetch_elfcore_registers): Likewise.
9679         (_initialize_i386nbsd_tdep): New function.
9680         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9681         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9682         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9683         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9684         (i386nbsd_aout_use_struct_convention): ...this.
9685
9686 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9687
9688         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9689         (store_inferior_registers): Use shnbsd_fill_reg.
9690         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9691         sh_nbsd_supply_register): Collapse into...
9692         (shnbsd_supply_reg): ...this.
9693         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9694         (shnbsd_fill_reg): ...this.
9695         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9696         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9697         (fetch_core_registers): Use shnbsd_supply_reg.
9698         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9699         (sh_nbsd_core_fns): Rename to...
9700         (shnbsd_core_fns): ...this.
9701         (sh_nbsd_elfcore_fns): Rename to...
9702         (shnbsd_elfcore_fns): ...this.
9703         (sh_nbsd_init_abi): Rename to...
9704         (shnbsd_init_abi): ...this.
9705         (_initialize_sh_nbsd_tdep): Rename to...
9706         (_initialize_shnbsd_tdep): ...this.
9707         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9708         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9709         sh_nbsd_fill_register): Remove prototypes.
9710         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9711
9712 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9713
9714         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9715         (i387-nat.o): Delete dependency list.
9716         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9717         (x86-64-linux-nat.o): Likewise.
9718         * i387-nat.c: Delete file, moving contents to...
9719         * i387-tdep.c: ...here.
9720         * i387-nat.h: Rename...
9721         * i387-tdep.h: ...to this.
9722         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9723         * i386-linux-nat.c: Likewise.
9724         * i386bsd-nat.c: Likewise.
9725         * i386gnu-nat.c: Likewise.
9726         * i386nbsd-nat.c: Likewise.
9727         * i386v4-nat.c: Likewise.
9728         * x86-64-linux-nat.c: Likewise.
9729         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9730         * config/i386/go32.mh (NATDEPFILES): Likewise.
9731         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9732         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9733         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9734         * config/i386/linux.mh (NATDEPFILES): Likewise.
9735         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9736         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9737         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9738         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9739
9740 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9741
9742         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9743         (alphanbsd-nat.o): Remove dependency list.
9744         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9745         * alphanbsd-nat.c: Delete.  Contents moved to...
9746         * alphanbsd-tdep.c: ...here.
9747         (_initialize_alphanbsd_tdep): Register core functions.
9748         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9749
9750 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9751
9752         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9753         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9754         (alphanbsd-nat.o): Likewise.
9755         (alphabsd-tdep.o): New dependency list.
9756         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9757         (fill_gregset): Use alphabsd_fill_reg.
9758         (supply_fpregset): Use alphabsd_supply_fpreg.
9759         (fill_fpregset): Use alphabsd_fill_fpreg.
9760         (fetch_inferior_registers): Use struct reg and struct fpreg
9761         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9762         and alphabsd_supply_fpreg.
9763         (store_inferior_registers): Use struct reg and struct fpreg
9764         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9765         and alphabsd_fill_fpreg.
9766         * alphabsd-tdep.c: New file.
9767         * alphabsd-tdep.h: New file.
9768         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9769         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9770         alphabsd_supply_fpreg.
9771         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9772         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9773
9774 2002-05-11  Eric Christopher  <echristo@redhat.com>
9775
9776         * mips-tdep.c (mips_double_register_type): Fix thinko.
9777         (mips_single_register_type): Ditto.
9778         * MAINTAINERS: Add self.
9779
9780 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9781
9782         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9783         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9784         right thing on architectures with different endianness and/or
9785         integer sizes.
9786
9787 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9788
9789         From Christian Limpach <chris@Pin.LU>
9790         * configure.in: Change sed expression which comments out
9791         NATDEPFILES to also comment out continuation lines.
9792         * configure: Regenerate.
9793
9794 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9795
9796         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9797         big patch.
9798
9799 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9800
9801         * sh-tdep.c: Include correct file.
9802
9803 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9804
9805         New support for sh64-elf (sh5) target.
9806
9807         * configure.tgt: For sh64-elf target, default to sh-elf.
9808
9809         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9810         (struct gdbarch_tdep): Add new fields for new registers and ABI
9811         info.
9812
9813         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9814         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9815         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9816         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9817         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9818         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9819         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9820         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9821         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9822         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9823         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9824         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9825         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9826         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9827         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9828         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9829         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9830         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9831         sign_extend, sh64_nofp_frame_init_saved_regs,
9832         sh64_init_extra_frame_info, sh64_get_saved_register,
9833         sh64_extract_struct_value_address, sh64_pop_frame,
9834         sh64_push_arguments, sh64_extract_return_value,
9835         sh64_store_return_value, sh64_show_media_regs,
9836         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9837         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9838         sh_sh64_register_virtual_type,
9839         sh_sh64_register_convert_to_virtual,
9840         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9841         sh64_register_read, sh64_pseudo_register_write,
9842         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9843         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9844         sh64_do_pseudo_register, sh_compact_do_registers_info,
9845         sh64_do_registers_info, sh_gdbarch_init): New functions.
9846
9847 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9848
9849         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9850
9851 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
9852
9853         * linespec.c (decode_line_1): Check for a double quote after
9854         a filename correctly.
9855
9856 2002-05-10  Jim Blandy  <jimb@redhat.com>
9857
9858         Properly track the size of the current objfile's .debug_line section.
9859         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9860         (DWARF_LINE_SIZE): New macro.
9861         (dwarf2_build_psymtabs_hard): Record the line section's size in
9862         the partial symbol table.
9863         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9864         symbol table.
9865
9866 2002-05-10  Petr Sorfa  <petrs@caldera.com>
9867
9868         * ia64-tdep.c: Handle breakpoints on L instruction type
9869         in MLX instruction bundle by moving the breakpoint to
9870         the third slot (X instruction type) as L holds only data.
9871
9872 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
9873
9874         * dbxread.c (discarding_local_symbols_complaint): New complaint.
9875         (process_one_symbol): Complain about discarding local symbols
9876         due to a misplaced N_LBRAC entry.
9877
9878 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
9879
9880         From Daniel Berlin <dan@cgsoftware.com>
9881         * linespec.c (find_toplevel_char): '<' and '>' also increase and
9882         decrease the depth we are at, in the case of templates.
9883
9884 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9885
9886         * mips-tdep.c (mips_float_register_type): New function.
9887         (mips_double_register_type): New function.
9888         (mips_print_register): Use them.
9889         (do_fp_register_row): Likewise.
9890
9891 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9892
9893         * signals/signals.c (signals): Remove conditional compilation around
9894         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
9895         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9896
9897 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9898
9899         * remote-rdp.c (remote_rdp_can_run): Remove.
9900
9901 2002-05-09  Tom Tromey  <tromey@redhat.com>
9902
9903         * jv-valprint.c (java_val_print): Handle `char' as a special case
9904         of TYPE_CODE_INT.
9905
9906 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9907
9908         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9909         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9910         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9911         str r(0123),[sp,#nn].
9912         (arm_skip_prologue): Ditto.  Also make disassembly
9913         order-independent by placing it in a loop.
9914
9915 2002-05-06  Michael Snyder  <msnyder@redhat.com>
9916
9917         * stabsread.c (read_type): Add recognition for new attribute:
9918         "@V;" means that an array type is actually a vector.
9919         This is analogous to the vector flag that's been added to dwarf2.
9920
9921 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
9922
9923         * i386-tdep.h (i386_abi): New enum.
9924         (struct gdbarch_tdep): Replace os_ident member with abi.
9925         (i386_gdbarch_register_os_abi): New prototype.
9926         * i386-tdep.c (i386_abi_names): New array.
9927         (process_note_abi_tag_sections): Removed.
9928         (process_note_sections): New function.
9929         (i386_elf_abi_from_note, i386_elf_abi): New functions.
9930         (struct i386_abi_handler): New struct.
9931         (i386_abi_handler_list): New variable.
9932         (i386_gdbarch_register_os_abi): New function.
9933         (i386_gdbarch_init): Adapt for the changes given above.
9934
9935 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
9936
9937         * gregset.h: Say "GNU/Linux".
9938
9939 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
9940
9941         * gdbtypes.c : Add new builtin type for 64 bit vectors.
9942         (build_gdbtypes): Build builtin_type_v2_float.
9943         (_initialize_gdbtypes): Register new builtin type.
9944
9945 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
9946
9947         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9948         (clear_gdbarch_swap): New function.
9949         (initialize_non_multiarch): Call.
9950         (gdbarch_update_p): Before calling init(), swap out and clear the
9951         existing architecture.
9952         * gdbarch.c: Regenerate.
9953
9954 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9955
9956         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9957         alphanbsd-tdep.c.
9958
9959 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9960
9961         * sh-nbsd-nat.c: Rename to...
9962         * shnbsd-nat.c: ...this.
9963         * sh-nbsd-tdep.c: Rename to...
9964         * shnbsd-tdep.c: ...this.
9965         * sh-nbsd-tdep.h: Rename to...
9966         * shnbsd-tdep.h: ...this.
9967         * config/sh/nbsd.mh: Use shnbsd-nat.o.
9968         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9969
9970 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
9971
9972         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9973         concatenation for command help messages.
9974
9975 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9976
9977         * NEWS: Note new sh*-*-netbsdelf* configuration.
9978         * configure.host: Set gdb_host_cpu to sh for all sh*.
9979         (sh*-*-netbsdelf*): New host.
9980         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9981         (sh*-*-netbsdelf*): New target.
9982         * sh-nbsd-nat.c: New file.
9983         * sh-nbsd-tdep.c: New file.
9984         * sh-nbsd-tdep.h: New file.
9985         * config/sh/nbsd.mh: New file.
9986         * config/sh/nbsd.mt: New file.
9987         * config/sh/nm-nbsd.h: New file.
9988         * config/sh/tm-nbsd.h: New file.
9989
9990 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9991
9992         * sh-tdep.c (sh_osabi_names): Declare.
9993         (process_note_abi_tag_sections): New function.
9994         (get_elfosabi): Ditto.
9995         (sh_gdbarch_register_os_abi): Ditto.
9996         (sh_dump_tdep): Ditto.
9997         _initialize_sh_tdep): Use gdbarch_register to register
9998         sh_gdbarch_init and sh_dump_tdep.
9999         * config/sh/tm-sh.h (sh_osabi): Declare.
10000         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10001
10002 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10003
10004         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10005         (thumb_scan_prologue): Ditto.
10006         (arm_find_callers_reg): Ditto.
10007         (arm_frame_chain): Ditto.
10008         (arm_init_extra_frame_info): Ditto.
10009         (arm_frame_saved_pc): Ditto.
10010         (arm_pop_frame): Ditto.
10011         (arm_push_return_address): New function.
10012         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10013         call_dummy_location, call_dummy_breakpoint_offset_p,
10014         call_dummy_breakpoint_offset, call_dummy_p,
10015         call_dummy_stack_adjust_p, call_dummy_words,
10016         sizeof_call_dummy_words, call_dummy_start_offset,
10017         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10018         call_dummy_address, push_return_address and push_dummy_frame for
10019         generic dummy frames.
10020
10021 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10022
10023         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10024         size computation for alloca.
10025         (sh_fp_frame_init_saved_regs): Likewise.
10026
10027 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10028
10029         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10030         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10031         * arm-tdep.c (arm_store_return_value): Use them.
10032         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10033         * remote-rdp.c (remote_rdp_fetch_register): Use
10034         ARM_MAX_REGISTER_RAW_SIZE.
10035         (remote_rdp_store_register): Likewise.
10036
10037 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10038
10039         * dwarf2cfi.c: Code cleanup, removed unused variables,
10040         added default labels to switch {} statements.
10041         * x86-64-tdep.c: Ditto.
10042         * x86-64-linux-nat.c: Ditto.
10043
10044 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10045
10046         * solib.h: Protect against multiple inclusion.
10047
10048 2002-05-06  Jim Blandy  <jimb@redhat.com>
10049
10050         Add first preprocessor macro-expansion files.
10051         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10052         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10053         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10054         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10055         (COMMON_OBS): Add macrotab.o, macroexp.o.
10056         (macroexp.o, macrotab.o): New rules.
10057
10058         Separate the job of reading the line number info statement program
10059         header (...expialidocious) out into its own function.
10060         * dwarf2read.c (struct line_head, struct filenames, struct
10061         directories): Replace with...
10062         (struct line_header): New structure, containing the full
10063         contents of the statement program header, including the
10064         include directory and file name tables.
10065         (read_file_scope): If we have line number info, instead of just
10066         calling dwarf_decode_lines to do all the work, call
10067         dwarf_decode_line_header first to get a `struct line_header'
10068         containing the data in the statement program header, and then
10069         pass that to dwarf_decode_lines, which will pick up where that
10070         left off.  Be sure to clean up the `struct line_header' object.
10071         (dwarf_decode_line_header, free_line_header, add_include_dir,
10072         add_file_name): New functions.
10073         (dwarf_decode_lines): Move all the code to read the statement
10074         program header into dwarf_decode_line_header.  Take the line
10075         header it built as the first argument, instead of the offset to
10076         the compilation unit's line number info.  Use the new `struct
10077         line_header' type instead of the old structures.  No need to do
10078         cleanups here now, since we don't allocate anything.
10079         (dwarf2_statement_list_fits_in_line_number_section,
10080         dwarf2_line_header_too_long): New complaints.
10081
10082 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10083
10084         * gdbtypes.c (init_vector_type): New function.
10085         (build_builtin_type_vec128): Simplify the representation of SIMD
10086         registers.
10087         (build_gdbtypes): Initialize new builtin vector types.
10088         (_initialize_gdbtypes): Register new vector types with gdbarch.
10089         (builtin_type_v4_float, builtin_type_v4_int32,
10090         builtin_type_v8_int16, builtin_type_v16_int8,
10091         builtin_type_v2_int32, builtin_type_v4_int16,
10092         builtin_type_v8_int8): New (renamed) SIMD types.
10093
10094 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10095
10096         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10097         (i387_fill_fxsave): Likewise.
10098
10099 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10100
10101         * alpha-tdep.c (alpha_extract_return_value): Don't use
10102         non-constant array size in prototype.
10103
10104 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10105
10106         From Brian Taylor <briant at model dot com>:
10107         * ui-out.c (ui_out_field_core_addr): Use the function
10108         longest_local_hex_string_custom'to format addresses > 32 bits
10109         wide.
10110
10111         * ui-out.c (ui_out_field_core_addr): Update comment.
10112
10113 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10114
10115         * stack.c (select_and_print_frame): Make static.  Delete the
10116         parameter `level'.
10117         (func_command): Update call.
10118         (select_frame_command): Delete code computing the frame level.
10119         * frame.h (select_and_print_frame): Delete declaration.
10120
10121 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10122
10123         * sparc-tdep.c (sparc_get_saved_register): Comment why
10124         get_prev_frame call is safe.
10125
10126 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10127
10128         * frame.h (select_frame): Delete level parameter.
10129         * stack.c (select_frame): Update.  Use frame_relative_level to
10130         obtain the frame's level.
10131         (select_and_print_frame): Update call.
10132         (select_frame_command): Ditto.
10133         (up_silently_base): Ditto.
10134         (down_silently_base): Ditto.
10135         * ocd.c (ocd_start_remote): Ditto.
10136         * remote-rdp.c (remote_rdp_open): Ditto.
10137         * remote-mips.c (mips_initialize): Ditto.
10138         (common_open): Ditto.
10139         * remote-e7000.c (e7000_start_remote): Ditto.
10140         * m3-nat.c (select_thread): Ditto.
10141         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10142         (child_get_current_exception_event): Ditto.
10143         * varobj.c (varobj_create): Ditto.
10144         (varobj_update): Ditto.
10145         (c_value_of_root): Ditto.
10146         * tracepoint.c (finish_tfind_command): Ditto.
10147         * corelow.c (core_open): Ditto.
10148         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10149         * thread.c (info_threads_command): Ditto.
10150         (switch_to_thread): Ditto.
10151         * infrun.c (normal_stop): Ditto.
10152         (restore_selected_frame): Ditto.
10153         (restore_inferior_status): Ditto.
10154         * breakpoint.c (insert_breakpoints): Ditto.
10155         (watchpoint_check): Ditto.
10156         (bpstat_stop_status): Ditto.
10157         (do_enable_breakpoint): Ditto.
10158         * blockframe.c (flush_cached_frames): Ditto.
10159         (reinit_frame_cache): Ditto.
10160
10161 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10162
10163         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10164         maintainer.
10165
10166 2002-05-04  Jim Blandy  <jimb@redhat.com>
10167
10168         * gdbtypes.c (replace_type): Doc fix.
10169
10170 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10171
10172         * valprint.c (strcat_longest): Delete commented out function.
10173         Update copyright.
10174
10175 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10176
10177         * MAINTAINERS: Mark a29k as deleted.
10178         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10179         Move new configurations to the top.
10180         * configure.tgt: Remove a29k.
10181         * config/a29k/tm-vx29k.h: Delete.
10182         * config/a29k/vx29k.mt: Delete.
10183         * config/a29k/tm-a29k.h: Delete.
10184         * config/a29k/a29k-udi.mt: Delete.
10185         * config/a29k/a29k.mt: Delete.
10186         * a29k-tdep.c: Delete.
10187         * remote-udi.c: Delete.
10188         * remote-mm.c: Delete.
10189         * remote-eb.c: Delete.
10190         * remote-adapt.c: Delete.
10191         * Makefile.in: Remove obsolete code.
10192         * config/s390/s390x.mt: Ditto.
10193         * config/s390/s390.mt: Ditto.
10194         * config/sparc/sparclynx.mh: Ditto.
10195         * config/sparc/linux.mh: Ditto.
10196         * config/pa/hppaosf.mh: Ditto.
10197         * config/pa/hppabsd.mh: Ditto.
10198         * config/ns32k/nbsd.mt: Ditto.
10199         * config/mips/vr5000.mt: Ditto.
10200         * config/m68k/sun3os4.mh: Ditto.
10201         * config/m68k/nbsd.mt: Ditto.
10202         * config/m68k/m68klynx.mh: Ditto.
10203         * config/m32r/m32r.mt: Ditto.
10204         * config/i386/x86-64linux.mt: Ditto.
10205         * config/i386/nbsdelf.mt: Ditto.
10206         * config/i386/nbsd.mt: Ditto.
10207         * config/i386/i386lynx.mh: Ditto.
10208
10209 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10210
10211         * target.c (debug_print_register): New function.  Handle oversize
10212         registers.
10213         (debug_to_fetch_registers): Call.
10214         (debug_to_store_registers): Call.
10215
10216 2002-05-03  Jim Blandy  <jimb@redhat.com>
10217
10218         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10219         (read_type): Doc fix.
10220         * gdbtypes.c (replace_type): Doc fix.
10221
10222         * stabsread.c (multiply_defined_struct): New complaint.
10223         (read_struct_type): If the type we were passed isn't empty, or
10224         incomplete, don't read the new struct type into it; complain,
10225         and return the original type unchanged.  Take a new `type_code'
10226         argument, which is the type code for the new type.
10227         (read_type): Rather than storing the type's type code here, pass
10228         it as an argument to read_struct_type, and let that take care of
10229         storing it.  That way, we don't overwrite the original type code,
10230         so read_struct_type can use it to decide whether we're overwriting
10231         something we shouldn't.
10232         (complain_about_struct_wipeout): New function.
10233
10234 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10235
10236         * gdbarch.sh: Assert that gdbarch is non-NULL.
10237         * gdbarch.c: Regenerate.
10238
10239 2002-05-03  Jason Merrill  <jason@redhat.com>
10240
10241         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10242         and return NULL.
10243
10244 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10245
10246         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10247         (x86_64_dwarf2gdb_regno_map_length),
10248         (x86_64_dwarf2_reg_to_regnum): Added.
10249         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10250         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10251         (_initialize_x86_64_tdep): Synced with the change above.
10252         (x86_64_skip_prologue): Reformulated message.
10253
10254 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10255
10256         * f-exp.y: Also use new prev_lexptr variable
10257         to improve error reporting. Based on Michael Snyder
10258         2002-04-24 dated patch to c-exp.y.
10259         * jv-exp.y: Likewise.
10260         * m2-exp.y: Likewise.
10261
10262 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10263
10264         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10265         we are dealing with vectors.
10266
10267 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10268
10269         * config/m68k/tm-nbsd.h: Obvious fix,
10270         correct machine name.
10271
10272 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10273
10274         * p-typeprint.c (pascal_type_print_base): Add support
10275         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10276
10277 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10278
10279         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10280         for fondamental pascal 'char' type.
10281
10282 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10283
10284         * p-lang.h (is_pascal_string_type): Declaration changed,
10285         new sixth argument of type char ** added.
10286         * p-lang.c (is_pascal_string_type): Implementation
10287         changed. Args length_pos, length_size, string_pos, char_size
10288         can now be NULL. New argument arrayname set to the field
10289         name of the char array. Return value set to char array
10290         field index plus one.
10291         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10292         is_pascal_string_type function.
10293
10294 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10295
10296         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10297         <cagney@redhat.com> change.
10298         * gdbarch.c: Regenerate.
10299
10300 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10301
10302         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10303         before probing for a new one.  Detect errorenous gdbarch_init
10304         functions.
10305         * gdbarch.c: Regenerate.
10306
10307 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10308
10309         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10310         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10311         * config/v850/tm-v850.h: Ditto.  Update copyright.
10312
10313 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10314
10315         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10316         current_gdbarch.
10317
10318 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10319
10320         * arm-tdep.c: Whitespace clean-ups.
10321         (arm_skip_prologue): Fix thinko; two lines
10322         should have been removed as part of 4/24 change.
10323
10324 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10325
10326         * rs6000-tdep.c: Added comment describing how fpscr register
10327         numbers were chosen.
10328
10329 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10330
10331         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10332
10333 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10334
10335         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10336         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10337         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10338
10339 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10340
10341         From Louis Hamilton <hamilton@redhat.com>:
10342         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10343         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10344         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10345         not bfd-private xcoff data, to determine wordsize.
10346         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10347
10348 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10349
10350         GDB 5.2 released from 5.2 branch.
10351
10352 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10353
10354         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10355         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10356         (x86_64_register_info_table): Added comments with register numbers.
10357
10358 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10359
10360         * rs6000-tdep.c (rs6000_extract_return_value,
10361         rs6000_store_return_value): Handle returning vectors.
10362         (rs6000_gdbarch_init): Use
10363         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10364         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10365         New function.
10366         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10367         vectors.
10368         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10369         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10370
10371 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10372
10373         * hpread.c (hpread_psymtab_to_symtab_1,
10374         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10375         with fprintf_unfiltered (gdb_stderr,...).
10376
10377 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10378
10379         * remote-array.c (printf_monitor, write_monitor,
10380         array_insert_breakpoint, array_remove_breakpoint ):
10381         Replace fprintf (stderr,...
10382         with fprintf_unfiltered (gdb_stderr,....
10383         * remote-es.c: Likewise.
10384         * remote-os9k.c: Likewise.
10385         * remote-st.c: Likewise.
10386
10387 2002-04-28  Andreas Schwab  <schwab@suse.de>
10388
10389         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10390         linux-proc.o and gcore.o.
10391
10392 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10393
10394         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10395         code without frame pointers.
10396
10397 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10398
10399         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10400         ON_STACK is needed.
10401
10402 2002-04-26  Ben Elliston  <bje@redhat.com>
10403
10404         * target.c (do_xfer_memory): Correct reference to the new option
10405         "trust-readonly-sections".
10406
10407 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10408
10409         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10410         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10411         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10412         vectors.
10413         (read_array_type): Record the fact that this array type is really a
10414         vector (i.e. are passed in by value).
10415
10416 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10417
10418         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10419         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10420         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10421         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10422         * alpha-linux-tdep.c: Include frame.h.
10423         (alpha_linux_sigcontext_addr): New function.
10424         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10425         alpha_linux_sigcontext_addr.
10426         * alpha-osf1-tdep.c: Include gdbcore.h.
10427         (alpha_osf1_sigcontext_addr): New function.
10428         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10429         alpha_osf1_sigcontext_addr.
10430         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10431         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10432
10433 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10434
10435         * stack.c (selected_frame_level):
10436         (select_frame): Do not set selected_frame_level.
10437         * frame.h (selected_frame_level): Delete declaration.
10438
10439 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10440
10441         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10442         convert_from_func_ptr-addr when AIX / PowerOpen.
10443
10444 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10445
10446         * valops.c (hand_function_call): Call
10447         generic_save_call_dummy_addr.
10448         * frame.h (generic_save_call_dummy_addr): Declare.
10449         * blockframe.c (struct dummy_frame): Add fields call_lo and
10450         call_hi.
10451         (generic_find_dummy_frame): Check for PC in range call_lo to
10452         call_hi instead of entry_point_address.
10453         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10454         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10455         (generic_save_call_dummy_addr): New function.
10456
10457 2002-04-24  David S. Miller  <davem@redhat.com>
10458
10459         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10460         sparc_skip_prologue.
10461         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10462         information to find prologue when possible.
10463         (sparc_prologue_frameless_p): Call examine_prologue directly.
10464         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10465         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10466         second argument.
10467         (SKIP_PROLOGUE): Likewise.
10468
10469 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10470
10471         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10472         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10473         indicate that the condition it was testing is always true.
10474         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10475         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10476         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10477
10478 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10479
10480         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10481         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10482         tdep->jb_pc and tdep->jb_elt_size.
10483         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10484         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10485         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10486         * alpha-nat.c (get_longjmp_target): Remove.
10487         (JB_ELEMENT_SIZE): Ditto.
10488         (JB_PC): Ditto.
10489         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10490         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10491         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10492         to alpha_get_longjmp_target.
10493         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10494         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10495         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10496
10497 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10498
10499         * README: Update to GDB 5.2.
10500
10501 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10502
10503         * gdbarch.sh (LC_ALL): Set to `c'.
10504
10505 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10506
10507         * avr-tdep.c: Ran through gdb_indent.sh.
10508
10509 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10510
10511         * MAINTAINERS: Add myself as AVR maintainer.
10512         * NEWS: Note new target avr.
10513
10514 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10515
10516         * Makefile.in: Add support for AVR target.
10517         * configure.tgt: Add support for AVR target.
10518         * avr-tdep.c: New file
10519         * config/avr/avr.mt: New file.
10520
10521 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10522
10523         * MAINTAINERS: Add myself to write-after-approval.
10524
10525 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10526
10527         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10528         with fprintf_unfiltered (gdb_stderr,....
10529
10530 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10531
10532         Fix PR gdb/508.
10533         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10534
10535 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10536
10537         * p-exp.y: Also use new prev_lexptr variable
10538         to improve error reporting. Based on Michael Snyder
10539         2002-04-24 dated patch to c-exp.y.
10540
10541 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10542
10543         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10544         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10545         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10546         to 0.
10547         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10548         and struct value.
10549         (FUNCTION_START_OFFSET): Remove.
10550         (BREAKPOINT): Ditto.
10551
10552 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10553
10554         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10555         * NEWS: Ditto.
10556
10557 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10558
10559         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10560         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10561         alpha_linux_pc_in_sigtramp.
10562         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10563         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10564         alpha_osf1_pc_in_sigtramp.
10565         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10566         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10567         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10568         alphafbsd_pc_in_sigtramp.
10569         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10570         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10571         alphanbsd_pc_in_sigtramp.
10572         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10573         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10574
10575 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10576
10577         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10578
10579 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10580
10581         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10582         alphanbsd-tdep.c.
10583         (alphanbsd-nat.o): New dependency list.
10584         (alphanbsd-tdep.o): Ditto.
10585         * NEWS: Note new native NetBSD/alpha configuration.
10586         * alphanbsd-nat.c: New file.
10587         * alphanbsd-tdep.c: Ditto.
10588         * configure.host (alpha*-*-netbsd*): New host.
10589         * configure.tgt (alpha*-*-netbsd*): New target.
10590         * config/alpha/nbsd.mh: New file.
10591         * config/alpha/nbsd.mt: Ditto.
10592         * config/alpha/nm-nbsd.h: Ditto.
10593         * config/alpha/tm-nbsd.h: Ditto.
10594
10595 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10596
10597         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10598         (alpha-osf1-tdep.o): New dependency list.
10599         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10600         and skip_sigtramp_frame members.
10601         * alpha-linux-tdep.c: Include gdbcore.h.
10602         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10603         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10604         * alpha-osf1-tdep.c: New file.
10605         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10606         alpha-osf1-dep.c.
10607         (alpha_frame_past_sigtramp_frame): New function.
10608         (alpha_dynamic_sigtramp_offset): Ditto.
10609         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10610         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10611         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10612         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10613         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10614         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10615         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10616         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10617         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10618         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10619         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10620         to find_solib_trampoline_target.
10621         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10622         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10623         (SKIP_TRAMPOLINE_CODE): Remove.
10624         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10625         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10626         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10627         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10628         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10629         (PROC_SIGTRAMP_MAGIC): Ditto.
10630         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10631         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10632         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10633         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10634         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10635
10636 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10637
10638         * NEWS: Note that Alpha targets are now multi-arch.
10639
10640 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10641
10642         * parser-defs.h (prev_lexptr): New external variable.
10643         * parse.c (parse_exp_1): Set prev_lexptr to null before
10644         calling the language-specific parser.
10645         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10646         (yyerror): Use prev_lexptr in error reporting.
10647
10648 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10649
10650         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10651         * gregset.h: If FILL_FPXREGSET is defined, provide
10652         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10653         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10654         is defined, call fill_fpxregset.
10655
10656 2002-04-24  Roland McGrath  <roland@frob.com>
10657
10658         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10659         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10660         (supply_gregset, supply_fpregset): New functions.
10661
10662         * gnu-nat.c (gnu_find_memory_regions): New function.
10663         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10664         (gnu_xfer_memory): Add a cast.
10665
10666 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10667
10668         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10669         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10670         of argument regs ("str r(0123), [r11, #-nn"]).
10671         (arm_skip_prologue): Better handling for frameless functions.
10672         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10673         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10674
10675 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10676
10677         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10678         NUM_PSEUDO_REGS can be used.
10679
10680 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10681
10682         * arch-utils.h: Update copyright.
10683
10684         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10685         * gdbarch.h, gdbarch.c: Re-generate.
10686
10687         * inferior.h (IN_SIGTRAMP): Delete definition.
10688         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10689         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10690
10691         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10692         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10693         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10694         (find_proc_framesize): Ditto.
10695         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10696         (alpha_init_extra_frame_info): Ditto.
10697         * infrun.c (handle_inferior_event): Ditto.
10698         (handle_inferior_event): Ditto.
10699         (check_sigtramp2): Ditto.
10700         * blockframe.c (create_new_frame): Ditto.
10701         (get_prev_frame): Ditto.
10702         * ppc-linux-tdep.c: Update comments.
10703         * i386-linux-tdep.c: Update comments.
10704         * breakpoint.c (bpstat_what): Update comment.
10705
10706 2002-04-24  David S. Miller  <davem@redhat.com>
10707
10708         * i960-tdep.c (register_in_window_p): New function.
10709         (i960_find_saved_register): Use it instead of
10710         REGISTER_IN_WINDOW_P.
10711         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10712
10713         * symtab.h (find_stab_function_addr): Kill extern.
10714         * minsyms.c (find_stab_function_addr): Remove from here...
10715         * dbxread.c: ... to here, and mark it static.
10716
10717 2002-04-20  David S. Miller  <davem@redhat.com>
10718
10719         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10720         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10721
10722 2002-04-21  David S. Miller  <davem@redhat.com>
10723
10724         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10725         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10726         (vx_write_register): Likewise.
10727
10728 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10729
10730         * source.c (is_regular_file): New function.
10731         (openp): Check wether file to open is a regular file
10732         to avoid opening directories.
10733
10734 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10735
10736         * findvar.c (extract_signed_integer): Cast printf argument
10737         to suppress format warning.
10738         (extract_unsigned_integer): Likewise.
10739         * infcmd.c (registers_info): Likewise.
10740         * top.c (get_prompt_1): Likewise.
10741         * valops.c (value_assign): Likewise.
10742         * valprint.c (print_decimal): Likewise.
10743
10744 2002-04-22  H.J. Lu  (hjl@gnu.org)
10745
10746         * c-exp.y (typebase): Support
10747
10748         [long|long long|short] [signed|unsigned] [int|]
10749
10750         and
10751
10752         signed [long|long long|short] int
10753
10754 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10755
10756         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10757         and vax-tdep.h.
10758         * vax-tdep.h: New file.
10759         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10760         Make several routines static.
10761         (vax_get_saved_register): New function.
10762         (vax_gdbarch_init): New function.
10763         (_initialize_vax_tdep): Register vax_gdbarch_init.
10764         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10765         Remove macros now under the control of gdbarch.
10766
10767 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10768
10769         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10770         Some whitespace and coding standards tweaks.
10771
10772 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10773
10774         * vax-tdep.c: Include regcache.h.
10775         (vax_call_dummy_words): New.
10776         (sizeof_vax_call_dummy_words): New.
10777         (vax_fix_call_dummy): New function.
10778         (vax_saved_pc_after_call): Ditto.
10779         * config/vax/tm-vax.h: Don't include regcache.h.
10780         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10781         (CALL_DUMMY): Remove.
10782         (CALL_DUMMY_WORDS): Define.
10783         (SIZEOF_CALL_DUMMY_WORDS): Define.
10784         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10785
10786 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10787
10788         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10789
10790 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10791
10792         * vax-tdep.c (vax_frame_chain): New function.
10793         (vax_push_dummy_frame): Ditto.
10794         (vax_pop_frame): Ditto.
10795         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10796         (FRAMELESS_FUNCTION_INVOCATION): Use
10797         generic_frameless_function_invocation_not.
10798         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10799         (POP_FRAME): Use vax_pop_frame.
10800
10801 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10802
10803         * vax-tdep.c (vax_store_struct_return): New function.
10804         (vax_extract_return_value): Ditto.
10805         (vax_store_return_value): Ditto.
10806         (vax_extract_struct_value_address): Ditto.
10807         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10808         vax_store_struct_return.
10809         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10810         (STORE_RETURN_VALUE): Use vax_store_return_value.
10811         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10812
10813 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10814
10815         * vax-tdep.c (vax_frame_saved_pc): New function.
10816         (vax_frame_args_address_correct): Ditto.
10817         (vax_frame_args_address): Ditto.
10818         (vax_frame_locals_address): Ditto.
10819         (vax_frame_num_args): Move code to be in proximity to
10820         other frame-related functions.
10821         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10822         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10823         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10824         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10825         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10826
10827 2002-04-22  H.J. Lu  (hjl@gnu.org)
10828
10829         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10830         includedir.
10831
10832 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10833
10834         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10835         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10836         (FRAME_INIT_SAVED_REGS): New macro.
10837
10838 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10839
10840         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10841
10842 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10843
10844         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10845         where needed.
10846         (fetch_osf_core_registers): Likewise.
10847         (supply_gregset): Likewise.
10848
10849 2002-04-22  J. Brobecker  <brobecker@gnat.com>
10850
10851         * symfile.h (get_section_index): Define.
10852         * symfile.c (get_section_index): New function.
10853         * mdebugread.c (SC_IS_SBSS): New macro.
10854         (SC_IS_BSS): Return true for the scBss storage class only, as
10855         the scSBss storage class refers to the .sbss section.
10856         (parse_partial_symbols): Discard the symbols which associated
10857         section does not exist.
10858         Make sure to use the .sbss section index for symbols which
10859         storage class is scBss, rather than using the .bss section index.
10860
10861 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10862
10863         * vax-tdep.c: Update copyright years.
10864         (vax_register_name): New function.
10865         (vax_register_byte): Ditto.
10866         (vax_register_raw_size): Ditto.
10867         (vax_register_virtual_size): Ditto.
10868         (vax_register_virtual_type): Ditto.
10869         * config/vax/tm-vax.h: Update copyright years.
10870         (REGISTER_NAMES): Remove.
10871         (REGISTER_NAME): Define.
10872         (REGISTER_BYTE): Use vax_register_byte.
10873         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10874         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10875         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10876
10877 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10878
10879         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10880         declaration
10881         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10882
10883 2002-04-21  David S. Miller  <davem@redhat.com>
10884
10885         * arch-utils.c (generic_prologue_frameless_p): Kill
10886         SKIP_PROLOGUE_FRAMELESS_P code.
10887         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10888         references.
10889         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10890         * arc-tdep.c (arc_prologue_frameless_p): Implement.
10891         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10892         references.
10893         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10894         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10895         (sparc_gdbarch_init): Pass it to
10896         set_gdbarch_prologue_frameless_p.
10897
10898 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10899
10900         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10901         (alphabsd-nat.o): New dependency list.
10902
10903 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10904
10905         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10906         alphafbsd-tdep.c.
10907         (alpha-linux-tdep.o): New dependency list.
10908         (alphafbsd-tdep.o): Likewise.
10909
10910 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10911
10912         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
10913         to here...
10914         * alpha-tdep.c: ...from here.
10915         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10916
10917 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10918
10919         * config/alpha/tm-alpha.h: Move alpha_software_single_step
10920         prototype from here...
10921         * alpha-tdep.h: ...to here.
10922
10923 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10924
10925         * frame.h (selected_frame_level): Document as deprecated.
10926         (frame_relative_level): Declare.
10927         * stack.c (frame_relative_level): New function.
10928         (selected_frame_level): Document as deprecated.
10929         (select_frame): Do not set the selected_frame_level.
10930
10931         * stack.c (frame_info, record_selected_frame): Update.
10932         (frame_command, current_frame_command): Update.
10933         (up_silently_base, up_command, down_silently_base): Update.
10934         (down_command): Update.
10935         * inflow.c (kill_command): Update.
10936         * tracepoint.c (finish_tfind_command): Update.
10937         * corelow.c (core_open): Update.
10938         * thread.c (info_threads_command): Update.
10939         (do_captured_thread_select): Update.
10940         * infcmd.c (finish_command): Update.
10941         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10942
10943 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10944
10945         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10946
10947 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10948
10949         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
10950         type const.
10951
10952 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10953
10954         * alphafbsd-tdep.c: Update copyright years.  Include
10955         alpha-tdep.h.
10956         (alphafbsd_use_struct_convention): Make static.
10957         (alphafbsd_init_abi): New function.
10958         (_initialize_alphafbsd_tdep): New function.
10959         * config/alpha/tm-fbsd.h: Update copyright years.
10960         (USE_STRUCT_CONVENTION): Remove.
10961
10962 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10963
10964         * alpha-tdep.c (alpha_abi_handler): New structure to describe
10965         an Alpha ABI variant.
10966         (alpha_abi_handler_list): Declare.
10967         (alpha_gdbarch_register_os_abi): New function.
10968         (alpha_gdbarch_init): Give registered ABI variant handlers a
10969         chance to tweak the gdbarch once we have set up defaults.
10970         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10971
10972 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10973
10974         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10975         to standard_coerce_float_to_double.
10976         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10977
10978 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10979
10980         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10981         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10982         from gdbarch_tdep rather than a constant.
10983         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10984         the default text address for all Alpha Unix ABIs.
10985         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10986         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10987
10988 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10989
10990         * alpha-tdep.h: New file.  Includes several Alpha target constants
10991         taken from...
10992         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
10993         let gdbarch deal with.
10994         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10995         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10996         to dependency list.
10997         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
10998         Alpha target register names.
10999         * alphabsd-nat.c: Likewise.
11000         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11001         Alpha target register names.  Make serveral routines static.
11002         (alpha_get_saved_register): New function.
11003         (alpha_abi_names): New.
11004         (process_note_abi_tag_sections): New function.
11005         (get_elfosabi): New function.
11006         (alpha_gdbarch_init): New function.
11007         (alpha_dump_tdep): New function.
11008         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11009
11010 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11011
11012         * frame.c (find_saved_register): Delete #ifdef
11013         HAVE_REGISTER_WINDOWS code.
11014         * config/sparc/tm-sparc.h: Update comments.
11015         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11016
11017 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11018
11019         * i960-tdep.c (i960_find_saved_register): New function.
11020         (i960_get_saved_register): New function.
11021         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11022         (i960_get_saved_register): Declare.
11023         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11024
11025 2002-04-20  David S. Miller  <davem@redhat.com>
11026
11027         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11028
11029 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11030
11031         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11032         instead of NUM_PSEUDO_REGS.
11033
11034 2002-04-20  David S. Miller  <davem@redhat.com>
11035
11036         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11037         GDB_MULTI_ARCH_PARTIAL
11038         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11039         define, let tm-sp64.h do it.
11040
11041 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11042
11043         * frame.c (find_saved_register): Avoid a NULL pointer
11044         dereference and actually walk the frame list.
11045
11046 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11047
11048         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11049         sorted in most most-recent-used order.  Document.
11050         * gdbarch.h, gdbarch.c: Regenerate.
11051
11052 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11053
11054         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11055         instead of ->prev.
11056         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11057         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11058         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11059         instead of ->prev.
11060
11061 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11062
11063         Fix PR gdb/471.
11064         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11065         (build_builtin_type_vec128): Ditto.
11066         (append_composite_type_field): Fix calculation of type length in
11067         union case.
11068
11069 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11070
11071         * config/djgpp/README: Update.
11072
11073         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11074         compiler warnings.
11075
11076 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11077
11078         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11079         (alpha_setup_arbitrary_frame): ...to this.
11080         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11081         for alpha_setup_arbitrary_frame.
11082
11083 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11084
11085         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11086         * gdbarch.h, gdbarch.c: Regenerate.
11087
11088         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11089         * target.h (memory_breakpoint_from_pc): Update declaration.
11090         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11091
11092         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11093         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11094         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11095         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11096         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11097         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11098         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11099         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11100         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11101         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11102         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11103         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11104
11105         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11106         const pointer.
11107         * monitor.c (monitor_insert_breakpoint): Ditto.
11108         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11109
11110         * config/mcore/tm-mcore.h: Update copyright.
11111         * mem-break.c: Ditto.
11112         * xstormy16-tdep.c: Ditto.
11113
11114 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11115
11116         * p-exp.y: Add precedence rule for '^' token.
11117         This removes the shift/reduce conflicts.
11118         Remove the comment concerning these shift/reduce conflicts.
11119
11120 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11121
11122         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11123         (registers_powerpc_nofp): New register set for processors
11124         without floating point unit.
11125
11126 2002-04-18  David S. Miller  <davem@redhat.com>
11127
11128         * MAINTAINERS: Add myself to write-after-approval.
11129
11130 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11131
11132         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11133
11134 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11135
11136         * rs6000-tdep.c (frame_initial_stack_address): Use
11137         frame_register_read to read the alloca_reg.
11138
11139 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11140
11141         * frame.c (find_saved_register): Find saved registers in the next
11142         not prev frame.
11143         Fix PR gdb/365.
11144
11145 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11146
11147         * gdbarch.sh (LANG): Set to ``c''.
11148
11149 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11150
11151         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11152
11153 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11154
11155         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11156         Update copyright.
11157
11158         * hpread.c (hpread_get_lntt): Add declaration.
11159         Also fix PR gdb/391.
11160
11161 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11162
11163         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11164         * aclocal.m4, configure: Re-generate.
11165         Fix PR gdb/391.
11166
11167 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11168
11169         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11170         instead of tm_print_insn.
11171
11172 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11173
11174         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11175
11176 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11177
11178         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11179         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11180         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11181
11182 2002-04-12  Don Howard  <dhoward@redhat.com>
11183
11184         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11185         max_user_call_depth.
11186         (init_cmd_lists): Initialize the new value;
11187         * cli/cli-script.c (execute_user_command): Limit the call depth of
11188         user defined commands.  This avoids a core-dump when user commands
11189         are infinitly recursive.
11190
11191 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11192
11193         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11194         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11195         from tdep struct instead of DEFAULT_LR_SAVE.
11196         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11197         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11198         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11199
11200 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11201
11202         * Remote.c: Spelling fix.
11203         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11204         If no symbol found for "sbrk", try "_sbrk".
11205         (make_output_phdrs): Use bfd_section_name.
11206         (gcore_copy_callback): Use bfd_section_name.
11207         * eval.c: Indentation fix-ups.
11208         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11209         in case it gets applied to an address that is already
11210         in the instruction space.
11211         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11212         * symfile.c: Fix indentation, long lines.
11213         * source.c: White space fix-up.
11214
11215 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11216
11217         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11218         * frame.c (frame_register_read): New function.  Return non-zero on
11219         success.
11220         (read_relative_register_raw_bytes_for_frame): Delete.
11221         (read_relative_register_raw_bytes): Delete.
11222         * frame.h (frame_register_read): Declare.
11223         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11224         * sh-tdep.c: Ditto.
11225         * infcmd.c (do_registers_info): Ditto.
11226         * hppa-tdep.c: Ditto.
11227         * rs6000-tdep.c: Ditto.
11228         * h8500-tdep.c: Ditto.
11229         * mips-tdep.c: Ditto.
11230         * h8300-tdep.c: Ditto.
11231         * z8k-tdep.c: Ditto.
11232
11233 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11234
11235         From Jimi X <jimix@watson.ibm.com>:
11236         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11237         64-bit SysV ABI.
11238
11239 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11240
11241         From Jimi X <jimix@watson.ibm.com>:
11242         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11243         bfd info.
11244
11245 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11246
11247         From Jimi X <jimix@watson.ibm.com>:
11248         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11249         register sets for these processor variants.
11250
11251 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11252
11253         * regformats/reg-ppc.dat: Support FPSCR.
11254
11255 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11256
11257         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11258         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11259         Add fpscr as an invalid/unfetchable register.
11260         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11261         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11262         (fill_fpregset): Add support for register fpscr.
11263         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11264         (fill_gregset): Account for the fact that register ``mq'' might
11265         not exist.
11266         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11267         (registers_power): Add fpscr to register set at slot 71.
11268         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11269         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11270
11271 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11272
11273         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11274         * configure: Regenerate.
11275         * config.in: Regenerate.
11276         * acconfig.h: Add define for _SYSCALL32.
11277         * core-sol2.c: Remove #define _SYSCALL32.
11278         * solib-legacy.c: Remove #define _SYSCALL32.
11279
11280 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11281
11282         * stack.c (select_frame): Cleanup internal error message, do not
11283         use %p.
11284
11285 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11286
11287         * stack.c (select_frame): Check that selected_frame and the
11288         specified level are as expected.
11289         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11290         Update copyright.
11291         * frame.h (struct frame_info): Add field `level'.  Update
11292         copyright.
11293         Work-in-progress PR gdb/464.
11294
11295 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11296
11297         * maint.c (maint_print_section_info): Rename print_section_info.
11298         (print_bfd_section_info, print_objfile_section_info): Update.
11299         * inferior.h (struct gdbarch): Add opaque declaration.
11300         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11301         * gdbarch.h: Regenerate.
11302
11303 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11304
11305         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11306         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11307         (kernel_u_size): Added.
11308         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11309         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11310
11311 2002-04-04  Jim Ingham  <jingham@apple.com>
11312
11313        * valarith.c (find_size_for_pointer_math): New function, either returns
11314        the size for a pointer's target, returns 1 for void *, or errors for
11315        incomplete types.
11316        (value_add, value_sub): use find_size_for_pointer_math.
11317
11318 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11319
11320         * linux-low.c (linux_look_up_symbols): New hook.
11321         (linux_target_ops): Add linux_look_up_symbols.
11322         * remote-utils.c (decode_address): New function.
11323         (look_up_one_symbol): New function.
11324         * server.c (handle_query): Call target look_up_symbols hook.
11325         * server.h (look_up_one_symbol): Add prototype.
11326         * target.h (struct target_ops): Add look_up_symbols hook.
11327
11328 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11329
11330         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11331         override FP_REGNUM with frame->fp.  Update copyright.
11332         * parse.c (num_std_regs, std_regs): Delete.
11333         (target_map_name_to_register): Do not search std_regs.  Update
11334         function description.
11335         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11336         declarations.  Update copyright.
11337         Fix PR gdb/251.
11338
11339 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11340
11341         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11342         after the last symbol in a block.
11343
11344 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11345
11346         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11347         is non zero as a found symbol.
11348
11349 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11350
11351         * findvar.c: Include "builtin-regs.h".
11352         (value_of_register): Call value_of_builtin_reg when applicable.
11353         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11354         (target_map_name_to_register): Call
11355         builtin_reg_map_name_to_regnum.
11356         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11357         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11358         (builtin_regs_h): Define.
11359         (builtin-regs.o): New target.
11360         (findvar.o): Add $(builtin_regs_h).
11361         * builtin-regs.c, builtin-regs.h: New files.
11362         * std-regs.c: New file.
11363         Partial fix for PR gdb/251.
11364
11365 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11366
11367         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11368         it's no longer required.
11369
11370 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11371
11372         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11373
11374 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11375
11376         From Jimi X <jimix@watson.ibm.com>:
11377         * rs6000-tdep.c (rs6000_software_single_step): Use
11378         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11379         and size.  Use target_insert_breakpoint() and
11380         target_remove_breakpoint() to insert and remove breakpoints
11381         instead of explicit memory reads and writes.
11382
11383 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11384
11385         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11386         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11387         ELF_OBJECT_FORMAT ifdef.
11388
11389 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11390
11391         From Jimi X <jimix@watson.ibm.com>:
11392         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11393
11394 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11395
11396         From Jimi X <jimix@watson.ibm.com>:
11397         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11398         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11399
11400 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11401
11402         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11403         s/asprintf/xasprintf/.
11404         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11405
11406 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11407
11408         I believe Jeff Law denies responsability for this one:
11409         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11410         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11411         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11412         Work-around for PR gdb/366.
11413
11414 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11415
11416         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11417         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11418         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11419
11420 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11421
11422         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11423         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11424         information.
11425
11426 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11427
11428         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11429         maintainer.
11430
11431 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11432
11433         * README (Reporting Bugs in GDB): Document the bug web page as the
11434         prefered way of submitting bugs.
11435         Fix PR gdb/402.
11436
11437 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11438
11439         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11440         -1.  Update comment.
11441         * gdbarch.h, gdbarch.c: Re-generate.
11442
11443 2002-04-07  Andreas Schwab  <schwab@suse.de>
11444
11445         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11446         buffer to regcache_collect.
11447
11448 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11449
11450         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11451         * gdbarch.c, gdbarch.h: Re-generate.
11452
11453 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11454
11455         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11456         declaration.  Fix -Werror.
11457
11458 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11459
11460         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11461         * gdbarch.c: Regenerate.
11462
11463 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11464
11465         * breakpoint.c (clear_command): Rewrite middle section to
11466         combine two loops with identical control conditions.
11467         Add a cleanup to eliminate a memory leak.
11468         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11469
11470 2002-04-05  H.J. Lu  (hjl@gnu.org)
11471
11472         * solib-svr4.c (bkpt_names): Add "__start".
11473
11474 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11475
11476         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11477         as test for 64 bit target.
11478
11479 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11480
11481         * h8500-tdep.c (h8500_write_fp): Delete function.
11482         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11483         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11484         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11485         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11486         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11487         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11488         (s390_write_fp):
11489         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11490         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11491         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11492         (d10v_write_fp): Delete function.
11493         * inferior.h (write_fp, generic_target_write_fp): Delete
11494         declarations.
11495         * regcache.c (generic_target_write_fp): Delete function.
11496         (write_fp): Delete function.
11497         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11498         * gdbarch.h, gdbarch.c: Regenerate.
11499         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11500         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11501         (sparc64_write_fp): Delete declaration.
11502         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11503         (h8500_write_fp): Delete declaration.
11504
11505 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11506
11507         * sparc-tdep.c (sparc64_write_fp): Delete.
11508         (sparc_push_dummy_frame): Replace write_fp call with code to store
11509         the FP directly.
11510         (sparc_gdbarch_init): Do not initialize write_fp.
11511
11512 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11513
11514         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11515         clause.
11516
11517 2002-03-29  Jim Blandy  <jimb@redhat.com>
11518
11519         * stack.c (get_selected_block): Add new argument `addr_in_block',
11520         used to return the exact code address we used to select the block,
11521         not just the block.
11522         * blockframe.c (get_frame_block, get_current_block): Same.
11523         * frame.h (get_frame_block, get_current_block,
11524         get_selected_block): Update declarations.
11525         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11526         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11527
11528 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11529
11530         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11531         warning message.
11532
11533 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11534
11535         * utils.c (xfullpath): New function.
11536         * defs.h (xfullpath): Add declaration.
11537         * source.c (openp): Use xfullpath in place of gdb_realpath to
11538         avoid resolving the basename part of filenames when the
11539         associated file is a symbolic link. This fixes a potential
11540         inconsistency between the filenames known to GDB and the
11541         filenames it prints in the annotations.
11542         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11543         to be able to match a filename with either the real filename, or
11544         the name of any symbolic link to this file.
11545         (lookup_partial_symtab): Ditto.
11546
11547 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11548
11549         * breakpoint.c: Add support for hardware breakpoints in overlays.
11550         (overlay_events_enabled): New state variable.
11551         (insert_breakpoints): Use overlay_events_enabled to decide
11552         whether to attempt to set a breakpoint at the overlay load addr.
11553         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11554         (remove_breakpoint): Use overlay_events_enabled to decide
11555         whether breakpoints need to be removed from overlay load addr.
11556         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11557         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11558         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11559         disable_overlay_breakpoints): Update overlay_events_enabled.
11560
11561 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11562
11563         * dwarf2read.c (struct function_range): New.
11564         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11565         (check_cu_functions): New.
11566         (read_file_scope): Initialize global function lists.
11567         Call dwarf_decode_line after processing children.
11568         (read_func_scope): Add to global function list.
11569         (dwarf_decode_lines): Call check_cu_functions everywhere
11570         record_line is called.  Call record_line with a linenumber
11571         of 0 to mark sequence ends.
11572
11573 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11574
11575         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11576         change sync with glibc.
11577
11578 2002-04-03  Jim Blandy  <jimb@redhat.com>
11579
11580         * configure.in: Call AC_C_INLINE.
11581         * configure: Regenerated.
11582
11583 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11584
11585         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11586         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11587
11588 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11589
11590         * NEWS: Mention gcore support on FreeBSD/i386.
11591
11592         * fbsd-proc.c: New file.
11593         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11594         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11595
11596         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11597         while statement.
11598
11599 2002-03-29  Jim Blandy  <jimb@redhat.com>
11600
11601         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11602         unescaped newlines in string literals, but newer ones don't.  So
11603         escape them.
11604
11605 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11606             Andrew Cagney <cagney@redhat.com>
11607
11608         * cli/cli-dump.c: New file.  Dump memory to file,
11609         restore file to memory.
11610         * cli/cli-dump.h: New file.
11611         * Makefile.in: Add rules, dependencies for cli-dump.o.
11612         * NEWS: Mention new commands.
11613
11614 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11615
11616         * symfile.c (symbol_file_add): Move test for null symbols to later.
11617
11618 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11619
11620         From veksler at il.ibm.com:
11621         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11622         the xstrduped original path.
11623         Fix PR gdb/417.
11624
11625 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11626
11627         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11628         * infcmd.c (_initialize_infcmd): Ditto.
11629         * language.c (_initialize_language): Ditto.
11630         * symfile.c (_initialize_symfile): Ditto.
11631         * top.c (_init_main): Ditto.
11632         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11633
11634 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11635
11636         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11637         vector registers handling.
11638         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11639         fields of frame data.
11640         (frame_get_saved_regs): Fill in information for AltiVec registers.
11641
11642 2002-03-27  Jim Blandy  <jimb@redhat.com>
11643
11644         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11645         a function; leave this macro here to invoke that function.
11646         (symbol_init_mangled_name): Declaration for that function.
11647         * symtab.c (symbol_init_mangled_name): New function.
11648
11649 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11650
11651         * valarith.c: Replace strerror with safe_strerror.
11652         * tracepoint.c: Ditto.
11653         * lin-lwp.c: Ditto.
11654         * go32-nat.c: Ditto.
11655         * inflow.c: Ditto.
11656         * gnu-nat.c: Ditto.
11657
11658 2002-03-27  Andreas Schwab  <schwab@suse.de>
11659
11660         * event-top.c (command_line_handler): Remove useless if.
11661
11662 2002-03-27  Andreas Jaeger  <aj@suse.de>
11663
11664         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11665         comment.
11666
11667 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11668
11669         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11670         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11671         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11672         (x86_64_linux_dr_get_status, supply_gregset),
11673         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11674         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11675         (x86_64_register_info_table): Add.
11676         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11677         (x86_64_register_raw_size, x86_64_register_virtual_type),
11678         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11679         general x86_64_register_info_table.
11680         (i386_gdbarch_init): gdbarch_register_bytes is now set
11681         dynamicaly during initialization.
11682         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11683         * gdbserver/linux-x86-64-low.c: Ditto.
11684
11685 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11686
11687         * gdbserver/server.c (main): Call target_signal_to_host_p
11688         and target_signal_to_host on signals received from the remote.
11689         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11690         target_signal_from_host on signals sent to the remote.
11691         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11692         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11693
11694 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11695
11696         * signals/signals.c: Include "server.h" in gdbserver build.
11697         (target_signal_from_name): Don't use STREQ.
11698         (_initialize_signals): Likewise.  Don't include function in
11699         gdbserver build.
11700
11701 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11702
11703         * signals.c: Moved to...
11704         * signals/signals.c: Here.
11705         * Makefile (signals.o): Update.
11706
11707 2002-03-26  Jeff Law (law@redhat.com)
11708
11709         * somread.c (som_symtab_read): Remove some commented out code and
11710         updated related comments.  Do not set the minimal symbol table to
11711         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11712         in a dynamic executable.
11713         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11714         where we are unable to find the minimal symbol for the given
11715         PC value.
11716
11717 2002-03-25  Jeff Law (law@redhat.com)
11718
11719         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11720
11721 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11722
11723         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11724
11725 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11726
11727         * command.h: Update copyright.
11728         (struct cmd_list_element): Replace definition with opaque
11729         declaration.
11730         (enum cmd_types): Document that it will eventually be moved to
11731         cli/cli-decode.h
11732         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11733         (MALLOCED_REPLACEMENT): Delete macro.
11734         * Makefile.in (cli_decode_h): Add $(command_h).
11735         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11736         * top.c: Include "cli/cli-decode.h".
11737         * completer.c: Include "cli/cli-decode.h".
11738         * maint.c: Include "cli/cli-decode.h".
11739         * cli/cli-decode.h: Include "command.h".
11740         (enum command_class): Delete.
11741         (enum cmd_types): Comment out.
11742         (enum cmd_auto_boolean): Delete.
11743         (enum var_types): Delete.
11744
11745 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11746
11747         * cli/cli-decode.c: Include "gdb_assert.h".
11748         (add_set_or_show_cmd): New static function.
11749         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11750         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11751         all fields, such as func, from the set command.
11752
11753 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11754
11755         * MAINTAINERS (sh-elf): Change warning flag to -w.
11756
11757 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11758
11759         * defs.h (error): Add printf format attribute.
11760         * thread-db.c (thread_from_lwp): Fix error format string.
11761         * stack.c (parse_frame_specification): Ditto.
11762         * cli/cli-decode.c (undef_cmd_error): Ditto.
11763         * scm-lang.c (scm_lookup_name): Ditto.
11764         * tracepoint.c (trace_error): Ditto.
11765         * remote-utils.c (usage): Ditto.
11766         * remote.c (compare_sections_command): Ditto.
11767         Fix PR gdb/328.
11768
11769 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11770
11771         * gdbtypes.c (append_composite_type_field): New function.
11772         (init_composite_type): New function.
11773         * gdbtypes.h (append_composite_type_field): Declare.
11774         (init_composite_type): Ditto.
11775
11776 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11777
11778         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11779         function.
11780         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11781         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11782         structure returning convention for SYSV ABI case, but not
11783         for GNU/Linux, FreeBSD, or NetBSD.
11784
11785 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11786
11787         * symtab.h (lookup_block_symbol): Add mangled_name argument
11788         to prototype.
11789
11790         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11791         with new mangled_name argument.
11792         * linespec.c (decode_line_1): Likewise.
11793         * valops (value_of_this): Likewise.
11794         * symtab.c (lookup_transparent_type): Likewise.
11795         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11796         (lookup_symbol): If we are given a mangled name, pass it down
11797         to lookup_symbol_aux.
11798         (lookup_block_symbol): If we are given a mangled name to check
11799         against, only return symbols which match it.
11800
11801 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11802
11803         * win32-nat.c (child_create_inferior): Check for proper shell to use
11804         here, in case the user changes it on the fly.
11805         (_initialize_inftarg): Remove shell path considerations.
11806
11807 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11808
11809         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11810         for gdbarch_max_register_raw_size and max_register_virtual_size.
11811         Adjust copyright year.
11812
11813 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11814
11815          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11816          in a function to cover the entire beginning of the function
11817          as well if it does not already.
11818
11819 2002-03-21  Tom Rix  <trix@redhat.com>
11820
11821         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11822         (rs6000_ptrace64): Renamed from ptrace64.
11823
11824 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11825
11826         * gdbserver/remote-utils.c (remote_open): Don't call
11827         getprotobyname, we're all using TCP here so just use
11828         IPPROTO_TCP.
11829         * gdbserver/gdbreplay.c (remote_open): Ditto.
11830
11831 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11832
11833         * regcache.c (_initialize_regcache): No need to call
11834         build_regcache() at this time; it gets called whenever
11835         the gdbarch changes.
11836
11837 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11838
11839         * sparc-nat.c:  Include sys/param.h where possible.
11840
11841 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11842
11843         Fix PR gdb/422.
11844         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11845         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11846         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11847         complex types.
11848         * stabsread.c (rs6000_builtin_type): Likewise.
11849         (read_sun_floating_type): Likewise.
11850
11851 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11852
11853         * stabsread.c (read_member_functions): Remove skip code for duplicate
11854         constructor/destructor methods.  Use standard parsing for these
11855         methods and just do not chain them to the list of methods after
11856         parsing.
11857
11858 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
11859
11860         * coffread.c: Remove redundant static declarations.  Replace
11861         occurrences of `PTR' with `void *'.
11862         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11863         * top.h (quit_cover): Likewise.
11864         * defs.h (catch_errors): Likewise.
11865
11866 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11867
11868         * defs.h (XMALLOC): Define.
11869         * gdb-events.sh (XMALLOC): Delete macro.
11870         * gdb-events.c, gdb-events.h: Regenerate.
11871         * gdbarch.sh (XMALLOC): Delete macro.
11872         * gdbarch.c: Regenerate.
11873         * serial.c (XMALLOC): Delete macro.
11874         * ui-file.c (XMALLOC): Ditto.
11875         * ser-unix.h (XMALLOC): Ditto.
11876         * sh-tdep.c (XMALLOC): Ditto.
11877         * ui-out.c (XMALLOC): Ditto.
11878         * utils.c (XMALLOC): Ditto.
11879         * i386-tdep.c (XMALLOC): Ditto.
11880         * gdb-events.c (XMALLOC): Ditto.
11881         * d10v-tdep.c (XMALLOC): Ditto.
11882         * cli-out.c (XMALLOC): Ditto.
11883
11884         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11885         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11886         * ui-file.c, ui-out.c: Ditto.
11887
11888 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11889
11890         * command.h (struct cmd_list_element): Add field context.
11891         (set_cmd_context, get_cmd_context): Declare.
11892         * cli/cli-decode.h: Ditto.
11893         * cli/cli-decode.c (get_cmd_context): New function.
11894         (set_cmd_context): New function.
11895         (add_cmd): Initialize context.
11896         Part of fixing PR gdb/145 and PR gdb/146.
11897
11898 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11899
11900         * cli/cli-decode.c (cmd_type): New function.
11901         * command.h (cmd_type): Declare.
11902         * infrun.c (set_schedlock_func): Call function cmd_type.
11903         * kod.c (kod_set_os): Call cmd_type.
11904         * cris-tdep.c (cris_version_update): Use function cmd_type.
11905         (cris_mode_update, cris_abi_update): Ditto.
11906
11907         * command.h: (execute_cmd_post_hook): Declare.
11908         (execute_cmd_pre_hook): Declare.
11909         * cli/cli-script.c (clear_hook_in_cleanup): New function.
11910         (execute_cmd_post_hook, execute_cmd_pre_hook): New
11911         functions. Execute pre/post hook while ensuring that afterwords
11912         hook_in is cleared.
11913         * top.c (execute_command): Use execute_cmd_post_hook, and
11914         execute_cmd_pre_hook to execute pre/post commands.
11915         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11916         hook_stop_stub.
11917         (hook_stop_stub): Call execute_cmd_pre_hook.
11918
11919 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11920
11921         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
11922         set'' and this leads to a core dump.  Move xstrdup of
11923         operating_system to after check that it is not NULL.
11924
11925 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11926
11927         * kod.c (kod_set_os): Remove unnecessary check that
11928         ``command->type'' is set_cmd.
11929
11930         * valprint.c (set_input_radix): Use input_radix.
11931         (set_output_radix): Use output_radix.
11932         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11933         isn't reverted.
11934
11935 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
11936
11937         * value.h (struct value): Delete field ``substring_addr''.  Change
11938         aligner fields to force_doublest_align, force_longest_align,
11939         force_core_addr_align and force_pointer_aligh.
11940
11941         * value.h (struct value): Fix typo in above change.
11942
11943 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11944
11945         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11946         to fix internal_error from ``maintenance print architecture''.
11947
11948 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11949
11950         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11951         for gcc versions after gcc-2.8.1.
11952
11953 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11954
11955         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11956         for method resolution.  Restore adjustment of ``this'' pointer after
11957         calling value_struct_elt, which was accidentally removed during the
11958         HP merge.
11959
11960 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
11961
11962         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11963         value_of_register.
11964         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
11965         get_saved_register.
11966         * value.h (value_of_register): Update.
11967
11968 2002-03-14  Richard Henderson  <rth@redhat.com>
11969
11970         * configure.in: Detect declaration for canonicalize_file_name.
11971         * utils.c (canonicalize_file_name): Declare, if needed.
11972         (gdb_realpath): Prefer realpath if available and usable.
11973         * config.in, configure: Rebuild.
11974
11975 2002-03-14  Richard Henderson  <rth@redhat.com>
11976
11977         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11978         a constant array bound.
11979
11980         * MAINTAINERS: Add myself to write-after-approval.
11981
11982 2002-03-14  Michael Snyder  <msnyder@redhat.com>
11983
11984         * symfile.c (syms_from_objfile): Return immediately if no syms.
11985         (symbol_file_add): Return immediately if no syms.
11986         (find_sym_fns): Return immediately if no syms.
11987
11988 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
11989
11990         * gdbserver/remote-util.c (remote_open): Print remote-side's
11991         IP address when remote debugging over the network.
11992
11993 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
11994
11995         * config/sparc/fbsd.mh: Fix copyright.
11996         * config/sparc/fbsd.mt: Likewise.
11997
11998 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
11999
12000         * MAINTAINERS: Fix typo in name of gdb warnings option.
12001         (x86-64): Fix formating so that this can be parsed by awk.
12002
12003 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12004
12005         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12006         * defs.h: Include "gdb/signals.h".
12007         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12008
12009 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12010
12011         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12012         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12013         from x86-64-tdep.h
12014
12015 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12016             Don Howard <dhoward@redhat.com>
12017
12018         * mips-tdep.c (ST0_FR): Define.
12019         (mips2_fp_compat): New function, temporarily disabled.
12020         (mips_read_fp_register_single): New function.
12021         (mips_read_fp_register_double): New function.
12022         (mips_print_register): Use them.
12023         (do_fp_register_row): Likewise.
12024
12025 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12026
12027         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12028         approval''.
12029
12030 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12031
12032         * stabsread.c (read_member_functions): Fix is_stub test for
12033         static member functions, improve comment.
12034
12035 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12036
12037         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12038         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12039         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12040         commands that set boolean values.
12041         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12042         (arm_rdi_resume): Always initialize PC.
12043         (arm_rdi_open): Don't use rslt as a boolean.
12044         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12045         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12046         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12047         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12048
12049 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12050
12051         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12052         * configure: Rebuilt.
12053
12054 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12055
12056         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12057         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12058
12059 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12060
12061         * cli/cli-decode.c (set_cmd_completer): New function.
12062         * command.h (set_cmd_completer): Declare.
12063         * cli/cli-decode.h (set_cmd_completer): Ditto.
12064
12065         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12066         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12067         * win32-nat.c (_initialize_inftarg): Ditto.
12068         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12069         * proc-api.c (_initialize_proc_api): Ditto.
12070         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12071         * source.c (_initialize_source): Ditto.
12072         * exec.c (_initialize_exec): Ditto.
12073         * solib.c (_initialize_solib): Ditto.
12074         * top.c (init_main): Ditto.
12075         * tracepoint.c (_initialize_tracepoint): Ditto.
12076         * symfile.c (_initialize_symfile): Ditto.
12077         * printcmd.c (_initialize_printcmd): Ditto.
12078         * infcmd.c (_initialize_infcmd): Ditto.
12079         * corefile.c (_initialize_core): Ditto.
12080
12081 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12082
12083         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12084
12085 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12086
12087         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12088
12089 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12090
12091         * NEWS: Update headings, 5.2 has branched.
12092
12093 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12094
12095         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12096         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12097         (register_addr, REGISTER_RAW_SIZE): Likewise.
12098         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12099         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12100
12101 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12102
12103         * MAINTAINERS (x86-64): Add myself.
12104         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12105         changed value_ptr -> struct value *
12106
12107 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12108
12109         * configure.host (sparc64-*-freebsd): Add.
12110         * configure.tgt: Likewise.
12111         * config/sparc/fbsd.mh: New file.
12112         * config/sparc/fbsd.mt: Likewise.
12113         * config/sparc/nm-fbsd.h: Likewise.
12114         * config/sparc/tm-fbsd.h: Likewise.
12115
12116 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12117
12118         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12119         regformats/reg-s390x.dat.
12120
12121 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12122
12123         * utils.c: Add FIXME explaining true/false problem.
12124
12125 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12126
12127         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12128
12129 2002-02-28  Michael Chastain  <mec@shout.net>
12130
12131         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12132
12133 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12134
12135         * gdbserver/linux-s390-low.c: New file.
12136         * regformats/reg-s390.dat: New file.
12137         * regformats/reg-s390x.dat: New file.
12138         * gdbserver/configure.srv: Add S/390.
12139         * gdbserver/Makefile.in: Add S/390.
12140         * configure.tgt: Enable gdbserver for S/390.
12141
12142 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12143
12144         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12145         first line of the doc string for "info dos", except at the end of
12146         the sentence, since the short help stops at the first period.
12147
12148 2002-02-28  Jason Merrill  <jason@redhat.com>
12149
12150         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12151
12152 2002-02-27  Fred Fish  <fnf@redhat.com>
12153
12154         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12155         comment (dumy -> dummy).
12156
12157 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12158
12159         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12160
12161 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12162
12163       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12164
12165 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12166
12167         * gdbserver/acconfig.h: New file.
12168         * gdbserver/i387-fp.c: New file.
12169         * gdbserver/i387-fp.h: New file.
12170         * gdbserver/linux-x86-64.c: New file.
12171         * regformats/reg-x86-64.dat: New file.
12172         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12173         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12174         * gdbserver/configure.in: Add support for regsets.
12175         * gdbserver/config.in: Regenerate.
12176         * gdbserver/configure: Regenerate.
12177         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12178         * gdbserver/linux-low.h: New file.
12179         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12180         for regsets.
12181         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12182         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12183         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12184         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12185         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12186         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12187         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12188         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12189         * gdbserver/regcache.c (supply_register): New function.
12190         (supply_register_by_name): New function.
12191         (collect_register): New function.
12192         (collect_register_by_name): New function.
12193
12194 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12195
12196         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12197         (config.status): Add configure.srv dependency.
12198         (server_h): Add config.h dependency.
12199
12200 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12201
12202         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12203         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12204         * gdbserver/configure.srv: Change i386-*-linux* to use
12205         reg-i386-linux.o.
12206
12207 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12208
12209         * x86-64-tdep.c: Re-indent.  Update copyright date.
12210
12211 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12212
12213         From Michal Ludvig <mludvig@suse.cz>:
12214         * x86-64-tdep.c (value.h): Delete.
12215         (gdb_assert.h): Include.
12216         (x86_64_register_convert_to_virtual,
12217         x86_64_register_convert_to_raw ): Add check which lets only
12218         floating-point values to be converted.
12219         (value_push): Delete.
12220         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12221         (i386_gdbarch_init): Number of register_bytes fixed.
12222
12223 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12224
12225         * MAINTAINERS: Add x86-64 target.
12226
12227 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12228
12229         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12230         * osfsolib.c (solib_map_sections): Ditto.
12231         * irix5-nat.c (solib_map_sections): Ditto.
12232         * corelow.c (gdb_check_format): Ditto.
12233         * symfile.c (symfile_bfd_open): Ditto.
12234         * solib.c (solib_map_sections): Ditto.
12235         Fix PR gdb/354.
12236
12237 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12238
12239         * remote.c (_initialize_remote): By default, disable ``e'' and
12240         ``E'' step out-of-range packets.
12241
12242 2002-02-26  Andreas Schwab  <schwab@suse.de>
12243
12244         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12245         m68k_linux_frame_saved_pc.
12246         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12247         in_sigtramp.
12248         (SIGCONTEXT_PC_OFFSET): Remove.
12249         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12250         m68k_linux_sigtramp_saved_pc): New functions.
12251         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12252         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12253         (UCONTEXT_PC_OFFSET): Define.
12254         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12255         non-RT and RT signal trampolines.
12256
12257 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12258
12259         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12260         (TARGET_NBPG, STACK_END_ADDR): Delete
12261         (VARIABLES_INSIDE_BLOCK): Delete.
12262
12263 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12264
12265         * utils.c (perror_with_name): Make string parameter constant.
12266         (print_sys_errmsg): Ditto.
12267         (query): Ditto.
12268         * defs.h (perror_with_name): Update.
12269         (print_sys_errmsg): Update.
12270         (query): Update.
12271
12272 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12273
12274         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12275         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12276
12277 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12278
12279         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12280         if it already matches the current architecture from the exec file.
12281         Include arch-utils.h for gdbarch_info_init prototype.
12282         * Makefile.in (rs6000-nat.o): Update dependencies.
12283
12284 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12285
12286         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12287          list of exported variables.
12288
12289 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12290
12291         * gdbserver/configure.srv: New file.
12292         * gdbserver/configure.in: Use configure.srv instead
12293         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12294         from it.
12295         * gdbserver/configure: Regenerated.
12296         * gdbserver/terminal.h: New file.
12297         * gdbserver/Makefile.in: Update for configure changes.  Remove
12298         more unneeded include paths.
12299
12300 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12301
12302         From wiz at danbala:
12303         * config/sparc/tm-sp64.h: Fix grammar and typos.
12304         Fix PR gdb/287.
12305
12306 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12307
12308         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12309         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12310         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12311         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12312         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12313         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12314         * s390-tdep.c: Ditto.
12315         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12316         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12317         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12318         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12319         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12320         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12321         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12322         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12323         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12324         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12325         Fix PR gdb/378.
12326
12327 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12328
12329         * lin-thread.c: Delete file.
12330         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12331         to gdb_proc_service.h.
12332         * configure: Re-generate.
12333
12334         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12335         * serial.c (serial_open): Delete check for "ocd".
12336         Fix PR gdb/349.
12337
12338         * Makefile.in (linux-thread.o): Delete target.
12339         * linux-thread.c: Delete file.
12340
12341         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12342         renamed SH files to be consistent.
12343
12344         * symtab.c (sort_search_symbols): Use xfree.
12345
12346 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12347
12348         * arm-linux-tdep.c (arm_linux_init_abi): Register
12349         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12350         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12351         definition with undef, since we don't want the sysvr4 definition.
12352         (SKIP_TRAMPOLINE_CODE): Likewise.
12353
12354 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12355
12356         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12357
12358         * configure.in: (AC_CHECK_FUNCS) Added test for
12359         canonicalize_file_name Regenerated.
12360         * config.in, configure: Regenerated.
12361         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12362         defined use canonicalize_file_name.
12363
12364 2002-02-23  Michael Chastain  <mec@shout.net>
12365
12366         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12367
12368 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12369
12370         * README: Remove references to cygnus.com.
12371         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12372         dot com'' form.  Remove references to cygnus.com and sourceware.
12373
12374 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12375
12376         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12377         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12378         1003.1-2001 no longer allows "head -1".
12379         * gdb/Makefile.in (version.c): Likewise.
12380         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12381         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12382         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12383
12384 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12385
12386         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12387         * command.h (cmd_cfunc_eq): Declare.
12388         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12389
12390         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12391         ``struct cmd_list_element *''.
12392         * cli/cli-cmds.c (is_complete_command): Update.  Use
12393         cmd_cfunc_eq.
12394         * top.c (execute_command): Pass the command to
12395         is_complete_command.
12396         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12397
12398 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12399
12400         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12401         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12402         architecture defines.
12403         * s390-tdep.c (s390_gdbarch_init): Likewise.
12404
12405 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12406
12407         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12408         (arm_linux_push_arguments): Likewise.
12409         (arm_linux_init_abi): Register them.  Also register linux-specific
12410         call_dummy_words.
12411         (find_minsym_and_objfile): Use strcmp, not STREQ.
12412         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12413         (arm_linux_call_dummy_words): Delete declaration.
12414         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12415         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12416         declarations.
12417         (LOWEST_PC): Delete.
12418
12419 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12420
12421         * maint.c (print_section_info): Do not prepend `0x' to filepos
12422         output, it will be handled by local_hex_string_custom.
12423
12424 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12425
12426         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12427         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12428         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12429
12430 2002-02-22  Jim Blandy  <jimb@redhat.com>
12431
12432         Indicate that the bcache functions don't change the strings
12433         they're passed.
12434         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12435         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12436
12437 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12438
12439         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12440
12441 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12442
12443         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12444         find the complete path to a loaded DLL.
12445
12446 2002-02-21  Fred Fish  <fnf@redhat.com>
12447
12448         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12449         that marks the end of the range of a function, enter a line number
12450         entry that has a line number of zero and a PC offset that matches
12451         the end of the function.  This starts a range of PC's for which no
12452         line number information is known.
12453         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12454         PC's for which no line number info is found (line number is zero)
12455         then we didn't find any valid line information.
12456         * symtab.h: Document use of zero line number entry.
12457
12458 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12459
12460         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12461         (have_ptrace_getvrregs): Define for run time checks.
12462         (gdb_vrregset_t): New type for Altivec register handling.
12463         (fetch_register, store_register): Fetch/store altivec register
12464         when needed.
12465         (fetch_altivec_register, store_altivec_register): New functions.
12466         (supply_vrregset, fill_vrregset): New functions.
12467         (fetch_altivec_registers, store_altivec_registers): New functions.
12468         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12469         registers as well.
12470
12471 2002-02-21  Jiri Smid  <smid@suse.cz>
12472
12473         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12474
12475 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12476
12477         * Makefile.in (armnbsd-nat.o): Update dependencies.
12478         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12479         supply the integer register set.
12480         (supply_fparegset): New function.  Similar for FPA registers.
12481         (fetch_regs, fetch_fp_regs): Use them.
12482         (fetch_core_registers): Likewise.
12483         (fetch_elfcore_registers): New function.
12484         (arm_netbsd_elfcore_fns): New core-file type specification.
12485         (_initialize_arm_netbsd_nat): Register it.
12486
12487 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12488
12489         * armnbsd-nat.c: Include gdbcore.h.
12490         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12491         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12492         'void' to declaration, to shut up ARI.
12493         (fetch_core_registers): Make static.  Rewrite using supply_register.
12494         (arm_netbsd_core_fns): New core-file type specification.
12495         (_initialize_arm_netbsd_nat): New function.
12496
12497 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12498
12499         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12500         value.
12501
12502 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12503
12504         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12505         fails.
12506
12507 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12508
12509         * jv-exp.y (parse_number): Change type of implicit longs
12510         to builtin_type_uint64.
12511
12512 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12513
12514         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12515         to be an integer instead of a `union wait'.
12516
12517 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12518
12519         * mips-linux-nat.c: Call the operating system GNU/Linux.
12520         * mips-linux-tdep.c: Likewise.
12521         * mips-tdep.c: Likewise.
12522
12523 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12524
12525         Fix PR gdb/265.
12526         * jv-exp.y (parse_number): Handle 64-bit integers.
12527
12528 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12529
12530         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12531         AC_STDC_HEADERS to AC_HEADER_STDC.
12532         * gdbserver/configure: Regenerated.
12533
12534 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12535
12536         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12537         is defined.
12538         * sparc-tdep.c (get_longjmp_target): Likewise.
12539
12540 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12541
12542         * News: Add news about ARM and Multi-arch.  Mention the new target
12543         arm*-*-netbsd*.
12544
12545 2002-02-19  Jim Blandy  <jimb@redhat.com>
12546
12547         * stabsread.c (error_type_complaint): Improve error message.
12548
12549 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12550
12551         * gdbserver/README: Update documentation.
12552         * gdbserver/configure.in: Update configury to match documentation.
12553         * gdbserver/Makefile.in: Likewise.
12554         * gdbserver/configure: Regenerated.
12555         * gdbserver/aclocal.m4: New file, generated by aclocal.
12556         * gdbserver/config.in: New file, generated by autoheader.
12557
12558 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12559
12560         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12561         armnbsd-nat.c.
12562
12563 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12564
12565         * arm-tdep.h (enum arm_float_model): New enum.
12566         (struct gdbarch_tdep): Add fp_model.
12567         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12568         up floating-point conversions until we know the floating-point model
12569         in use by the inferior.  Don't complain about being unable to
12570         determine the ABI of the inferior when we don't have one.
12571         (arm_extract_return_value): Support different floating-point models.
12572         (arm_store_return_value): Likewise.
12573         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12574         ARM_FLOAT_SOFT.
12575         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12576
12577 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12578
12579         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12580         of ``current_gdbarch''.
12581
12582 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12583
12584         * armnbsd-nat.c : ANSIfy all function declarations.
12585         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12586         (fetch_inferior_registers): Re-implement in terms of above.
12587         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12588         (store_inferior_registers): Re-implement in terms of above.
12589
12590 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12591
12592         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12593         kernel.
12594         * arm-linux-tdep.c: Likewise.
12595         * config/arm/tm-linux.h: Likewise.
12596
12597 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12598
12599         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12600         * config/arm/nbsd.mt (TM_FILE): Delete.
12601         * config/arm/tm-nbsd.h: Delete.
12602
12603 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12604
12605         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12606         Initialize CALL_DUMMY_LENGTH.
12607
12608 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12609
12610         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12611         function.
12612         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12613         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12614         defines one thing and that is incorrect for this port.
12615         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12616
12617 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12618
12619         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12620
12621 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12622
12623         * win32-nat.c (display_selector): New function. Displays information
12624         about the information returned by GetThreadSelectorEntry API function.
12625         (display_selectors): New function. Displays the infomation of
12626         the selector given as argument, or of CS, DS ans FS selectors
12627         if no argument is given.
12628         ( _initialize_inftarg): Add "w32" as info prefix command.
12629         Add "info w32 selector" as command calling display_selectors.
12630
12631 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12632
12633         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12634         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12635         if not defined.
12636
12637 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12638
12639         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12640
12641 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12642
12643         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12644         (arm_fix_call_dummy): Call it.
12645         (arm_call_dummy_breakpoint_offset): Delete.
12646         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12647         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12648
12649 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12650
12651         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12652         Default to func_frame_chain_valid.
12653         * gdbarch.h, gdbarch.c: Re-generate.
12654         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12655
12656 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12657
12658         * ppc-linux-nat.c: Update copyright.
12659         (fetch_register, store_register): Add tid parameter, don't compute
12660         tid here.
12661         (fetch_ppc_registers, store_ppc_registers): Add tid
12662         parameter. Pass it along to callees.
12663         (fetch_inferior_registers, store_inferior_registers): Compute tid
12664         here, and pass it to calleed functions.
12665         (fill_gregset, supply_fpregset): Clean up formatting.
12666
12667 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12668
12669         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12670         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12671
12672 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12673
12674         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12675         * gdbarch.c gdbarch.h: Regenerate.
12676         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12677         function.
12678         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12679         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12680         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12681
12682         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12683         * arm-tdep.c (arm_get_longjmp_target): New function.
12684         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12685         this to a positive value register arm_get_longjmp_target as the
12686         longjmp handler.
12687         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12688         (arm_linux_init_abi): Set up longjmp description in tdep.
12689         * armnbsd-nat.c (get_longjmp_target): Delete.
12690         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12691         description in tdep.
12692         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12693         (get_longjmp_target): Delete declaration.
12694         (GET_LONGJMP_TARGET): Delete.
12695         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12696         (GET_LONGJMP_TARGET): Delete.
12697
12698 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12699
12700         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12701         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12702         of ``current_gdbarch''.
12703
12704 2002-02-17  Tom Tromey  <tromey@redhat.com>
12705
12706         * cli/cli-cmds.c (compare_strings): New function.
12707         (complete_command): Only print each unique item once.
12708         * completer.h (complete_line): Declare.
12709         * completer.c (complete_line): New function.
12710         (line_completion_function): Use it.
12711
12712 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12713
12714         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12715         * gdbarch.h, gdbarch.c: Re-generate.
12716
12717 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12718
12719         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12720
12721 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12722
12723         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12724         * valops.c (value_arg_coerce): Don't take the address of a reference
12725         to convert an argument to a reference.
12726
12727 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12728
12729         * win32-nat.c (get_image_name): New function.
12730         (handle_load_dll): Use get_image_name function.
12731         (get_child_debug_event): Avoid registering debug events until possibly
12732         execed process is started.
12733         (child_create_inferior): Allow invocation via shell so that command
12734         line redirection, etc.  works ok.
12735         (_initialize_inftarg): Add new command: "set shell" to control whether
12736         a shell is used to start a process.
12737
12738 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12739
12740         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12741         instead of find_register_by_number.
12742         (cannot_store_register): Likewise.
12743
12744 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12745
12746         * dwarf2read.c: Replace fprintf (stderr, ...) by
12747         fprintf_unfiltered (gdb_stderr, ...).
12748
12749 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12750
12751         * gdbserver/gdbserver.1: Document --attach.
12752
12753 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12754
12755         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12756         descriptions.
12757         * arm-tdep.c (arm_default_arm_le_breakpoint)
12758         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12759         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12760         traditional breakpoint defines.
12761         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12762         (arm_gdbarch_init): Initialize new breakpoint variables.
12763         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12764         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12765         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12766         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12767         code out to ...
12768         (arm_netbsd_init_abi_common): ... here; new function.
12769         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12770         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12771         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12772         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12773
12774 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12775
12776         * arm-tdep.h (enum arm_abi): New enum.
12777         (struct gdbarch_tdep): New structure.
12778         (LOWEST_PC): Provide a default.
12779         (arm_gdbarch_register_os_abi): Declare new function.
12780         * arm-tdep.c (arm_abi_names): New array.
12781         (process_note_abi_tag_sections): New function.
12782         (get_elfosabi): New function.
12783         (arm_gdbarch_register_os_abi): New function.
12784         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12785         support for that ABI has been built in, then call the appropriate
12786         configuration routine.  Use gdbarch_num_regs() to get the number
12787         of registers.
12788         (arm_dump_tdep): New function.
12789         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12790         place-holder functions.
12791         (_initialize_arm_tdep): Register them.
12792         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12793
12794         * armnbsd-tdep.c: New file.
12795         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12796         * config/arm/nbsd.mt (TDEPFILES): Add it.
12797         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12798
12799         * armnbsd-nat.c: Include regcache.h.
12800         * Makefile.in (armnbsd-nat.o): Update dependency list.
12801
12802         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12803
12804 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12805
12806         * gdbserver/Makefile.in: Fix typos in target rules.
12807
12808 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12809
12810         Fix part of PR gdb/267.
12811         * linespec.c (find_methods): Handle constructors specially for now.
12812
12813 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12814
12815         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12816         handling.
12817         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12818         standard_coerce_float_to_double().
12819
12820 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12821
12822         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12823         GDBINIT_FILENAME.
12824
12825 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12826
12827         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12828         find_variant_by_name, because it confuses the multiarch
12829         framework. Return NULL if there isn't an architecture with the
12830         user supplied name, instead of forcing a different one without
12831         recording the change with the multiarch machinery.
12832         (find_variant_by_name): Delete.
12833
12834 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12835
12836         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12837         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12838
12839 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12840
12841         * stack.c (print_frame_info_base): When calling
12842         print_frame_info_listing_hook, set current_source_symtab.
12843
12844 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12845
12846         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12847         and remove unused $(INCLUDE_DIR).
12848         Add regcache.c to OBS.
12849         Add generated register protocol files to clean target.
12850         Update dependencies for new objects, obsolete old target code.
12851
12852         * gdbserver/linux-low.c: Remove all platform-specific code to
12853         new files.  Remove various dead code.  Update to use regcache
12854         functionality.
12855         * gdbserver/remote-utils.c (fromhex): Add return statement
12856         to quiet warning.
12857         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12858         constant.
12859         (input_interrupt): Add integer parameter to match prototype
12860         of a signal handler.
12861         (outreg): Use register_data ().
12862         (prepare_resume_reply): Use gdbserver_expedite_regs.
12863         * gdbserver/server.c (main): Dynamically allocate own_buf because
12864         PBUFSIZ is no longer constant.  Use registers_to_string () and
12865         registers_from_string ().
12866         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
12867         for error (), fatal (), and warning ().  Update definition of
12868         PBUFSIZ to use regcache functionality.  Add include guard.
12869         * gdbserver/utils.c (fatal): Add missing ``const''.
12870         (warning): New function.
12871
12872         * regformats/regdat.sh: Include "regcache.h" in generated files.
12873         Provide init_registers () function.
12874         * regformats/regdef.h: Add prototype for set_register_cache ().
12875         Add include guard.
12876
12877         * gdbserver/linux-arm-low.c: New file.
12878         * gdbserver/linux-i386-low.c: New file.
12879         * gdbserver/linux-ia64-low.c: New file.
12880         * gdbserver/linux-m68k-low.c: New file.
12881         * gdbserver/linux-mips-low.c: New file.
12882         * gdbserver/linux-ppc-low.c: New file.
12883         * gdbserver/linux-sh-low.c: New file.
12884
12885         * gdbserver/regcache.c: New file.
12886         * gdbserver/regcache.h: New file.
12887
12888         * gdbserver/low-linux.c: Removed obsolete file.
12889
12890 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12891
12892         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12893         * config/i386/linux.mt: Likewise.
12894         * config/ia64/linux.mt: Likewise.
12895         * config/m68k/linux.mh: Likewise.
12896         * config/powerpc/linux.mh: Likewise.
12897         * config/mips/linux.mt: Likewise.
12898
12899         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12900
12901         * config/i386/i386lynx.mh: Mark gdbserver variables
12902         as (currently) obsolete for this target.
12903         * config/i386/nbsd.mt: Likewise.
12904         * config/i386/nbsdelf.mt: Likewise.
12905         * config/m32r/m32r.mt: Likewise.
12906         * config/m68k/m68klynx.mh: Likewise.
12907         * config/m68k/nbsd.mt: Likewise.
12908         * config/m68k/sun3os4.mh: Likewise.
12909         * config/mips/vr5000.mt: Likewise.
12910         * config/ns32k/nbsd.mt: Likewise.
12911         * config/pa/hppabsd.mh: Likewise.
12912         * config/pa/hppaosf.mh: Likewise.
12913         * config/powerpc/nbsd.mt: Likewise.
12914         * config/rs6000/rs6000lynx.mh: Likewise.
12915         * config/s390/s390.mt: Likewise.
12916         * config/s390/s390x.mt: Likewise.
12917         * config/sparc/sparclynx.mh: Likewise.
12918         * config/sparc/sun4os4.mh: Likewise.
12919         * config/i386/x86-64linux.mt: Likewise.
12920         * config/sparc/linux.mh: Likewise.
12921
12922 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12923
12924         * configure.tgt: Configure gdbserver only for known working
12925         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
12926         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
12927         SUBDIRS if it is configured.  Update comment for ${nativefile}.
12928         * configure: Regenerated.
12929
12930 2002-02-13  Michael Snyder  <msnyder@redhat.com>
12931
12932         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12933
12934         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12935         (default_gcore_mach): Just return 0, work around a problem in bfd.
12936         (default_gcore_target): OK to return NULL if exec_bfd is null.
12937         (make_mem_sec): Use a cast, avoid a warning.
12938
12939         * procfs.c (find_memory_regions_callback): Use a cast instead of
12940         calling host_pointer_to_address (which complains if
12941         sizeof (host pointer) != sizeof (target pointer)).
12942         (procfs_make_note_section): Avoid overflow in psargs string.
12943
12944         * procfs.c (procfs_make_note_section): Make the default
12945         implementation return an error.
12946
12947 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
12948
12949         * procfs.c (procfs_make_note_section): Provide a default definition
12950         (for alpha-dec-osf4.0f). Fix typos.
12951
12952 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
12953
12954         * linux-proc.c: Add include of regcache.h.
12955         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12956
12957 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
12958
12959         From 2002-01-18 Greg McGary <greg@mcgary.org>:
12960         * memattr.c (create_mem_region): Disallow useless empty region.
12961         Regions are half-open intervals, so allow [A..B) [B..C) as
12962         non-overlapping.
12963
12964 2002-02-13  Michael Chastain <mec@shout.net>
12965
12966         * defs.h: Kill CONST_PTR.
12967         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12968         * c-lang.c (c_builtin_types): Likewise.
12969         * ch-lang.c (ch_builtin_types): Likewise.
12970         * f-lang.c (f_builtin_types): Likewise.
12971         * language.c (unknown_builtin_types): Likewise.
12972         * m2-lang.c (m2_builtin_types): Likewise.
12973         * p-lang.c (pascal_builtin_types): Likewise.
12974         * scm-lang.c (c_builtin_types): Likewise.
12975
12976 2002-02-13  Keith Seitz  <keiths@redhat.com>
12977
12978         * arm-tdep.h (arm_get_next_pc): Add declaration.
12979
12980 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
12981
12982         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
12983         with other related struct-returning functions.
12984         (arm_extract_struct_value_address): New function.
12985         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
12986         initialize float_format, double_format and long_double_format as
12987         appropriate to the endianness of the target.
12988         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12989         (arm_use_struct_convention): Delete declaration.
12990         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12991
12992 2002-02-13  Keith Seitz  <keiths@redhat.com>
12993
12994         * defs.h (core_addr_to_string_nz): New function.
12995
12996 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
12997
12998         Apply missing bits of 2002-01-15 patch.
12999         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13000         (fill_fpregset): Use i387_fill_fsave.
13001
13002 2002-02-12  Keith Seitz  <keiths@redhat.com>
13003
13004         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13005         (core_addr_to_string_nz): New function.
13006
13007 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13008
13009         * arm-linux-nat.c: Really include arm-tdep.h.
13010         * config/arm/tm-linux.h (struct type, struct value): Declare.
13011
13012 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13013
13014         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13015         (gcore section): Ifdef for Solaris and Unixware only.
13016         (procfs_do_thread_registers): Unixware needs one lwpstatus
13017         per thread (not one prstatus or pstatus).
13018         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13019         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13020         once before iterating over threads.
13021
13022 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13023
13024         * arm-tdep.h: New file.
13025         * arm-tdep.c: Include arm-tdep.h.
13026         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13027         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13028         (arm_print_float_info, arm_register_type, convert_to_extended)
13029         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13030         (arm_extract_return_value, arm_register_name): Make static.
13031         (arm_software_single_step): Similarly.  Fix types in declaration.
13032         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13033         (arm_store_return_value, arm_store_struct_return): New functions.
13034         (arm_gdbarch_init): Register the above functions.  Also register
13035         call_dummy_start_offset, sizeof_call_dummy_words,
13036         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13037         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13038         max_register_virtual_size, register_size.  Set up
13039         prologue_cache.saved_regs here, rather than ...
13040         (_initialize_arm_tdep): ... here.
13041         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13042         declarations.
13043         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13044         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13045         (arm_print_float_info, arm_register_type, convert_to_extended)
13046         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13047         (arm_extract_return_value, arm_register_name): Delete declarations.
13048         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13049         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13050         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13051         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13052         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13053         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13054         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13055         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13056         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13057         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13058         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13059         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13060         interface.
13061         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13062         * remote-rdi.c remote-rdp.c: Likewise.
13063         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13064         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13065         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13066         definition.
13067
13068         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13069         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13070         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13071         from non-ARM_ prefixed definitions.
13072         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13073         all uses of above.
13074         * remote-rdi.c remote-rdp.c: Likewise.
13075         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13076
13077 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13078
13079         * arm-tdep.c (arm_frameless_function_invocation)
13080         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13081         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13082         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13083         (arm_pop_frame, arm_get_next_pc): Make static.
13084         (arm_gdbarch_init): Register above in gdbarch structure.
13085         (arm_read_fp): Renamed from arm_target_read_fp.
13086         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13087         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13088         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13089         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13090         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13091         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13092         (arm_pc_is_thumb_dummy): Delete declarations.
13093         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13094         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13095         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13096         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13097
13098 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13099
13100         * symtab.c (compare_search_syms): New function.
13101         (sort_search_symbols): New function.
13102         (search_symbols): Sort symbols after searching rather than
13103         before.
13104
13105 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13106
13107         * NEWS: Linux -> GNU/Linux.
13108
13109 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13110
13111         * gdbarch.sh: For for level one methods, disallow a definition
13112         when partially multi-arched.  Add comments explaining rationale.
13113         * gdbarch.h: Re-generate.
13114
13115 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13116
13117         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13118         multi-arch partial.
13119
13120 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13121
13122         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13123         field.  Use diff -u.
13124         * gdbarch.c: Re-generate.
13125
13126 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13127
13128         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13129         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13130         partial.
13131
13132 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13133
13134         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13135         multi-arch partial.
13136         (PUSH_ARGUMENTS): Switch to using predefault.
13137         * gdbarch.c: Regenerate.
13138
13139 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13140
13141         * valops.c (PUSH_ARGUMENTS): Delete definition.
13142         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13143         partial.  Default to default_push_arguments.
13144         * gdbarch.h, gdbarch.c: Regenerate.
13145
13146 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13147
13148         * defs.h (throw_exception): Rename return_to_top_level.  Update
13149         comments.
13150         * utils.c (error_stream, internal_verror, quit): Ditto.
13151         * top.c (throw_exception, catcher): Ditto.
13152         * sparclet-rom.c (sparclet_load): Ditto.
13153         * remote.c (interrupt_query, minitelnet): Ditto.
13154         * remote-sds.c (interrupt_query): Ditto.
13155         * remote-mips.c (mips_error, mips_kill): Ditto.
13156         * ocd.c (interrupt_query): Ditto.
13157         * monitor.c (monitor_interrupt_query): Ditto.
13158         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13159         * target.h: Update comment.
13160
13161         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13162
13163 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13164
13165         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13166         default_double_format.
13167         * gdbarch.h, gdbarch.c: Re-generate.
13168         * findvar.c (floatformat_unknown): Delete variable definition.
13169         * doublest.h (floatformat_unknown): Delete variable declaration.
13170
13171 2002-02-09  Jim Blandy  <jimb@redhat.com>
13172
13173         * stabsread.c (read_type): Add code to parse Sun's syntax for
13174         prototyped function types.
13175
13176 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13177
13178         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13179         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13180
13181 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13182
13183         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13184         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13185         now _initialize_xcoffsolib gets called again and overrides the
13186         commands from solib.c in a native configuration.
13187
13188 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13189
13190         * doublest.c (store_typed_floating): Don't try to return a value.
13191         Fixes PR gdb/290.
13192
13193 2002-02-08  Jim Blandy  <jimb@redhat.com>
13194
13195         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13196         is prototyped and has no arguments, print its argument list as
13197         `(void)'.
13198
13199 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13200
13201         * MAINTAINERS (write-after-approval): Add myself.
13202         (paper-trail): I've escaped!
13203
13204 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13205
13206         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13207         changes.
13208         (_initialize_check_for_gdb_ini): Ditto.
13209
13210 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13211
13212         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13213         xaprintf -> xasprintf.
13214
13215 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13216
13217         * win32-nat.c: Remove use of printf and sprintf functions.
13218
13219 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13220
13221         * arm-tdep.c (arm_frame_chain_valid): Make static.
13222         (arm_push_arguments): Likewise.
13223         (arm_gdbarch_init): New function.
13224         (_initialize_arm_tdep): Call it.
13225         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13226         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13227         (FRAME_CHAIN_VALID): Delete.
13228         (arm_frame_chain_valid): Delete declaration.
13229         (PUSH_ARGUMENTS): Delete.
13230         (arm_push_arguments): Delete declaration.
13231         (CALL_DUMMY_P): Delete.
13232
13233 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13234             Corinna Vinschen  <vinschen@redhat.com>
13235
13236         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13237         on builtin float types.
13238
13239 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13240
13241         * utils.c: Include <curses.h> before "bfd.h".
13242         * tui/tui-hooks.c: Likewise.
13243         * tui/tui.c: Likewise.
13244         * tui/tuiCommand.c: Likewise.
13245         * tui/tuiData.c: Likewise.
13246         * tui/tuiDataWin.c: Likewise.
13247         * tui/tuiDisassem.c: Likewise.
13248         * tui/tuiGeneralWin.c: Likewise.
13249         * tui/tuiIO.c: Likewise.
13250         * tui/tuiLayout.c: Likewise.
13251         * tui/tuiRegs.c: Likewise.
13252         * tui/tuiSource.c: Likewise.
13253         * tui/tuiSourceWin.c: Likewise.
13254         * tui/tuiStack.c: Likewise.
13255         * tui/tuiWin.c: Likewise.
13256
13257 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13258
13259         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13260         to include space for pseudoregs as well. Update loops accordingly.
13261         (sh_fp_frame_init_saved_regs): Ditto.
13262         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13263
13264 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13265
13266         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13267         Add Richard Earnshaw to Arm maintainers.
13268
13269 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13270
13271         * defs.h (warning_begin): Delete declaration.
13272
13273         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13274         Delete macro.
13275
13276 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13277
13278         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13279         Logic bug, remove misplaced else.
13280
13281 2002-02-07  Klee Dienes  <klee@apple.com>
13282
13283         * fork-inferior.c (fork_inferior): Add '!' to the list of
13284         characters that need to be quoted when building a string for the
13285         shell.  Quote '!' specifically with a backslash, since CSH chokes
13286         when trying to evaluate "str!str".
13287
13288 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13289
13290         * rdi-share/host.h: Only provide a typedef for bool if it is not
13291         defined.
13292
13293 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13294
13295         * breakpoint.h (enum bptype): Add new overlay event bp type.
13296         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13297
13298         * breakpoint.c (create_internal_breakpoint): New function.
13299         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13300         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13301         (create_thread_event_breakpoint): Ditto.
13302         (create_solib_event_breakpoint): Ditto.
13303         (create_overlay_event_breakpoint): New function.
13304         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13305         (update_breakpoints_after_exec): Delete and re-initialize
13306         overlay event breakpoints after an exec.  Add FIXME comment
13307         about longjmp breakpoint.
13308         (print_it_typical): Ignore overlay event breakpoints.
13309         (print_one_breakpoint): Ditto.
13310         (mention): Ditto.
13311         (bpstat_what): Do not stop for overlay event breakpoints.
13312         (delete_breakpoint): Don't delete overlay event breakpoints.
13313         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13314         (breakpoint_re_set): Re-create overlay event breakpoint.
13315
13316         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13317         (overlay_manual_command): Disable overlay breakpoints.
13318         (overlay_off_command): Disable overlay breakpoints.
13319
13320 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13321
13322         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13323         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13324         to here from config/tm-arm.h.
13325         (coff_sym_is_thumb): Make static.
13326         (arm_elf_make_msymbol_special): New function.
13327         (arm_coff_make_msymbol_special): New function.
13328         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13329         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13330         (coff_sym_is_thumb): Delete declaration.
13331         (arm_elf_make_msymbol_special): Declare.
13332         (arm_coff_make_msymbol_special): Declare.
13333         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13334         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13335
13336 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13337
13338         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13339
13340 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13341
13342         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13343         * gdbarch.c gdbarch.h: Regenerate.
13344         * arch-utils.c (default_print_float_info): New function.
13345         * arch-utils.h (default_print_float_info): Prototype it.
13346         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13347         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13348         (PRINT_FLOAT_INFO): Document it.
13349
13350         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13351         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13352         (PRINT_FLOAT_INFO): Define.
13353
13354 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13355
13356         * win32-nat.c (_initialize_check_for_gdb_ini):
13357         Add typecast to sprintf argument to suppress a warning.
13358
13359 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13360
13361         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13362         to allow easier handling of pass state.
13363         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13364         that gives exception name and address.
13365         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13366         and set last_sig value to ourstatus->value.sig. Some missing
13367         exceptions added.
13368         (child_continue): Correctly report continue_status.
13369         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13370         TARGET_SIGNAL_0 (new default value).
13371         (child_resume): consider sig argument passed to decide if
13372         the exception should be passed to debuggee or not.
13373
13374 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13375
13376         * regcache.c (fetch_register): Call target_fetch_register
13377         only if we don't call FETCH_PSEUDO_REGISTER.
13378         (store_register): Call target_store_register only if we
13379         don't call STORE_PSEUDO_REGISTER.
13380
13381 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13382
13383         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13384         ELF_MAKE_MSYMBOL_SPECIAL.
13385         * gdbarch.c, gdbarch.h: Regenerate.
13386         * arch-utils.c (default_make_msymbol_special): New function.
13387         * arch-utils.h (default_make_msymbol_special): Export.
13388         * elfread.c (elf_symtab_read): Compile use of
13389         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13390         multiarched.
13391         * coffread.c (coff_symtab_read): Ditto, for
13392         COFF_MAKE_MSYMBOL_SPECIAL.
13393
13394 2002-02-05  Jim Blandy  <jimb@redhat.com>
13395
13396         * solib-svr4.c (svr4_truncate_ptr): New function.
13397         (svr4_relocate_section_addresses): Do the address arithmetic with
13398         the appropriate truncation for target addresses, even when
13399         CORE_ADDR is larger than a target address.
13400
13401 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13402
13403         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13404         to (int *).
13405
13406 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13407
13408         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13409         code.
13410
13411 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13412
13413         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13414
13415 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13416
13417         * gdbserver/linux-low.c: Remove unused include files.
13418
13419 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13420
13421         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13422         (read_inferior_memory): Use it.
13423         (write_inferior_memory): Likewise.
13424
13425 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13426
13427         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13428         grubbing through sys_errlist.
13429
13430 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13431
13432         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13433
13434 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13435         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13436
13437 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13438
13439         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13440         (do_sfunc, set_cmd_sfunc): New functions.
13441
13442         * command.h (struct cmd_list_element): Add field func.
13443         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13444         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13445         * cli/cli-decode.h: Ditto.
13446
13447         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13448         (help_all, help_cmd_list): Ditto.
13449         (find_cmd, complete_on_cmdlist): Ditto.
13450         * top.c (execute_command): Ditto.
13451
13452         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13453         function.sfunc.
13454
13455         * infcmd.c (notice_args_read): Fix function signature.
13456
13457         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13458         * cli/cli-decode.c (add_set_cmd): Ditto.
13459         * utils.c (initialize_utils): Ditto.
13460         * maint.c (_initialize_maint_cmds): Ditto.
13461         * infrun.c (_initialize_infrun): Ditto.
13462         * demangle.c (_initialize_demangler): Ditto.
13463         * remote.c (add_packet_config_cmd): Ditto.
13464         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13465         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13466         * proc-api.c (_initialize_proc_api): Ditto.
13467         * kod.c (_initialize_kod): Ditto.
13468         * valprint.c (_initialize_valprint): Ditto.
13469         * top.c (init_main): Ditto.
13470         * infcmd.c (_initialize_infcmd): Ditto.
13471         * corefile.c (_initialize_core): Ditto.
13472         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13473         * arch-utils.c (initialize_current_architecture): Ditto.
13474         (_initialize_gdbarch_utils): Ditto.
13475         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13476
13477         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13478         * wince.c (_initialize_inftarg): Ditto.
13479         * symfile.c (_initialize_symfile): Ditto.
13480         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13481         * language.c (_initialize_language): Ditto.
13482         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13483
13484 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13485
13486         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13487
13488 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13489
13490         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13491         Add rules for building the register data files.
13492
13493 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13494
13495         * regformats/regdat.sh: Add braces to the definition of
13496         expedite_regs_${arch}.
13497
13498 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13499
13500         * regformats/regdef.h (struct reg): Add comment describing the
13501         requirements for offset and size fields.
13502
13503 2002-02-04  Andreas Schwab  <schwab@suse.de>
13504
13505         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13506         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13507
13508 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13509
13510         * gdbarch.sh (copyright): Update years in generated header.
13511         (SMASH_TEXT_ADDRESS): Add rule.
13512         * gdbarch.h, gdbarch.c: Re-generate.
13513         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13514         * dbxread.c: Likewise.
13515         * dwarfread.c: Likewise.
13516         * elfread.c: Likewise.
13517         * somread.c: Likewise.
13518
13519         * arm-tdep.c (arm_smash_text_address): New function.
13520         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13521
13522 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13523
13524         Add support for hardware watchpoints on win32 native.
13525         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13526         CONTEXT_DEBUG_REGISTERS.
13527         (dr variable): New variable. Static array containing a local copy
13528         of debug registers.
13529         (debug_registers_changed): New variable.  Reflects when debug registers
13530         are changed and need to be written to inferior.
13531         (debug_registers_used): New variable. Reflects when any debug register
13532         was set, used when new threads are created.
13533         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13534         i386-nat code.
13535         (thread_rec): Set dr array if id is the thread of current_event .
13536         (child_continue, child_resume): Change the debug registers for all
13537         threads if debug_registers_changed.
13538         (child_add_thread): Change the debug registers if debug_registers_used.
13539         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13540         Link nm.h to new nm-cygwin.h file.
13541         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13542         of hardware registers.
13543
13544 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13545
13546         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13547         Restore behavour broken by 2002-01-20 Andrew Cagney
13548         <ac131313@redhat.com> IEEE_FLOAT removal.
13549
13550 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13551
13552         * c-valprint.c (c_val_print): Pass a proper valaddr to
13553         cp_print_class_method.
13554         * valops.c (search_struct_method): If there is only one method
13555         and args is NULL, return that method.
13556
13557 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13558
13559         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13560         accessing tag_name directly.
13561
13562 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13563
13564         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13565         of accessing tag_name directly.
13566
13567 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13568
13569         PR gdb/280
13570         * gdbtypes.c (replace_type): New function.
13571         * gdbtypes.h (replace_type): Add prototype.
13572         * stabsread.c (read_type): Use replace_type.
13573
13574 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13575
13576         * Makefile.in (memattr.o): Add missing dependencies rule.
13577
13578 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13579
13580         * breakpoint.c (break_at_finish_command): Really export.
13581         (break_at_finish_at_depth_command): Ditto.
13582         (tbreak_at_finish_command): Ditto.
13583         * hppa-tdep.c: Include completer.h.
13584         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13585         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13586
13587 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13588
13589         * utils.c (do_write): New function.
13590         (error_stream): Rewrite combining the code from error_begin and
13591         verror.
13592         (verror): Rewrite using error_stream.
13593         (error_begin): Delete function.
13594
13595 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13596
13597         * utils.c (error_begin): Make static.
13598         * defs.h (error_begin): Delete declaration.
13599
13600         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13601         (decode_line_1): Use cplusplus_error instead of error_begin,
13602         cplusplus_hint and return_to_top_level.
13603         * coffread.c (coff_symfile_read): Use error instead of error_begin
13604         and return_to_top_level.
13605         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13606
13607 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13608
13609         * language.h (type_error, range_error): Make string parameter
13610         constant.
13611         * language.c (warning_pre_print): Delete extern declaration.
13612         * dwarfread.c (warning_pre_print): Ditto.
13613         * language.c (type_error, range_error): Rewrite to use verror and
13614         vwarning instead of warning_begin.
13615
13616 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13617
13618         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13619         (set_ignore_count): Move misplaced comment back where it belongs.
13620
13621 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13622
13623         * command.h (NO_FUNCTION): Delete macro.
13624         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13625         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13626         * tracepoint.c (_initialize_tracepoint): Ditto.
13627         * cli/cli-decode.c (add_set_cmd): Ditto.
13628         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13629
13630 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13631
13632         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13633         Update ``this'' pointer when calling virtual functions.
13634
13635 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13636
13637         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13638         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13639
13640 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13641
13642         * regformats/reg-arm.dat: New file.
13643         * regformats/reg-i386.dat: New file.
13644         * regformats/reg-ia64.dat: New file.
13645         * regformats/reg-m68k.dat: New file.
13646         * regformats/reg-mips.dat: New file.
13647         * regformats/reg-ppc.dat: New file.
13648         * regformats/reg-sh.dat: New file.
13649         * regformats/regdef.h: New file.
13650         * regformats/regdat.sh: New file.
13651
13652 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13653
13654         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13655         (arm_frame_args_address, arm_frame_locals_address): New functions.
13656         (arm_frame_num_args): New function.
13657         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13658         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13659         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13660
13661 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13662
13663         * breakpoint.c (break_at_finish_command): Export.
13664         (break_at_finish_at_depth_command): Export.
13665         (tbreak_at_finish_command): Export.
13666         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13667         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13668         "txbreak" commands, which are HPPA specific.
13669
13670         * printcmd.c (disassemble_command): Remove an ancient
13671         artifact of an old merge.
13672
13673         * symfile.h (enum overlay_debugging_state):
13674         Define enum constant values for overlay mode.
13675         * symfile.c (overlay_debugging): Use enums instead of literals.
13676         (overlay_is_mapped, overlay_auto_command,
13677         overlay_manual_command): Ditto.
13678
13679         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13680         breakpoint_here_p, breakpoint_inserted_here_p,
13681         breakpoint_thread_match, bpstat_stop_status,
13682         describe_other_breakpoints, check_duplicates, clear_command):
13683         Coding standard fixes.
13684
13685         * target.c (target_xfer_memory): Add spaces, coding standard.
13686         (do_xfer_memory): Add missing line to trust-readonly
13687         code: check bfd SEC_READONLY flag for section.
13688
13689 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13690
13691         * PROBLEMS: Fix typo, 5.1->5.1.1.
13692
13693 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13694
13695         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13696         data symbols, since we search based on textlow and texthigh.
13697         (find_pc_sect_symtab): Likewise.
13698
13699 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13700
13701         * defs.h (vwarning): Declare.
13702         * utils.c (vwarning): New function.
13703         (warning): Call vwarning.
13704         (warning_begin): Delete function.
13705
13706         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13707         the warning message.
13708         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13709         warning_begin.
13710
13711 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13712
13713         * NEWS: Mention "set trust-readonly-sections" command.
13714         Mention generate-core-file command.
13715
13716 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13717
13718         * target.c: New command, "set trust-readonly-sections on".
13719         (do_xfer_memory): Honor the suggestion to trust readonly sections
13720         by reading them from the object file instead of from the target.
13721         (initialize_targets): Register command "set trust-readonly-sections".
13722
13723 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13724
13725         * parse.c (target_map_name_to_register): Simplify, search regs and
13726         pseudo-regs using a single loop.
13727
13728 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13729
13730         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13731
13732 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13733
13734         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13735         * config/i386/i386v42mp.mh: Add i387-nat.o .
13736         * i386v4-nat.c: Include i387-nat.h.
13737         (supply_fpregset): Use i387_supply_fsave.
13738         (fill_fpregset): Use i387_fill_fsave.
13739
13740 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13741
13742         * arm-tdep.c (arm_call_dummy_words): Define.
13743         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13744         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13745         (CALL_DUMMY_WORDS): Define.
13746         (arm_call_dummy_words): Declare.
13747         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13748         (arm_linux_call_dummy_words): Declare.
13749
13750 2002-01-30  Andreas Schwab  <schwab@suse.de>
13751
13752         * m68klinux-nat.c: Fix last change to use regcache_collect
13753         instead of referencing registers[] directly.
13754
13755 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13756
13757         * parse.c (target_map_name_to_register): Delete code wrapped in
13758         #ifdef REGISTER_NAME_ALIAS_HOOK.
13759
13760 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13761
13762         * regcache.c (legacy_read_register_gen): Need to be able to
13763         read pseudo-register as well as real register.
13764         (legacy_write_register_gen): Ditto.
13765
13766 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13767
13768         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13769         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13770         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13771         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13772         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13773         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13774         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13775         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13776         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13777         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13778         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13779         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13780         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13781         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13782         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13783         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13784         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13785         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13786         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13787         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13788
13789 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13790
13791         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13792         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13793         (initialize_current_architecture): Update target_byte_order using
13794         information from BFD.
13795         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13796         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13797
13798 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13799
13800         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13801         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13802
13803         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13804         #ifdef INVALID_FLOAT.
13805         * infcmd.c (do_registers_info): Ditto.
13806         * values.c (unpack_double): Ditto.  Add comment.
13807
13808         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13809         already commented out.
13810
13811 2002-01-26  Andreas Schwab  <schwab@suse.de>
13812
13813         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13814         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13815         registers and add support for PTRACE_GETREGS.
13816
13817 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13818
13819         GDB 5.1.1 released from 5.1 branch.
13820         * NEWS: Add 5.1.1 news.
13821         * README: Sync with 5.1 branch.
13822
13823 2002-01-23  Fred Fish  <fnf@redhat.com>
13824
13825         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13826         stabstring on initial malloc.  Reallocing will copy it for us,
13827         if necessary.
13828
13829 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13830
13831         * Makefile.in (hpread_h): Delete.
13832         (HFILES_NO_SRCDIR): Remove hpread.h.
13833         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13834         (hpread.o): Update dependencies.
13835         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13836
13837         * hp-psymtab-read.c: Remove file.
13838         * hp-symtab-read.c: Remove file.
13839         * hpread.h: Remove file.
13840
13841         * hpread.c: Merge all contents of hp-psymtab-read.c,
13842         hp-symtab-read.c and hpread.h into this file, as it was prior to
13843         January 1999.
13844
13845         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13846         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13847         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13848         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13849
13850 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13851
13852         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13853         fill_gregset): Call gdbarch_tdep() just once, assign result to
13854         variable and use that, instead of calling the function several
13855         times.
13856
13857 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
13858
13859         * configure.host: Accept sparcv9 as alias for sparc64.
13860         * configure.tgt: Likewise.
13861
13862 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
13863
13864         * solib-aix5.c (build_so_list_from_mapfile)
13865         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13866         arguments is not reversed.
13867         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13868         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13869
13870 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
13871
13872         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13873         modified version of obsolete sh_fetch_pseudo_register.
13874         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13875         (sh4_register_read): New function.
13876         (sh_pseudo_register_write): New function. Renamed and modified
13877         version of obsolete sh_store_pseudo_register.
13878         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13879         (sh4_register_write): New function.
13880         (sh_gdbarch_init): Remove setting of gdbarch function
13881         fetch_pseudo_register and store_pseudo_register. Remove setting of
13882         register_convert_to_raw, register_convert_to_virtual,
13883         register_convertible.
13884         (sh_sh4_register_convertible): Delete. No longer needed. All is
13885         taken care by architecture specific functions
13886         register_read/register_write.
13887         (sh_sh4_register_convert_to_virtual): Make static.
13888         (sh_sh4_register_convert_to_raw): Ditto.
13889
13890 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
13891
13892         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13893         (floatformat_is_nan, floatformat_mantissa): Ditto.
13894
13895         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13896         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13897         builtin_type_ieee_double_little,
13898         builtin_type_ieee_double_littlebyte_bigword,
13899         builtin_type_m68881_ext, builtin_type_i960_ext,
13900         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13901         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13902         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13903         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13904
13905 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
13906
13907         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13908         parameter.  Set frameless flag if it exists and depended of
13909         whether the scanned function is frameless or not.
13910         (xstormy16_skip_prologue): If function is frameless, return
13911         result of xstormy16_scan_prologue().
13912         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13913         call.
13914
13915 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
13916
13917         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13918         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13919         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13920         sh_sh4_register_byte, sh_sh4_register_raw_size,
13921         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13922         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13923         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13924         sh_store_pseudo_register, sh_do_pseudo_register): Call
13925         gdbarch_tdep() just once, assign result to variable and use that,
13926         instead of calling the function several times.
13927
13928 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
13929
13930         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13931         macros instead of LAST_FPU_CTRL_REGNUM.
13932         (store_register): Likewise.
13933
13934 2002-01-21  Jim Blandy  <jimb@redhat.com>
13935
13936         * infcmd.c (run_command): Check that the `exec' target layer's BFD
13937         is up-to-date before running the program, not just when a program
13938         exits.
13939
13940 2002-01-21  Fred Fish  <fnf@redhat.com>
13941
13942         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13943         when we have found all instructions we are looking for.
13944
13945 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13946
13947         * arm-tdep.c (arm_register_name): New function.
13948         (arm_registers_names): Make static.
13949         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13950         (arm_register_name): Declare.
13951         (REGISTER_NAME): Use it.
13952
13953 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13954             Kevin Buettner  <kevinb@redhat.com>
13955
13956         Convert arm targets to new FRAME interface.
13957         * arm-tdep.c (struct frame_extra_info): Remove fsr.
13958         (arm_frame_find_save_regs): Delete.
13959         (arm_frame_init_saved_regs): New.
13960         (arm_init_extra_frame_info): Alloacte saved_regs as required.
13961         Allocate extra_info as required.  Convert all uses of fsr.regs
13962         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13963         to use extra_info.
13964         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13965         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13966         (check_prologue_cache, save_prologue_cache): Likewise.
13967         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13968         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13969         (FRAME_FIND_SAVED_REGS): Delete.
13970         (arm_frame_find_saved_regs): Delete prototype.
13971         (arm_frame_init_saved_regs): New prototype.
13972         (FRAME_INIT_SAVED_REGS): Define.
13973
13974 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13975
13976         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13977
13978 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13979
13980         From Jeff Law <law@redhat.com>:
13981         * infttrace.c: Include <sys/pstat.h>.
13982         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
13983         exec file if the ttrace equivalent fails.
13984
13985 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13986
13987         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13988         (closeLogFile): Ditto.
13989
13990 2002-01-20  Michael Chastain  <mec@shout.net>
13991
13992         * top.c (print_gdb_version): Bump copyright year to 2002.
13993
13994 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13995
13996         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13997         Zannoni and Eli Zaretskii.
13998
13999 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14000
14001         * buildsym.c: Update copyright years.
14002         * c-typeprint.c: Likewise.
14003         * dwarf2read.c: Likewise.
14004         * f-typeprint.c: Likewise.
14005         * gdbtypes.c: Likewise.
14006         * gdbtypes.h: Likewise.
14007         * hp-symtab-read.c: Likewise.
14008         * hpread.c: Likewise.
14009         * mdebugread.c: Likewise.
14010         * p-typeprint.c: Likewise.
14011
14012 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14013
14014         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14015         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14016         byte-order selectable.
14017         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14018         * arch-utils.c: Ditto.
14019         (set_endian): Ditto.
14020         (set_endian_from_file): Ditto.
14021         * gdbserver/low-sim.c (create_inferior): Ditto.
14022         * gdbarch.sh: Ditto.
14023         * gdbarch.h: Re-generate.
14024         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14025         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14026         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14027         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14028         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14029         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14030         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14031         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14032         macro definition.
14033         * config/mips/tm-wince.h: Remove #undef of macro
14034         TARGET_BYTE_ORDER_SELECTABLE.
14035         * config/sh/tm-wince.h: Ditto.
14036
14037 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14038
14039         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14040         member function fields.  Add accessor macro
14041         TYPE_FN_FIELD_ARTIFICIAL.
14042         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14043         * c-typeprint.c (c_type_print_base): Skip artificial member
14044         functions.
14045
14046 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14047
14048         * f-typeprint.c: Delete unused function f_type_print_args.
14049         * p-typeprint.c: Delete unused function pascal_type_print_args.
14050
14051 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14052
14053         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14054         comment.  Add ``artificial'' to ``union field_location''.
14055
14056         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14057
14058         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14059         * mdebugread.c (parse_symbol): Likewise.
14060         * stabsread.c (define_symbol): Likewise.
14061         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14062         initializing TYPE_FIELD_BITPOS to n (obsolete).
14063         (hpread_doc_function_type): Likewise.
14064         * hpread.c (hpread_function_type): Likewise.
14065
14066 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14067
14068         * configure.in (host_makefile_frag): Only require a host makefile
14069         fragment when a native build.
14070         * configure: Re-generate.
14071
14072 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14073
14074         * doublest.h (floatformat_from_type): Declare.
14075         * doublest.c (floatformat_from_type): New function.
14076         (convert_typed_floating): Use.
14077
14078         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14079         call to function floatformat_from_type.
14080
14081         * gdbarch.sh (IEEE_FLOAT): Delete.
14082         * gdbarch.h, gdbarch.c: Re-generate.
14083         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14084         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14085         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14086         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14087         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14088         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14089         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14090         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14091         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14092         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14093         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14094         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14095
14096         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14097         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14098         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14099         * sh-tdep.c (sh_gdbarch_init): Ditto.
14100         * mips-tdep.c (mips_gdbarch_init): Ditto.
14101         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14102         * cris-tdep.c (cris_gdbarch_init): Ditto.
14103
14104 2002-01-20  Jiri Smid  <smid@suse.cz>
14105
14106         * configure.host, configure.tgt: Support x86-64.
14107         * NEWS: Note new target x86-64.
14108
14109         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14110         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14111         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14112         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14113         x86-64-linux-nat.o): Fix dependencies.
14114
14115 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14116
14117         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14118         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14119         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14120         * config/sparc/xm-sun4os4.h: Delete file.
14121         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14122
14123 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14124
14125         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14126         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14127         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14128         * config/i386/i386lynx.mh (XM_FILE): Delete.
14129         * config/rs6000/xm-rs6000ly.h: Delete file.
14130         * config/sparc/xm-sparclynx.h: Delete file.
14131         * config/m68k/xm-m68klynx.h: Delete file.
14132         * config/i386/xm-i386lynx.h: Delete file.
14133         * config/xm-lynx.h: Delete file.
14134         * config/djgpp/fnchange.lst: Update.
14135
14136 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14137
14138         * alpha-tdep.c (alpha_register_byte): New function.
14139         (alpha_register_raw_size): Ditto.
14140         (alpha_register_virtual_size): Ditto.
14141         (alpha_skip_prologue_internal): Renamed from
14142         alpha_skip_prologue.
14143         (alpha_skip_prologue): New version that calls
14144         alpha_skip_prologue_internal.
14145         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14146         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14147         second argument from alpha_skip_prologue.
14148         (REGISTER_BYTE): Use alpha_register_byte.
14149         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14150         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14151         (FRAMELESS_FUNCTION_INVOCATION): Use
14152         generic_frameless_function_invocation_not.
14153         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14154         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14155
14156 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14157
14158         * config/mips/xm-news-mips.h: Delete file.
14159         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14160
14161         * config/m88k/xm-m88k.h: Delete file.
14162         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14163         * config/m88k/xm-delta88v4.h: Ditto.
14164         * config/m88k/xm-delta88.h: Ditto.
14165
14166         * config/alpha/xm-fbsd.h: Delete file.
14167         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14168
14169         * config/sparc/xm-sparc.h: Delete file.
14170         * Makefile.in (xm-sun4os4.h): Delete dependency.
14171         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14172         * config/sparc/xm-sun4os4.h: Ditto.
14173         * config/sparc/xm-linux.h: Ditto.
14174
14175         * config/i386/xm-windows.h: Delete file.
14176
14177 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14178
14179         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14180         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14181
14182 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14183
14184         * alpha-tdep.c (alpha_call_dummy_words): New.
14185         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14186         (CALL_DUMMY_P): Define.
14187         (CALL_DUMMY_WORDS): Define.
14188         (SIZEOF_CALL_DUMMY_WORDS): Define.
14189
14190 2002-01-19  Per Bothner  <per@bothner.com>
14191
14192         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14193         isn't NULL, which can happen with some gcj-3.x-produced code.
14194
14195 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14196
14197         * alpha-tdep.c (alpha_register_virtual_type): New function.
14198         (alpha_init_frame_pc_first): Ditto.
14199         (alpha_fix_call_dummy): Ditto.
14200         (alpha_store_struct_return): Ditto.
14201         (alpha_extract_struct_value_address): Ditto.
14202         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14203         alpha_register_virtual_type.
14204         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14205         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14206         alpha_extract_struct_value_address.
14207         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14208         (INIT_FRAME_PC): Use init_frame_pc_noop.
14209         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14210
14211 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14212
14213         * i386gnu-nat.c: Include "i386-tdep.h".
14214         (fetch_fpregs): Simplify code dealing with uninitialized floating
14215         point states such that it doesn't require FP7_REGNUM.
14216
14217 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14218
14219         * alpha-tdep.c (frame_extra_info): New.
14220         (alpha_find_saved_regs): Make static.  Use
14221         frame->extra_info.
14222         (alpha_frame_init_saved_regs): New function.
14223         (alpha_frame_saved_pc): Use frame->extra_info.
14224         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14225         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14226         (init_extra_frame_info): Rename to...
14227         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14228         (alpha_print_extra_frame_info): New function.
14229         (alpha_frame_locals_address): Ditto.
14230         (alpha_frame_args_address): Ditto.
14231         (alpha_pop_frame): Use frame->extra_info.
14232         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14233         alpha_frame_args_address.
14234         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14235         (alpha_find_saved_regs): Remove prototype.
14236         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14237         (EXTRA_FRAME_INFO): Remove.
14238         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14239         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14240
14241 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14242
14243         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14244         (alpha_cannot_fetch_register): Ditto.
14245         (alpha_cannot_store_register): Ditto.
14246         (alpha_register_convertible): Ditto.
14247         (alpha_use_struct_convention): Ditto.
14248         * config/alpha/tm-alpha.h: Update copyright years.
14249         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14250         (INNER_THAN): Use core_addr_lessthan.
14251         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14252         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14253         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14254         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14255         (FRAME_CHAIN): Remove unnecessary cast.
14256
14257 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14258
14259         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14260         obsolete.
14261
14262 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14263
14264         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14265         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14266         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14267         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14268         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14269         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14270         * x86-64-linux-nat.c: Ditto.
14271
14272 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14273
14274         * alpha-tdep.c (alpha_register_name): New function.
14275         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14276         (REGISTER_NAME): Define.
14277
14278 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14279
14280         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14281
14282 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14283
14284         * alpha-tdep.c: Update copyright years.
14285         (alpha_next_pc): New function.
14286         (alpha_software_single_step): Ditto.
14287         * config/alpha/tm-alpha.h: Add prototype for
14288         alpha_software_single_step.
14289
14290 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14291
14292         * alphabsd-nat.c: Update copyright years.
14293         (fill_gregset): Use regcache_collect.
14294         (fill_fpregset): Likewise.
14295         (fetch_inferior_registers): Only fetch integer registers
14296         if requested to do so.
14297         (store_inferior_registers): Only store integer registers
14298         if requested to do so.
14299
14300 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14301
14302         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14303         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14304         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14305         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14306         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14307         * config/arm/linux.mh (XDEPFILES): Delete.
14308         * config/arm/nbsd.mh (XDEPFILES): Delete.
14309         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14310         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14311         * config/i386/i386m3.mh (XDEPFILES): Delete.
14312         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14313         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14314         * config/i386/fbsd.mh (XDEPFILES): Delete.
14315         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14316         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14317         * config/i386/i386v4.mh (XDEPFILES): Delete.
14318         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14319         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14320         * config/i386/i386aix.mh (XDEPFILES): Delete.
14321         * config/i386/go32.mh (XDEPFILES): Delete.
14322         * config/i386/cygwin.mh (XDEPFILES): Delete.
14323         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14324         * config/i386/i386mach.mh (XDEPFILES): Delete.
14325         * config/i386/i386v32.mh (XDEPFILES): Delete.
14326         * config/i386/linux.mh (XDEPFILES): Delete.
14327         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14328         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14329         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14330         * config/i386/i386sco.mh (XDEPFILES): Delete.
14331         * config/i386/i386v.mh (XDEPFILES): Delete.
14332         * config/i386/nbsd.mh (XDEPFILES): Delete.
14333         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14334         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14335         * config/i386/symmetry.mh (XDEPFILES): Delete.
14336         * config/i386/obsd.mh (XDEPFILES): Delete.
14337         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14338         * config/ia64/linux.mh (XDEPFILES): Delete.
14339         * config/ia64/aix.mh (XDEPFILES): Delete.
14340         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14341         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14342         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14343         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14344         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14345         * config/m68k/linux.mh (XDEPFILES): Delete.
14346         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14347         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14348         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14349         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14350         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14351         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14352         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14353         * config/m88k/delta88.mh (XDEPFILES): Delete.
14354         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14355         * config/m88k/m88k.mh (XDEPFILES): Delete.
14356         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14357         * config/mips/linux.mh (XDEPFILES): Delete.
14358         * config/mips/irix6.mh (XDEPFILES): Delete.
14359         * config/mips/irix5.mh (XDEPFILES): Delete.
14360         * config/mips/irix4.mh (XDEPFILES): Delete.
14361         * config/mips/irix3.mh (XDEPFILES): Delete.
14362         * config/mips/decstation.mh (XDEPFILES): Delete.
14363         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14364         (NATDEPFILES): Move core-aout.o to here.
14365         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14366         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14367         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14368         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14369         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14370         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14371         * config/pa/hpux11.mh (XDEPFILES): Delete.
14372         * config/powerpc/aix.mh (XDEPFILES): Delete.
14373         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14374         * config/powerpc/linux.mh (XDEPFILES): Delete.
14375         * config/romp/rtbsd.mh: Rename XDEPFILES.
14376         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14377         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14378         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14379         * config/s390/s390.mh (XDEPFILES): Delete.
14380         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14381         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14382         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14383         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14384         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14385         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14386         * config/sparc/linux.mh (XDEPFILES): Delete.
14387         * config/vax/vaxult.mh (XDEPFILES): Delete.
14388         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14389         * Makefile.in (DEPFILES): Remove XDEPFILES.
14390
14391 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14392
14393         * utils.c (internal_verror): Fix comments, default is yes not no.
14394         Update queries to match.  Default to quit and dump core.
14395
14396 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14397
14398         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14399         copyright.
14400         * defs.h, event-top.c, gdbcmd.h: Ditto.
14401         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14402         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14403         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14404         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14405         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14406         * mi/mi-main.c:Ditto.
14407
14408         * stack.c, symfile.c: Update copyright.
14409
14410 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14411
14412         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14413         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14414         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14415         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14416
14417 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14418
14419         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14420         * gdbserver/low-lynx.c (myattach): Likewise.
14421         * gdbserver/low-nbsd.c (myattach): Likewise.
14422         * gdbserver/low-sim.c (myattach): Likewise.
14423         * gdbserver/low-sparc.c (myattach): Likewise.
14424         * gdbserver/low-sun3.c (myattach): Likewise.
14425
14426         * gdbserver/low-linux.c (myattach): New function.
14427
14428         * gdbserver/server.c (attach_inferior): New function.
14429         (main): Handle "--attach".
14430
14431 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14432
14433         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14434         maintainer.
14435
14436 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14437
14438         * c-typeprint.c (is_type_conversion_operator): Add additional
14439         check for non-conversion operators.
14440
14441 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14442
14443         * linux-proc.c: Add "info proc" command, a la procfs.c.
14444         (read_mapping): New function, abstract and re-use code.
14445         (linux_find_memory_regions): Use new func read_mapping.
14446         (linux_info_proc_cmd): New function, implement "info proc".
14447         (_initialize_linux_proc): Add new command "info proc".
14448
14449 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14450
14451         * symfile.c (generic_load): Use bfd_map_over_sections method
14452         instead of manipulating bfd structure members directly.
14453         (add_section_size_callback): New function, bfd sections callback
14454         used by generic_load.
14455         (load_sections_callback): New function, bfd sections callback
14456         used by generic_load.
14457
14458 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14459
14460         [Based on work by Jim Blandy]
14461         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14462         (builtin_type_vec128): Export.
14463         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14464         types.
14465         (builtin_type_vec128): New builtin type for 128 bit vector
14466         registers.
14467         (build_gdbtypes): Initialize builtin_type_v16qi and
14468         builtin_type_v8hi. Create the vec128 register builtin type
14469         structure.
14470         (build_builtin_type_vec128): New function.
14471         (_initialize_gdbtypes): Register builtin_type_v16qi and
14472         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14473         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14474         AltiVec register to new builtin type.
14475
14476 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14477
14478         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14479         to make_cv_type.
14480
14481 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14482
14483         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14484         CLEAN_UP_REGISTER_VALUE.
14485         * regcache.c (supply_register): Update only call.
14486
14487 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14488
14489         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14490         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14491         a29k-*-vxworks* targets as obsolete.
14492
14493 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14494
14495         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14496         until we can resolve portability issues.
14497         * gregset.h: Remove references to fpxregs.
14498         * gcore.c (gcore_command): Initialize note_sec to NULL.
14499
14500 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14501
14502         * signals.c (target_signal_to_name): Rewrite.  Only use
14503         signals[].name when in bounds and non-NULL.
14504
14505 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14506
14507         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14508         * signals.c (target_signal_to_name): Verify that SIG is within the
14509         bounds of the signals array.
14510
14511 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14512
14513         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14514
14515 2002-01-13  Keith Seitz  <keiths@redhat.com>
14516
14517         * stack.c (print_frame_info_base): Print the frame's pc
14518         only if when print_frame_info_listing_hook is not defined.
14519
14520 2002-01-13  Keith Seitz  <keiths@redhat.com>
14521
14522         * varobj.c (varobj_set_value): Make sure that there were no
14523         errors evaluating the object before attempting to set its
14524         value.
14525         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14526         so this offset adjustment is no longer necessary.
14527         (create_child): Don't set the error flag if the child is
14528         a CPLUS_FAKE_CHILD.
14529         (value_of_child): If value_fetch_lazy fails, return NULL
14530         so that callers will be notified that an error occurred.
14531         (c_value_of_variable): Delay check of variable's validity
14532         until later. We actually want all structs and unions to have
14533         the value "{...}".
14534         Do not return "???" for variables which could not be evaluated.
14535         This error condition must be returned to the caller so that it
14536         can get the error condition from gdb.
14537         (cplus_name_of_child): Adjust index for vptr before figuring
14538         out the name of the child.
14539         (cplus_value_of_child): If a child's (real) parent is not valid,
14540         don't even bother trying to give a value for it. Just return
14541         an error. Change all instances in this function.
14542         (cplus_type_of_child): If our parent is one of the "fake"
14543         parents, we need to get at the type of the real parent, and
14544         derive the child's true type using this information.
14545
14546 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14547
14548         From 2002-01-09 John Marshall <johnm@falch.net>:
14549         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14550         sources.redhat.com, and tweak some related URLs which had
14551         suffered from linkrot.
14552
14553 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14554
14555         From Jeff law:
14556         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14557         structures passed in registers.
14558
14559 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14560
14561         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14562         white space which prevented compilation.  Reported by DSK
14563         <dsk@student.unsw.edu.au>.
14564
14565 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14566
14567         * symfile.c (build_section_addr_info_from_section_tab):
14568         Use bfd access method instead of manipulating bfd directly.
14569         (syms_from_objfile): Ditto.
14570         (simple_overlay_update_1): Ditto.
14571         (simple_overlay_update): Ditto.
14572         (generic_load): Ditto.
14573         (overlay_unmapped_address): FIXME comment, bfd access methods.
14574         (sections_overlap): FIXME comment, bfd access methods.
14575         (pc_in_mapped_range): FIXME comment, bfd access methods.
14576         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14577         (section_is_mapped): FIXME comment, bfd access methods.
14578         (section_is_overlay): FIXME comment, bfd access methods.
14579
14580         * symfile.c (generic_load): Whitespace and long line cleanups.
14581         Remove duplicate variable, change several local variables to
14582         more appropriate data types.
14583         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14584
14585 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14586
14587         From Peter Schauer:
14588         * language.c (longest_local_hex_string_custom): Use phex_nz to
14589         convert NUM to a hex string.
14590
14591 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14592
14593         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14594         the function.
14595         Update Copyright year.
14596
14597 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14598
14599         * language.c (longest_raw_hex_string): Delete unused function.
14600
14601 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14602
14603         * MAINTAINERS (write-after-approval): Add myself.
14604         * dwarf2read.c (read_tag_string_type): Handling of
14605         DW_AT_byte_size.
14606         (read_tag_string_type): FORTRAN fix to prevent propagation of
14607         first string size.
14608         (set_cu_language): Handling of DW_LANG_Fortran95
14609
14610 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14611
14612         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14613         GETPID(inferior_ptid).
14614         (store_inferior_registers): Likewise.
14615
14616 2002-01-10  Jason Merrill  <jason@redhat.com>
14617
14618         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14619         Fix DW_OP_minus.
14620
14621 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14622
14623         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14624         and bfd/elf32-sh-nbsd.c.
14625
14626 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14627
14628         * NEWS: Mention --pid and corefile/proc-id behavior change.
14629
14630         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14631         * gcore.c: Include cli/cli-decode.h instead of command.h.
14632
14633         * main.c (captured_main): Add new command line option "--pid".
14634         If the second command line argument (following the symbol-file)
14635         begins with a digit, try to attach to it before trying to open
14636         it as a corefile.
14637         (print_gdb_help): Document the "--pid" argument.
14638
14639 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14640
14641         * completer.c (command_completer): New function.
14642
14643         * completer.h <command_completer>: Add prototype.
14644
14645         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14646         completer for the "help" command.
14647
14648 2002-01-09  Jason Merrill  <jason@redhat.com>
14649
14650         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14651
14652 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14653
14654         * i386-linux-nat.c (fill_fpxregset): Make global.
14655         (store_fpxregset): Ditto.
14656
14657         * gregset.h (gdb_fpxregset_t): Define.
14658         (supply_fpxregset): Prototype.
14659         (fill_fpxregset): Prototype.
14660
14661         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14662
14663 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14664
14665         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14666         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14667         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14668
14669 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14670
14671         * MAINTAINERS: Update target maintainer rules so that any
14672         Maintainer can approve a tested patch for a maintenance-only
14673         target.
14674
14675 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14676
14677         * MAINTAINERS (write-after-approval): Add myself.
14678
14679         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14680         IN_SIGTRAMP.
14681
14682 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14683
14684         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14685         real name of the executable, rather than the /proc name.
14686
14687 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14688
14689         Implement a "generate-core-file" command in gdb, save target state.
14690         * gcore.c: New file.  Implement new command 'generate-core-file'.
14691         Save a corefile image of the current state of the inferior.
14692         * linux-proc.c: Add linux-specific code for saving corefiles.
14693         * target.h (struct target_ops): Add new target vectors for saving
14694         corefiles; to_find_memory_regions and to_make_corefile_notes.
14695         (target_find_memory_regions): New macro.
14696         (target_make_corefile_notes): New macro.
14697         * target.c (update_current_target): Inherit new target methods.
14698         (dummy_find_memory_regions): New place-holder method.
14699         (dummy_make_corefile_notes): New place-holder method.
14700         (init_dummy_target): Initialize new dummy target vectors.
14701         * exec.c (exec_set_find_memory_regions): New function.
14702         Allow the exec_ops vector for memory regions to be taken over.
14703         (exec_make_note_section): New function, target vector method.
14704         * defs.h (exec_set_find_memory_regions): Export prototype.
14705         * procfs.c (proc_find_memory_regions): New function, corefile method.
14706         (procfs_make_note_section): New function, corefile method.
14707         (init_procfs_ops): Set new target vector pointers.
14708         (find_memory_regions_callback): New function.
14709         (procfs_do_thread_registers): New function.
14710         (procfs_corefile_thread_callback): New function.
14711         * sol-thread.c (sol_find_memory_regions): New function.
14712         (sol_make_note_section): New function.
14713         (init_sol_thread_ops): Initialize new target vectors.
14714         * inftarg.c (inftarg_set_find_memory_regions): New function.
14715         Allow to_find_memory_regions vector to be taken over.
14716         (inftarg_set_make_corefile_notes): New function.
14717         Allow to_make_corefile_notes vector to be taken over.
14718         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14719         interface layer if not target_has_execution (may be a corefile).
14720         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14721         * config/sparc/sun4sol2.mh: Ditto.
14722         * config/alpha/alpha-linux.mh: Ditto.
14723         * config/arm/linux.mh: Ditto.
14724         * config/i386/x86-64linux.mh: Ditto.
14725         * config/ia64/linux.mh: Ditto.
14726         * config/m68k/linux.mh: Ditto.
14727         * config/mips/linux.mh: Ditto.
14728         * config/powerpc/linux.mh: Ditto.
14729         * config/sparc/linux.mh: Ditto.
14730
14731 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14732
14733         * arm-linux-nat.c: Remove references to regcache.c internal data
14734         (registers[] and register_valid[]).
14735
14736 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14737
14738         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14739         so that attaching to a pid will automatically read the process's
14740         symbol file and shlibs.
14741         * Makefile.in: Add rule for linux-proc.o.
14742         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14743         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14744         * config/arm/linux.mh: Ditto.
14745         * config/i386/linux.mh: Ditto.
14746         * config/i386/x86-64linux.mh: Ditto.
14747         * config/ia64/linux.mh: Ditto.
14748         * config/m68k/linux.mh: Ditto.
14749         * config/mips/linux.mh: Ditto.
14750         * config/powerpc/linux.mh: Ditto.
14751         * config/sparc/linux.mh: Ditto.
14752
14753 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14754
14755         * win32-nat.c: Add i386-tdep.h dependency.
14756
14757 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14758
14759         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14760         instead of bfd_get_arch_size.  Don't bail out just because
14761         there's no exec_bfd.
14762
14763         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14764         * p-valprint.c (pascal_object_print_value): Ditto.
14765         * somread.c (som_symtab_read): Ditto.
14766         * symfile.c (simple_free_overlay_region_table): Ditto.
14767         * valops.c (value_assign): Ditto.
14768
14769         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14770         use tilde_expand and strerror for opening save-tracepoints file.
14771
14772         * thread-db.c (thread_db_new_objfile): Indendation fix.
14773
14774         * infptrace.c (GDB_MAX_ALLOCA): New define.
14775         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14776         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14777         can be overridden with whatever value is appropriate to the host).
14778         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14779         alloca to allocate potentially large buffer.
14780         * rs6000-nat.c (child_xfer_memory): Ditto.
14781         * symm-nat.c (child_xfer_memory): Ditto.
14782         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14783
14784 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14785
14786         From Nick Clifton  <nickc@redhat.com>
14787         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14788
14789 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14790
14791         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14792         Don't use exec_bfd if it's NULL.
14793
14794 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14795
14796         * valops.c (value_arg_coerce): Fix formatting.
14797
14798 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14799
14800         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14801         * gnu-nat.c: Ditto.
14802
14803 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14804
14805         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14806         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14807         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14808         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14809         z8k-coff have not been multi-arched.  Update z8k-coff build
14810         status.
14811
14812 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14813
14814         * MAINTAINERS: Mark a29k target as obsolete.
14815         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14816         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14817         comments.
14818         * NEWS: Note that a29k targets are obsolete.
14819         * a29k-tdep.c: Mark as obsolete.
14820         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14821         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14822         a29k-*-vxworks* targets as obsolete.
14823         * remote-adapt.c: Obsolete.
14824         * remote-eb.c: Obsolete.
14825         * remote-mm.c: Obsolete.
14826         * remote-udi.c: Obsolete.
14827         * config/a29k/a29k-udi.mt: Obsolete.
14828         * config/a29k/a29k.mt: Obsolete.
14829         * config/a29k/tm-a29k.h: Obsolete.
14830         * config/a29k/tm-vx29k.h: Obsolete.
14831         * config/a29k/vx29k.mt: Obsolete.
14832
14833 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14834
14835         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14836         with BFD_ENDIAN_BIG.
14837
14838 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14839
14840         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14841         * configure, config.in: Re-generate.
14842         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14843         * defs.h: Do not include <endian.h>.
14844
14845 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
14846
14847         * acconfig.h (HAVE_PT_GETXMMREGS): New.
14848         * config.in: Regenerate.
14849         * configure.in: Update copyright years.
14850         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14851         * configure: Regenerate.
14852         * i386bsd-nat.c: Update copyright years.
14853         (fill_gregset): Use regcache_collect.
14854         (fetch_inferior_registers): Only fetch integer registers
14855         if requested to do so.  Add support for XMM registers
14856         using PT_GETXMMREGS.
14857         (store_inferior_registers): Only store integer registers
14858         if requested to do so.  Add support for XMM registers
14859         using PT_SETXMMREGS.
14860         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14861         (store_inferior_registers): Remove.
14862         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14863         (fetch_elfcore_registers): New function.
14864         (i386nbsd_elfcore_fns): New.
14865         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14866         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14867         i386bsd-nat.o.
14868         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14869         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14870         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14871         * config/i386/tm-nbsd.h: Update copyright years.
14872         (HAVE_SSE_REGS): Define.
14873         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14874         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14875         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14876         (SIGCONTEXT_PC_OFFSET): Remove.
14877         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14878
14879 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14880
14881         * configure.tgt: Remove powerpc-*-macos* target.
14882         * config/m68k/xm-mpw.h: Delete file.
14883         * config/xm-mpw.h: Delete file.
14884         * ser-mac.c: Delete file.
14885         * mpw-make.sed: Delete file.
14886         * mpw-config.in: Delete file.
14887         * mac-xdep.c: Delete file.
14888         * mac-gdb.r: Delete file.
14889         * mac-defs.h: Delete file.
14890         * mac-nat.c: Delete file.
14891         * config/powerpc/macos.mh: Delete file.
14892         * config/powerpc/macos.mt: Delete file.
14893         * config/powerpc/nm-macos.h: Delete file.
14894         * config/powerpc/tm-macos.h: Delete file.
14895         * source.c (openp, open_source_file): Remove obsolete code.
14896         * top.c (gdb_readline): Ditto.
14897         * utils.c (query): Ditto.
14898         * event-top.c (display_gdb_prompt): Ditto.
14899         * Makefile.in (ser-mac.o): Delete obsolete target.
14900         * NEWS: Update.
14901
14902 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14903
14904         * defs.h (BIG_ENDIAN): Delete macro definition.
14905         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14906         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14907         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14908         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14909         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14910         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14911         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14912         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14913         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14914         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14915         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14916         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14917         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14918         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14919         * gdbarch.c: Re-generate.
14920
14921 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14922
14923         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14924         for core files.
14925
14926 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14927
14928         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14929
14930 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14931
14932         * value.h (value_ptr): Delete typedef.
14933
14934 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14935
14936         * i386nbsd-nat.c: Update copyright years.
14937         Include i386-tdep.h.
14938
14939 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
14940
14941         * stabsread.c: Update copyright years.
14942
14943         From Debashis Mahata <debashis.mahata@wipro.com>:
14944         (read_struct_fields): Deal with Sun C compiler erroneous stab
14945         output for structs and unions.
14946         Fix PR gdb/269.
14947
14948 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14949
14950         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14951         prototype.
14952
14953 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14954
14955         * cp-abi.c: Fix whitespace.
14956         (baseclass_offset): New wrapper function.
14957         * cp-abi.h (baseclass_offset): Add prototype.
14958         (struct cp_abi_ops): Add baseclass_offset pointer.
14959
14960         * valops.c (vb_match): Move to...
14961         * gnu-v2-abi.c (vb_match): here.
14962         * valops.c (baseclass_offset): Move to...
14963         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14964
14965         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14966
14967         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14968         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14969         * hpacc-abi.c (init_hpacc_ops): Likewise.
14970
14971 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14972
14973         * valops.c (find_overload_match): Accept obj as a
14974         reference parameter.  Update it before returning.
14975         * value.h (find_overload_match): Update prototype.
14976         * eval.c (evaluate_subexp_standard): Pass object to
14977         find_overload_match by reference.
14978
14979 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
14980
14981         * valarith.c: Replace value_ptr with struct value pointer.  Remove
14982         register attribute from value declarations.
14983         * valops.c: Ditto.
14984         * value.h: Ditto.
14985         * scm-lang.c (scm_lookup_name): Ditto.
14986
14987 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14988
14989         Abstract the functionality of iterating over mapped memory
14990         regions into a general purpose iterator function.
14991         * procfs.c (iterate_over_mappings): New function, general purpose
14992         iterator for memory sections.
14993         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14994         (solib_mappings_callback): New function, callback for above.
14995         (info_proc_mappings): Reimpliment using iterate_over_mappings.
14996         (info_mappings_callback): New function, callback for above.
14997
14998         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14999
15000 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15001
15002         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15003         * i386-tdep.c: Include "elf-bfd.h".
15004         (process_note_abi_tag_sections): New function.
15005         (i386_gdbarch_init): Add code to recognize various OS/ABI
15006         combinations.
15007
15008         * maint.c (_initialize_maint_cmds): Add missing \ in
15009         string-literal.
15010
15011 For older changes see ChangeLog-2001
15012 \f
15013 Local Variables:
15014 mode: change-log
15015 left-margin: 8
15016 fill-column: 74
15017 version-control: never
15018 End: