* tracepoint.c (ISATTY): Removed.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
2
3         * tracepoint.c (ISATTY): Removed.
4
5 2002-12-26  J. Brobecker  <brobecker@gnat.com>
6
7         Continuing work to convert the hppa targets to multiarch partil.
8
9         * hppa-tdep.c: Add some missing forward declarations.
10         (frameless_function_invocation): Prefix the function name
11         by "hppa_" to avoid polluting the namespace.  Update all calls
12         to use the new function name.
13         (saved_pc_after_call): Ditto.
14         (init_extra_frame_info): Ditto.
15         (frame_chain): Ditto.
16         (push_dummy_frame): Ditto.
17         (target_read_pc): Ditto.
18         (target_write_pc): Ditto.
19         (in_solib_call_trampoline): Ditto.
20         (in_solib_return_trampoline): Ditto.
21         (skip_trampoline_code): Ditto.
22         (hppa_read_fp): New function, renamed from target_read_fp.
23         (hppa_target_read_fp): New function, using hppa_read_fp.
24         This function conforms to the function profile for the
25         READ_FP gdbarch method.
26         (hppa_extract_struct_value_address): New function, extracted
27         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
28         macro.
29         (hppa_frame_num_args): New function.
30         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
31
32         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
33         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
34         for the switch to multiarch partial.
35         Update some of the macros definitions to match some changes
36         described above in the name of the function they are calling.
37         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
38         not be straightforward to convert. Do now wrap it inside
39         "#if !... #endif" to remember that this macro has still not
40         been taken care of.
41         (FIX_CALL_DUMMY): Likewise.
42
43 2002-12-26  J. Brobecker  <brobecker@gnat.com>
44
45         Continuing work to convert the hppa targets to multiarch partial.
46
47         * hppa-tdep.c (hppa_register_raw_size): New function replacing
48         the body of macro REGISTER_RAW_SIZE.
49         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
50         config/pa/tm-hppah.h. These functions will be used to initialize
51         the gdbarch structure.
52         (hppa_hpux_pc_in_sigtramp): New function.
53         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
54         (hppa_hpux_frame_base_before_sigtramp): New function.
55         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
56         Add gdbcore.h #include.
57         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
58         of this gdbarch-eligible macro to a call to the new associated
59         function.
60         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
61         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
62         into a call to the new associated function.
63         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
64         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
65         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
66
67 2002-12-24  David Carlton  <carlton@math.stanford.edu>
68
69         * config/sparc/tm-sparc.h: Delete duplicate definition of
70         DEPRECATED_PC_IN_CALL_DUMMY.
71
72 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
73
74         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
75         $(gdb_assert_h).
76         * configure.tgt: Recognize mips64*-*-linux*.
77         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
78         (supply_32_bit_reg): New function.
79         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
80         (fill_gregset): Use regcache_collect() instead of
81         deprecated_registers[].
82         (register_addr): Change name to mips_linux_register_addr().
83         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
84         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
85         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
86         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
87         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
88         (MIPS64_LINUX_JB_PC): New defines.
89         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
90         (mips64_elf_fpregset_t): New typedefs.
91         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
92         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
93         (mips64_linux_register_addr, set_mips_linux_register_addr)
94         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
95         (init_register_addr_data)
96         New functions.
97         (fetch_core_registers): Add support for core file formats with 64-bit
98         registers.
99         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
100         (register_addr_data): New static global variable.
101         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
102         gdbarch_register_osabi() for each MIPS machine.
103         * config/mips/linux64.mt: New file.
104         * config/mips/tm-linux64.h: New file.
105
106 2002-12-23  Adam Fedor  <fedor@gnu.org>
107
108         * maint.c (maintenance_demangle): Add switch to demangle
109         ObjC language symbols as well.
110
111 2002-12-23  Adam Fedor  <fedor@gnu.org>
112
113         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
114         last argument from complaint function call.
115
116 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
117
118         * exec.c (print_section_info): Add FIXME comments regarding format
119         string choices.
120
121 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
122
123         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
124         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
125
126 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
127
128         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
129
130 2002-12-23  David Carlton  <carlton@math.stanford.edu>
131
132         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
133         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
134         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
135         information associated to a minsym, not lookup_symbol.
136
137 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
138
139         * x86-64-tdep.h (x86_64_init_abi): New prototype.
140         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
141         (x86_64_init_abi): Make non-static.  Set number of pseudo
142         registers to 0.
143         (x86_64_gdbarch_init): Remove function.
144         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
145         Remove code dealing with dissambly.
146         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
147         (_initialize_x86_64_linux_tdep): New function.
148         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
149         i386-tdep.o.
150
151 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
152
153         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
154         (struct gdb_osabi_handler): Remove member `arch'.  Add member
155         `arch_info'.
156         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
157         construct a `struct bfd_arch_info' and store it in the `struct
158         gdb_osabi_handler' that is created.
159         (gdbarch_init_osabi): Check for compatibility based on machine
160         type and architecture.
161         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
162         comment.
163         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
164         second argument in call to gdbarch_register_osabi.
165         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
166         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
167         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
168         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
169         * arm-tdep.c (_initialize_arm_tdep): Likewise.
170         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
171         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
172         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
173         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
174         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
175         * i386-tdep.c (_initialize_i386_tdep): Likewise.
176         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
177         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
178         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
179         _initialize_i386bsd_tdep and updated likewise.
180         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
181         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
182         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
183         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
184         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
185         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
186         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
187         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
188         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
189         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
190
191 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
192
193         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
194         DT_MIPS_RLD_MAP case for 64-bit targets.
195
196 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
197
198         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
199         ``temp_saved_regs'', not the pointer or other storage contiguous
200         to this pointer.
201
202 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
203
204         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
205         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
206         (mips_linux_get_longjmp_target): Delete declarations.
207         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
208         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
209         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
210         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
211         (mips_linux_get_longjmp_target)
212         (mips_linux_svr4_fetch_link_map_offsets): Make static.
213         (mips_linux_init_abi): New function.
214         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
215
216 2002-12-19  Keith Seitz  <keiths@redhat.com>
217
218         patch committed by Elena Zannoni  <ezannoni@redhat.com>
219         * thread.c (do_captured_list_thread_ids): Call prune_threads and
220         target_find_new_threads. Fix for PR mi/669.
221
222 2002-12-19  David Carlton  <carlton@math.stanford.edu>
223
224         * linespec.c (decode_line_1): Move code into decode_all_digits.
225         (decode_all_digits): New function.
226
227 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
228
229         * exec.c (print_section_info): Select a format string to use with
230         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
231
232 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
233
234         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
235         deprecated_update_current_frame_pc_hack.
236         (deprecated_update_frame_base_hack): New function.
237         * frame.h (deprecated_update_frame_pc_hack): Replace
238         (deprecated_update_frame_base_hack): Declare.
239         * infrun.c (normal_stop): Update.
240
241 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
242
243         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
244         frame_extra_info_zalloc.
245         (rs6000_frame_args_address): Use get_frame_extra_info.
246         (frame_get_saved_regs): Use get_frame_saved_regs.
247         (frame_initial_stack_address): Use get_frame_saved_regs and
248         get_frame_extra_info.
249         (frame_initial_stack_address): Use get_frame_extra_info.
250
251 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
252
253         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
254         array size.
255         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
256         checks for r3900_regnames[].
257
258 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
259
260         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
261         All uses changed
262         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
263
264 2002-12-17  David Carlton  <carlton@math.stanford.edu>
265
266         * symtab.c (lookup_partial_symbol): Don't search past the end of
267         the partial symbols.
268
269 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
270
271         * stack.c (frame_info): Use get_frame_saved_regs.
272         * breakpoint.c (until_break_command): Use get_frame_pc.
273
274 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
275
276         * buildsym.c (block_end_complaint, anon_block_end_complaint)
277         (innerblock_complaint, innerblock_anon_complaint)
278         (blockvector_complaint): Delete deprecated complaint structs.
279         (finish_block, make_blockvector, end_symtab): Replace calls
280         to complain() with calls to complaint().
281         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
282         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
283         (unexpected_type_complaint, bad_sclass_complaint)
284         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
285         Delete deprecated complaint structs.
286         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
287         Replace calls to complain() with calls to complaint().
288         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
289         (unknown_symtype_complaint, unknown_symchar_complaint)
290         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
291         (lbrac_mismatch_complaint, repeated_header_complaint)
292         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
293         Delete deprecated complaint structs.
294         (unknown_symtype_complaint, lbrac_mismatch_complaint)
295         (repeated_header_complaint)
296         (function_outside_compiliation_unit_complaint): New functions.
297         (add_old_header_file, find_corresponding_bincl_psymtab)
298         (set_namestring, find_stab_function_addr, read_dbx_symtab)
299         (process_one_symbol): Replace calls to complain() with, possibly
300         indirect, calls to complaint().
301         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
302         (unknown_attribute_form, unknown_attribute_length)
303         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
304         (const_ignored, botched_modified_type, op_deref2, op_deref4)
305         (basereg_not_handled, dup_user_type_allocation)
306         (dup_user_type_definition, missing_tag, bad_array_element_type)
307         (subscript_data_items, unhandled_array_subscript_format)
308         (unknown_array_subscript_format, not_row_major)
309         (missing_at_name): Delete deprecated complaint structs.
310         (bad_die_ref_complaint, unknown_attribute_form_complaint)
311         (dup_user_type_definition_complaint)
312         (bad_array_element_type_complaint): New functions.
313         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
314         (decode_subscript_data_item, dwarf_read_array_type)
315         (read_tag_string_type, read_subroutine_type, read_func_scope)
316         (locval, scan_partial_symbols, decode_modified_type)
317         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
318         (attribute_size): Replace calls to complain() with, possibly
319         indirect, calls to complaint().
320         * elfread.c (section_info_complaint, section_info_dup_complaint)
321         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
322         Delete deprecated complaint structs.
323         (elf_symtab_read, elfstab_offset_sections): Replace calls to
324         complain() with calls to complaint().
325         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
326         struct.
327         (stub_noname_complaint): New function.
328         (check_typedef, add_mangled_type): Replace calls to complain()
329         with calls to complaint().
330         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
331         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
332         (hpread_unhandled_type_complaint, hpread_struct_complaint)
333         (hpread_array_complaint, hpread_type_lookup_complaint)
334         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
335         (hpread_unhandled_common_complaint)
336         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
337         struct definitions and declarations.
338         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
339         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
340         Replace calls to complain() with, possibly indirect, calls to
341         complaint().
342         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
343         Likewise.
344         * mdebugread.c (bad_file_number_complaint, index_complaint)
345         (aux_index_complaint, block_index_complaint)
346         (unknown_ext_complaint, unknown_sym_complaint)
347         (unknown_st_complaint, block_overflow_complaint)
348         (basic_type_complaint, unknown_type_qual_complaint)
349         (array_index_type_complaint, bad_tag_guess_complaint)
350         (block_member_complaint, stEnd_complaint)
351         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
352         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
353         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
354         (bad_continued_complaint, bad_rfd_entry_complaint)
355         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
356         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
357         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
358         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
359         complaint structs.
360         (index_complaint, unknown_ext_complaint, basic_type_complaint)
361         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
362         (unexpected_type_code_complaint)
363         (function_outside_compilation_unit_complaint): New functions.
364         (parse_symbol, parse_type, upgrade_type, parse_procedure)
365         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
366         Replace calls to complain() with, possibly indirect calls to
367         complaint().
368         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
369         Delete deprecated complaint structs.
370         (lookup__objc_class, lookup_child_selector): Replace complain()
371         with complaint().
372         * remote-vx.c (cant_contact_target): Delete deprecated complaint
373         struct.
374         (vx_lookup_symbol): Replace complain() with complaint().
375         * stabsread.c (invalid_cpp_abbrev_complaint)
376         (invalid_cpp_type_complaint, member_fn_complaint)
377         (const_vol_complaint, error_type_complaint)
378         (invalid_member_complaint, range_type_base_complaint)
379         (reg_value_complaint, vtbl_notfound_complaint)
380         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
381         (unresolved_sym_chain_complaint, stabs_general_complaint)
382         (lrs_general_complaint, multiply_defined_struct): Delete
383         deprecated complaint structs.
384         (invalid_cpp_abbrev_complaint, ref_value_complaint)
385         (stabs_general_complaint, lrs_general_complaint)
386         (msg_unknown_complaint): New functions.
387         (dbx_lookup_type, read_cfront_baseclasses)
388         (read_cfront_member_functions, resolve_symbol_reference)
389         (define_symbol, resolve_live_range, add_live_range, read_type)
390         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
391         (read_one_struct_field, read_baseclasses, read_tilde_fields)
392         (read_cfront_static_fields, attach_fields_to_type)
393         (complain_about_struct_wipeout, read_range_type)
394         (common_block_start, common_block_end, cleanup_undefined_types)
395         (scan_file_globals): Replace complain() with complaint().
396         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
397         Delete deprecated complaint struct declarations.
398         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
399         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
400         (bf_not_found_complaint, ef_complaint, eb_complaint)
401         (function_outside_compilation_unit_complaint): New functions.
402         (record_include_begin, record_include_end, enter_line_range)
403         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
404         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
405         complain() with complaint().
406
407 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
408
409         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
410         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
411         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
412         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
413         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
414         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
415         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
416         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
417         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
418         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
419         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
420         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
421         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
422         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
423         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
424         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
425         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
426         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
427         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
428         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
429         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
430         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
431         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
432         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
433         * config/m88k/xm-dgux.h: Delete.
434         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
435         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
436         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
437         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
438         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
439         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
440         * ch-valprint.c: Delete.
441         
442 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
443
444         * infrun.c (handle_inferior_event): Rearrange code to resume if
445         no catchpoint triggers for an event.
446
447 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
448
449         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
450         and TARGET_WAITKIND_VFORKED cases.
451
452 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
453
454         * infrun.c (handle_inferior_event): Assume that catchpoints
455         are not affected by DECR_PC_AFTER_BREAK.
456
457 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
458
459         * target.c (update_current_target): Don't inherit DONT_USE.
460         * target.h (struct target_ops): Remove DONT_USE.
461         (target_next): Remove macro.
462
463 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
464
465         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
466
467 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
468
469         * arm-tdep.c (convert_from_extended): New argument to hold the
470         type of floating point result we want to convert to.  Make input 
471         argument const.  Fix all callers.
472         (convert_to_extended): Similarly.
473         (arm_extract_return_value): Now takes a regcache argument.  Change
474         code to use regcache accessor functions.  Correctly extract 
475         smaller-than-word results on big-endian machines.
476         (arm_store_return_value): Now takes a regcache argument.  Change
477         code to use regcache accessor functions.  Correctly zero/sign extend
478         smaller than word results before storing into r0.
479         (arm_gdbarch_init): Register new-style extract_return_value and
480         store_return_value functions.
481
482 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
483
484         * thread-db.c (thread_from_lwp): Uniquify error msg.
485         (lwp_from_thread): Ditto.
486         (check_event): Ditto.
487         (find_new_threads_callback): Ditto.
488         (thread_db_pid_to_str): Ditto.
489
490 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
491
492         * frame.h (get_frame_saved_regs): Declare.
493         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
494         pointer.
495         * frame.c (get_frame_saved_regs): New function.
496         (frame_saved_regs_zalloc): Return the allocated saved_regs.
497
498 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
499
500         * frame.c (deprecated_update_current_frame_pc_hack): New
501         function.
502         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
503         * infrun.c (normal_stop): Use said function instead of directly
504         modifying the frame's PC.
505         
506 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
507
508         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
509
510 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
511
512         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
513         config/mips/tm-irix6.h (NUM_REGS): Delete.
514         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
515         (temp_saved_regs): Declare as a pointer rather than an array.
516         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
517         that ``temp_saved_regs'' has storage allocated to it and that
518         it's the correct size.
519
520 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
521
522         * defs.h (init_last_source_visited): New prototype.
523         (add_path): Ditto.
524         * source.c (add_path): New function that adds to a specified path.
525         (mod_path): Change to call add_path.
526         (init_last_source_visited): New function to allow interfaces to
527         initialize static variable: last_source_visited.  Part of fix
528         for PR gdb/741.
529         * Makefile.in: Add support for mi/mi-cmd-env.c.
530
531 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
532
533         * frame.h (frame_id_unwind): Declare.
534         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
535         id_unwind_cache.
536         (frame_id_unwind_ftype): Declare.
537         * frame.c (frame_id_unwind): New function.
538         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
539         (create_new_frame, get_prev_frame): Pass id_unwind to
540         set_unwind_by_pc.
541         (frame_saved_regs_id_unwind): New function.
542         (frame_saved_regs_id_unwind): New function.
543         * dummy-frame.c (dummy_frame_id_unwind): New function.
544         (struct dummy_frame): Add field id.
545         (generic_push_dummy_frame): Initialize `id'.
546         * dummy-frame.h (dummy_frame_id_unwind): Declare.
547
548 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
549
550         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
551         pass that to set_momentary_breakpoint.  Move comments to where they
552         belong.
553         * frame.h (set_current_frame): Delete declaration.
554         * frame.c (set_current_frame): Delete function.
555
556 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
557
558         * frame.c (frame_extra_info_zalloc): New function.
559         * frame.h (frame_extra_info_zalloc): Declare.
560
561 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
562
563         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
564         in the previous prototype change to set_momentary_breakpoint.
565
566 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
567
568         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
569         and saw_child_exec.
570         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
571         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
572         (stop_stepping): Remove outdated check for child vfork events.
573
574 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
575
576         * GDB 5.3 released from gdb_5_3-branch.
577
578 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
579
580         * corelow.c (init_core_ops): Delete references to to_require_attach
581         and to_require_detach.
582         * exec.c (init_exec_ops): Likewise.
583         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
584         hppa_require_detach directly.
585         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
586         * inftarg.c (child_detach): Remove.
587         (child_detach_from_process): Rename to child_detach, remove
588         after_fork argument.
589         (child_attach): Remove.
590         (child_attach_to_process): Rename to child_attach, remove after_fork
591         argument.
592         (init_child_ops): Delete references to to_require_attach
593         and to_require_detach.
594         * infttrace.c (hppa_require_attach): Update comment.
595         * target.c (cleanup_target, update_current_target)
596         (init_dummy_target, setup_target_debug): Delete references to
597         to_require_attach and to_require_detach.
598         (find_default_require_detach, find_default_require_attach)
599         (debug_to_require_attach, debug_to_require_detach): Remove
600         functions.
601         * target.h (struct target_ops): Remove to_require_attach
602         and to_require_detach.
603         (target_require_attach, target_require_detach): Delete macros.
604         (find_default_require_detach, find_default_require_attach): Delete
605         prototypes.
606         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
607
608 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
609
610         * frame.c (get_frame_extra_info): New function.
611         * frame.h (get_frame_extra_info): Declare.
612
613 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
614
615         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
616         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
617         with `struct frame_id'.
618         (set_longjmp_resume_breakpoint): Ditto.
619         * infrun.c (handle_inferior_event): Update.
620         * breakpoint.c (watch_command_1, until_break_command): Update.
621         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
622         (handle_inferior_event, step_over_function): Update.
623         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
624         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
625         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
626         * infcmd.c (finish_command, run_stack_dummy): Update.
627
628 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
629
630         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
631         (dwarf2_non_const_array_bound_ignored)
632         (dwarf2_missing_line_number_section)
633         (dwarf2_statement_list_fits_in_line_number_section)
634         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
635         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
636         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
637         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
638         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
639         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
640         (dwarf2_missing_member_fn_type_complaint)
641         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
642         (dwarf2_const_value_length_mismatch)
643         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
644         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
645         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
646         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
647         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
648         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
649         complaints using deprecated struct..
650         (dwarf2_non_const_array_bound_ignored_complaint)
651         (dwarf2_complex_location_expr_complaint)
652         (dwarf2_unsupported_at_frame_base_complaint)
653         (dwarf2_const_value_length_mismatch_complaint)
654         (dwarf2_macros_too_long_complaint)
655         (dwarf2_macro_malformed_definition_complaint)
656         (dwarf2_invalid_attrib_class_complaint): New functions.
657         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
658         (read_structure_scope, read_array_type, read_common_block)
659         (read_tag_pointer_type, read_base_type, read_partial_die)
660         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
661         (new_symbol, dwarf2_const_value, read_type_die)
662         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
663         (parse_macro_definition, dwarf_decode_macros): Replace calls to
664         complain() with, possibly indirect, calls to complaint().
665
666 2002-12-11  Andrew Cagney  <cagney@redhat.com>
667
668         * frame.c (deprecated_get_frame_saved_regs): Rename
669         get_frame_saved_regs.
670         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
671         * sparc-tdep.c: Update.
672         * hppa-tdep.c: Update.
673         * h8500-tdep.c: Update.
674
675 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
676
677         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
678         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
679         ``char *'' for return and parameter types.
680         * gdbarch.h, gdbarch.c: Regenerate.
681         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
682         return type from ``char *'' to ``const char *''.
683         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
684         const.
685
686 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
687
688         * i386-tdep.c: Include "dummy-frame.h".
689         (i386_frame_chain, i386_frame_saved_pc): Replace
690         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
691         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
692
693 2002-12-10  Andrew Cagney  <cagney@redhat.com>
694
695         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
696         Change to a function with predicate.
697         * gdbarch.h, gdbarch.c: Re-generate.
698         * frame.c (get_prev_frame): Update.  Test
699         DEPRECATED_INIT_FRAME_PC_P.
700         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
701         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
702         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
703         * alpha-tdep.c (alpha_gdbarch_init): Update.
704         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
705         * mips-tdep.c (mips_gdbarch_init): Update.
706         * i386-interix-tdep.c (i386_interix_init_abi): Update.
707         * arm-tdep.c: Update comments.
708         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
709         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
710         * frv-tdep.c (frv_gdbarch_init): Ditto.
711         * x86-64-tdep.c (x86_64_init_abi): Ditto.
712         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
713         * s390-tdep.c (s390_gdbarch_init): Ditto.
714         * v850-tdep.c (v850_gdbarch_init): Ditto.
715         * vax-tdep.c (vax_gdbarch_init): Ditto.
716         * sh-tdep.c (sh_gdbarch_init): Ditto.
717         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
718         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
719         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
720         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
721         * i386-tdep.c (i386_gdbarch_init): Ditto.
722         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
723         * cris-tdep.c (cris_gdbarch_init): Ditto.
724         * avr-tdep.c (avr_gdbarch_init): Ditto.
725         * arm-tdep.c (arm_gdbarch_init): Ditto.
726         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
727         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
728
729 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
730
731         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
732         CHILD_FOLLOW_FORK.
733         * hppah-nat.c (saved_vfork_pid): Add.
734         (child_post_follow_vfork): Remove.
735         (child_follow_fork): New function.
736         (child_wait): Call detach_breakpoints after receiving the child vfork.
737         Call child_resume directly instead of going through resume ().
738         Make sure we have the exec before reporting the vfork.
739         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
740         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
741         (follow_fork): New function.  Call target_follow_fork.
742         (follow_inferior_reset_breakpoints): New function broken out from
743         old follow_inferior_fork.
744         (resume): Remove hack to follow exec after vfork.
745         * inftarg.c (child_post_follow_vfork): Remove.
746         (child_follow_fork): New function.
747         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
748         * target.c (cleanup_target): Replace to_post_follow_vfork with
749         to_follow_fork.
750         (update_current_target): Likewise.
751         (setup_target_debug): Likewise.
752         (debug_to_post_follow_vfork): Remove.
753         (debug_to_follow_fork): New function.
754         * target.h (struct target_ops): Replace to_post_folow_vfork with
755         to_follow_fork.
756         (child_post_follow_vfork): Remove prototype.
757         (child_follow_fork): Add prototype.
758         (target_post_follow_vfork): Remove macro.
759         (target_follow_fork): Add macro.
760
761 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
762
763         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
764         (child_post_follow_vfork): Cancel pending exec event if we follow
765         the parent.
766         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
767         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
768         event at the following wait call if necessary.
769         * infrun.c (follow_vfork): Don't follow_exec here.
770         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
771         case about HP/UX 10.20.  Remove code pushed down to
772         hppah-nat.c:child_wait.
773         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
774         vfork_in_flight is set.
775
776 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
777
778         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
779         for the parent's fork event.
780         * infrun.c (handle_inferior_event): Only expect one fork event.
781         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
782         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
783
784 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
785
786         * PROBLEMS: Delete reference to PR gdb/725.
787         
788         * MAINTAINERS (gdb.c++): Add David Carlton.
789
790 2002-12-09  David Carlton  <carlton@math.stanford.edu>
791
792         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
793         * cli/cli-cmds.c: Ditto.
794
795 2002-12-09  Andrew Cagney  <cagney@redhat.com>
796
797         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
798         function address in <>.
799         * gdbarch.c: Re-generate.
800
801 2002-12-09  David Carlton  <carlton@math.stanford.edu>
802
803         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
804
805 2002-12-09  David Carlton  <carlton@math.stanford.edu>
806
807         * linespec.c (symtab_from_filename): New function.
808         (decode_line_1): Move code into symtab_from_filename.
809
810 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
811
812         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
813
814 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
815
816         * f-valprint.c (info_common_command): Use get_frame_pc.
817         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
818         * ax-gdb.c (agent_command): Ditto.
819         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
820         (rs6000_pop_frame): Ditto.
821         (rs6000_frameless_function_invocation): Ditto.
822         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
823         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
824         * macroscope.c (default_macro_scope): Ditto.
825         * stack.c (print_frame_info_base): Ditto.
826         (print_frame, frame_info, print_frame_label_vars): Ditto.
827         (return_command, func_command, get_frame_language): Ditto.
828         * infcmd.c (finish_command): Ditto.
829         * dummy-frame.c (cached_find_dummy_frame): Ditto.
830         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
831         (break_at_finish_at_depth_command_1): Ditto.
832         (break_at_finish_command_1): Ditto.
833         (until_break_command, get_catch_sals): Ditto.
834         * blockframe.c (func_frame_chain_valid): Ditto.
835         (frameless_look_for_prologue): Ditto.
836         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
837
838 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
839
840         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
841         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
842
843 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
844
845         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
846         to pure functions.
847         * gdbarch.h, gdbarch.c: Re-generate.
848         * frame.c (get_prev_frame): Explictly assign prev's pc with value
849         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
850
851         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
852         declaration to a function returning a CORE_ADDR.
853         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
854         * arch-utils.c (init_frame_pc_noop): Return the PC value.
855         (init_frame_pc_default): Ditto.
856         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
857         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
858         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
859         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
860         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
861         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
862
863         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
864         to init_frame_pc_noop.
865         (i386_interix_init_frame_pc): Delete function.
866         * z8k-tdep.c (init_frame_pc): Delete function.
867         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
868         (INIT_FRAME_PC_FIRST): Ditto.
869         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
870         (INIT_FRAME_PC_FIRST): Ditto.
871         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
872         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
873         init_frame_pc_noop.
874         (INIT_FRAME_PC_FIRST): Convert to an expression.
875         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
876
877 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
878
879         * blockframe.c: Use get_frame_base instead of directly accessing
880         the `struct frame_info' member frame.
881         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
882         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
883
884 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
885
886         * Makefile.in (readline_h): Define.
887         (completer.o): Depend on readline_h.
888         (corelow.o): Ditto.
889         (event-top.o): Ditto.
890         (exec.o): Ditto.
891         (solib.o): Ditto.
892         (source.o): Ditto. 
893         (symfile.o): Ditto. 
894         (symmisc.o): Ditto. 
895         (top.o): Ditto.
896         (tracepoint.o): Ditto. 
897         (utils.o): Ditto.
898         (cli-dump.o): Ditto.
899         (tui-hooks.o): Ditto. 
900         (tuiWin.o): Ditto. 
901
902 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
903
904         More cleanup from import of readline 4.3.
905         * completer.h (complete_line, readline_line_completion_function):
906         Update prototypes.
907         (line_completion_function): Removed, not used outside of completer.c.
908         * completer.c (readline_line_completion_function,
909         complete_function, line_completion_function): Use const for first
910         parameter.
911         (line_completion_function): Make static.
912         (filename_completer): filename_completion_function is now called
913         rl_filename_completion_function
914         * corelow.c: Include <readline/readline.h>.
915         * exec.c: Ditto.
916         * solib.c: Ditto.
917         * source.c: Ditto.
918         * symfile.c: Ditto.
919         * symmisc.c: Ditto.
920         * top.c (init_main): No need to coerce
921         readline_line_completion_function anymore.
922         * cli/cli-dump.c: Include <readline/readline.h>.
923
924 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
925
926         * stack.c (frame_info): Use get_prev_frame.
927         * blockframe.c (frame_address_in_block): Ditto.
928         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
929         (rs6000_frameless_function_invocation): Ditto.
930         (rs6000_frame_saved_pc): Ditto.
931         (rs6000_frame_chain): Ditto.
932         * arch-utils.c (init_frame_pc_default): Ditto.
933
934 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
935
936         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
937         Delete redundant definition.
938
939 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
940
941         Import of readline 4.3:
942         * cli/cli-cmds.c: Include readline/tilde.h.
943         * cli/cli-setshow.c: Ditto.
944         * defs.h: Don't declare tilde_expand anymore, since readline
945         exports it.
946
947 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
948
949         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
950         -Werror on this file.
951
952 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
953
954         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
955         the format name.
956         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
957         * gdbarch.c: Regenerate.
958         
959 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
960
961         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
962         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
963         provide a default value.
964         * gdbarch.h, gdbarch.c: Regenerate.
965         * frame.c (get_prev_frame): Update.  Check
966         DEPRECATED_INIT_FRAME_PC_FIRST_P.
967         * s390-tdep.c (s390_gdbarch_init): Update.
968         * mips-tdep.c (mips_gdbarch_init): Update.
969         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
970         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
971         * alpha-tdep.c (alpha_gdbarch_init): Update.
972         
973 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
974
975         * ia64-linux-nat.c: Include gdb_string.h.
976         * alpha-nat.c: Ditto.
977         * ppc-linux-nat.c: Ditto.
978         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
979         Update dependencies.
980
981 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
982
983         * gdbthread.h: Include "frame.h".
984         (struct thread_info): Replace step_frame_address with
985         step_frame_id.
986         * inferior.h: Include "frame.h".
987         (step_frame_id): Replace external variable step_frame_address.
988         * gdbthread.h (save_infrun_state): Replace step_frame_address
989         parameter with step_frame_id parameter.
990         (load_infrun_state): Ditto.
991         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
992         * infcmd.c (step_frame_id, step_1, step_once): Update.
993         * thread.c (load_infrun_state, save_infrun_state): Update.
994         * infrun.c (clear_proceed_status, save_inferior_status): Update.
995         (handle_inferior_event, step_over_function): Update.
996         (normal_stop, context_switch, restore_inferior_status): Update.
997         (struct inferior_status): Replace step_frame_address with
998         step_frame_id.
999
1000 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1001
1002         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1003         DW_TAG_member as well as a declaration as being a C++ static data
1004         member.
1005         (read_structure_scope): Combine tests for DW_TAG_member and
1006         DW_TAG_variable.
1007
1008 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1009
1010         * linespec.c (decode_compound): New function.
1011         (decode_line_1): Move code into decode_compound.
1012
1013 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1014
1015         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1016         argument.
1017         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1018         the static block.  See PR gdb/804.
1019
1020 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1021
1022         * symtab.c (lookup_symbol_aux_block): New function.
1023         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1024
1025 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1026
1027         * gdbarch.sh: Dump the predicate function and macro values.
1028         (read): Print error on standard error.
1029         * gdbarch.c: Regenerate.
1030         
1031 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1032
1033         * Makefile.in (mips_tdep_h): Define.
1034         (mips-tdep.o): Add mips_tdep_h to dependency list.
1035         * mips-tdep.h: New file.
1036         * mips-tdep.c (mips-tdep.h): Include.
1037         (enum mips_abi): Move to mips-tdep.h.
1038         (mips_abi): New function.
1039
1040 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1041
1042         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1043
1044 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1045
1046         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1047         function.
1048         (lookup_symbol_aux_minsyms): New function.
1049
1050 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1051
1052         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1053
1054 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1055
1056         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1057         which is an obsolete macro name.
1058
1059 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1060
1061         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1062         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1063
1064 2002-12-03  H.J. Lu  (hjl@gnu.org)
1065
1066         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1067         (create_breakpoints): Make sure the addr_string field is not
1068         NULL.
1069
1070 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1071
1072         * sparc-nat.c (fetch_inferior_registers)
1073         (store_inferior_registers): Add comment on problem of LWP vs
1074         threads.
1075         
1076         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1077         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1078         (lin_lwp_store_registers): Remove.
1079         (init_lin_lwp_ops): Use fetch_inferior_registers
1080         and store_inferior_registers directly.
1081         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1082         (store_inferior_registers): Likewise.
1083         Fix PR gdb/725.
1084
1085 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1086
1087         * frame.h (get_frame_id): Convert to a function.
1088         (null_frame_id, frame_id_p): Declare.
1089         (frame_id_eq, frame_id_inner): Declare.
1090         (frame_id_build): New function.
1091         * frame.c (get_frame_id): Update.  Use null_frame_id.
1092         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1093         frame_id_inner.
1094         (null_frame_id, frame_id_p): Define.
1095         (frame_id_eq, frame_id_inner): Define.
1096         (frame_id_build): New function.
1097         * varobj.c (varobj_create): Update.
1098         (varobj_update): Update.
1099         * valops.c (value_assign): Update.
1100         (new_root_variable): Update.
1101         * infrun.c (save_inferior_status): Update.
1102         * breakpoint.c (watch_command_1): Update.
1103
1104 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1105
1106         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1107         (SNAP2): Likewise.
1108
1109 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1110
1111         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1112         patch.
1113
1114         * PROBLEMS: Mention PR gdb/725.
1115
1116 2002-12-03  Andreas Schwab  <schwab@suse.de>
1117
1118         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1119
1120 2002-12-02  Adam Fedor  <fedor@gnu.org>
1121             Klee Dienes  <kdienes@apple.com>
1122
1123         * objc-lang.c (objc_printstr): Add width arg to match
1124         printstr prototype.
1125         (compare_selectors): Add 'const' to arg types.
1126         (compare_classes): Likewise.
1127         (find_imps): Cast msym pointer to avoid compiler warning.
1128         (print_object_command): Validate the address before
1129         passing it to the print routine.
1130         (find_objc_msgcall_submethod): Change function argument to
1131         return an int.
1132         * objc-lang.h: Add 'extern' to all function declarations.
1133         (value_nsstring): Add declaration.
1134
1135 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1136
1137         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1138         Fixes a build failure on HP/UX.
1139
1140         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1141         failure on HP/UX. 
1142         (hpread_has_name): Advance declaration to avoid a compilation warning.
1143         (pst_syms_count): Add missing variable type. By change, the compiler
1144         was defaulting to int, which seems a good choice. Fixes a compilation
1145         warning.
1146         (pst_syms_size): Likewise.
1147  
1148 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1149
1150         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1151         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1152         later to set the proper gdbarch methods depending on the osabi.
1153         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1154
1155 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1156
1157         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1158         * osabi.c (gdb_osabi_name): Add strings images for the two new
1159         enum values.
1160         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1161
1162 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1163
1164         * MAINTAINERS (Java): Global maintainers are responible for Java.
1165         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1166         part Java maintainers.
1167
1168 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1169
1170         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1171         Fixes a compilation failure on AiX.
1172
1173 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1174
1175         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1176         why aix-thread.o is not listed.
1177
1178 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1179
1180         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1181         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1182         * gdbarch.h, gdbarch.c: Re-generate.
1183         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1184         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1185         * config/pa/tm-hppa.h, frame.h: Update.
1186         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1187         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1188         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1189         * cris-tdep.c, alpha-tdep.c: Update.
1190         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1191         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1192         (get_prev_frame): Ditto.
1193
1194 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1195
1196         * exec.c (xfer_memory): Replace boolean with int.
1197         * p-exp.y: Use 0 instead of false.
1198         * corelow.c (gdb_check_format): Change return type to int from
1199         boolean.
1200         * utils.c: Don't include <curses.h> or <term.h> first.
1201
1202 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1203
1204         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1205         (m68hc11_register_byte): Remove.
1206         (m68hc11_gdbarch_init): Don't set the above.
1207
1208 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1209
1210         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1211         by calling get_selected_frame.
1212         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1213         set_current_frame, create_new_frame, select_frame and
1214         get_current_frame.
1215         * remote-e7000.c (e7000_start_remote): Ditto.
1216         * remote-mips.c (common_open): Ditto
1217         * remote-rdp.c (remote_rdp_open): Ditto.
1218
1219 2002-11-29  Andreas Schwab  <schwab@suse.de>
1220
1221         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1222         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1223         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1224         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1225         read_memory_unsigned_integer instead of read_memory_integer when
1226         dealing with addresses and instruction opcodes.
1227         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1228         (m68k_linux_frame_saved_pc): Likewise.
1229
1230 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1231
1232         * stack.c (selected_frame, select_frame): Move from here ...
1233         * frame.c (selected_frame, select_frame): ... to here.  Include
1234         "language.h".
1235         * Makefile.in (frame.o): Update dependencies.
1236         * frame.c (get_selected_frame): New function.
1237         * frame.h (get_selected_frame): Declare.
1238         (deprecated_selected_frame): Rename selected_frame.
1239         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1240         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1241         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1242         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1243         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1244         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1245         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1246         * z8k-tdep.c, cli/cli-cmds.c: Update.
1247         
1248 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1249
1250         * frame.h (get_selected_block): Add comments.
1251
1252 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1253
1254         * frame.c (pc_notcurrent): New function.
1255         (find_frame_sal): New function.
1256         * frame.h (find_frame_sal): Declare.
1257         (struct symtab_and_line): Add opaque declaration.
1258         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1259         find_pc_line.
1260         (frame_info): Ditto.
1261         * ada-lang.c (find_printable_frame): Ditto.
1262
1263 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1264
1265         * configure.in: Check that the pthdebug library is recent enough
1266         before enabling thread support on native AiX.
1267         * configure: Regenerate.
1268
1269         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1270         from the list of object files as it is now appended by configure
1271         if thread support is enabled.
1272         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1273         if thread support is enabled.
1274
1275 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1276
1277         * stack.c (get_selected_block): In-line get_current_block.
1278         * frame.h (get_current_block): Delete declaration.
1279         * blockframe.c (get_current_block): Delete function.
1280
1281 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1282
1283         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1284         USE_GENERIC_DUMMY_FRAMES.
1285         * gdbarch.h, gdbarch.c: Regenerate.
1286         * valops.c, frame.c: Update.
1287         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1288         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1289         * config/pa/tm-hppa.h, blockframe.c: Update.
1290         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1291         * m68k-tdep.c, alpha-tdep.c: Ditto.
1292
1293         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1294         * mips-tdep.c: Ditto.
1295
1296 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1297
1298         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1299         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1300         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1301         * gdbarch.c, gdbarch.h: Re-generate.
1302         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1303         (CALL_DUMMY_LOCATION): Delete macro definition.
1304         (PC_IN_CALL_DUMMY): Delete macro definitions.
1305         
1306         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1307         default is already generic_pc_in_call_dummy.
1308         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1309         * v850-tdep.c (v850_gdbarch_init): Ditto.
1310         * sh-tdep.c (sh_gdbarch_init): Ditto.
1311         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1312         * mips-tdep.c (mips_gdbarch_init): Ditto.
1313         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1314         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1315         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1316         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1317         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1318         * avr-tdep.c (avr_gdbarch_init): Ditto.
1319         
1320         * arm-tdep.c (arm_gdbarch_init): Do not set
1321         use_generic_dummy_frames, default is already 1.
1322         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1323         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1324         * v850-tdep.c (v850_gdbarch_init): Ditto.
1325         * sh-tdep.c (sh_gdbarch_init): Ditto.
1326         * s390-tdep.c (s390_gdbarch_init): Ditto.
1327         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1328         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1329         * mips-tdep.c (mips_gdbarch_init): Ditto.
1330         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1331         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1332         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1333         * i386-tdep.c (i386_gdbarch_init): Ditto.
1334         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1335         * frv-tdep.c (frv_gdbarch_init): Ditto.
1336         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1337         * cris-tdep.c (cris_gdbarch_init): Ditto.
1338         * avr-tdep.c (avr_gdbarch_init): Ditto.
1339
1340         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1341         call_dummy_location, default is already AT_ENTRY_POINT.
1342         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1343         * v850-tdep.c (v850_gdbarch_init): Ditto.
1344         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1345         * sh-tdep.c (sh_gdbarch_init): Ditto.
1346         * s390-tdep.c (s390_gdbarch_init): Ditto.
1347         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1348         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1349         * mips-tdep.c (mips_gdbarch_init): Ditto.
1350         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1351         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1352         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1353         * i386-tdep.c (i386_gdbarch_init): Ditto.
1354         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1355         * frv-tdep.c (frv_gdbarch_init): Ditto.
1356         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1357         * cris-tdep.c (cris_gdbarch_init): Ditto.
1358         * avr-tdep.c (avr_gdbarch_init): Ditto.
1359         * arm-tdep.c (arm_gdbarch_init): Ditto.
1360         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1361
1362 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1363
1364         * frame.h: Update comments on set_current_frame, create_new_frame,
1365         flush_cached_frames, reinit_frame_cache, select_frame and
1366         selected_frame.
1367         
1368 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1369
1370         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1371         deprecated pc_in_call_dummy function.
1372         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1373         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1374         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1375         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1376         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1377
1378 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1379
1380         * Makefile.in: Remove Tix dependencies.
1381         * acinclude.m4: Ditto.
1382         * aclocal.m4: Ditto.
1383         * configure.in: Ditto.
1384         * configure: Regenerated.
1385         
1386 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1387
1388         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1389         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1390         * gdbarch.c: Re-generate.
1391         
1392 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1393
1394         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1395         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1396         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1397         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1398         pc_in_call_dummy_at_entry_point.
1399         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1400         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1401         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1402         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1403         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1404         pc_in_call_dummy_on_stack.
1405         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1406         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1407         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1408         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1409         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1410         
1411 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1412
1413         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1414         pc_in_call_dummy_before_text_end
1415         (deprecated_pc_in_call_dummy_after_text_end): Rename
1416         pc_in_call_dummy_after_text_end.
1417         (deprecated_pc_in_call_dummy_on_stack): Rename
1418         pc_in_call_dummy_on_stack.
1419         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1420         pc_in_call_dummy_at_entry_point.
1421         * m68k-tdep.c (m68k_gdbarch_init): Update.
1422         * s390-tdep.c (s390_gdbarch_init): Update.
1423         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1424         * vax-tdep.c (vax_gdbarch_init): Update.
1425         * sparc-tdep.c (sparc_gdbarch_init): Update.
1426         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1427         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1428         * i386-tdep.c (i386_gdbarch_init): Update.
1429         * frv-tdep.c (frv_gdbarch_init): Update.
1430         * cris-tdep.c (cris_gdbarch_init): Update.
1431         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1432         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1433         (deprecated_pc_in_call_dummy_after_text_end)
1434         (deprecated_pc_in_call_dummy_on_stack)
1435         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1436         * alpha-tdep.c (alpha_gdbarch_init): Update.
1437
1438 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1439
1440         * acconfig.h (HAVE_PREAD64): Add.
1441         * configure.in: Check for pread64.
1442         * config.in: Regenerated.
1443         * configure: Regenerated.
1444         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1445         * linux-proc.c (linux_proc_xfer_memory): New function.
1446         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1447
1448 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1449
1450         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1451         pdi's with no name.
1452
1453 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1454
1455         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1456         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1457
1458 2002-11-25  Jim Blandy  <jimb@redhat.com>
1459
1460         * symfile.c (init_objfile_sect_indices): New function.
1461         (default_symfile_offsets): Move the section-index-initializing
1462         stuff into init_objfile_sect_indices, and call that.
1463
1464         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1465         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1466
1467         * symfile.c (syms_from_objfile): Adjust indentation.
1468
1469         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1470         || info_verbose isn't true.
1471
1472 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1473
1474         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1475         default to get_frame_base.
1476         * gdbarch.h, gdbarch.c: Regenerate.
1477         * arch-utils.c (default_frame_address): Delete function.
1478         * arch-utils.h (default_frame_address): Delete declaration
1479
1480 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1481
1482         * varobj.c (find_frame_addr_in_frame_chain):
1483         Use get_frame_base instead of FRAME_FP,
1484         obvious fix.
1485
1486 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1487
1488         * frame.h (FRAME_FP): Delete macro.
1489         (get_frame_base): New function declaration.
1490         * frame.c (get_frame_base): New function.
1491         (get_frame_id): Use ->frame.
1492         (frame_find_by_id): Rewrite to use get_frame_id.
1493         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1494         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1495         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1496         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1497         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1498         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1499         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1500
1501 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1502
1503         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1504
1505 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1506
1507         * frame.c (set_unwind_by_pc): Revert change below, use
1508         PC_IN_CALL_DUMMY.
1509         (get_prev_frame): Ditto.
1510
1511 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1512
1513         * dummy-frame.c (pc_in_dummy_frame): New function.
1514         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1515         (find_dummy_frame): Update comment.
1516         (generic_pop_current_frame): Use get_frame_type.
1517         * dummy-frame.h (pc_in_dummy_frame): Declare.
1518         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1519         (create_new_frame): Use pc_in_dummy_frame.
1520         (get_prev_frame): Use pc_in_dummy_frame.
1521         (frame_saved_regs_register_unwind): Use get_prev_frame.
1522         (deprecated_generic_get_saved_register): Use get_prev_frame.
1523
1524 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1525
1526         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1527         from here ...
1528         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1529         (varobj_create): Note that frame ID should be used.
1530         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1531
1532 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1533
1534         * breakpoint.c: Include "gdb_assert.h".
1535         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1536         not being used.
1537         * Makefile.in (breakpoint.o): Update dependencies.
1538         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1539         deprecated_frame_in_dummy.
1540         * stack.c (print_frame_info_base): Ditto.
1541         (frame_info): Ditto.
1542         (print_frame_info_base): Ditto.  Delete dead code.
1543         
1544 2002-11-23  Andreas Schwab  <schwab@suse.de>
1545
1546         * Makefile.in (m68k_tdep_h): Define.
1547         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1548         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1549         * m68k-tdep.c: Move register number enum ...
1550         * m68k-tdep.h: ... to this new file and rename the constants from
1551         E_* to M68K_*.  All uses changed.
1552         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1553         * abug-rom.c: Include "m68k-tdep.h".  Use
1554         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1555         * cpu32bug-rom.c: Likewise.
1556         * dbug-rom.c: Likewise.
1557         * m68k-tdep.c: Likewise.
1558         * m68klinux-nat.c: Likewise.
1559         * remote-est.c: Likewise.
1560         * rom68k-rom.c: Likewise.
1561         * config/m68k/tm-linux.h: Likewise.
1562
1563 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1564
1565         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1566         dummy frame initialization code.
1567         * mips-tdep.c (mips_gdbarch_init): Ditto.
1568
1569 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1570
1571         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1572         attach will hang.
1573
1574 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1575
1576         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1577         to default_frame_address.
1578         * gdbarch.h, gdbarch.c: Re-generate.
1579
1580         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1581         or frame_locals_address to default_frame_address.
1582         * m68k-tdep.c (m68k_gdbarch_init): Update.
1583         * i386-tdep.c (i386_gdbarch_init): Update.
1584         * frv-tdep.c (frv_gdbarch_init): Update.
1585         * sh-tdep.c (sh_gdbarch_init): Update.
1586         * v850-tdep.c (v850_gdbarch_init): Update.
1587         * sparc-tdep.c (sparc_gdbarch_init): Update.
1588         * mips-tdep.c (mips_gdbarch_init): Update.
1589         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1590         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1591         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1592
1593         * cris-tdep.c (cris_frame_args_address): Delete function.
1594         (cris_frame_locals_address): Delete function.
1595         (cris_gdbarch_init): Do not set frame_args_address or
1596         frame_locals_address.
1597
1598 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1599
1600         * thread-db.c (thread_db_load): Tell the user what's going on
1601         if dlopen fails on libthread_db.
1602
1603 2002-11-23  Andreas Schwab  <schwab@suse.de>
1604
1605         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1606         invariant return values.
1607
1608 2002-11-22  Andreas Schwab  <schwab@suse.de>
1609
1610         * valops.c (value_slice): Move declaration of `offset' to avoid
1611         warning.
1612
1613 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1614
1615         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1616         (struct so_stuff): Add end_addr field.
1617         (register_loaded_dll): Calculate and store end address of loaded dll.
1618         (solib_address): New function.
1619         (child_solib_loaded_library_pathname): Pass carefully constructed
1620         section info to safe_symbol_file_add rather than ignoring it.
1621         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1622         DLL is loaded.
1623         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1624         (child_create_inferior): Fix a compiler warning.
1625         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1626         (solib_address): Declare new function.
1627
1628 2002-11-22  Andreas Schwab  <schwab@suse.de>
1629
1630         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1631         and FPS registers.
1632
1633 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1634
1635         * maint.c (_initialize_maint_cmds): Fix typo.  From
1636         Francesco Potorti` <pot@gnu.org>.
1637
1638 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1639
1640         * mips-tdep.c (mips_dump_tdep): Delete references to
1641         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1642         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1643         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1644         * printcmd.c (build_address_symbolic): Delete calls to
1645         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1646         (address_info): Ditto.
1647         Fix PR gdb/773.
1648         
1649 2002-11-19  Klee Dienes  <kdienes@apple.com>
1650             Adam Fedor  <fedor@gnu.org>
1651
1652         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1653         the ability to explicitly specify the quote characters and word
1654         break characters; if NULL is specified for either, use the old
1655         behavior of using the characters used by the completer.
1656         (skip_chars): New function.  Convenience wrapper around
1657         skip_quoted_chars to provide the original skip_chars behavior.
1658         * completer.h (skip_quoted_chars): Add prototype.
1659
1660 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1661
1662         Problems reported by Paul Eggert.
1663         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1664
1665 2002-11-19  Andreas Schwab  <schwab@suse.de>
1666
1667         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1668         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1669         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1670         (m68k_linux_frame_saved_pc): Move to ...
1671         * m68klinux-tdep.c: ... here.  New file.
1672         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1673         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1674
1675 2002-11-19  Adam Fedor  <fedor@gnu.org>
1676
1677         * objc-exp.y: Revert to old skip_quoted usage.
1678
1679 2002-11-19  Adam Fedor  <fedor@gnu.org>
1680
1681         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1682         (objc_lang_h): Define.
1683         (YYFILES): Add objc-exp.tab.c.
1684         (local-maintainer-clean): Remove objc-exp.tab.c.
1685         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1686         
1687 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1688
1689         * p-exp.y (typecast rule): Add automatic dereference of
1690         pascal classes if needed.
1691         (THIS): Set current_type.
1692         Automatically dereference pascal classes. 
1693         (typebase rule): Add ^typebase recognition.
1694
1695 2002-11-18  Adam Fedor  <fedor@gnu.org>
1696
1697         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1698         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1699         (op_name): Handle OP_OBJC_SELF.
1700         * Makefile.in (expprint.o): Add additional depends.
1701
1702 2002-11-18  Adam Fedor  <fedor@gnu.org>
1703
1704         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1705         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1706         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1707         * objc-exp.y: Likewise. 
1708
1709 2002-11-18  Adam Fedor  <fedor@gnu.org>
1710
1711         * gdb/parser-defs.h: (struct objc_class_str): New structure
1712         for parsing ObjC classes.
1713
1714 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1715
1716         * stack.c (frame_relative_level): Copy function from here ...
1717         * frame.c (frame_relative_level): ...to here.
1718
1719 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1720
1721         * frame.h (enum frame_type): Define.
1722         (get_frame_type): Declare.
1723         (struct frame_info): Add field `type'.  Delete field
1724         signal_handler_caller.
1725         (deprecated_set_frame_signal_handler_caller): Declare.
1726         * frame.c (get_frame_type): New function.
1727         (deprecated_set_frame_type): New function.
1728         (create_new_frame): Set the frame's type.
1729         (get_prev_frame): Similar.
1730         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1731         * s390-tdep.c: Ditto.
1732         * m68klinux-nat.c: Ditto.
1733         * ns32k-tdep.c: Ditto.
1734         * x86-64-linux-tdep.c: Ditto.
1735         * vax-tdep.c: Ditto.
1736         * rs6000-tdep.c: Ditto.
1737         * ppc-linux-tdep.c: Ditto.
1738         * i386-interix-tdep.c: Ditto.
1739         * mips-tdep.c: Ditto.
1740         * m68k-tdep.c: Ditto.
1741         * hppa-tdep.c: Ditto.
1742         * ia64-tdep.c: Ditto.
1743         * cris-tdep.c: Ditto.
1744         * arm-tdep.c: Ditto.
1745         * alpha-tdep.c: Ditto.
1746         * i386-tdep.c: Ditto.
1747         * stack.c: Ditto.
1748         * ada-lang.c: Ditto.
1749         * blockframe.c: Update.
1750         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1751         deprecated_set_frame_type instead of signal_handler_caller.
1752         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1753         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1754         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1755
1756 2002-11-18   Klee Dienes  <kdienes@apple.com>
1757
1758         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1759
1760 2002-11-18  Klee Dienes  <kdienes@apple.com>
1761
1762         * buildsym.c (pop_context): Add comment.
1763         
1764 2002-11-18  Klee Dienes  <kdienes@apple.com>
1765
1766         * buildsym.h (pop_context): Convert to function, defined in
1767         buildsym.c.
1768         * buildsym.c: Include gdb_assert.h.
1769         (pop_context): Implement as C function.  Add check for stack
1770         underflow.
1771         * dbxread.c (process_one_symbol): Complain and stop processing
1772         that symbol if we are already at the top of the context stack for
1773         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1774         when processing N_RBRAC.
1775
1776 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1777
1778         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1779         define.
1780         (struct target_waitstatus): Add opaque definition.
1781         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1782         * exec.c (init_exec_ops): Likewise.
1783         * fork-child.c (clone_and_follow_inferior): Remove.
1784         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1785         * inferior.h (clone_and_follow_inferior): Remove prototype.
1786         * infrun.c (follow_fork_mode_both): Remove.
1787         (follow_fork_mode_kind_names): Remove commented out "both".
1788         (follow_inferior_fork): Remove follow_fork_mode_both support.
1789         * inftarg.c (child_clone_and_follow_inferior): Remove.
1790         (child_post_follow_inferior_by_clone): Remove.
1791         (init_child_ops): Don't set to_clone_and_follow_inferior
1792         or to_post_follow_inferior_by_clone.
1793         * target.c (default_clone_and_follow_inferior): Remove.
1794         (cleanup_target): Don't set to_clone_and_follow_inferior
1795         or to_post_follow_inferior_by_clone.
1796         (find_default_clone_and_follow_inferior): Remove.
1797         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1798         (debug_to_clone_and_follow_inferior): Remove.
1799         (debug_to_post_follow_inferior_by_clone): Remove.
1800         (setup_target_debug): Don't set to_clone_and_follow_inferior
1801         or to_post_follow_inferior_by_clone.
1802         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1803         and to_post_follow_inferior_by_clone.
1804         (child_clone_and_follow_inferior): Remove prototype.
1805         (child_post_follow_inferior_by_clone): Remove prototype.
1806         (target_clone_and_follow_inferior): Remove macro.
1807         (target_post_follow_inferior_by_clone): Remove macro.
1808         (find_default_clone_and_follow_inferior): Remove prototype.
1809
1810 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1811
1812         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1813         inferior_has_vforked, and inferior_has_execd instead of
1814         target_has_forked, target_has_vforked, and target_has_execd.
1815         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1816         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1817         (CHILD_WAIT): Define.
1818         (child_wait): Add prototype.
1819         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1820         Add prototype.
1821         (hpux_has_vforked): Likewise, from child_has_vforked.
1822         (hpux_has_execd): Likewise, from child_has_execd.
1823         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1824         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1825         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1826         and hpux_has_syscall_event instead of the target hooks.
1827         * infrun.c (inferior_has_forked, inferior_has_vforked)
1828         (inferior_has_execd): New functions.
1829         * inftarg.c (not_same_real_pid): Remove.
1830         (child_wait): Remove references to not_same_real_pid,
1831         target_has_forked, target_has_vforked, target_has_execd,
1832         and target_has_syscall_event.
1833         (child_has_forked, child_has_vforked, child_has_execd)
1834         (child_has_syscall_event): Remove.
1835         (init_child_ops): Remove references to child_has_forked,
1836         child_has_vforked, child_has_execd, and child_has_syscall_event.
1837         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1838         (hpux_has_vforked): Likewise, from child_has_vforked.
1839         (hpux_has_execd): Likewise, from child_has_execd.
1840         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1841         * target.c (cleanup_target): Remove references to
1842         to_has_forked, to_has_vforked, to_has_execd, and
1843         to_has_syscall_event.
1844         (update_current_target): Likewise.
1845         (setup_target_debug): Likewise.
1846         (debug_to_has_forked): Remove.
1847         (debug_to_has_vforked): Remove.
1848         (debug_to_has_execd): Remove.
1849         (debug_to_has_syscall_event): Remove.
1850         * target.h (struct target_ops): Remove to_has_forked.
1851         to_has_vforked, to_has_execd, and to_has_syscall_event.
1852         (child_has_forked, child_has_vforked, child_has_execd)
1853         (child_has_syscall_event): Remove prototypes.
1854         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1855         prototypes.
1856         (target_has_forked, target_has_vforked, target_has_execd)
1857         (target_has_syscall_event): Remove macros.
1858
1859 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1860
1861         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1862         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1863         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1864         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1865         * target.c (cleanup_target): Remove reference to
1866         to_can_follow_vfork_prior_to_exec.
1867         (update_current_target): Likewise.
1868         (debug_to_can_follow_vfork_prior_to_exec): Remove.
1869         (setup_target_debug): Remove reference to
1870         to_can_follow_vfork_prior_to_exec.
1871         * target.h (struct target_ops): Remove
1872         to_can_follow_vfork_prior_to_exec.
1873         (child_can_follow_vfork_prior_to_exec): Remove prototype.
1874         (target_can_follow_vfork_prior_to_exec): Remove definition.
1875         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1876         define.
1877         * infrun.c (follow_vfork_when_exec): Remove.
1878         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1879         (follow_exec): Likewise.
1880         (handle_inferior_event): Likewise.
1881         (keep_going): Likewise.
1882
1883 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1884
1885         * frame.c (generic_unwind_get_saved_register): Make static.
1886         * frame.h (generic_unwind_get_saved_register): Delete declaration.
1887         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1888         defaults to generic_unwind_get_saved_register.
1889         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1890         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1891         * frv-tdep.c (frv_gdbarch_init): Ditto.
1892         * i386-tdep.c (i386_gdbarch_init): Ditto.
1893         * s390-tdep.c (s390_gdbarch_init): Ditto.
1894         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1895         * v850-tdep.c (v850_gdbarch_init): Ditto.
1896         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1897         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1898         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1899
1900 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1901
1902         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
1903         i386-tdep.c.
1904
1905 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1906
1907         * frame.h (sigtramp_saved_pc): Delete declaration.
1908         * blockframe.c (sigtramp_saved_pc): Delete function.
1909         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1910         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1911         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1912         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1913
1914 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1915
1916         * frame.c (frame_pc_unwind): New function.
1917         (frame_saved_regs_pc_unwind): New function.
1918         (frame_register_unwind): Pass unwind_cache instead of
1919         register_unwind_cache.
1920         (set_unwind_by_pc): Add unwind_pc parameter, set.
1921         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1922         (get_prev_frame): Ditto.
1923         * frame.h (frame_pc_unwind_ftype): Declare.
1924         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1925         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
1926         (frame_pc_unwind): Declare.
1927         * dummy-frame.c (dummy_frame_pc_unwind): New function.
1928         (struct dummy_frame): Add comment mentioning that values are for
1929         previous frame.
1930         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1931         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1932         (generic_file_frame_chain_valid): Ditto.
1933         * stack.c (frame_info): Ditto.
1934
1935 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1936
1937         * linespec.c (locate_first_half): New function.
1938         (decode_line_1): Move code into locate_first_half.
1939
1940 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1941
1942         * complaints.h: Add comment explaining how to eliminate a
1943         deprecated_complain call.
1944         * complaints.h: Fix spelling errors.
1945
1946 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1947
1948         * printcmd.c: Remove #include "disasm.h".
1949
1950 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1951
1952         * frame.h: Move the most relevant interface functions to the start
1953         of the file.
1954
1955 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1956
1957         * regcache.h (deprecated_registers): Rename registers.
1958         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1959         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1960         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1961         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1962         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1963         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1964         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1965         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1966         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1967         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1968         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1969         * v850ice.c: Update.
1970
1971 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
1972
1973         * utils.c (gdb_realpath): Add comment mentioning realpath with a
1974         NULL buffer.
1975
1976 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1977
1978         * regcache.h (deprecated_read_register_bytes): Rename
1979         read_register_bytes.
1980         (deprecated_write_register_bytes): Rename write_register_bytes.
1981         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1982         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1983         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1984         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1985         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1986         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1987         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1988         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1989         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1990         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1991         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1992         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1993         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1994         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1995
1996 2002-11-13  Jim Blandy  <jimb@redhat.com>
1997
1998         * findvar.c (read_var_value): Doc fix.
1999
2000 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2001
2002         * regcache.c (struct regcache): Replace passthough_p with
2003         readonly_p.
2004         (regcache_xmalloc): Initialize readonly_p.
2005         (build_regcache): Initialize readonly_p.
2006         (regcache_save): New function.
2007         (regcache_restore): New function.
2008         (regcache_cpy): Re-implement using regcache_save and
2009         regcache_restore.
2010         (regcache_raw_read): Update.
2011         (regcache_cooked_read): When a read-only cache, checked for cached
2012         pseudo register values.
2013         (regcache_raw_write): Assert that the cache is not read-only.
2014         Remove code handling a non-passthrough cache.
2015         * regcache.h (regcache_save): Declare.
2016         (regcache_restore): Declare.
2017
2018 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2019
2020         * regcache.c (struct regcache_descr): Add fields
2021         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2022         (init_legacy_regcache_descr): Compute the size of a cooked
2023         register cache and then assign that to sizeof_raw_registers.  Set
2024         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2025         (init_legacy_regcache_descr): Ditto.
2026
2027 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2028
2029         * regcache.c (register_buffer): Move to near start of file, update
2030         description.
2031         (regcache_raw_read): Use.
2032         (regcache_raw_write): Use.
2033         (struct regcache): Rename raw_registers to registers and
2034         raw_register_valid_p to register_valid_p.
2035         (regcache_xmalloc): Update.
2036         (regcache_xfree): Update.
2037         (register_buffer): Update.
2038         (regcache_cpy): Update.
2039         (regcache_cpy_no_passthrough): Update.
2040         (regcache_valid_p): Update.
2041         (deprecated_grub_regcache_for_registers): Update.
2042         (deprecated_grub_regcache_for_register_valid): Update.
2043         (set_register_cached): Update.
2044         (regcache_raw_write): Update.
2045
2046 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2047
2048         * p-exp.y (name_not_typename): Use copy_name to
2049         set current_type variable for fields of THIS.
2050
2051 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2052
2053         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2054         * monitor.c (init_base_monitor_ops): Likewise.
2055         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2056         * remote-array.c (init_array_ops): Likewise.
2057         * remote-e7000.c (init_e7000_ops): Likewise.
2058         * remote-es.c (init_es1800_ops): Likewise.
2059         (init_es1800_child_ops): Likewise.
2060         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2061         * remote-sim.c (init_gdbsim_ops): Likewise.
2062         * remote-st.c (init_st2000_ops): Likewise.
2063         * sol-thread.c (init_sol_core_ops): Likewise.
2064         (init_sol_thread_ops): Likewise.
2065         * v850ice.c (init_850ice_ops): Likewise.
2066         * win32-nat.c (init_child_ops): Likewise.
2067         * wince.c (init_child_ops): Likewise.
2068
2069 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2070
2071         * utils.c (gdb_realpath): Make rp a constant pointer.
2072
2073 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2074
2075         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2076         a constant buffer; cannonicalize_file_name(); realpath() with a
2077         pathconf() defined buffer, xstrdup().
2078
2079 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2080
2081         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2082         to hang2.C; hang3.c to hang3.C.
2083
2084 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2085
2086         * findvar.c (read_var_value): Reenable TLS code.
2087
2088 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2089             Jim Blandy  <jimb@redhat.com>
2090         
2091         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2092         * target.c (update_current_target): Add
2093         to_get_thread_local_address.
2094         * target.h (to_get_thread_local_address): Export.
2095         (target_get_thread_local_address): Define.
2096         (target_get_thread_local_address_p): Define.
2097         * thread-db.c: Include solib-svr4.h.
2098         (td_thr_tls_get_addr_p): Define.
2099         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2100         (thread_db_get_thread_local_address): New function.
2101         (init_thread_db_ops): Initialize to_get_thread_local_address.
2102         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2103         * configure: Regenerate.
2104         * config.in: Regenerate.
2105
2106 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2107
2108         * linespec.c (set_flags): New function.
2109         (decode_line_1): Move code into set_flags.
2110
2111 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2112
2113         * linespec.c (decode_line_1): Move chunks of code to separate
2114         functions.
2115         (initialize_defaults): New function.
2116         (decode_indirect): New function.
2117
2118 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2119
2120         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2121         instead of void_code_ptr.
2122         (sigtramp_saved_pc): Ditto.
2123
2124         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2125         i386_fp_regnum_p.
2126
2127 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2128
2129         * gdbtypes.h (struct main_type): Move artificial flag out of
2130         loc.  New member of ``struct field'' named static_kind.  Reduce
2131         overloaded meaning of bitsize.
2132         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2133         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2134         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2135
2136         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2137         new fields.
2138         (template_to_fixed_record_type, template_to_static_fixed_type)
2139         (to_record_with_fixed_variant_part): Likewise.
2140         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2141         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2142         * dwarfread.c (struct_type, enum_type): Likewise.
2143         * hpread.c (hpread_read_enum_type)
2144         (hpread_read_function_type, hpread_read_doc_function_type)
2145         (hpread_read_struct_type): Likewise.
2146         * mdebugread.c (parse_symbol): Likewise.
2147
2148 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2149
2150         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2151         * stack.c (print_frame_info_base): Update.
2152         (print_frame_info_base, frame_info): Update.
2153         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2154         (sparc_frame_saved_pc): Update.
2155         * ada-lang.c (find_printable_frame): Update.
2156         * breakpoint.c (deprecated_frame_in_dummy): Update.
2157         
2158 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2159
2160         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2161         defined.
2162         (regmap): Extend to cover all registers.
2163         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2164         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2165         definitions.
2166         (fetch_register, sore_register): Simplify.
2167         (old_fetch_inferior_registers, old_store_inferior_registers):
2168         Remove functions.
2169         (cannot_fetch_register, cannot_store_register): Change
2170         implementation to use regmap array to decide which registers
2171         cannot be fetched/stored.  This removes $orig_eax from the
2172         registers that cannot be fetched/stored.
2173         (fetch_inferior_registers): Call fetch_register directly instead
2174         of calling old_fetch_inferior_registers.
2175         (store_inferior_registers): Call store_register directly instead
2176         of calling old_store_inferior_registers.
2177         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2178         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2179         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2180
2181 2002-11-09  Klee Dienes  <kdienes@apple.com>
2182
2183         * i387-tdep.c (i387_supply_register): When called with NULL as a
2184         buffer, mark the register as not provided (to mirror the behavior
2185         of supply_register).
2186         (i387_supply_fxsave): Ditto.
2187         (i387_supply_fsave): Ditto (inherits the behavior from
2188         i387_supply_register).
2189
2190 2002-11-09  Klee Dienes  <kdienes@apple.com>
2191
2192         * blockframe.c (sigtramp_saved_pc): Use
2193         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2194         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2195         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2196         
2197 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2198
2199         * frame.c (get_prev_frame): Test prev_p to identify a previously
2200         unwound frame.  Initialize prev_p.
2201         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2202         comment.
2203
2204 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2205
2206         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2207         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2208         more comments.  Zap dead code.
2209
2210 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2211
2212         * infcmd.c (print_vector_info, print_float_info): Move code that
2213         checks whether the target has any registers and whether there is a
2214         selected frame up, such that it is also used if a target provides
2215         multi-arch definitions of these functions.
2216
2217 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2218
2219         * Makefile.in (DESTDIR): Define.
2220         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2221         prefix.
2222
2223         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2224         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2225
2226 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2227
2228         * i386-linux-tdep.c: Include "reggroups.h".
2229         (i386_linux_register_reggroup_p): New function.
2230         (i386_linux_init_abi): Set register_reggroup_p to
2231         i386_linux_register_reggroup_p.
2232         * i386-tdep.h (i386_register_reggroup_p): Declare.
2233         * i386-tdep.c: Include "reggroups.h".
2234         (i386_init_reggroups): New function.
2235         (i386_add_reggroups): New function.
2236         (i386_register_reggroup_p): New function.
2237         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2238         (_initialize_i386_tdep): Call i386_init_reggroups.
2239         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2240         specific reggroups.
2241
2242 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2243
2244         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2245         request that's available in *BSD.
2246
2247         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2248
2249         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2250         FDOFF_REGNUM.
2251
2252 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2253
2254         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2255         * dummy-frame.c (find_dummy_frame): Rename
2256         generic_find_dummy_frame, make static.  Return the dummy frame
2257         instead of the regcache.
2258         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2259         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2260         (dummy_frame_register_unwind): Rename
2261         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2262         * dummy-frame.h (dummy_frame_register_unwind): Rename
2263         generic_call_dummy_register_unwind.
2264
2265 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2266
2267         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2268         except the inclusion of "i386/tm-i386.h", to...
2269         * config/i386/nm-i386v42mp.h: ...here.
2270         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2271
2272 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2273
2274         * Makefile.in (frame.o): Update dependencies.
2275         * blockframe.c (current_frame, frame_obstack_alloc)
2276         (frame_saved_regs_zalloc, get_current_frame)
2277         (set_current_frame, create_new_frame)
2278         (set_unwind_by_pc, get_next_frame)
2279         (flush_cached_frames, reinit_frame_cache)
2280         (frame_saved_regs_register_unwind)
2281         (deprecated_generic_get_saved_register)
2282         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2283         (_initialize_blockframe): Move frame code from here...
2284         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2285         "annotate.h" and "dummy-frame.h".
2286         (_initialize_frame): New function.
2287
2288 2002-11-08  Jim Blandy  <jimb@redhat.com>
2289
2290         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2291         when we finish a function a context.
2292         * buildsym.h (outermost_context_p): New macro.
2293         (Bug analyzed by David Edelsohn.)
2294
2295 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2296
2297         * blockframe.c: Include "dummy-frame.h".
2298         (struct dummy_frame, dummy_frame_stack)
2299         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2300         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2301         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2302         (generic_save_call_dummy_addr, generic_pop_current_frame)
2303         (generic_pop_dummy_frame, generic_fix_call_dummy)
2304         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2305         dummy frame code from here...
2306         * dummy-frame.c: ...to here.  New file.
2307         * dummy-frame.h: New file.
2308         (generic_call_dummy_register_unwind): Declare.
2309         (generic_find_dummy_frame): Declare.
2310         * Makefile.in (SFILES): Add dummy-frame.c.
2311         (dummy-frame.o): Specify dependencies.
2312         (dummy_frame_h): Define.
2313         (COMMON_OBS): Add dummy-frame.o.
2314         (blockframe.o): Update dependencies.
2315
2316 2002-11-08  Jim Blandy  <jimb@redhat.com>
2317
2318         * dwarf2read.c (read_func_scope): Restore local_symbols and
2319         param_symbols after we finish the function context.  (Based on a
2320         patch from David Edelsohn.)
2321
2322 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2323
2324         * linespec.c (symbol_found): New function.
2325         (minsym_found): New function.
2326         (decode_line_1): Separate out some code into separate functions.
2327
2328 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2329
2330         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2331         the benefit of the interix target.
2332         * i386-tdep.h (i386_frameless_signal_p): Declare.
2333
2334 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2335
2336         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2337         declaration that snuck in from change below.
2338
2339 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2340
2341         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2342         all callers.
2343         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2344         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2345         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2346         (i386_mxcsr_regnum_p): new function.  Use instead of
2347         MXCSR_REGNUM_P.
2348         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2349         (i386_sse_regnum_p): Declare.
2350         (i386_mxcsr_regnum_p): Declare.
2351         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2352         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2353         (IS_FP_REGNUM): Update definition.
2354         (IS_FPU_CTRL_REGNUM): Update definition..
2355         (IS_SSE_REGNUM): Update definition..
2356         * i386v-nat.c (register_u_addr): Update.
2357         * go32-nat.c (fetch_register): Update.
2358         (store_register): Update.
2359
2360 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2361
2362         Preparation work to convert the hppa targets to multiarch partial.
2363
2364         * hppa-tdep.c: Add new functions replacing macro bodies from
2365         config/pa/tm-hppa.h. These function will be used to initialize
2366         the gdbarch structure. Import some comments from tm-hppa.h,
2367         and place them where appropriate, to avoid loosing them when
2368         we cleanup this file.
2369         (hppa_reg_struct_has_addr): New function.
2370         (hppa_inner_than): New function.
2371         (hppa_stack_align): New function.
2372         (hppa_pc_requires_run_before_use): New function.
2373         (hppa_instruction_nullified): New function.
2374         (hppa_register_byte): New function.
2375         (hppa_register_virtual_type): New function.
2376         (hppa_store_struct_return): New function.
2377         (hppa_cannot_store_register): New function.
2378         (hppa_frame_args_address): New function.
2379         (hppa_frame_locals_address): New function.
2380         (hppa_smash_text_address): New function.
2381         (hppa_coerce_float_to_double): New function. Requires the inclusion
2382         of "language.h".
2383
2384         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2385
2386         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2387         gdbarch-eligible macro to a call to the new associated function
2388         created in hppa-tdep.c.
2389         (INNER_THAN): Likewise.
2390         (STACK_ALIGN): Likewise.
2391         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2392         (INSTRUCTION_NULLIFIED): Likewise.
2393         (REGISTER_BYTE): Likewise.
2394         (REGISTER_VIRTUAL_TYPE): Likewise.
2395         (STORE_STRUCT_RETURN): Likewise.
2396         (CANNOT_STORE_REGISTER): Likewise.
2397         (FRAME_ARGS_ADDRESS): Likewise.
2398         (FRAME_LOCALS_ADDRESS): Likewise.
2399         (SMASH_TEXT_ADDRESS): Likewise.
2400         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2401         (ABOUT_TO_RETURN): Delete, as no longer used.
2402
2403 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2404
2405         * printcmd.c (disassemble_command): Remove obsolete function.
2406         (_initialize_printcmd): Do not create disassemble command here.
2407         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2408         disassemble command.
2409         (init_cli_cmds): Create disassemble command here instead.
2410
2411 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2412
2413         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2414
2415 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2416
2417         * regcache.h (regcache_cooked_read_using_offset_hack)
2418         (regcache_cooked_write_using_offset_hack): Delete declarations.
2419         (register_changed): Delete declaration.
2420         * regcache.c (regcache_cooked_read_using_offset_hack)
2421         (regcache_cooked_write_using_offset_hack): Delete functions.
2422         (cooked_xfer_using_offset_hack): Delete function.
2423         (register_changed): Delete function.
2424
2425 2002-11-07  Jim Blandy  <jimb@redhat.com>
2426
2427         * macroscope.c: #include "complaints.h".
2428         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2429         but not in the macro table.
2430         * Makefile.in (macroscope.o): Record dependency.
2431
2432 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2433
2434         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2435
2436 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2437
2438         * regcache.c (deprecated_registers_fetched): Update.
2439         * regcache.h (deprecated_registers_fetched): Rename
2440         registers_fetched.
2441         * remote-vxsparc.c (vx_read_register): Update.
2442         * remote-vxmips.c (vx_read_register): Update.
2443         * remote-vx68.c (vx_read_register): Update.
2444         * irix5-nat.c (fetch_core_registers): Update.
2445         * mipsm3-nat.c (fetch_inferior_registers): Update.
2446         * sun3-nat.c (fetch_inferior_registers): Update.
2447         * symm-nat.c (fetch_inferior_registers): Update.
2448         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2449         (fetch_core_registers): Update.
2450         (fetch_kcore_registers): Update.
2451         * mips-nat.c (fetch_inferior_registers): Update.
2452         * corelow.c (get_core_registers): Update.
2453         * a68v-nat.c (fetch_inferior_registers): Update.
2454
2455 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2456
2457         Put in place the framework necessary for multiarching the hppa targets.
2458         * hppa-tdep.c (hppa_gdbarch_init): New function.
2459         (hppa_dump_tdep): New function.
2460         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2461         tdep structure dumper.
2462         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2463         until the multi-arching conversion has partially been completed.
2464
2465 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2466
2467         * valops.c (value_assign): Merge lval_register case into
2468         lval_reg_frame_relative.  Use frame_register and
2469         regcache_cooked_write instead of get_saved_register and
2470         write_register_bytes.  After flushing the register cache, try to
2471         re-select the selected frame.
2472
2473 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2474
2475         * regcache.h (deprecated_register_valid): Rename register_valid.
2476         * regcache.c: Update.
2477         * ia64-aix-nat.c: Update.
2478         * i386gnu-nat.c: Update.
2479         * alpha-nat.c: Update.
2480         * sparc-nat.c: Update.
2481         * lynx-nat.c: Update.
2482         * remote-mips.c: Update.
2483
2484 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2485
2486         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2487         to end of file, to be more consistent with the pratice followed
2488         by other targets.
2489
2490 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2491
2492         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2493         (print_float_info): Print registers in float_reggroup.
2494         (print_vector_info): Print registers in vector_reggroup.
2495         (default_print_registers_info): When all, print registers in
2496         all_reggroup.  Otherwize, print registers in general_reggroup.
2497         (registers_info): Rewrite.  Add support for register groups.
2498         Eliminate a goto.
2499
2500 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2501
2502         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2503         ages.
2504         (symtab_symbol_info): Remove eons old ifdeffed out code.
2505         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2506         command.
2507
2508 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2509
2510         * c-exp.y: Add missing semi-colons.
2511         * f-exp.y: Add missing semi-colons.
2512         * m2-exp.y: Add missing semi-colons.
2513         * p-exp.y: Add missing semi-colons.
2514         Add empty action to start rule to avoid a type clash error when
2515         building with bison >= 1.50.
2516
2517 2002-11-06  Jim Blandy  <jimb@redhat.com>
2518
2519         * macrotab.h (struct macro_source_file): Doc fix.
2520
2521 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2522
2523         * varobj.c (child_exists, cplus_number_of_children): Change
2524         STREQ macro references to strcmp.
2525         (cplus_name_of_child): Change code to handle the fact that
2526         fields are not necessarily contiguous with regards to their 
2527         access control. This is a fix for PR gdb/792.
2528
2529 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2530
2531         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2532         * gdbarch.h, gdbarch.c: Regnerate.
2533         * frame.h (frame_register): Declare.
2534         * frame.c (frame_register): New function.
2535         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2536         GET_SAVED_REGISTER, otherwize call
2537         generic_unwind_get_saved_register.
2538         (frame_register_read): Use frame_register instead of
2539         get_saved_register.
2540
2541 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2542         
2543         From Jim Ingham  <jingham@apple.com>:
2544         * event-top.c (gdb_disable_readline): New function.
2545         (_initialize_event_loop): Move comment.
2546
2547 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2548
2549         * event-loop.c (start_event_loop): Add comment.
2550         Update copyright.
2551
2552 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2553
2554         * infcmd.c (default_print_registers_info): Do not call
2555         PRINT_REGISTER_HOOK.
2556
2557 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2558
2559         * sparc-tdep.c (sparc_print_register_hook): Make static.
2560         (sparc_print_registers_info): New function.
2561         (sparc_do_registers_info): New function.
2562         (sparclet_print_registers_info): New function.
2563         (sparclet_do_registers_info): New function.
2564         (do_sparc_print_registers_info): New function.
2565         (sparc_print_registers): New static function, clone of infcmd.c's
2566         default_print_registers_info.
2567         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2568         (sparclet_do_registers_info): Declare.
2569         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2570         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2571         Re-define.
2572         (sparc_do_registers_info): Declare.
2573         (PRINT_REGISTER_HOOK): Delete macro.
2574         (sparc_print_register_hook): Delete declaration.
2575
2576 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2577
2578         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2579         functions.
2580         (lookup_symbol_aux_local): New function.
2581         (lookup_symbol_aux_symtabs): New function.
2582         (lookup_symbol_aux_psymtabs): New function.
2583
2584 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2585
2586         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2587         previous values of 'objfile' and 'block'.
2588
2589 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2590
2591         * values.c (value_change_enclosing_type): Set 
2592         enclosing_type field correctly also for the case where 
2593         more memory needs to be allocated.
2594
2595 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2596
2597         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2598         of puts_filtered.
2599
2600         * i387-tdep.c (i387_print_float_info): Replace calls to
2601         register_read and deprecated_read_register_gen with calls to
2602         frame_register_read, and make the necessary adjustments to the
2603         surrounding code.
2604
2605 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2606
2607         * gdbarch.sh (register_reggroup_p): Allow default value.
2608         * gdbarch.h, gdbarch.c: Regenerate.
2609
2610 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2611
2612         * regcache.h: Add coment indicating replacements for deprecated
2613         functions.
2614
2615 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2616
2617         * reggroups.h, reggroups.c: New files.
2618         * regcache.c: Include "reggroups.h".
2619         (enum regcache_dump_what): Add `regcache_dump_groups'.
2620         (regcache_dump): Contract size of the "Type" column.  When
2621         specified, dump the register's groups.
2622         (maintenance_print_register_groups): New function.
2623         (_initialize_regcache): Add command `maint print register-groups'.
2624         * Makefile.in (COMMON_OBS): Add reggroups.o
2625         (SFILES): Add reggroups.c.
2626         (reggroups_h): Define.
2627         (regcache.o, gdbarch.o): Update dependencies.
2628         (reggroups.o): Specify dependencies.
2629         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2630         Add opaque declaration for `struct reggroup' in generated .h file.
2631         Include "reggroups.h" in generated .c file.
2632         gdbarch.h, gdbarch.c: Re-generate.
2633
2634 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2635
2636         * regcache.h (deprecated_read_register_gen): Rename
2637         read_register_gen.
2638         (deprecated_write_register_gen): Rename write_register_gen.
2639         * i387-tdep.c: Update.
2640         * x86-64-linux-nat.c: Update
2641         * wince.c: Update.
2642         * thread-db.c: Update.
2643         * win32-nat.c: Update.
2644         * mips-tdep.c: Update.
2645         * d10v-tdep.c: Update.
2646         * cris-tdep.c: Update.
2647         * remote-sim.c: Update.
2648         * remote-rdi.c: Update.
2649         * remote-rdp.c: Update.
2650         * frame.c: Update.
2651         * target.c: Update.
2652         * blockframe.c: Update.
2653         * x86-64-tdep.c: Update.
2654         * xstormy16-tdep.c: Update.
2655         * sh-tdep.c: Update.
2656         * s390-tdep.c: Update.
2657         * rs6000-tdep.c: Update.
2658         * sparc-tdep.c: Update.
2659         * i386-tdep.c: Update.
2660         * dwarf2cfi.c: Update.
2661         * regcache.c: Update.
2662
2663 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2664
2665         New interix-specific files:
2666         * config/i386/nm-interix.h: New file.
2667         * config/i386/interix.mh: New file.
2668         * config/i386/interix.mt: New file.
2669         * i386-interix-nat.c: New file.
2670         * i386-interix-tdep.c: New file.
2671
2672 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2673
2674         * frame.h (deprecated_generic_get_saved_register): Rename
2675         generic_get_saved_register.
2676         * blockframe.c (deprecated_generic_get_saved_register): Update.
2677         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2678         (xstormy16_frame_saved_register): Update.
2679         * sh-tdep.c (sh_gdbarch_init): Update.
2680         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2681         * ia64-tdep.c (ia64_get_saved_register): Update.
2682         * cris-tdep.c (cris_gdbarch_init): Update.
2683         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2684         * arm-tdep.c (arm_gdbarch_init): Update.
2685
2686 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2687
2688         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2689
2690 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2691
2692         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2693         trampolines in sigaction.
2694
2695 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2696
2697         * h8300-tdep.c: Include "gdb_assert.h".
2698         (h8300_print_register): Add gdbarch, file and frame parameters.
2699         Use frame_read_unsigned_register to read the register's value.
2700         Use fprintf_filtered to display output.
2701         (h8300_print_registers_info): Replace h8300_do_registers_info.
2702         (h8300_gdbarch_init): Set print_registers_info.
2703
2704 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2705
2706         * frame.c (frame_read_unsigned_register): New function.
2707         (frame_read_signed_register): New function.
2708         * frame.h (frame_read_unsigned_register): Declare.
2709         (frame_read_signed_register): Declare.
2710
2711 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2712
2713         * h8500-tdep.c (h8500_print_registers_info): New static function,
2714         clone of infcmd.c's default_print_registers_info.
2715         (h8500_do_registers_info): New funtion.
2716         (h8500_print_register_hook): Rename print_register_hook, make
2717         static.
2718
2719         * config/h8500/tm-h8500.h: Update copyright.
2720         (DEPRECATED_DO_REGISTERS_INFO): Define.
2721         (h8500_do_registers_info: Declare.
2722         (PRINT_REGISTER_HOOK): Delete macro.
2723         (print_register_hook): Delete function.
2724
2725 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2726
2727         * z8k-tdep.c (z8k_print_register_hook): Make static.
2728         (z8k_print_registers_info): New static function, clone of
2729         infcmd.c's default_print_registers_info.
2730         (z8k_do_registers_info): New function.  Wrap
2731         z8k_print_registers_info.
2732         * config/z8k/tm-z8k.h: Update copyright.
2733         (PRINT_REGISTER_HOOK): Delete macro.
2734         (z8k_print_register_hook): Delete declaration.
2735         (DEPRECATED_DO_REGISTERS_INFO): Define.
2736         (z8k_do_registers_info): Declare.
2737
2738 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2739
2740         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2741         as this is already provided by value.h, and was actually causing
2742         a compilation error because of a conflict in parameter type
2743         declaration due to a missing const keyword.
2744         (low_text_segment_addres): Fix a compilation warning.
2745
2746 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2747
2748         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2749         registers without a name.
2750         (mips_linux_cannot_store_register): Don't store registers without
2751         a name.
2752
2753 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2754
2755         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2756         out.)
2757         * symtab.h: Delete prototype for find_addr_symbol.
2758
2759 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2760
2761         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2762         DO_REGISTERS_INFO.
2763         gdbarch.h, gdbarch.c: Re-generate.
2764         * infcmd.c (default_print_registers_info): Update reference.
2765         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2766         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2767         * sh-tdep.c (sh_gdbarch_init): Ditto.
2768         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2769         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2770
2771 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2772
2773         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2774         cfi_init_extra_frame_info.
2775         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2776         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2777
2778         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2779         target where necessary.  Add more comments and remove the ones
2780         that don't provide any useful information.
2781
2782         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2783         deprecated_read_register_dummy with
2784         frame_unwind_unsigned_register.
2785
2786         * i386-tdep.c (i386_extract_struct_value_address): Use
2787         regcache_raw_read_unsigned instead of
2788         regcache_cooked_read_unsigned since we know that the register
2789         we're reading isn't a pseudo register.  Rename variable 'val' into
2790         the more descriptive 'addr'.
2791
2792         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2793         (x86_64_push_return_address): Add comment.
2794         (x86_64_pop_frame): Make static.
2795         (examine_argument): Clarify comment.
2796         (x86_64_skip_prologue): Make prolog_expact variable static.
2797
2798         * dwarf2cfi.c: Fix some formatting problems.
2799         (context_cpy, read_encoded_pointer): Clarify comments.
2800
2801         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2802         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2803         i386 target back into x86_64_gdbarch_init.  Add some comments and
2804         remove meaningless ones.
2805
2806 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2807
2808         * complaints.h (struct deprecated_complaint): Rename `struct
2809         complaint'.
2810         * complaints.c (complain): Update.
2811         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2812         incorrect comment indicating that "symfile.h" was being included
2813         for the `struct complaint' definition.
2814         * remote-vx.c: Update.
2815         * objc-lang.c: Update.
2816         * xcoffread.c: Update.
2817         * hpread.c: Update.
2818         * mdebugread.c: Update.
2819         * stabsread.c: Update.
2820         * dwarf2read.c: Update.
2821         * dwarfread.c: Update.
2822         * elfread.c: Update.
2823         * coffread.c: Update.
2824         * stabsread.h: Update.
2825         * dbxread.c: Update.
2826         * buildsym.c: Update.
2827         * gdbtypes.c: Update.
2828         * macrotab.c: Update.
2829
2830 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2831
2832         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2833         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2834         (x86_64_init_abi): ...new function.
2835
2836         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2837         * i386v-nat.c: Include "i386-tdep.h".
2838
2839 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2840
2841         * gdbtypes.c (address_space_name_to_int): Update.
2842         (address_space_int_to_name): Update.
2843         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2844         multi-arch predicate.
2845         (address_class_name_to_type_flags): Ditto.
2846         * gdbarch.h, gdbarch.c: Re-generate.
2847         
2848         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2849
2850 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
2851
2852         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2853
2854 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
2855
2856         * symtab.h (INIT_SAL): Delete macro.
2857         (init_sal): Export.
2858         * symtab.c (init_sal): New function.
2859
2860         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2861         to init_sal function call.
2862         (find_sal_from_funcs_and_line): Ditto.
2863         (all_sals_for_line): Ditto. 
2864         * breakpoint.c (create_internal_breakpoint): Ditto. 
2865         (create_fork_vfork_event_catchpoint): Ditto. 
2866         (create_exec_event_catchpoint): Ditto. 
2867         (parse_breakpoint_sals): Ditto. 
2868         (watch_command_1): Ditto. 
2869         (handle_gnu_4_16_catch_command): Ditto.
2870         (clear_command): Ditto. 
2871         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
2872         * infcmd.c (run_stack_dummy): Ditto. 
2873         * infrun.c (process_event_stop_test): Ditto.
2874         (check_sigtramp2): Ditto.
2875         (step_over_function): Ditto. 
2876         * linespec.c (decode_line_2): Ditto. 
2877         (decode_line_1): Ditto. 
2878         * source.c (line_info): Ditto. 
2879         * symtab.c (find_pc_sect_line): Ditto.
2880
2881 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
2882
2883         * dwarf2cfi.c (struct context)
2884         (struct context_reg): Moved to dwarf2cfi.h
2885         (context_alloc, frame_state_alloc, context_cpy):
2886         Made extern instead of static, removed prototypes.
2887         * dwarf2cfi.h (struct context)
2888         (struct context_reg): New, moved from dwarf2cfi.c
2889         (context_alloc, frame_state_alloc, context_cpy):
2890         New prototypes.
2891         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2892         Changed from static to extern.
2893         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2894         (LINUX_SIGCONTEXT_FP_OFFSET)
2895         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2896         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2897         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2898         * x86-64-tdep.c (x86_64_gdbarch_init): Several
2899         set_gdbarch_*() calls now use x86-64 specific functions 
2900         instead of DWARF2 CFI ones.
2901         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2902         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2903         (x86_64_init_extra_frame_info): New prototypes.
2904         
2905 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2906
2907         * linespec.c: #include "parser-defs.h".
2908         Delete prototype for find_template_name_end.
2909         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2910
2911 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
2912
2913         * NEWS: add recent mi fixes.
2914         * varobj.c (struct varobj): Add new "updated" flag.
2915         (new_variable): Default "updated" flag to 0.
2916         (varobj_set_value): Set "updated" flag to 1 if value
2917         changes.
2918         (varobj_update): Check varobj "updated" flag before
2919         comparing old and refreshed values.  Fix for
2920         PR gdb/702.
2921
2922 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2923
2924         * parse.c (parse_exp_1): Use BLOCK_START.
2925         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2926         SYMBOL_BLOCK_VALUE.
2927         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2928
2929 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2930
2931         * symtab.c: Delete cplusplus_hint.
2932         Delete prototype for find_template_name_end.
2933
2934 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2935
2936         * symtab.h: Update comment.
2937
2938 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2939
2940         * printcmd.c (address_info): Restore quotes in output.
2941         * valops.c (value_of_local): Restore quotes in error message.
2942
2943 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2944
2945         * symtab.c (symbol_demangled_name): New function.
2946         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2947         turning most of it into a function.
2948         (symbol_demangled_name): Export.
2949
2950 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2951
2952         * valops.c (value_of_local): Restore quotes in error message.
2953
2954 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2955
2956         * symtab.c (symbol_init_language_specific): New function.
2957         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2958         turning most of it into a function.
2959         (symbol_init_language_specific): Export.
2960
2961 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2962
2963         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2964         (dwarf_attr_name): Ditto.
2965         (dwarf_type_encoding_name): Ditto.
2966         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2967         (process_die): Handle DW_TAG_namespace,
2968         DW_TAG_imported_declaration, DW_TAG_imported_module.
2969         (read_namespace): New function.
2970
2971 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
2972
2973         * configure.in: Define NEW_PROC_API on Interix too.
2974         * configure: Regenerate.
2975
2976 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
2977
2978         * configure: Regenerate using the proper version of autoconf.
2979
2980 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2981
2982         * findvar.c (read_var_value): Temporarily disable TLS code, until
2983         complete TLS support is added.
2984
2985 2002-10-21  Jim Blandy  <jimb@redhat.com>
2986             Elena Zannoni  <ezannoni@redhat.com>
2987
2988         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2989         for thread local storage locations.
2990         (struct symbol): Add objfile field.
2991         (SYMBOL_OBJFILE): Define.
2992         * dwarf2read.c (is_thread_local): New static variable.
2993         (new_symbol): If variable is in thread local fill in address class
2994         and objfile appropriately.
2995         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2996         stack operation.
2997         * printcmd.c (address_info): Print the information for thread
2998         local storage variable.
2999         * findvar.c (read_var_value): In case of thread local variable,
3000         defer to the target vector code to compute address.
3001
3002 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3003
3004         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3005         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3006
3007 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3008
3009         * symtab.h (address_class):  Rename
3010         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3011         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3012         * printcmd.c (address_info): Ditto.
3013         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3014
3015 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3016
3017         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3018         DBREG_DRX macro to acces debug registers.
3019
3020         * Makefile.in (i386obsd-tdep.o): New target.
3021
3022         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3023         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3024
3025         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3026         * config/i386/obsd.mt: New file.
3027         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3028         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3029         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3030         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3031         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3032         * i386obsd-tdep.c: New file.
3033
3034 2002-10-19  Adam Fedor  <fedor@gnu.org>
3035
3036         * objc-exp.y (name_not_typename): Fix invalid comment.  
3037
3038 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3039
3040         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3041         to allocate partial syms and macro byte caches.
3042
3043 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3044
3045         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3046
3047 2002-10-18  Adam Fedor  <fedor@gnu.org>
3048
3049         * stabsread.c (find_name_end): New function.
3050         (define_symbol): Use it.
3051
3052 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3053
3054         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3055         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3056         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3057         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3058
3059 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3060
3061         * symfile.h: Add opaque declaration for struct obstack.
3062         Declare obsavestring to take a const char *.
3063         * symfile.c (obsavestring): Make first argument a const char *.
3064
3065 2002-10-16  Adam Fedor  <fedor@gnu.org>
3066
3067         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3068         names when matching breakpoints in current file.
3069
3070 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3071
3072         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3073         (read_tag_pointer_type): Add address class support.
3074         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3075         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3076         New methods.
3077         * gdbarch.h, gdbarch.c: Regenerate.
3078         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3079         (make_type_with_address_space, recursive_type_dump): Add address
3080         class support.
3081         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3082         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3083         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3084
3085 2002-10-16  Klee Dienes  <kdienes@apple.com>
3086
3087         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3088         to get the last character of a char[] buffer, not
3089         name[sizeof(vptr_name)-1].
3090
3091 2002-10-14  Adam Fedor  <fedor@gnu.org>
3092
3093         * symtab.h: New objc_specific struct.
3094         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3095         (SYMBOL_DEMANGLED_NAME): Likewise.
3096
3097 2002-10-14  Adam Fedor  <fedor@gnu.org>
3098
3099         * symfile.c (init_filename_language_table): Add ObjC file extension.
3100
3101 2002-10-14  Adam Fedor  <fedor@gnu.org>
3102
3103         * utils.c (puts_filtered_tabular): New function.
3104         (fprintf_symbol_filtered): Get ObjC demangled name.
3105         * defs.h (puts_filtered_tabular): Declared.
3106
3107 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3108
3109         * c-lang.h (c_type_print_varspec_prefix): Delete.
3110         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3111         ``need_post_space'' parameter.  Adjust all callers.
3112
3113 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3114  
3115         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3116         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3117         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3118         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3119
3120 2002-10-13  Adam Fedor  <fedor@gnu.org>
3121
3122         * source.c (print_source_lines): Update comments.
3123
3124 2002-10-13  Adam Fedor  <fedor@gnu.org>
3125
3126         * valops.c (value_of_local): New function.
3127         (value_of_this): Use it.
3128         * value.h (value_of_local): Declared.
3129
3130 2002-10-13  Adam Fedor  <fedor@gnu.org>
3131
3132         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3133         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3134
3135 2002-10-12  Adam Fedor  <fedor@gnu.org>
3136
3137         * language.c (binop_result_type): Add language_objc to case.
3138         (integral_type): Likewise.
3139         (character_type): Likewise.
3140         (string_type): Likewise.
3141         (boolean_type): Likewise.
3142         (structured_type): Likewise.
3143         (binop_type_check): Likewise.
3144
3145 2002-10-11  Adam Fedor  <fedor@gnu.org>
3146
3147         * printcmd.c (address_info): Print 'self' for ObjC.
3148
3149 2002-10-11  Adam Fedor  <fedor@gnu.org>
3150
3151         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3152         OP_SELF.
3153
3154 2002-10-11  Adam Fedor  <fedor@gnu.org>
3155
3156         * language.h (CAST_IS_CONVERSION): Add language_objc.
3157
3158 2002-10-11  Adam Fedor  <fedor@gnu.org>
3159
3160         * defs.h (enum language): Add language_objc.
3161
3162 2002-10-11  Klee Dienes  <kdienes@apple.com>
3163
3164         * corefile.c (read_memory_typed_address): New function.
3165         * gdbcore.h (read_memory_typed_address): Add prototype.
3166         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3167         to read a value destined for a CORE_ADDR, not read_memory_integer.
3168         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3169         (f77_get_dynamic_lowerbound): Ditto.
3170
3171 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3172
3173         * utils.c (string_to_core_addr): After turning string into
3174         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3175         which will do necessary sign-extension, etc.
3176
3177 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3178
3179         * c-exp.y (THIS): Delete token and grammar rule.
3180         (yylex): Don't return THIS.
3181         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3182         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3183         * demangle.c (cplus_markers): Update comment.  Put '$'
3184         first.  Remove CPLUS_MARKER.
3185         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3186         * jv-exp.y (THIS): Delete token and grammar rule.
3187         (yylex): Don't return THIS.
3188         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3189         * objc-exp.y (THIS): Delete token and grammar rule.
3190         (yylex): Don't return THIS.
3191         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3192         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3193         (read_member_functions): Likewise for opname.
3194         (read_tilde_fields): Use is_cplus_marker.
3195
3196         * defs.h (CPLUS_MARKER): Don't define.
3197         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3198         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3199         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3200         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3201         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3202
3203         * config/i386/tm-i386v4.h: Delete file.
3204         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3205         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3206         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3207         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3208         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3209         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3210         * config/i386/i386v4.mt (TM_FILE): Likewise.
3211         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3212
3213 2002-10-10  Marko Mlinar  <markom@opencores.org>
3214
3215         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3216         accidentially not commited 2002-10-09
3217         * gdbarch.h, gdbarch.c: Re-generate.
3218
3219 2002-10-09  Marko Mlinar  <markom@opencores.org>
3220
3221         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3222         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3223         * gdbarch.h, gdbarch.c: Re-generate.
3224
3225 2002-10-08  Petr Sorfa <petrs@caldera.com>
3226
3227         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3228
3229         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3230         so we can work on more than one compilation unit at a time.  This
3231         helps prepare GDB to handle inter-CU die references.
3232         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3233         the code to be defined before struct comp_unit_head.
3234         (comp_unit_head): Added new members - offset, cu_head,
3235         begin_die, next and dwarf2_abbrevs.
3236         (dwarf2_abbrevs): Removed single static var; now member of
3237         struct comp_unit_head.
3238         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3239         members.
3240         (psymtab_to_symtab_1): Changed to work with the new
3241         struct comp_unit_head.
3242         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3243         constructs the dwarf2_abbrevs[] inside the cu_header.
3244         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3245         dwarf2_abbrev table to clean up.
3246         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3247         handling of dwarf2_abbrevs inside the cu_header.
3248         (read_partial_die): Now supports the call to the new
3249         dwarf2_lookup_abbrev.
3250         (read_full_die): Now supports the call to the new
3251         dwarf2_lookup_abbrev.
3252
3253 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3254
3255         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3256         insure that shell variables, such as "transformed_name" are propagated
3257         to later shell statements in rule.
3258
3259 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3260
3261         * config/i386/nm-i386sco.h: Add protection against
3262         multiple-inclusion.  Include "i386/nm-i386v.h".
3263         (REGISTER_U_ADDR): Remove define.
3264         (i386_register_u_addr): Remove prototype.
3265
3266 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3267
3268         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3269         before treating it as a single-step event.
3270
3271 2002-10-03  Adam Fedor  <fedor@gnu.org>
3272
3273         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3274         (objc_demangle): Remove assignment in if statements, Replace
3275         free with xfree.
3276         (add_msglist): Likewise.
3277         (end_msglist): Likewise.
3278         (complare_selectors): Likewise.
3279         (selectors_info): Likewise.
3280         (compare_classes): Likewise.
3281         (classes_info): Likewise.
3282         (print_object_command): Likewise.
3283         (find_objc_msgcall_submethod): Replace PTR with void *.
3284         * objc-lang.h: Remove check for __STDC__.
3285
3286 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3287
3288         * ui-out.h (ui_out_field_fmt_int): New prototype.
3289         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3290         of field width and alignment.
3291         * stack.c (print_frame_info_base): When printing frame level, use
3292         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3293         PR gdb/192
3294
3295 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3296
3297         * MAINTAINERS: Add self to Write After Approval list.
3298
3299 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3300
3301         * infcmd.c (interrupt_target_command_wrapper): Delete.
3302         (interrupt_target_command): Make non static.
3303         (nofp_registers_info): Make static.
3304         * stack.c (return_command_wrapper): Delete.
3305         (return_command): Make non static.
3306
3307 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3308
3309         * event-top.c (gdb_setup_readline): New function. Code moved from
3310         _initialize_event_loop().
3311         (_initialize_event_loop): Call gdb_setup_readline().
3312
3313 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3314
3315         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3316         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3317         * gdbarch.h, gdbarch.c: Re-generate.
3318
3319 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3320
3321         Fix PR gdb/778
3322         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3323         before recursing.
3324         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3325         of fill_in_vptr_fieldno.
3326
3327 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3328
3329         * inferior.h (registers_info, stepi_command, nexti_command,
3330         continue_command, interrupt_target_command): Export from infcmd.c.
3331         * frame.h (args_info, selected_frame_level_changed_hook,
3332         return_command): Export from stack.c.
3333         * v850ice.c (stepi_command, nexti_command, continue_command): use
3334         prototypes from inferior.h.
3335         * tracepoint.c (registers_info, args_info, locals_info): Use
3336         prototypes from frame.h and inferior.h.
3337         * Makefile.in (mi-main.o): Add dependency on frame.h.
3338
3339 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3340
3341         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3342         value in register 3 adjusted by ppc_gp0_regnum.
3343
3344         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3345
3346 2002-10-02  Marko Mlinar <markom@opencores.org>
3347
3348         * MAINTAINERS: Add myself to the Write After Approval list.
3349
3350 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3351
3352         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3353         of the section for the N64 ABI, fixed.
3354
3355         * config/mips/tm-irix6.h: Include solib.h.
3356
3357 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3358
3359         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3360         GNU operators.
3361
3362 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3363
3364         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3365         and that "mi0" syntax has been removed.
3366
3367 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3368
3369         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3370         * ppc-sysv-tdep.c: #include "gdb_string.h".
3371         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3372         pacify GCC.
3373
3374 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3375
3376         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3377         "vrsave"'s register number.
3378
3379 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3380
3381         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3382         use frame_unwind_signed_register to obtain the PC.
3383         (mips_frame_chain): Handle a generic dummy frame.
3384         (mips_init_extra_frame_info): When a generic dummy frame, don't
3385         re-compute the frame base.
3386         (mips_pop_frame): Handle generic dummy frames.
3387         (mips_gdbarch_init): When generic dummy frames, set
3388         use_generic_dummy_frames, push_dummy_frame to
3389         generic_push_dummy_frame, pc_in_call_dummy to
3390         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3391         generic_save_dummy_frame_tos.
3392
3393 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3394
3395         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3396         against TOP when TOP was explictly set.
3397         (generic_push_dummy_frame): Set TOP to zero.
3398
3399 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3400
3401         * event-loop.c (start_event_loop): Rename variable 'result' to
3402         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3403
3404 2002-09-30  Keith Seitz  <keiths@redhat.com>
3405
3406         * gdb-events.sh (selected_thread_changed): New event.
3407         * gdb-events.c: Regenerated.
3408         * gdb-events.h: Regenerated.
3409
3410 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3411
3412         * MAINTAINERS: Add self to Write After Approval list.
3413
3414 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3415
3416         * disasm.c: New file.  
3417         * disasm.h: New file.  
3418         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3419         (compare_lines): Ditto.
3420         (dump_insns): Ditto.
3421         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3422         argument.
3423         (do_assembly_only): Ditto.
3424         (do_disassembly): Renamed to gdb_disassembly and moved to
3425         disasm.c.  Sdded uiout argument.
3426         * Makefile.in: Add new files.  Reorder SFILES list. Update
3427         dependencies.  Include libgdb.a later in the insight executable.
3428
3429 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3430
3431         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3432         bfd/elf64-alpha-fbsd.c.
3433
3434 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3435
3436         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3437         i386gnu-tdep.c.
3438
3439 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3440
3441         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3442         __FUNCTION__.
3443         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3444         function name.
3445         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3446         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3447         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3448         (S_msg_sig_post_reply): Ditto.
3449         
3450 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3451
3452         * sh-tdep.c (sh_use_struct_convention): Use definition according
3453         to ABI.
3454         (sh_push_arguments): Store in register with correct endianess.
3455         (sh_default_store_return_value): Ditto.
3456         (sh_gdbarch_init): Set sizeof long double to 8.
3457
3458 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3459
3460         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3461         Fix some whitespace problems.
3462
3463 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3464
3465         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3466         (mcore-tdep.o): Ditto.
3467         (ns32k-tdep.o): Ditto.
3468         (ns32knbsd-tdep.o): Ditto.
3469         (sh3-rom.o): Ditto.
3470         (vax-tdep.o): Ditto.
3471         * cris-tdep.c: #include "gdb_string.h"
3472         * mcore-tdep.c: Ditto.
3473         * ns32k-tdep.c: Ditto.
3474         * ns32knbsd-tdep.c: Ditto.
3475         * sh3-rom.c: Ditto.
3476         * vax-tdep.c: Ditto.
3477
3478 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3479
3480         * config/djgpp/fnchange.lst: Add entries for
3481         gdb/testsuite/gdb.c++/m-static files.
3482
3483 2002-09-27  Jim Wilson  <wilson@redhat.com>
3484
3485         * MAINTAINERS: Add myself to the Write After Approval list.
3486
3487 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3488
3489         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3490
3491
3492 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3493
3494         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3495         frame.
3496
3497 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3498
3499         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3500         (rs6000_struct_return_address): Delete variable.
3501         (rs6000_store_struct_return): Update.
3502         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3503         deprecated_extract_struct_value_address.
3504         (rs6000_frame_align): New function.
3505         (rs6000_gdbarch_init): Set frame_align.
3506
3507 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3508
3509         From Grace Sainsbury <graces@redhat.com>:
3510         * Makefile.in (gdbtk-main.o): New target.
3511         (gdb.o): New target.
3512         (main_h): Define.
3513         (main.o): Update dependencies.
3514         (gdb$(EXEEXT)): Add gdb.o.
3515         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3516         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3517         (SUBDIR_GDBTK_CLEAN): Set.
3518         (install-gdbtk): Install the insight binary.
3519         (uninstall-gdbtk): New target.
3520         (all-gdbtk, clean-gdbtk): New rule.
3521         * top.c (use_windows): Default to zero.
3522         * main.c: Include "main.h".
3523         (main): Delete.
3524         (struct captured_main_args): Delete.
3525         (gdb_main): New function.
3526         * main.h: New file.
3527         * gdb.c: New File.
3528
3529 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3530
3531         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3532         (frame_map_regnum_to_name): New function.
3533         (frame_map_name_to_regnum): New function.
3534         * frame.h (frame_map_name_to_regnum): Declare.
3535         (frame_map_regnum_to_name): Declare.
3536         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3537         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3538         * parse.c: Do not include "builtin-regs.h".
3539         (target_map_name_to_register): Delete function.
3540         (write_dollar_variable): Use frame_map_name_to_regnum.
3541         * parser-defs.h (target_map_name_to_register): Delete declaration.
3542         * expprint.c: Include "frame.h".
3543         (print_subexp): Use frame_map_regnum_to_name.
3544         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3545         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3546
3547 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3548
3549         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3550         wasn't saved, and the next innermost frame is a dummy, return the
3551         dummy frame's link register.
3552
3553 2002-09-24  Jim Blandy  <jimb@redhat.com>
3554
3555         Fix from Paul Breed:
3556         * main.c (captured_main): Add a `break' after the case for 'b'.
3557
3558 2002-09-24  Keith Seitz  <keiths@redhat.com>
3559
3560         * varobj.c (c_type_of_child): Use get_target_type instead
3561         of TYPE_TARGET_TYPE.
3562
3563 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3564
3565         * source.c (get_current_or_default_source_symtab_and_line): Remove
3566         function.
3567         (set_default_source_symtab_and_line): New function. Attempts to
3568         determine a source file to list lines from if one is not currently
3569         defined.
3570         (get_current_source_symtab_and_line): Initialize sal.pc and
3571         sal.end fields.
3572         (set_current_source_symtab_and_line): Mark argument as const.
3573         * source.h: Update declarations and comments.
3574         * linespec.c (decode_line_1): Replace call to removed routine above.
3575         * stack.c (print_frame_info_base): Ditto.
3576         * cli/cli-cmds.c (edit_command): Ditto.
3577         (list_command): Ditto.
3578
3579 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3580
3581         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3582         sal.pc and sal.end fields.
3583         (get_current_or_default_source_symtab_and_line): Ditto.
3584         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3585         so we do not cause a new source symtab to be searched for (reverting an
3586         unintentional change from the 2002-09-20 patch).
3587         * scm-lang.c (scm_unpac): Ditto.
3588
3589 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3590
3591         * complaints.c (symfile_explanations): Remove new-line from
3592         ``isolated_message''.
3593         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3594         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3595
3596 2002-09-20  Nick Clifton  <nickc@redhat.com>
3597         
3598         * NEWS: Announce that V850EA ISA is no longer supported.
3599         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3600
3601 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3602
3603         * Makefile.in (c-lang.o): Correct dependencies.
3604         (utils.o): Gather dependencies.
3605         (charset.o): Move.
3606         * c-lang.c: #include "gdb_string.h"
3607
3608 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3609
3610         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3611         * cli/cli-cmds.c (list_command): New function.  Implements the new
3612         cli edit command.
3613         (_init_cli_cmds): Add new command definition.
3614         * gdb.1: Document edit command.
3615         * doc/gdb.texinfo: Document edit command.
3616
3617 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3618
3619         * source.c: Make global variables current_source_symtab and
3620         current_source_line static.
3621         (list_command): Moved to cli/cli-cmds.c.
3622         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3623         (get_first_line_listed): New accessor function.
3624         (get_lines_to_list): New accessor function.
3625         (get_current_source_symtab_and_line): New function. Retrieves the
3626         position in the source code that we consider current.
3627         (get_current_or_default_source_symtab_and_line): New function.
3628         Like the above but attempts to determine a default position if one
3629         is not currently defined.
3630         (set_current_source_symtab_and_line): New function. Sets the source
3631         code position considered current and returns the previously set one.
3632         (clear_current_source_symtab_and_line): Reset stored information about
3633         a current source line.
3634         (_initialize_source): Remove registration for the "list" command and
3635         its alias.
3636         * source.h: Add declarations for the new functions above.
3637         * symtab.h: Remove declarations for the global variables mentioned
3638         above.
3639         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3640         obtain current source line.
3641         * linespec.c (decode_line_1): Ditto.
3642         * macroscope.c (default_macro_scope): Ditto.
3643         * scm-lang.c (scm_unpac): Ditto.
3644         * stack.c (print_frame_info_base): Ditto.
3645         * symfile.c (clear_symtab_users): Ditto.
3646         * symtab.c (decode_line_spec): Ditto.
3647         * cli/cli-cmds.c (list_command): Moved here from source.c.
3648         (ambiguous_line_spec): Moved here from source.c.
3649         (_init_cli_cmds): Add definition for "list" and its alias.
3650         * Makefile.in: Update dependencies.
3651
3652 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3653
3654         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3655         with what gcc thinks is correct.
3656
3657 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3658
3659         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3660         multiple register push instruction.
3661
3662 2002-09-19  Jim Blandy  <jimb@redhat.com>
3663
3664         Add support for distinct host and target character sets.
3665         * charset.c, charset.h: New files.
3666         * c-exp.y: #include "charset.h".
3667         (yylex): Convert character and string literals to the target
3668         character set, before returning them as the semantic value of the
3669         token.
3670         * c-lang.c: #include "charset.h".
3671         (c_emit_char): Use charset-specific methods to recognize
3672         characters with backslash escape forms, to decide which characters
3673         to print literally and which to print using numeric escape
3674         sequences, and to convert target characters to host characters
3675         before printing.
3676         * utils.c: #include "charset.h".
3677         (no_control_char_error): New function.
3678         (parse_escape): Use charset-specific methods to recognize
3679         backslash escapes, parse `control character' notation, and convert
3680         characters from the host character set to the target character set.
3681         * configure.in: Set the default host character set.
3682         Check where to find iconv, and what its argument types might be.
3683         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3684         * Makefile.in (SFILES): List charset.c.
3685         (COMMON_OBS): List charset.o.   
3686         (charset.o): New rule.
3687         (charset_h): New header dependency variable.
3688         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3689         (LIBICONV): New variable, set by configure.
3690         (CLIBS): Include $(LIBICONV) here.
3691         * aclocal.m4, config.in, configure: Regenerated.
3692
3693 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3694
3695         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3696         bison 1.35 warning.
3697
3698 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3699
3700         * gdb_mbuild.sh: New file.
3701
3702 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3703
3704         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3705
3706 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3707
3708         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3709         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3710         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3711         valops.c, value.h: Revert previous change.
3712         
3713 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3714
3715         Preliminary support for Objective-C:
3716         * defs.h (language_objc): New enum value.
3717         (puts_filtered_tabular): Declaration only, exported from utils.c.
3718         (skip_quoted): Delete, declared in completer.h.
3719         * c-exp.y: Include completer.h.
3720         * p-exp.y: Ditto.
3721         * jv-exp.y: Ditto.
3722         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3723         New operator enum values.
3724         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3725         * language.c (binop_result_type): Handle language_objc case.
3726         (integral_type, character_type, string_type, boolean_type,
3727         structured_type, binop_type_check): Ditto.
3728         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3729         (struct objc_specific): Add to general_symbol_info.
3730         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3731         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3732         * parser-defs.h (struct objc_class_str): New struct type.
3733         (start_msglist, end_msglist, add_msglist): Declaration only,
3734         exported from objc-lang.c.
3735         * value.h (value_of_local, value_nsstring, 
3736         call_function_by_hand_expecting_type): Exported from valops.c.
3737         * valops.c (find_function_addr): Export.
3738         (call_function_by_hand_expecting_type): New function.
3739         (value_of_local): New function.
3740         * symfile.c (init_filename_language_table): Add ".m" extension
3741         for Objective-C.
3742         * utils.c (puts_filtered_tabular): New function.
3743         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3744         (set/show demangle): Extend help-string to refer to ObjC.
3745         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3746         * stabsread.c (symbol_reference_defined): Objective-C symbols
3747         may contain colons: make allowances when scanning stabs strings
3748         for colons.
3749         (objc_find_colon): New function.
3750         * printcmd.c (address_info): If language == objc then print
3751         "self" instead of "this".
3752         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3753         OP_NSSTRING, and OP_SELF.
3754         (prefixify_subexp): Ditto.
3755         * source.c (print_source_lines): Mention objc in comment.
3756         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3757         method names.
3758
3759 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3760
3761         * complaints.h: Update copyright.
3762         (struct complaints): Declare.
3763         (struct complaint): Make `message' constant.
3764         (internal_complaint): Declare.
3765         (complaint): Declare.
3766         (complaint_root): Delete declaration.
3767         (symfile_complaints): Delete declaration.
3768         (struct complaints): Add opaque declaration.
3769         (clear_complaints): Add a complaints parameter.
3770         * complaints.c: Update copyright.
3771         (enum complaint_series): Define.
3772         (complaint_root): Delete.
3773         (struct complaints): Define.
3774         (complaint_sentinel, symfile_complaint_book): New variables.
3775         (symfile_explanations, symfile_complaints): New variables.
3776         New variables.
3777         (get_complaints): New function.
3778         (vcomplaint): New function.
3779         (complaint): New function.
3780         (internal_complaint): New function.
3781         (complain): Call vcomplain with symfile_complaint.
3782         (clear_complaints): Rewrite.
3783         (_initialize_complaints): Use add_setshow_command.
3784         * Makefile.in (complaints.o): Update dependencies.
3785         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3786         to call to clear_complaints.
3787         (new_symfile_objfile, reread_symbols): Ditto.
3788         (oldsyms_complaint): Delete.
3789         (empty_symtab_complaint, unknown_option_complaint): Delete.
3790         (free_named_symtabs): Use complaint instead of complain.
3791
3792 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3793
3794         Contributed by Apple Computer, Inc.  Merged with current sources
3795         by Adam Fedor <fedor@doc.com> [cagney].
3796         
3797         * objc-lang.c: First clean-up round: comments, indentation.
3798         * objc-lang.h: Ditto.
3799         * objc-lang.y: Ditto.
3800
3801 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3802
3803         * maint.c (maintenance_internal_error): Print the parameter as the
3804         error message.
3805         (maintenance_internal_warning): New function.
3806         (_initialize_maint_cmds): Add command `maint internal-warning'.
3807
3808         * defs.h (internal_warning, internal_vwarning): Declare.
3809         * utils.c (struct internal_problem): Define.
3810         (internal_vproblem): New function.
3811         (internal_warning): New function.
3812         (internal_vwarning): New function.
3813         (internal_warning_problem, internal_error_problem): New variables.
3814         (internal_verror): Just call internal_vproblem.
3815
3816 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3817
3818         * objc-lang.c: New file, support for Objective-C.
3819         Preliminary check-in, not yet integrated into gdb.
3820         * objc-lang.h: New file.
3821         * objc-exp.y:  New file.
3822
3823 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3824
3825         * infrun.c (signal_stop_update): Convert definition to ISO C.
3826         (signal_print_update): Ditto.
3827         (signal_pass_update): Ditto.
3828         * inflow.c (terminal_save_ours): Ditto.
3829
3830         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3831         comments.
3832         
3833         * config/djgpp/fnchange.lst: Handle name clashes between
3834         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3835         bfd/coff-tic80.c.
3836
3837         * i386-linux-tdep.h: Fix tipo.
3838
3839 2002-09-18  Adam Fedor  <fedor@gnu.org>
3840
3841         * MAINTAINERS: Add myself to the Write After Approval list.
3842
3843 2002-09-18  Jim Blandy  <jimb@redhat.com>
3844
3845         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3846         texthigh and textlow to reader-specific structs caused
3847         objfile_relocate to miss them.  This is fixable, but the work that
3848         the change was supposed to prepare GDB for never got done anyway.
3849
3850 2002-09-18  David Carlton  <carlton@math.stanford.edu>
3851
3852         * MAINTAINERS: Alphabetize Write After Approval list.
3853
3854 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
3855
3856         Fix PR gdb/709
3857         * values.c (value_static_field): Call read_var_value.
3858
3859 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3860
3861         * valops.c (hand_function_call): Align the initial stack pointer
3862         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
3863         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3864         return value.
3865         * mips-tdep.c (mips_frame_align): New function.
3866         (mips_gdbarch_init): Set frame_align.
3867         * gdbarch.sh (FRAME_ALIGN): New method.
3868         * gdbarch.h, gdbarch.c: Re-generate.
3869
3870 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
3871
3872         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3873         registers.
3874
3875 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3876
3877         * NEWS: Mention that MIPS $fp behavior changed.
3878         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3879         reference to FP_REGNUM.
3880         (mipsnbsd_cannot_store_register): Ditto.
3881         * mips-linux-nat.c: Update copyright.
3882         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3883         (mips_linux_cannot_store_register): Ditto.
3884         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
3885         * config/mips/tm-mips.h: Update copyright.
3886         (FP_REGNUM): Delete macro.
3887         (MIPS_REGISTER_NAMES): Replace "fp" with "".
3888         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3889         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3890         (mips_r3041_reg_names, mips_r3051_reg_names)
3891         (mips_r3081_reg_names): Replace "fp" with "".
3892         Fix PR gdb/480.
3893
3894 2002-09-17  Theodore A. Roth  <troth@verinet.com>
3895
3896         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
3897         generic_read_register_dummy() (PR gdb/703).
3898         (avr_push_return_address): #if 0 out unused vars.
3899         (avr_gdbarch_init): Enable use of avr_push_return_address().
3900
3901 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3902
3903         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3904         RTE will take care of it.
3905
3906 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3907
3908         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3909         invalid, return SP_REGNUM.
3910
3911 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3912
3913         * mips-tdep.c (mips_pop_frame): Read saved values of floating
3914         point registers without sign extension.
3915
3916 2002-09-17  Andrew Cagney  <cagney@redhat.com>
3917
3918         * blockframe.c (deprecated_read_register_dummy): Rename
3919         generic_read_register_dummy.
3920         * frame.c (frame_unwind_signed_register): New function.
3921         (frame_unwind_unsigned_register): New function.
3922         * frame.h (frame_unwind_signed_register): Declare.
3923         (frame_unwind_unsigned_register): Declare.
3924         (deprecated_read_register_dummy): Rename
3925         generic_read_register_dummy.
3926
3927         * h8300-tdep.c (h8300_frame_chain): Update.
3928         (h8300_frame_saved_pc): Update.
3929         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3930         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3931         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3932         (s390_frame_chain): Update.
3933         * v850-tdep.c (v850_find_callers_reg): Update.
3934         (v850_frame_saved_pc): Update.
3935         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3936         (m32r_find_callers_reg): Update.
3937         (m32r_frame_saved_pc): Update.
3938         * sh-tdep.c (sh_find_callers_reg): Update.
3939         (sh64_get_saved_pr): Update.
3940         (sh_init_extra_frame_info): Update.
3941         (sh_init_extra_frame_info): Update.
3942         (sh64_init_extra_frame_info): Update.
3943         (sh64_init_extra_frame_info): Update.
3944         * mcore-tdep.c (mcore_find_callers_reg): Update.
3945         (mcore_frame_saved_pc): Update.
3946         (mcore_init_extra_frame_info): Update.
3947         * i386-tdep.c (i386_frame_saved_pc): Update.
3948         * ia64-tdep.c (ia64_frame_saved_pc): Update.
3949         (ia64_init_extra_frame_info): Update.
3950         (ia64_init_extra_frame_info): Update.
3951         * d10v-tdep.c (d10v_frame_saved_pc): Update.
3952         * cris-tdep.c (cris_init_extra_frame_info): Update.
3953         * avr-tdep.c (avr_frame_chain): Update.
3954         (avr_init_extra_frame_info): Update.
3955         (avr_frame_saved_pc): Update.
3956         * arm-tdep.c (arm_find_callers_reg): Update.
3957         (arm_init_extra_frame_info): Update.
3958         (arm_frame_saved_pc): Update.
3959
3960 2002-09-17  Tom Tromey  <tromey@redhat.com>
3961
3962         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3963         is "'".
3964
3965 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
3966
3967         * MAINTAINERS: Remove "non multi-arched" text from h8300.
3968         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3969         NEXT_PROLOGUE_INSN.
3970         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3971         NEXT_PROLOGUE_INSN.
3972
3973 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
3974
3975         * osfsolib.c: Remove file, replaced by solib-osf.c.
3976         * Makefile.in: Remove compilation rules for osfsolib.c.
3977
3978 2002-09-16  David Carlton  <carlton@math.stanford.edu>
3979
3980         * cp-valprint.c (cp_print_class_method): Correct args to
3981         check_stub_method_group.
3982
3983 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
3984
3985         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
3986         `set architecture'.  Unify naming convention of functions.
3987         (h8300_skip_prologue): Improve prologue analysis.
3988         (h8300_push_arguments): Rewritten to more closely match GCC's
3989         bizarre argument-passing behavior, along with the comment describing
3990         said behavior.
3991         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3992         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
3993         sim, remote-e7000.c, remote-hms.c and remote.c
3994
3995 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
3996
3997         * i386-tdep.c (gdb_print_insn_i386): Removed.
3998         (i386_print_insn): New function.
3999         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4000         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4001         tm_print_insn_info.
4002
4003 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4004
4005         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4006         zero.
4007
4008 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4009
4010         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4011         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4012         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4013
4014 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4015
4016         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4017
4018 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4019
4020         * gdbtypes.c (check_stub_method): Make static.
4021         (check_stub_method_group): New function.
4022         * gdbtypes.h: Update prototypes.
4023         * cp-support.c: New file.
4024         * cp-support.h: New file.
4025
4026         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4027         (update_method_name_from_physname): New function.
4028         (read_member_functions): Correct method names for operators
4029         and v3 constructors/destructors.  Separate v2 constructors and
4030         destructors.
4031         * Makefile.in (stabsread.o): Update dependencies.
4032         (SFILES): Add cp-support.c.
4033         (COMMON_OBS): Add cp-support.o.
4034         (cp_support_h, cp-support.o): Add.
4035
4036         * cp-valprint.c (cp_print_class_method): Call
4037         check_stub_method_group instead of check_stub_method.  Remove
4038         extraneous QUITs.
4039         * p-valprint.c (pascal_object_print_class_method): Likewise.
4040         * valops.c (search_struct_method): Likewise.
4041         (find_method_list, value_struct_elt_for_reference): Likewise.
4042
4043 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4044
4045         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4046         * gdbarch.h, gdbarch.c: Regenerate.
4047
4048 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4049
4050         * frame.c (find_saved_register): Delete function.
4051         * frame.h (find_saved_register): Delete declaration.
4052         Fix PR gdb/631.
4053
4054 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4055
4056         * mips-tdep.c (read_next_frame_reg): Re-hack using
4057         frame_register_unwind.
4058
4059 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4060
4061         * mips-tdep.c (mips_get_saved_register): Re-hack using
4062         frame_register_unwind.
4063
4064 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4065
4066         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4067         vector. Will be useful for Interix.  
4068         * gdbarch.h, gdbarch.c: Regenerate.
4069
4070         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4071         name of the malloc function by NAME_OF_MALLOC.
4072
4073 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4074
4075         * value.h (find_function_in_inferior): Add const keyword to
4076         one of the parameters. Allows us to invoke this function with
4077         a const char *.
4078         * valops.c (find_function_in_inferior): Likewise.
4079
4080 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4081
4082         * exec.c (xfer_memory): Fix compilation warning with old versions
4083         of GCC.
4084         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4085
4086 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4087
4088         * symtab.h: Run through gdb_indent.h.
4089         Add 2002 to Copyright year list.
4090
4091 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4092
4093         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4094         mach constants.
4095         * MAINTAINERS: Add myself to write after approval list.
4096
4097 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4098
4099         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4100
4101 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4102
4103         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4104         Interix.
4105
4106 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4107
4108         * procfs.c (do_detach): Clear current signal, not just fault.
4109         Corrects problem with breakpoint trap signal leaking to detached
4110         process on Tru64.
4111
4112 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4113
4114         * buildsym.c (finish_block): Protect against null pointer.
4115
4116 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4117
4118         * infcmd.c (default_print_registers_info): Send all output to
4119         ``file'' instead of ``gdb_stdout''.
4120
4121 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4122
4123         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4124         LONGEST, and use signed register read (addresses are sign-
4125         extended for mips).
4126
4127 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4128
4129         * event-loop.c (gdb_do_one_event): Make public.
4130         * event-loop.h (gdb_do_one_event): Declare.
4131
4132 2002-09-10  Jeff Law  <law@redhat.com>
4133
4134         * infttrace.c (child_resume): Simplify and rework to avoid
4135         TT_PROC_CONTINUE.
4136
4137 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4138
4139         * printcmd.c (print_scalar_formatted): "len" is the number of
4140         target bytes, NOT the number of target bits.
4141
4142 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4143
4144         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4145         * top.c (init_main): Set rl_terminal_name.
4146
4147 2002-09-08  Aidan Skinner <aidan@velvet.net>
4148
4149         * ada-lang.c (ada_array_bound, ada_type_match,
4150         _initialize_ada_language): Fix K&R definitions.
4151         * ada-tasks.c (get_current_task): Fix K&R definitions.
4152         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4153                         
4154 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4155
4156         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4157         Add XP.
4158
4159 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4160
4161         * i386-tdep.c (i386_register_virtual_type,
4162         i386_register_convertible, i386_register_convert_to_virtual,
4163         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4164         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4165         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4166         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4167         Don't set push_arguments twice.
4168
4169         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4170         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4171         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4172         sigtramp_end to NULL.
4173         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4174         defines.
4175         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4176
4177         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4178         whitespace.
4179
4180         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4181         * gdbarch.h, gdbarch.c: Re-generate.
4182         * blockframe.c (find_pc_sect_partial_function): Convert to use
4183         SIGTRAMP_START_P predicate.
4184
4185 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4186
4187         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4188         generic_dummy_frame method and old method.  Also distinguish
4189         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4190         (arm_extract_return_value): Use new regcache method.
4191
4192         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4193         adjustment that doesn't conform to the ABI.
4194         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4195         saved regcache, not from current regcache.
4196
4197 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4198
4199         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4200         * README: Update.
4201
4202 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4203
4204         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4205         if arm_apcs_32 is false.
4206
4207 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4208
4209         GDB 5.3 branch created.
4210
4211 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4212
4213         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4214         generic_unwind_get_saved_register.
4215
4216 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4217
4218         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4219         argument (PR gdb/653).  Update call to smash_to_method_type.
4220         (read_structure_scope): Update call to dwarf2_add_member_fn.
4221
4222 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4223
4224         * x86-64-linux-tdep.c: Include gdb_string.h
4225         * x86-64-linux-nat.c: Ditto.
4226
4227 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4228
4229         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4230         when YYDEBUG is set to 1.  
4231         * c-exp.y: Likewise.
4232         * f-exp.y: Likewise.
4233         * jv-exp.y: Likewise.
4234         * m2-exp.y: Likewise.
4235         * p-exp.y: Likewise.
4236
4237 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4238
4239         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4240         dependency list.
4241         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4242         solib_svr4_fetch_link_map_offsets to
4243         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4244         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4245         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4246         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4247         solib-svr4.o, and solib-legacy.o.
4248         * config/i386/tm-nbsd.h: Include solib.h.
4249
4250 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4251
4252         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4253         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4254         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4255         comment noting that this needs its own target configuration.
4256         * config/i386/nbsd.mt: New file.
4257         * config/i386/nbsdaout.mt: Remove.
4258         * config/i386/nbsdelf.mt: Ditto.
4259         * config/i386/tm-nbsdaout.h: Ditto. 
4260
4261 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4262
4263         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4264         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4265         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4266         tdep->sigtramp_end.
4267         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4268         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4269         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4270
4271 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4272
4273         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4274         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4275         * i386-tdep.h (i386bsd_init_abi): New prototype.
4276         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4277         function declaration.
4278         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4279         for NetBSD-a.out or NetBSD-ELF.
4280         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4281         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4282         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4283         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4284         and nbsd-tdep.h.
4285         (i386nbsd_pc_in_sigtramp): New function.
4286         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4287         i386nbsd_pc_in_sigtramp.
4288         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4289         and i386nbsdelf_init_abi OS ABI handlers.
4290         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4291         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4292
4293 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4294
4295         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4296         registers if the target really has them.
4297
4298 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4299
4300         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4301         than nbsd-tdep.h.
4302
4303 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4304
4305         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4306         list.
4307         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4308         (alphanbsd_skip_sigtramp_frame): New functions. 
4309         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4310         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4311         to alphanbsd_sigcontext_addr. 
4312
4313 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4314
4315         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4316         list.
4317         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4318         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4319         nbsd_pc_in_sigtramp. 
4320         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4321         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4322         * nbsd-tdep.c: Include gdb_string.h.
4323         (nbsd_pc_in_sigtramp): New function. 
4324         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4325         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4326         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4327         ppcnbsd_pc_in_sigtramp. 
4328         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4329         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4330         shnbsd_pc_in_sigtramp. 
4331         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4332         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4333         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4334
4335 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4336
4337         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4338         watchpoints to NULL.
4339         (insert_breakpoints): set val field of watchpoints if NULL.
4340
4341
4342 2002-08-29  Jim Blandy  <jimb@redhat.com>
4343
4344         * symtab.c (lookup_symbol_aux): In the cases where we find a
4345         minimal symbol of an appropriate name and use its address to
4346         select a symtab to read and search, use `name' (as passed to us)
4347         as the demangled name when searching the symtab's global and
4348         static blocks, not the minsym's name.
4349
4350 2002-08-29  Keith Seitz  <keiths@redhat.com>
4351
4352         * stack.c (print_frame_info_base): Always set current_source_symtab
4353         and current_source_line.
4354
4355 2002-08-29  Donn Terry  <donnte@microsoft.com>
4356
4357         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4358
4359 2002-08-28  Keith Seitz  <keiths@redhat.com>
4360
4361         * stack.c (select_frame): Add FIXME concerning selected-frame
4362         events.
4363         (select_frame_command): Send selected-frame-level-changed
4364         event notification, but only if the level actually changed.
4365         (up_silently_base): Add selected-frame-level-changed event
4366         notification.
4367         (down_silently_base): Likewise.
4368
4369 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4370
4371         * Makefile.in: Update dependencies for all gdb/*.c files.
4372
4373 2002-08-27  Tom Tromey  <tromey@redhat.com>
4374
4375         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4376         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4377         Update dependencies.
4378         * i387-tdep.c: Include gdb_string.h.
4379         * osabi.c: Likewise.
4380         * i386-linux-nat.c: Likewise.
4381         * lin-lwp.c: Likewise.
4382         * ax-gdb.c: Likewise.
4383         * signals/signals.c: Likewise.
4384         * jv-valprint.c: Likewise.
4385         * p-lang.c: Likewise.
4386         * c-valprint.c: Likewise.
4387         * cp-abi.c: Likewise.
4388
4389 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4390
4391         * cli/cli-script.h (copy_command_lines): Export.
4392         * breakpoint.c: Include cli/cli-script.h.
4393         * Makefile.in (breakpoint.o): Update dependencies.
4394
4395 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4396
4397         * breakpoint.c (insert_breakpoints): Protect all references
4398         to 'process_warning'.  Shorten long lines.
4399
4400 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4401
4402         * cli/cli-script.c (copy_command_lines): New function.
4403         * defs.h (copy_command_lines): Export.
4404         * testsuite/gdb.base/commands.exp: New tests for commands
4405         attached to a temporary breakpoint, and for commands that
4406         delete the breakpoint they are attached to.
4407         
4408 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4409
4410         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4411         pointer to the breakpoint commands struct, make a new copy
4412         of the struct and point to that.
4413         (bpstat_clear): Free the commands struct.
4414         (bpstat_clear_actions): Free the commands struct.
4415         (bpstat_do_actions): Free the command actions.  Also execute
4416         the local cleanups, instead of deleting them.
4417         (delete_breakpoint): Leave the commands field of the bpstat
4418         chain alone -- it will be freed later.
4419
4420 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4421
4422         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4423         deleted in 2002-08-20 commit.  This function is still used by
4424         ppc-linux-nat.c.
4425
4426 2002-08-26  Keith Seitz  <keiths@redhat.com>
4427
4428         * gdb-events.sh: Add selected-frame-level-changed event.
4429         * gdb-events.c: Regenerated.
4430         * gdb-events.h: Regenerated.
4431         
4432 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4433
4434         Fix PR gdb/393:
4435         * inflow.c (terminal_save_ours): New function to save terminal
4436         settings.
4437         * inferior.h (terminal_save_ours): Declare.
4438         * target.c (debug_to_terminal_save_ours): New function.
4439         (cleanup_target): Defaults to_terminal_save_ours.
4440         (update_current_target): Inherit to_terminal_save_ours.
4441         (setup_target_debug): Set to_terminal_save_ours.
4442         * target.h (target_terminal_save_ours): New to save terminal settings.
4443         (target_ops): New member to_terminal_save_ours.
4444         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4445         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4446         * inftarg.c (init_child_ops): Likewise.
4447         * m3-nat.c (init_m3_ops): Likewise.
4448         * procfs.c (init_procfs_ops): Likewise.
4449         * wince.c (init_child_ops): Likewise.
4450         * win32-nat.c (init_child_ops): Likewise.
4451         * sol-thread.c (init_sol_thread_ops): Likewise.
4452
4453 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4454
4455         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4456         use regcache_* functions.
4457         (i386_gdbarch_init): Set store_return_value instead of
4458         deprecated_store_return_value.
4459
4460         * regcache.c (regcache_raw_write_signed,
4461         regcache_raw_write_unsigned): New functions.
4462         * regcache.h (regcache_raw_write_signed,
4463         regcache_raw_write_unsigned): New prototypes.
4464
4465 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4466
4467         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4468         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4469         source file dependencies.  Cleanup corresponding generator rules.
4470
4471 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4472
4473         * regcache.h (register_offset_hack): Declare.
4474         (regcache_cooked_read_using_offset_hack): Declare.
4475         (regcache_cooked_write_using_offset_hack): Declare.
4476
4477         * regcache.c (register_offset_hack): New function.
4478         (regcache_cooked_read_using_offset_hack): New function.
4479         (regcache_cooked_write_using_offset_hack): New function.
4480         (regcache_dump): Check that the registers, according to their
4481         offset, are packed hard against each other.
4482         (cooked_xfer_using_offset_hack): New function.
4483
4484 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4485
4486         * regcache.c (struct regcache_descr): Add field register_type.
4487         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4488         in as a parameter
4489         (init_regcache_descr): Initialize register_type.  Pass the descr
4490         to init_legacy_regcache_descr.  Use register_type instead of
4491         REGISTER_VIRTUAL_TYPE.
4492         (register_type): New function.
4493         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4494         * regcache.h (register_type): Declare.
4495
4496 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4497
4498         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4499         instead of deprecated_store_return_value.  Fix fallout from
4500         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4501
4502 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4503
4504         * regcache.c (max_register_size): New function.
4505         (init_legacy_regcache_descr): Ensure that max_register_size is
4506         large enough for REGISTER_VIRTUAL_SIZE.
4507         * regcache.h (max_register_size): Declare.
4508
4509 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4510
4511         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4512         store_return_value.
4513         (e500_extract_return_value): Change type of valbuf pointer to
4514         void.
4515
4516 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4517
4518         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4519         workaround.
4520
4521         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4522         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4523         long long) to prevent compiler warning on 64-bit systems.
4524
4525 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4526
4527         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4528         (DEPRECATED_STORE_RETURN_VALUE): New method.
4529         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4530         * gdbarch.h, gdbarch.c: Re-generate.
4531
4532         * values.c (set_return_value): Pass current_regcache to
4533         STORE_RETURN_VALUE.
4534         * arch-utils.h (legacy_store_return_value): Declare.
4535         * arch-utils.c (legacy_store_return_value): New function.
4536         (legacy_extract_return_value): Update parameters.
4537
4538         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4539         STORE_RETURN_VALUE.
4540         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4541         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4542         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4543         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4544         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4545         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4546         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4547         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4548         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4549         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4550
4551         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4552         * i386-tdep.c (i386_extract_return_value): Update.
4553         * arch-utils.c (legacy_extract_return_value): Update.
4554         * frv-tdep.c (frv_gdbarch_init): Update.
4555         * cris-tdep.c (cris_gdbarch_init): Update.
4556         * d10v-tdep.c (d10v_gdbarch_init): Update.
4557         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4558         * m68k-tdep.c (m68k_gdbarch_init): Update.
4559         * mcore-tdep.c (mcore_gdbarch_init): Update.
4560         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4561         * s390-tdep.c (s390_gdbarch_init): Update.
4562         * sparc-tdep.c (sparc_gdbarch_init): Update.
4563         * sh-tdep.c (sh_gdbarch_init): Update.
4564         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4565         * v850-tdep.c (v850_gdbarch_init): Update.
4566         * avr-tdep.c (avr_gdbarch_init): Update.
4567         * ia64-tdep.c (ia64_gdbarch_init): Update.
4568         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4569         * vax-tdep.c (vax_gdbarch_init): Update.
4570         * alpha-tdep.c (alpha_gdbarch_init): Update.
4571         * arm-tdep.c (arm_gdbarch_init): Update.
4572         * mips-tdep.c (mips_gdbarch_init): Update.
4573         * i386-tdep.c (i386_gdbarch_init): Update.
4574
4575 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4576
4577         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4578         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4579
4580 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4581
4582         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4583         problems.
4584
4585 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4586
4587         * infrun.c (handle_inferior_event): Move a comment outside of a
4588         function call, in order to avoid indent reformatting this part
4589         of the code in an unreadable way.
4590
4591 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4592
4593         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4594         when breakpoints fail. Move general breakpoint error messages to
4595         insert_breakpoints.  
4596         * breakpoint.c (insert_breakpoints): Change warnings when
4597         breakpoints are nto inserted to specify the type. Remove call to
4598         memory_error when hardware breakpoints can't be inserted. Remove
4599         multiple calls to warning so all messages are sent to the user at
4600         once.
4601         (delete_breakpoints): Make insert error messsages more explicit.
4602
4603 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4604
4605         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4606         gdbserver/ChangeLog.
4607
4608 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4609
4610         * i386-tdep.c: Include "objfiles.h".
4611         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4612         skip_trampoline_code.
4613         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4614         (CPLUS_MARKER): Define to '.'.
4615
4616         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4617         member.
4618         (linux_corefile_thread_callback): Increase args->num_notes.
4619         (linux_make_note_section): Initialize thread_args.num_notes, and
4620         use it to determine whether notes for any threads were created.
4621
4622 2002-08-23  Donn Terry  <donnte@microsoft.com>
4623
4624         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4625         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4626         and PCUNKILL.
4627         (write_with_trace): Conditionalize out the switch branch handling
4628         PCSHOLD if the corresponding macro is not defined. Likewise for
4629         PRSABORT and PRSTOP.
4630         This change will be needed by the Interix port.
4631
4632 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4633
4634         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4635         write_register wherever possible instead of manipulating the
4636         register bytes directly.
4637         Assign VALUE_CONTENTS to a variable and use that.
4638         The GPR numbers are now dependent on the architecture.
4639         
4640 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4641
4642         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4643         ev_offset fields.
4644         (skip_prologue): Add support for BookE/e500 instructions.
4645         (e500_extract_return_value): New function.
4646         (frame_get_saved_regs): Add support for saving ev registers and
4647         pseudo gpr's.
4648         (e500_store_return_value): New function.
4649         (rs6000_gdbarch_init): Move up default intializations of
4650         deprecated_extract_return_value and store_return_value.  Overwrite
4651         init of store_return_value with e500 specific version.
4652         Set extract_return_value for e500.
4653         
4654 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4655
4656         * blockframe.c (generic_call_dummy_register_unwind): Use
4657         regcache_cooked_read to catch cases in which the variable is
4658         stored in a pseudo register.
4659
4660 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4661
4662         * NEWS: Mention that the i960 has been made obsolete.
4663         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4664         i960-tdep.c
4665         (remote-nrom.o): Obsolete target.
4666         (remote-nindy.o, i960-tdep.o): Ditto.
4667         * remote-nrom.c: Make file obsolete.
4668         * remote-nindy.c, remote-vx960.c: Ditto.
4669         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4670         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4671         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4672         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4673         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4674         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4675         i960-*-vxworks* obsolete.
4676         * MAINTAINERS: Note that the i960 is obsolete.
4677
4678 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4679
4680         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4681         detach to allow reinitialization.
4682
4683 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4684
4685         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4686         attempt).
4687
4688 2002-08-22  Jim Blandy  <jimb@redhat.com>
4689
4690         * coffread.c (coff_symfile_read): Don't try to read the line
4691         number table from disk if the image file doesn't have a symbol
4692         table; we'll never actually look at the info anyway, and Windows
4693         ships DLL's with bogus file offsets for the line number data.
4694
4695 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4696
4697         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4698         an e500 executable.
4699
4700 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4701
4702         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4703         (MSYMBOL_SIZE): Replace macro with function.
4704         (DEFAULT_MIPS_TYPE): Delete unused macro.
4705         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4706         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4707
4708 2002-08-21  Jim Blandy  <jimb@redhat.com>
4709
4710         * valops.c (value_cast): Simplify and correct logic for doing a
4711         static cast from a pointer to a base class to a pointer to a
4712         derived class.
4713
4714 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4715
4716         * infcmd.c (default_print_registers_info): Replace
4717         do_registers_info.
4718         (registers_info): Use gdbarch_print_registers_info instead of
4719         DO_REGISTERS_INFO.
4720         * inferior.h (default_print_registers_info): Replace
4721         do_registers_info.
4722         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4723         (DO_REGISTERS_INFO): Change to a predicate function.
4724         * gdbarch.h, gdbarch.c: Regenerate.
4725         
4726 2002-08-21  Keith Seitz  <keiths@redhat.com>
4727
4728         * gdb-events.sh: Add target-changed event.
4729         * gdb-events.c: Regenerated.
4730         * gdb-events.c: Regenerated.
4731         * valops.c (value_assign): Add target-changed event notification
4732         to inlval_register, lval_memory, and lval_reg_frame_relative.
4733
4734 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4735
4736         * NEWS: Add an entry regarding the improvement of the next/step
4737         operation on Alpha Tru64 multi-processor machines.
4738
4739 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4740
4741         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4742         directores.
4743         * Makefile.in: Update all _h macro definitions.
4744         * Makefile.in (install-gdbtk): Move to install section.
4745         (rdi-share/libangsd.a): Move to end of file.
4746
4747 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4748
4749         * frame.c (frame_register_unwind): When a register, set addrp to
4750         the register's byte.
4751
4752 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4753
4754         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4755         used locally, so move them from the target machine header to here.
4756         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4757         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4758         Make static.
4759         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4760
4761 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4762
4763         * NEWS: Mention that the Apollo line was made obsolete.
4764         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4765         m68*-hp-hpux* obsolete.
4766         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4767         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4768         * buildsym.c (make_blockvector): Make static.
4769         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4770         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4771         (ALLDEPFILES): Remove dstread.c.
4772         (dstread.o): Obsolete make rule.
4773         * dstread.c: Makefile obsolete.
4774         * dst.h: Ditto.
4775         * config/m68k/hp300hpux.mt: Ditto.
4776         * config/m68k/hp300hpux.mh: Ditto.
4777         * config/m68k/hp300bsd.mt: Ditto.
4778         * config/m68k/hp300bsd.mh: Ditto.
4779         * config/m68k/apollo68b.mt: Ditto.
4780         * config/m68k/apollo68v.mh: Ditto.
4781         * config/m68k/apollo68b.mh: Ditto.
4782
4783 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4784
4785         * mips-tdep.c (mips_in_return_stub): Make static.
4786         (mips_gdbarch_init): Set in_solib_return_trampoline.
4787         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4788
4789 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4790
4791         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4792         * gdbarch.c, gdbarch.h: Regenerate.
4793         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4794         Add.
4795         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4796
4797 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4798
4799         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4800         (mips_gdbarch_init): Set skip_trampoline_code, 
4801         in_solib_call_trampoline.
4802         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4803         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4804
4805 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4806
4807         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4808
4809         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4810         vector type for ev registers.
4811         (e500_pseudo_register_read): New function.
4812         (e500_pseudo_register_write): New function.
4813         (e500_dwarf2_reg_to_regnum): New function.
4814         (PPC_UISA_NOFP_SPRS): New macro.
4815         (PPC_EV_REGS): New macro.
4816         (PPC_GPRS_PSEUDO_REGS): New macro.
4817         (registers_e500): New register set for e500.
4818         (variants): Add e500 variant.
4819         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4820         before setting architectural dependent variations.  Initialize ev
4821         registers numbers.  Add case for e500 architecture.  Set the
4822         number of pseudo registers.
4823
4824 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4825
4826         * rs6000-tdep.c: Clean up comments.
4827
4828 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4829
4830         * h8300-tdep.c: Re-indent file.
4831
4832 2002-08-20  Jim Blandy  <jimb@redhat.com>
4833
4834         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4835         default for this.
4836
4837 2002-08-20  Keith Seitz  <keiths@redhat.com>
4838
4839         * breakpoints.c (watch_command_1): Use internal breakpoint
4840         when setting a watchpoint_scope breakpoint.
4841
4842 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4843
4844         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4845         (build_builtin_type_vec64i): Ditto.
4846         (build_builtin_type_vec128): Ditto.
4847         (build_builtin_type_vec128i): Ditto.
4848
4849 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4850
4851         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4852         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4853         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4854         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4855         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4856         CALL_DUMMY_ADDRESS): Delete.
4857         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4858         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4859         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
4860         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
4861         push_return_address.
4862         (mips_register_raw_size, mips_eabi_use_struct_convention, 
4863         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4864         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4865         mips_init_extra_frame_info, mips_eabi_push_arguments, 
4866         mips_n32n64_push_arguments, mips_push_return_address,
4867         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4868         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4869
4870 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4871
4872         * mips-tdep.c (mips_frame_num_args): New function.
4873         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4874         frame_saved_pc, frame_args_address, frame_locals_address, 
4875         frame_num_args, and frame_args_skip.
4876         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4877         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
4878         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4879         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4880
4881 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4882
4883         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4884         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4885         * mips-tdep.c (mips_store_struct_return): New function.
4886         (mips_extract_struct_value_address): New function.
4887         (mips_gdbarch_init): Set store_struct_return and
4888         extract_struct_value_address.
4889
4890 2002-08-20  David Carlton  <carlton@math.stanford.edu>
4891
4892         * dwarf2read.c (dwarf2_build_psymtabs): Check that
4893         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4894         (read_file_scope): Check that line_header is nonzero before
4895         decoding macro information.
4896
4897 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
4898
4899         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4900         flag the general-purpose registers as floating-point on targets
4901         that don't support the floating-point registers.
4902
4903 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4904
4905         * rs6000-tdep.c (altivec_register_p): Delete.
4906         (rs6000_do_altivec_registers): Delete.
4907         (rs6000_altivec_registers_info): Delete.
4908         (rs6000_do_registers_info): Delete.
4909         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4910         (rs6000_gdbarch_init): Remove setting of do_registers_info.
4911
4912 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4913
4914         * infcmd.c (do_registers_info): Print vector registers in hex
4915         format only.
4916         (print_vector_info): Check that printing registers
4917         makes sense.
4918         (print_float_info): Ditto.
4919
4920 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4921
4922         * mips-tdep.c (mips_gdbarch_init): Update.
4923         (mips_o32_extract_return_value): Rewrite.
4924         (mips_o32_store_return_value): Rewrite.
4925         (mips_o32_xfer_return_value): New function.
4926         (mips_xfer_register): Tweak debug print message.  Allow for
4927         buf_offset when dumping the value transfered.
4928
4929 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4930
4931         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4932         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4933         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4934         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4935         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4936
4937 2002-08-14  Michael Snyder  <msnyder@redhat.com>
4938
4939         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4940
4941 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4942
4943         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4944         register.
4945         (P): New macro to define a register as a pseudo register.
4946         (R, R4, R8, R16, FR32, R64, R0): Updated.
4947         (struct variant): Add new fields for number of pseudo registers
4948         and number of total registers.
4949         (tot_num_registers): New macro replacing....
4950         (num_registers): ...deleted macro.
4951         (num_registers): New function.
4952         (num_pseudo_registers): New function.
4953         (variants): Update all variants to intialize new fields correctly.
4954         Postpone initialization of number of pseudo regs and real regs.
4955         (init_variants): New function.
4956         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
4957         registers offsets.
4958
4959 2002-08-19  David Carlton  <carlton@math.stanford.edu>
4960
4961         * valops.c (search_struct_field): Change error message to treat
4962         return value of 0 from value_static_field as meaning that field is
4963         optimized out.
4964         (value_struct_elt_for_reference): Ditto.
4965         * values.c (value_static_field): Treat an unresolved location the
4966         same as a nonexistent symbol.  Fix PR gdb/635.
4967         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4968         enclosed.  Fix PR gdb/574.
4969         * MAINTAINERS: Add self to Write After Approval list.
4970
4971 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4972
4973         * mips-tdep.c (mips_xfer_register): New function.
4974         (mips_n32n64_extract_return_value): Rewrite.
4975         (mips_gdbarch_init): For N32 and N64, set extract_return_value
4976         instead of deprecated_extract_return_value.
4977
4978 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4979
4980         * rs6000-tdep.c (TDEP): Delete macro.
4981         (branch_dest): Replace use of TDEP macro with its body.
4982         (rs6000_pop_frame): Ditto.
4983         (rs6000_push_arguments): Ditto.
4984         (rs6000_skip_trampoline_code): Ditto.
4985         (rs6000_frame_saved_pc): Ditto.
4986         (rs6000_frame_chain): Ditto.
4987         (rs6000_register_name): Ditto.
4988         (rs6000_register_byte): Ditto.
4989         (rs6000_register_raw_size): Ditto.
4990         (rs6000_register_virtual_type): Ditto.
4991         (rs6000_register_convertible): Ditto.
4992         (rs6000_convert_from_func_ptr_addr): Ditto.
4993
4994 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
4995
4996         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4997         conditionally.
4998         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4999         MIPS_LINUX_JB_ELEMENT_SIZE.
5000         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5001         for MAX_REGISTER_RAW_SIZE arrays.
5002         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5003         MIPS_LINUX_JB_ELEMENT_SIZE.
5004
5005 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5006
5007         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5008
5009 2002-08-19  Aidan Skinner <aidan@velvet.net>
5010
5011         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5012         ada-valprint.c ada-tasks.c.
5013         (YYFILES): Add ada-exp.y.
5014         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5015         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5016         (ada-exp.tab.o): New target.
5017                 
5018 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5019
5020         * regcache.c (regcache_xfer_part): New function.
5021         (regcache_raw_read_part): New function.
5022         (regcache_raw_write_part): New function.
5023         (regcache_cooked_read_part): New function.
5024         (regcache_cooked_write_part): New function.
5025         * regcache.h (regcache_raw_read_part): Declare.
5026         (regcache_raw_write_part): Declare.
5027         (regcache_cooked_read_part): Declare.
5028         (regcache_cooked_write_part): Declare.
5029
5030 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5031
5032         * remote.c (remote_open_1): Add async_p.
5033         (remote_async_open_1): Delete.
5034         (open_remote_target): Delete.
5035         (remote_open, extended_remote_open): Update calls to remote_open_1.
5036         (remote_async_open, extended_remote_async_open): Call
5037         remote_open_1 instead of remote_async_open_1.
5038
5039 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5040
5041         * blockframe.c: Fix a few coding standard violations.
5042
5043 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5044
5045         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5046         here from ...
5047         * config/i386/tm-i386sco5.h: ... here.  File removed.
5048         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5049
5050         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5051         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5052         (TM_FILE): Set to tm-i386.h.
5053         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5054         * config/i386/tm-i386v.h: Remove file.
5055         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5056         instead of "i386/tm-i386v.h".
5057         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5058         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5059         "i386/tm-i386v.h".
5060         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5061         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5062         "i386/tm-i386.h".
5063
5064 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5065
5066         * config/i386/nm-i386v.h: Add protection against
5067         multiple-inclusion.
5068         (i386_register_u_addr): Remove prototype.
5069         (register_u_addr): New prototype.
5070         (REGISTER_U_ADDR): Redefine accordingly.
5071         * i386v-nat.c: Improve several comments.
5072         (i386_register_u_addr): Change signature and rename to
5073         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5074         ubase variable.
5075
5076 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5077
5078         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5079         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5080         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5081         deprecated_extract_return_value.
5082         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5083         rename mips_o32o64_push_arguments.
5084         (mips_gdbarch_init): Update.
5085         (mips_extract_return_value): Delete.
5086         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5087         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5088         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5089         (mips_n32n64_extract_return_value): Clone
5090         mips_extract_return_value.
5091         (mips_store_return_value): Delete.
5092         (mips_o32_store_return_value): Clone mips_store_return_value.
5093         (mips_o64_store_return_value): Clone mips_store_return_value.
5094         (mips_eabi_store_return_value): Clone mips_store_return_value.
5095         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5096
5097 2002-08-18  Aidan Skinner <aidan@velvet.net>
5098
5099         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5100         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5101                 
5102 2002-08-18  Aidan Skinner <aidan@velvet.net>
5103
5104         * ada-lang.c: Run through gdb_indent.sh.
5105         * ada-lang.h: Run through gdb_indent.sh.
5106         * ada-tasks.c: Run through gdb_indent.sh.
5107         * ada-typeprint.c: Run through gdb_indent.sh.
5108         * ada-valprint.c: Run through gdb_indent.sh.
5109
5110 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5111
5112         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5113         ABI.
5114
5115 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5116
5117         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5118
5119         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5120         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5121
5122         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5123         write_register_gen instead of write_register_bytes.
5124
5125         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5126         i[3456]-*-osf1mk* configurations have been made obsolete.
5127         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5128         i[3456]86-*-osf1mk* hosts obsolete.
5129         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5130         targets obsolete.
5131         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5132         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5133         config/i386/i386m3.mt, config/i386/nm-m3.h,
5134         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5135         config/i386/i386mk.mh, config/i386/i386mk.mt,
5136         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5137         obsolete.
5138         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5139         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5140         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5141
5142 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5143
5144         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5145         (hppa_value_returned_from_stack): Declare.
5146         (hppa_extract_return_value): Declare.
5147         * config/pa/hppa.mt: New file.
5148         * configure.tgt: Recognize hppa*-*-*.
5149         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5150
5151 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5152
5153         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5154         comment.
5155
5156 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5157
5158         * top.c (gdb_rl_operate_and_get_next): Make sure
5159         operate-and-get-next functions correctly even when the history
5160         list is completely filled.
5161
5162 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5163
5164         * MAINTAINERS (Target Instruction Set Architectures): Rename
5165         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5166         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5167         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5168         already listed under Host/Native.
5169
5170         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5171         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5172         mips*-*-*.
5173
5174 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5175
5176         * config/ia64/ia64.mt: New file.
5177         * config/alpha/alpha.mt: New file.
5178         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5179         ia64-linux-gnu.  Mention that ia64-elf is broken.
5180         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5181
5182 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5183
5184         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5185         generic_func_frame_valid instead of func_frame_valid.
5186
5187 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5188
5189         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5190         procfs appears to be broken when debugging on multi-processor
5191         machines. So enable software single stepping in order to avoid
5192         using the procfs interface to do next/step operations, using
5193         internal breakpoints instead.
5194
5195         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5196         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5197         make this pc address equal to the value it would have if the
5198         system stepping capability was used. Also set a new flag used
5199         to ensure that we don't readjust the PC one more time later.
5200
5201         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5202         address by DECR_PC_AFTER_BREAK when software single step is
5203         in use for this architecture, as this has already been taken
5204         care of in handle_inferior_event().
5205
5206 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5207
5208         * infrun.c (handle_inferior_event): Minor reformatting, to make
5209         a rather long condition expression easier to read.
5210
5211 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5212
5213         * Makefile.in (gdbtk.o): Move to end of file.
5214         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5215         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5216         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5217         (gdbtk-wrapper.o, gdbres.o): Ditto.
5218
5219 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5220
5221         * Makefile.in (copying.o): Separate out compile rule.
5222         (hpux-thread.o, procfs.o, signals.o): Ditto.
5223         (v850ice.o, z8k-tdep.o): Ditto.
5224         (tui-file.o): Move to TUI section.
5225         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5226         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5227
5228 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5229
5230         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5231         skip_trampoline_code, for better namespace-proofing.   
5232
5233         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5234
5235 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5236
5237         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5238
5239 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5240
5241         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5242         signal, check whether we hit a breakpoint before checking for a
5243         single step breakpoint. Otherwise, GDB fails to notice that a
5244         breakpoint has been hit when stepping onto a breakpoint.
5245
5246 2002-08-16  Keith Seitz  <keiths@redhat.com>
5247
5248         * gdb-events.sh (clear_gdb_event_hooks): New function.
5249         * gdb-events.c: Regenerate.
5250         * gdb-events.h: Regenerate.
5251
5252 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5253
5254         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5255         not_a_sw_breakpoint.
5256         * breakpoint.h (bpstat_stop_status): Add parameter names.
5257
5258 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5259
5260         * remote.c (remote_insert_hw_breakpoint)
5261         (remote_remove_hw_breakpoint): Fix calculation of length field
5262         for Z-packet.
5263
5264 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5265
5266         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5267         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5268         (supply_fpregset): Ditto.
5269         
5270         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5271         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5272         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5273         (TARGET_READ_SP): Delete.
5274         (DO_REGISTERS_INFO): Delete.
5275         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5276         Delete.
5277         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5278         from macros to functions.
5279
5280         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5281         (mips_register_convertible, mips_register_convert_to_virtual,
5282         mips_register_convert_to_raw): Make static.
5283         (mips_read_sp): New function.
5284         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5285         (mips_do_registers_info): Make static.
5286         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5287         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5288         (mips_register_convert_from_type, mips_register_convert_to_type):
5289         New functions.
5290         (mips_gdbarch_init): Set up function_start_offset, 
5291         register_virtual_size, pc_in_sigtramp.
5292
5293 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5294
5295         * infcmd.c (vector_info): New function.
5296         (_initialize_infcmd): Add command "info vector".
5297         (print_vector_info): New function.
5298
5299         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5300         * gdbarch.h, gdbarch.c: Regenerate.
5301
5302 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5303
5304         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5305         ``print_all''.  Only print vector registers when ``print_all''.
5306
5307 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5308
5309         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5310         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5311
5312         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5313         Add `args' parameter.
5314         * gdbarch.h, gdbarch.c: Regenerate.
5315         
5316         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5317         
5318         * infcmd.c (float_info): Call print_float_info.
5319         (print_float_info): New function.  By default, print the
5320         floating-point registers.
5321
5322         * arch-utils.h (default_print_float_info): Delete declaration.
5323         * arch-utils.c (default_print_float_info): Delete function.
5324         
5325 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5326
5327         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5328         out define.
5329
5330         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5331         FRAME.
5332
5333         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5334         * configure.host: Make i[3456]86-*-aix host obsolete.
5335         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5336         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5337         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5338         config/i386/xm-i386aix.h: Make files obsolete.
5339         * i386aix-nat.c: Make file obsolete.
5340         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5341         (i386aix-nat.o): Make target obsolete.
5342
5343         * config/i386/nm-gnu.h: Removed.
5344         * config/i386/nm-i386gnu.h: New file.
5345         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5346         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5347         Moved here from ...
5348         * config/i386/tm-i386gnu.h: ... here.  Removed.
5349         * config/i386/xm-i386gnu.h: Removed.
5350         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5351         (NAT_FILE): Set to nm-i386gnu.h.
5352         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5353         * i386-tdep.c: New file.
5354         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5355         (i386gnu-tdep.o): Specify dependencies.
5356
5357 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5358
5359         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5360         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5361         Adjust a few comments to reflect reality a bit closer.
5362         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5363         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5364         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5365         target_insert_watchpoint, target_remove_watchpoint):
5366         Move defines to ...
5367         * config/i386/nm-i386sco5.h: ... here.
5368         (kernel_u_size): Add prototype.  Improve a few comments and add
5369         protection against multiple inclusion.
5370         
5371         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5372         out define.
5373
5374         * uw-thread.c (SP_ARG0): Define if not already defined.
5375         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5376
5377         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5378
5379         * config/i386/tm-i386.h: Don't include "regcache.h".
5380
5381         * i387-tdep.h (i387_print_float_info): New prototype.
5382         * i387-tdep.c (print_i387_value, print_i387_ext,
5383         print_i387_status_word, print_i387_control_word): Add `struct
5384         ui_file *' argument and use it for output.
5385         (i387_print_float_info): Renamed from i387_float_info.  Add
5386         `struct gdbarch *' and `struct ui_file *' arguments and use the
5387         latter for output.
5388         * i386-tdep.c: Include "i387-tdep.h".
5389         (i386_gdbarch_init): Set print_float_info.
5390         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5391         (FLOAT_INFO): Remove define.
5392
5393 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5394
5395         * mips-tdep.c (mips_push_arguments): Rename to
5396         mips_eabi_push_arguments, and tune for EABI.
5397         (MIPS_REGS_HAVE_HOME_P): Delete.
5398         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5399         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5400         Delete references to mips_regs_have_home_p.
5401
5402 2002-08-14  Keith Seitz  <keiths@redhat.com>
5403
5404         * Makefile.in (install-gdbtk): Create insight plugin directory.
5405         Install plugins.tcl file.
5406
5407 2002-08-14  Keith Seitz  <keiths@redhat.com>
5408
5409         * configure.in: Move SUBDIRS to near top of the file so that
5410         --enable options may add things to it.
5411         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5412         * configure: Regenerate.
5413
5414 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5415
5416         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5417         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5418         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5419
5420 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5421
5422         * vax-tdep.c (vax_get_saved_register): Delete function.
5423         (vax_gdbarch_init): Update.
5424         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5425         (ns32k_gdbarch_init): Update.
5426         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5427         (alpha_gdbarch_init): Update.
5428
5429 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5430
5431         * regcache.c (init_regcache_descr): Overallocate the
5432         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5433         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5434         nr_raw_registers.
5435         (set_register_cached): Add range checking assertions.  Use
5436         current_regcache.
5437
5438 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5439
5440         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5441         numbers for MMX registers.
5442
5443 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5444
5445         * i386-tdep.c (i386_gdbarch_init): Use
5446         generic_unwind_get_saved_register.
5447
5448 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5449
5450         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5451         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5452         target vector.
5453         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5454         Delete.  Add comment regarding this now-deleted target method.
5455
5456 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5457
5458         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5459         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5460         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5461         real PC and the page number (if it's within the memory bank window).
5462         (m68hc11_pseudo_register_write): Likewise when saving.
5463         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5464         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5465         (m68hc11_register_raw_size): And use 32-bit for it.
5466         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5467         16K memory bank is used by the prog; also use the virtual pc.
5468
5469 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5470
5471         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5472         (m68hc11_gdbarch_init): Install it in gdbarch.
5473         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5474         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5475         (MSYMBOL_SIZE): New for documentation.
5476         (insn_return_kind): Enum to specify how a function returns.
5477         (frame_extra_info): Cleanup and record the return mode.
5478         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5479         register in address computation.
5480         (m68hc11_get_return_insn): New to obtain the return instruction used
5481         by the function.
5482         (m68hc11_frame_init_saved_regs): Take into account the return
5483         instruction used by the function for far and interrupt functions.
5484         (m68hc11_init_extra_frame_info): Take into account page register.
5485         (m68hc11_frame_args_address): Adjust according to the return mode.
5486         (show_regs): Print page register only when it's used.
5487
5488 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5489
5490         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5491         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5492         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5493         registers.
5494         (m68hc11_register_raw_size): Likewise.
5495
5496 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5497
5498         * i386-tdep.c (i386_register_name): Handle mmx registers.
5499         (mmx_regnum_p): New function.
5500         (i386_mmx_names): New array.
5501         (mmx_num_regs): New variable.
5502         (i386_pseudo_register_read): New function.
5503         (i386_pseudo_register_write): New function.
5504         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5505
5506         * regcache.c (regcache_raw_read_unsigned): New function.
5507         (regcache_raw_read_signed): New function.
5508         * regcache.h (regcache_raw_read_unsigned): Declare.
5509         (regcache_raw_read_signed): Declare.
5510
5511 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5512
5513         * regcache.c (regcache_raw_read_as_address): Delete function.
5514         (regcache_cooked_read_signed): New function.
5515         (regcache_cooked_read_unsigned): New function.
5516         * regcache.h (regcache_cooked_read_signed): Declare.
5517         (regcache_cooked_read_unsigned): Declare.
5518         (regcache_raw_read_as_address): Delete declaration.
5519
5520         * blockframe.c (generic_read_register_dummy): Use
5521         regcache_cooked_read_unsigned.
5522         * i386-tdep.c (i386_extract_struct_value_address): Use
5523         regcache_cooked_read_unsigned.
5524
5525 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5526
5527         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5528         double sizes according to ELF ABI flags.
5529         (gdbarch_tdep): Record elf_flags.
5530
5531 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5532
5533         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5534         (m6812_prolog): They can appear in 68HC12 function prologue.
5535         (m68hc11_frame_chain): Cleanup.
5536
5537 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5538
5539         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5540         declarations.
5541         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5542         (i386_linux_register_raw_size): Delete function.
5543         (i386_linux_init_abi): Update.
5544         * i386-tdep.c (i386_register_raw_size): Delete function.
5545         (i386_register_byte): Delete function.
5546         (i386_gdbarch_init): Update.
5547         (i386_register_size): Delete array.
5548         (i386_register_offset): Delete array.
5549
5550         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5551         (REGISTER_RAW_SIZE): Delete macro.
5552         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5553         (REGISTER_BYTE): Delete macro.
5554
5555 2002-08-11  Aidan Skinner <aidan@velvet.net>
5556
5557         * ada-lang.c (ada_lookup_partial_symbol)
5558         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5559         prototype names so that grep ^func works properly.
5560
5561         * ada-lang.c (ada_array_element_type)
5562         (ada_lookup_partial_symbol): Fix typos in parameter list.
5563
5564         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5565         Fix prototype names so that grep ^func works properly.
5566         
5567 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5568             Elena Zannoni  <ezannoni@redhat.com>
5569             Martin M. Hunt  <hunt@redhat.com>
5570
5571         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5572         (build_builtin_type_vec128i): Set the vector bit.
5573         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5574         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5575         (build_builtin_type_vec64): New function.
5576         (build_builtin_type_vec64i): New function.
5577         (build_gdbtypes): Initialize builtin_type_vec64 and
5578         builtin_type_vec64i.
5579
5580 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5581
5582         * regcache.c (regcache_dump): Compare the register offset
5583         with REGISTER_BYTE.
5584         * arch-utils.c (generic_register_byte): New function.
5585         * arch-utils.h (generic_register_byte): Declare.
5586         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5587         * gdbarch.h, gdbarch.c: Regenerate.
5588
5589 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5590
5591         * regcache.c: Include "gdbcmd.h"
5592         (_initialize_regcache): Add commands "maintenance print
5593         registers", "maintenance print raw-registers" and "maintenance
5594         print cooked-registers".
5595         (enum regcache_dump_what): Define.
5596         (dump_endian_bytes): New function.
5597         (regcache_dump): New function.
5598         (regcache_print): New function.
5599         (maintenance_print_registers): New function.
5600         (maintenance_print_raw_registers): New function.
5601         (maintenance_print_cooked_registers): New function.
5602         * Makefile.in (regcache.o): Update dependencies.
5603
5604 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5605
5606         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5607         (mips_push_arguments): Correct some comments.  Use paddr_nz
5608         for printing addresses in debug output.  Replace static
5609         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5610         (mips_n32n64_push_arguments): New function, cloned from
5611         mips_push_arguments and tuned for the n32/n64 ABI.
5612         (mips_push_register): Buffer needs dynamic allocation.
5613         (mips_print_register): Ditto.
5614         (do_gp_register_row): Ditto.
5615         (mips_store_return_value): Ditto.
5616         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5617
5618 2002-08-09  Don Howard  <dhoward@redhat.com>
5619
5620         * memattr.c (mem_info_command): Print special case of upper bound
5621         as max CORE_ADDR + 1.
5622
5623 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5624
5625         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5626         returns structs by ref if they're too big to fit in two registers.
5627
5628 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5629
5630         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5631         saved regs value.
5632         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5633         mips_find_saved_regs().
5634         (mips_pop_frame): Likewise.
5635
5636 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5637
5638         * blockframe.c (frame_saved_regs_register_unwind): Revise
5639         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5640         frames are in use.
5641
5642 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5643         
5644         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5645         T-packets; the 'a' is not taken as a register number.
5646         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5647         (remote_stopped_data_address): New functions; add to target
5648         vector.
5649         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5650         prototypes to match other implementations of this
5651         function. replace integer argument with pointer -- the length
5652         field in the Z-packet is the length of what is pointed to or 1 if
5653         pointer is null. Add to target vector.
5654         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5655         target vector.
5656
5657         From Mark Salter:
5658         * remote.c (remote_wait): Add support to extract optional
5659         watchpoint information from T-packet. Ignore unrecognized
5660         optional info in T-packet.
5661         (remote_async_wait): Ditto.
5662
5663 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5664
5665         * cli/cli-dump.c: Change fopen modes to use binary open modes
5666         as defined in include/fopen-bin.h throughout.
5667
5668 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5669
5670         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5671
5672 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5673
5674         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5675         assertion failure by returning early after a warning.
5676
5677 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5678
5679         * mips-tdep.c (mips_find_saved_regs): Make static.
5680         (mips_frame_init_saved_regs): New function.
5681         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5682         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5683         (mips_find_saved_regs): Delete declaration.
5684
5685 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5686
5687         * remote.c (remote_wait, remote_async_wait): Change
5688         thread_num from int to ULONGEST.
5689         (unpack_varlen_hex): Change result parameter from
5690         int * to ULONGEST *.
5691
5692 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5693
5694         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5695         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5696         powerpc*-*-*.
5697         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5698
5699 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5700
5701         * gcore.c (override_derive_stack_segment): Delete variable.
5702         (preempt_derive_stack_segment): Delete function.
5703         (derive_stack_segment): Delete function.
5704         (default_derive_stack_segment): Renamed to derive_stack_segment.
5705         (override_derive_heap_segment): Delete variable.
5706         (preempt_derive_heap_segment): Delete function.
5707         (derive_heap_segment): Delete function.
5708         (default_derive_heap_segment): Rename to derive_heap_segment.
5709
5710 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5711
5712         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5713         * mips-tdep.c (mips_EABI_use_struct_convention, 
5714         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5715         New functions.  (mips_use_struct_convention): Delete.
5716         (mips_gdbarch_init): set use_gdbarch_convention.
5717
5718 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5719
5720         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5721         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5722         mips_o32_reg_struct_has_addr): New functions.
5723         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5724
5725 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5726
5727         * regcache.c (pseudo_register): Delete function.
5728         (fetch_register): Delete function.
5729         (store_register): Delete function.
5730         (regcache_raw_read, legacy_read_register_gen): Use
5731         target_fetch_registers instead of fetch_register.
5732         (legacy_write_register_gen, regcache_raw_write): Use
5733         target_store_register instead of store_register.
5734         (write_register_bytes): Ditto.
5735
5736         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5737         (STORE_PSEUDO_REGISTER): Delete.
5738         * gdbarch.h, gdbarch.c: Regenerate.
5739
5740 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5741
5742         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5743         write dump file binary.
5744
5745 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5746
5747         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5748         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5749         (mips_gdbarch_init): Set N32 target to be mips64.
5750
5751 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5752
5753         * frame.c (find_saved_register): Break out of loop once saved
5754         register address is found.  Don't mention sparc in loop comment
5755         anymore.
5756
5757 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5758
5759         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5760         mips_default_saved_regsize to 8.
5761
5762 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5763
5764         * gcore.c: Do not include <sys/procfs.h>.
5765         * Makefile.in (gcore.o): Update dependencies.
5766
5767 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5768
5769         * configure.tgt: Make arc-*-* obsolete.
5770         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5771         * MAINTAINERS: Make arc-elf obsolete.
5772         * arc-tdep.c: Make file obsolete.
5773         * config/arc/arc.mt: Ditto.
5774         * config/arc/tm-arc.h: Ditto.
5775
5776 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5777
5778         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5779
5780 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5781
5782         * mcore-tdep.c (mcore_gdbarch_init): Use
5783         generic_unwind_get_saved_register instead of
5784         generic_get_saved_register.
5785         * v850-tdep.c (v850_gdbarch_init): Ditto.
5786         * frv-tdep.c (frv_gdbarch_init): Ditto.
5787         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5788         * s390-tdep.c (s390_gdbarch_init): Ditto.
5789         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5790         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5791         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5792
5793 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5794
5795         * objfiles.h: Add missing #include "symfile.h"
5796
5797         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5798
5799 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5800
5801         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5802         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5803         of FIELD_BITSIZE.
5804
5805 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5806
5807         * NEWS: Cleanup and nitpick.
5808
5809 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5810
5811         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5812
5813 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5814
5815         * Makefile.in (gdbtk-bp.o): Update dependencies.
5816         (gdbtk-register.o): Ditto.
5817         (gdbtk-varobj.o): Ditto.
5818
5819 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5820
5821         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5822         m68hc11_fetch_pseudo_register.
5823         (m68hc11_pseudo_register_write): Replace
5824         m68hc11_store_pseudo_register.
5825         (m68hc11_gdbarch_init): Update.
5826
5827 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5828
5829         * gdbarch.sh: Include "gdb_string.h".
5830         * gdbarch.c: Regenerate.
5831
5832         * regcache.c: Include "gdb_string.h".
5833         * ax-general.c: Ditto.
5834         * varobj.c: Ditto.
5835         * std-regs.c: Ditto.
5836         * fbsd-proc.c: Ditto.
5837         * thread.c: Ditto.
5838
5839         * Makefile.in (regcache.o): Update dependencies.
5840         (thread.o, gdbarch.o): Ditto.
5841         (ax-general.o, gdbarch.o): Ditto.
5842         (varobj.o, std-regs.o): Ditto.
5843         (fbsd-proc.o): Specify dependencies.
5844
5845 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5846
5847         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5848         regnum.
5849         (regcache_cooked_write): Ditto.
5850
5851 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
5852
5853         * regcache.c (regcache_cooked_read): New function.
5854         (regcache_cooked_write): New function.
5855         (read_register_gen): Rewrite using regcache_cooked_read.
5856         (write_register_gen): Rewrite using regcache_cooked_write.
5857
5858         * regcache.h (regcache_cooked_read, regcache_cooked_write):
5859         Declare.
5860
5861 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5862
5863         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5864         Replace the architecture methods register_read and register_write.
5865         * gdbarch.h, gdbarch.c: Regenerate.
5866         * regcache.c (init_regcache_descr): Update.
5867         (read_register_gen): Update.
5868         (write_register_gen): Update.
5869         (supply_register): Update comment.
5870
5871         * sh-tdep.c (sh_gdbarch_init): Update.
5872         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5873         `regcache' and `gdbarch' parameters.  Make `buffer' a void
5874         pointer.  Update code.
5875         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5876         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
5877         void pointer.  Update code.
5878         (sh64_register_write): Delete.
5879         (sh4_register_read): Delete.
5880         (sh64_register_read): Delete.
5881         (sh4_register_write): Delete.
5882         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5883         void pointer, `to' parameter a void pointer.
5884         (sh_sh64_register_convert_to_raw): Ditto.
5885
5886 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5887
5888         * mips-tdep.c (mips_register_virtual_type): Use architecture
5889         invariant return values.
5890
5891 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5892
5893         * linux-proc.c: Include "gdb_string.h".
5894         * Makefile.in (linux-proc.o): Update dependency list.
5895
5896 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5897
5898         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
5899         comment.
5900
5901 2002-08-01  Grace Sainsbury  <graces@redhat.com>
5902
5903         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5904         to_insert_watchpoint, to_remove_watchpoint,
5905         to_stopped_by_watchpoint, to_stopped_data_address,
5906         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5907         target vecctor. Define their corresponding macros so they call
5908         them.
5909         
5910         * target.c: Add default and debug versions of for
5911         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5912         to_insert_watchpoint, to_remove_watchpoint,
5913         to_stopped_by_watchpoint, to_stopped_data_address,
5914         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5915
5916 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5917
5918         * mips-tdep.c (mips_register_virtual_type): New function.
5919         (mips_gdbarch_init): Register mips_register_virtual_type()
5920         with gdbarch machinery.
5921         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5922         this file instead of tm-bigmips.h.
5923         (MIPS_REGSIZE): Delete this macro.
5924         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
5925         multiarch version in mips-tdep.c will be found.
5926
5927 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5928
5929         * NEWS: Menion that CHILL has been made obsolete.
5930
5931         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5932         * stabsread.c (read_range_type): Ditto.
5933         * gdbtypes.h: Ditto.
5934         * language.c (binop_type_check): Ditto.
5935         (binop_result_type): Ditto.
5936         (integral_type): Ditto.
5937         (character_type): Ditto.
5938         (string_type): Ditto.
5939         (boolean_type): Ditto.
5940         (structured_type): Ditto.
5941         (lang_bool_type): Ditto.
5942         (binop_type_check): Ditto.
5943         * language.h (_LANG_chill): Ditto.
5944         * dwarfread.c (set_cu_language): Ditto.
5945         * dwarfread.c (CHILL_PRODUCER): Ditto.
5946         * dwarfread.c (handle_producer): Ditto.
5947         * expression.h (enum exp_opcode): Ditto.
5948         * eval.c: Ditto for comments.
5949         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5950         * expprint.c (print_subexp): Ditto.
5951         (print_subexp): Ditto.
5952         * valops.c (value_cast): Ditto.
5953         (search_struct_field): Ditto.
5954         * value.h (COERCE_VARYING_ARRAY): Ditto.
5955         * symfile.c (init_filename_language_table): Ditto.
5956         (add_psymbol_with_dem_name_to_list): Ditto.
5957         * valarith.c (value_binop): Ditto.
5958         (value_neg): Ditto.
5959         * valops.c (value_slice): Ditto.
5960         * symtab.h (union language_specific): Ditto.
5961         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5962         (SYMBOL_DEMANGLED_NAME): Ditto.
5963         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5964         * defs.h (enum language): Ditto.
5965         * symtab.c (got_symtab): Ditto.
5966         * utils.c (fprintf_symbol_filtered): Ditto.
5967
5968         * ch-typeprint.c: Make file obsolete.
5969         * ch-valprint.c: Make file obsolete.
5970         * ch-lang.h: Make file obsolete.
5971         * ch-exp.c: Make file obsolete.
5972         * ch-lang.c: Make file obsolete.
5973
5974         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5975         CHILL_LIB.
5976         (TARGET_FLAGS_TO_PASS): Ditto.
5977         (CHILLFLAGS): Obsolete.
5978         (CHILL): Obsolete.
5979         (CHILL_FOR_TARGET): Obsolete.
5980         (CHILL_LIB): Obsolete.
5981         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5982         ch-valprint.c.
5983         (HFILES_NO_SRCDIR): Remove ch-lang.h.
5984         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5985         ch-lang.o.
5986         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5987         targets.
5988
5989 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
5990
5991         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5992         This does not change anything at the moment, but will be helpful
5993         later when full Ada support is integrated.
5994
5995 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5996
5997         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5998         help message.
5999
6000 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6001
6002         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6003         and save it in a local variable.  Use variable in later test.
6004
6005 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6006
6007         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6008         test.  (Thanks to Daniel Jacobowitz.)
6009         
6010 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6011
6012         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6013         (mips_abi_strings): Add "n64".
6014         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6015
6016 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6017
6018         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6019         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6020
6021 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6022
6023         * utils.c (host_pointer_to_address, address_to_host_pointer):
6024         Use gdb_assert() instead of explicit call to internal_error().
6025
6026 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6027
6028         * Makefile.in (rs6000-nat.o): Update dependencies.
6029
6030         From Nicholas Duffek:
6031         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6032         (aix-thread.o): New rule.
6033         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6034         * config/powerpc/aix432.mh: New file.
6035
6036 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6037
6038         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6039         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6040         (fetch_core_registers, ppc_linux_supply_gregset)
6041         (ppc_linux_supply_fpregset): New functions.
6042         (ppc_linux_regset_core_fns): New.
6043         (_initialize_ppc_linux_tdep): Call add_core_fns.
6044         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6045         and ppc_linux_supply_gregset.
6046         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6047         (supply_fpregset): Call ppc_linux_supply_fpregset.
6048         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6049         corelow.o.
6050         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6051
6052 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6053
6054         * symtab.c (lookup_symbol): Demangle before lowercasing.
6055
6056 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6057
6058         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6059         declaration.
6060         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6061         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6062         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6063         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6064         "gdb_string.h".
6065         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6066         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6067         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6068         (avr-tdep.o, mon960-rom.o): Ditto.
6069         (aout_stabs_gnu_h): Define.
6070         (symtab_h): Remove $(gdb_obstack_h).
6071
6072 2002-07-30  Jim Blandy  <jimb@redhat.com>
6073
6074         Patch from David Carlton <carlton@math.stanford.edu>:
6075         * gdbinit.in: Move the `dir' commands that add GDB's own source
6076         directory to the search path to the end, so that the `gdb' source
6077         directory will be searched first.
6078
6079 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6080
6081         * gdb_obstack.h: New file.
6082         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6083         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6084         * objfiles.h: Include "gdb_obstack.h".
6085         * Makefile.in (gdb_obstack_h): Define.
6086         (symtab_h): Add $(gdb_obstack_h).
6087         (objfiles_h): Add $(gdb_obstack_h).
6088         
6089         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6090         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6091         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6092         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6093         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6094         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6095         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6096         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6097
6098         * Makefile.in (bcache.o): Update dependencies.
6099         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6100         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6101         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6102         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6103         (stabsread.o, symfile.o, symmisc.o): Ditto.
6104         (symtab.o, typeprint.o, macroexp.o): Ditto.
6105         (macrotab.o, mdebugread.o): Ditto.
6106         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6107         (coff_ecoff_h, aout_aout64_h): Define.
6108         (aout_stabs_gnu_h, libaout_h): Define.
6109
6110 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6111
6112         * regcache.c (struct regcache_descr): Rename nr_registers to
6113         nr_cooked_registers.  Revise comments describing the structure
6114         member fields.
6115         (init_regcache_descr): Update.
6116         (init_legacy_regcache_descr): Update.
6117         (read_register_gen, write_register_gen): When a cooked register in
6118         the raw register range, directly access the value from the raw
6119         register cache.
6120
6121 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6122
6123         * z8k-tdep.c: Do not include "obstack.h".
6124         * h8300-tdep.c, h8500-tdep.c: Ditto.
6125         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6126         * valprint.c, v850-tdep.c: Ditto.
6127         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6128         * mn10200-tdep.c: Ditto.
6129
6130         * Makefile.in (z8k-tdep.o): Update dependencies.
6131         (m68hc11-tdep.o, valprint.o): Ditto.
6132         (v850-tdep.o, d10v-tdep.o): Ditto.
6133         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6134         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6135         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6136         (sh_opc_h, gdb_sim_sh_h): Define.
6137         (elf_sh_h, elf_bfd_h): Define.
6138         (opcode_m68hc11_h): Define.
6139         (OPCODES_SRC, OPCODES_DIR): define.
6140         (OPCODES): Use $(OPCODES_DIR).
6141         (gdb_sim_d10v_h): Rename sim_d10v_h.
6142         (gdb_sim_arm_h): Rename sim_arm_h.
6143
6144 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6145
6146         * utils.c (host_pointer_to_address, address_to_host_pointer):
6147         Change internal_error() message to indicate function responsible
6148         for the error.
6149
6150 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6151
6152         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6153         calls to local_hex_string_custom().
6154
6155 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6156
6157         * irix5-nat.c: Move IRIX shared library support from here...
6158         * solib-irix.c: ...to here.  Revised substantially to work with
6159         generic solib framework.
6160
6161         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6162         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6163         * mips-irix-tdep.c: New file.
6164
6165         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6166         (mips-irix-tdep.o, solib-irix.o): New rules.
6167         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6168         solib-irix.o.
6169         * config/mips/irix6.mt (TDEPFILES): Likewise.
6170         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6171
6172 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6173
6174         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6175         disabled (via ``#if 0'') includes.
6176
6177 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6178
6179         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6180         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6181         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6182         Add support for the fpscr register.
6183         * rs6000-nat.c (regmap, fetch_inferior_registers)
6184         (store_inferior_registers, fetch_core_registers): Likewise.
6185
6186 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6187
6188         * rs6000-nat.c (language.h): Include.
6189         (special_regs): Delete this array.
6190         (regmap): New function.
6191         (fetch_register, store_register):  Use regmap() to map gdb
6192         register numbers to ptrace register numbers.  Also, use
6193         outputs from regmap() to make decisions regarding type of
6194         ptrace() call to make.  In particular, don't compare against
6195         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6196         (fetch_inferior_registers, store_inferior_registers): Where
6197         possible, obtain register numbers from tdep struct.  Don't
6198         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6199         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6200         (LAST_UISA_SP_REGNUM): Delete.
6201         
6202 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6203
6204         * rs6000-nat.c (ppc-tdep.h): Include.
6205         (fetch_registers, store_register, fetch_core_registers): Don't
6206         access registers[] directly.  Instead, use supply_register() or
6207         regcache_collect() as appropriate.
6208         (find_toc_address): Format hex address with local_hex_string().
6209
6210 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6211
6212         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6213         bfd/elf32-frv.c.
6214
6215 2002-07-24  Tom Tromey  <tromey@redhat.com>
6216
6217         * jv-exp.y: Marked all strings with _().
6218         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6219         internal_error.
6220         (MethodInvocation, CastExpression, parse_number, yyerror,
6221         java_type_from_name, push_expression_name, yylex): Typo fixes.
6222
6223 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6224
6225         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6226         (tee_file_flush, tee_file_write, tee_file_fputs)
6227         (tee_file_isatty): New.
6228         * ui-file.h (tee_file_new): Add prototype.
6229
6230 2002-07-24  Aidan Skinner <aidan@velvet.net>
6231
6232         * ada-lang.c: Change k&r style function definitions to prototyped
6233         form.
6234         * ada-typeprint.c: Change k&r style function definitions to prototyped
6235         form.
6236         * ada-valprint.c: Change k&r style function definitions to prototyped
6237         form.
6238         
6239 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6240
6241         * README: Remove reference to remote-bug.
6242         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6243         remote-bug.c.
6244         (m88k-nat.o): Delete rule.
6245         (m88k-tdep.o): Delete rule.
6246         (remote-bug.o): Delete rule.
6247         * MAINTAINERS: Mark as obsolete.
6248         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6249         * m88k-tdep.c: Make file obsolete.
6250         * config/m88k/m88k.mh: Ditto.
6251         * config/m88k/delta88v4.mh: Ditto.
6252         * config/m88k/delta88v4.mt: Ditto.
6253         * config/m88k/delta88.mt: Ditto.
6254         * config/m88k/delta88.mh: Ditto.
6255         * remote-bug.c: Ditto.
6256         * config/m88k/tm-delta88.h: Ditto.
6257         * config/m88k/nm-delta88v4.h: Ditto.
6258         * config/m88k/xm-delta88.h: Ditto.
6259         * config/m88k/xm-dgux.h: Ditto.
6260         * config/m88k/tm-m88k.h: Ditto.
6261         * config/m88k/nm-m88k.h: Ditto.
6262         * config/m88k/tm-delta88v4.h: Ditto.
6263         * m88k-nat.c: Ditto.
6264         * cxux-nat.c: Ditto.
6265         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6266         and m88*-*-* obsolete.
6267         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6268         m88*-*-* obsolete.
6269
6270 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6271
6272         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6273         constant.  Same for local pointer variables.
6274         (extract_signed_integer): Ditto.
6275         * defs.h (extract_unsigned_integer): Update.
6276         (extract_signed_integer): Update.
6277
6278 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6279
6280         * regcache.c (regcache_raw_write): Change buf parameter to a
6281         constant void pointer.
6282         (regcache_raw_read): Change buf parameter to a void pointer.
6283         (legacy_write_register_gen): Change myaddr parameter a constant
6284         void pointer.
6285         (supply_register): Change val parameter to a const void pointer.
6286         * regcache.h (regcache_raw_write): Update declaration.
6287         (regcache_raw_read): Update declaration.
6288         (supply_register): Update declaration.
6289
6290 2002-07-24  Tom Tromey  <tromey@redhat.com>
6291
6292         * defs.h (gdb_readline_wrapper): Declare.
6293         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6294         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6295         * top.c (gdb_readline_wrapper): New function.
6296         (command_line_input): Use it.
6297
6298 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6299
6300         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6301         regcache_read and regcache_write.
6302         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6303         * regcache.c: Update.
6304         * sh-tdep.c (sh64_push_arguments): Update comment.
6305         (sh_pseudo_register_read): Update.
6306         (sh_pseudo_register_write): Update.
6307         (sh4_register_read): Update.
6308         (sh4_register_write): Update.
6309         (sh64_pseudo_register_read): Update.
6310         (sh64_pseudo_register_write): Update.
6311         (sh64_register_read): Update.
6312         (sh64_register_write): Update.
6313         * i386-tdep.c (i386_extract_return_value): Update.
6314         (i386_extract_struct_value_address): Update.
6315         (i386_extract_return_value): Update.
6316         * blockframe.c (generic_read_register_dummy): Update.
6317         (generic_call_dummy_register_unwind): Update
6318         * infrun.c (write_inferior_status_register): Update.
6319
6320 2002-07-23  Jim Blandy  <jimb@redhat.com>
6321
6322         * parser-defs.h (expression_context_pc): Make this extern.
6323         (Thanks to Michael Snyder.)
6324
6325 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6326
6327         GDB 5.2.1 released from 5.2 branch.
6328         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6329         * README: Update to mention 5.2.1.
6330
6331 2002-07-23  Mark Salter  <msalter@redhat.com>
6332
6333         * remote.c (remote_read_bytes): Fix check for error.
6334
6335 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6336
6337         * aix-thread.c (language.h): Include.
6338         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6339         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6340         Print newlines at end of debug messages.
6341         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6342         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6343
6344 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6345
6346         * aix-thread.c (ppc-tdep.h): Include.
6347         (special_register_p): New function.
6348         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6349         (store_regs_user_thread): Use register number information from
6350         gdbarch_tdep struct instead of hardcoded offsets relative to
6351         FIRST_UISA_SP_REGNUM.
6352         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6353         special_register_p() instead of using FPLAST_REGNUM and
6354         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6355         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6356         will be MQ's register number.
6357
6358 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6359
6360         * aix-thread.c (ops): Rename to aix_thread_ops.
6361         (base_ops): Rename to base_target.
6362         (ops_attach): Rename to aix_thread_attach.
6363         (ops_detach): Rename to aix_thread_detach.
6364         (ops_resume): Rename to aix_thread_detach.
6365         (ops_wait):   Rename to aix_thread_wait.
6366         (ops_kill):   Rename to aix_thread_kill.
6367         (init_ops):   Rename to init_aix_thread_ops.
6368         (ops_fetch_register): Rename to aix_thread_fetch_register.
6369         (ops_store_register): Rename to aix_thread_store_register.
6370         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6371         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6372         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6373         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6374         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6375         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6376         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6377         (store_regs_lib):  Rename to store_regs_user_thread.
6378         (store_regs_kern): Rename to store_regs_kernel_thread.
6379
6380 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6381
6382         * aix-thread.c (ops_prepare_to_store): Eliminate.
6383         (init_ops): Don't initialize ops.prepare_to_store.
6384         (store_regs_kern): Pre-fetch register buffers from child, 
6385         because some registers may not be in the cache.  Copy
6386         regs from register cache only if they are cached.
6387         (store_regs_lib): Copy regs from register cache only
6388         if they are cached.
6389         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6390         fill_gprs64): Ditto.
6391
6392 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6393
6394         * aix-thread.c (gdb_assert.h): Include.
6395         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6396         register sizes (from register cache) match size of buffer holding
6397         register data.
6398         (fill_sprs32): Change parameter types to match those in the ptrace()
6399         buffer.
6400         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6401         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6402
6403 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6404
6405         * aix-thread.c (supply_sprs64): Cosmetic change.
6406         (supply_sprs32): Cosmetic change.
6407         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6408         (fill_sprs64): Use regcache_collect instead of read_register.
6409         (store_regs_lib): Use regcache_collect instead of 
6410         read_register.  Use fill_sprs32 instead of fill_sprs64,
6411         if debugging a 32-bit architecture.
6412         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6413         out of the register cache, instead of passing a pointer into
6414         the register cache directly to ptrace.  Use regcache_collect
6415         insteaad of read_register.
6416         (ops_prepare_to_store): Use target_read_registers instead
6417         of read_register_bytes.
6418
6419 2002-07-20  Aidan Skinner <aidan@velvet.net>
6420
6421         * MAINTAINERS: Add self under write after approval. 
6422                 
6423 2002-07-20  Aidan Skinner <aidan@velvet.net>
6424
6425         * ada-tasks.c: Change k&r style function definitions to prototyped
6426         form.
6427                 
6428 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6429
6430         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6431         * x86-64-tdep.c: Include "objfiles.h".
6432         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6433         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6434
6435 2002-07-17  Michal Ludvig  <michal@suse.cz>
6436
6437         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6438         (update_context): Initialise cfa variable.
6439
6440 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6441
6442         * aix-thread.c: Shorten some long lines.  
6443         Bring comments into line with code spec.
6444
6445 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6446
6447         * infrun.c: Re-indent using gdb_indent.sh.
6448
6449 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6450
6451         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6452         Leave the indentation temporarily untouched, to minimize the diffs.
6453
6454 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6455
6456         * stabsread.c: Make os9k sections of the code obsolete,
6457         for real this time.
6458         * stabsread.h: Make os9k sections of the code obsolete.
6459
6460 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6461
6462         * linux-low.c (regsets_store_inferior_registers): Add free()
6463         at the end of a loop to prevent memory leak.
6464         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6465         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6466         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6467         line a comment.
6468         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6469
6470 2002-07-17  Jim Blandy  <jimb@redhat.com>
6471
6472         * macrocmd.c (info_macro_command): Remove newline from error
6473         message.
6474
6475 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6476
6477         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6478         (sh_gdbarch_init): Use it for sh-dsp.
6479
6480 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6481
6482         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6483         64-bit DWARF2 format.
6484
6485 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6486
6487         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6488         <sys/proc.h> when not available.
6489
6490 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6491
6492         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6493         * stabsread.c: Make os9k sections of the code obsolete.
6494         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6495         * config/i386/i386os9k.mt: Make file obsolete.
6496         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6497         (COMMON_OBS): Remove os9kread.o
6498         (SFILES): Remove os9kread.c.
6499         (os9kread.o, remote-os9k.o): Make target obsolete.
6500         * remote-os9k.c: Make file obsolete.
6501         * os9kread.c: Make file obsolete.
6502         * Makefile.in
6503
6504 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6505
6506         * NEWS: Mention that the FR30 has been made obsolete.
6507         * fr30-tdep.c: Make file obsolete.
6508         * config/fr30/tm-fr30.h: Ditto.
6509         * config/fr30/fr30.mt: Ditto.
6510         * configure.tgt: Make fr30-*-elf obsolete.
6511         * MAINTAINERS: Make fr30-elf obsolete.
6512
6513 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6514
6515         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6516         found is not inside a section.
6517
6518 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6519
6520         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6521         strerror().
6522         (pdc_realloc): Use xrealloc() instead of realloc().
6523
6524 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6525
6526         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6527         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6528         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6529         macros.
6530
6531 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6532
6533         * aix-thread.c (ptrace_check): Eliminate goto.
6534         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6535         problem.
6536
6537 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6538
6539         * aix-thread.c (gdbcmd.h): Include.
6540         (DEBUG, DBG, DBG2, dbg): Eliminate.
6541         (debug_aix_thread): New static global.
6542         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6543         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6544         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6545         invocations to DBG and DBG2 macros to test against
6546         ``debug_aix_thread'' and call fprintf_unfiltered().
6547         (_initialize_aix_thread): Add new command "set debug aix-thread".
6548
6549 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6550
6551         From Gerhard Tonn <TON@de.ibm.com>:
6552         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6553         instead of supply_register.
6554
6555 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6556
6557         * dwarf2cfi.c: Include "gdb_assert.h".
6558         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6559         non-NULL.
6560         (update_context): Do not use __func__.  Add missing ``break''.
6561         (update_context): Do not use __func__.
6562
6563 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6564
6565         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6566         and its setting.  Set gdbarch instruction printing functions
6567         directly.  For non-rs6000 case use new function
6568         gdb_print_insn_powerpc.
6569         (gdb_print_insn_powerpc): New function.
6570
6571 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6572
6573         * NEWS: Mention that the d30v has been marked obsolete.
6574         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6575         * configure.tgt: Mark d30v-*-* as obsolete.
6576         * d30v-tdep.c: Mark file as obsolete.
6577         * config/d30v/d30v.mt: Ditto.
6578         * config/d30v/tm-d30v.h: Ditto.
6579
6580 2002-07-13  Aidan Skinner <aidan@velvet.net>
6581
6582         * ada-tasks.c (add_task_entry): replace calls to
6583         malloc() with xmalloc
6584         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6585         
6586         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6587         ada_finish_decode_line_1, all_sals_for_line
6588         ada_breakpoint_rewrite): replace calls to free() with xfree()
6589                 
6590 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6591
6592         From Nicholas Duffek (with minor changes by Martin Hunt, 
6593         Louis Hamilton, and Kevin Buettner):
6594         * aix-thread.c: New file.
6595
6596 2002-07-12  Petr Sorfa <petrs@caldera.com>
6597
6598         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6599         complaint for invalid attribute class or form.
6600         (read_func_scope): DW_AT_frame_base
6601         better handling of DW_AT_block*.
6602         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6603         better handling of DW_AT_block*.
6604         (read_common_block): DW_AT_location
6605         better handling of DW_AT_block*.
6606         (read_partial_die): DW_AT_location better handling
6607         of DW_AT_block*.
6608         (new_symbol): DW_AT_external better handling of
6609         DW_AT_block*. Proper initialization of variable
6610         "addr".
6611         (attr_form_is_block): New function that returns true
6612         if the attribute's form is of DW_FORM_block*.
6613
6614 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6615
6616         * valops.c (find_method_list): Remove comment about
6617         removed STATIC_MEMFUNCP argument.
6618         (value_find_oload_method_list): Likewise.
6619
6620 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6621
6622         From Nicholas Duffek:
6623         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6624         target_new_objfile_hook.
6625
6626 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6627
6628         From Nicholas Duffek:
6629         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6630         csect.
6631
6632 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6633
6634         * MAINTAINERS: Mention --enable-sim-build-warnings.
6635         (m68hc11-elf): Disable sim build warnings.
6636         (m32r-elf): Mark as broken obsolete candidate.
6637         (x86_64-linux-gnu): Mark as buildable with -Werror.
6638         (arm-elf): Change -w to ``,'' which enables warnings but not
6639         -Werror.
6640
6641 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6642
6643         * bcache.h: Update copyright.
6644         (struct bstring, struct bcache): Move definition to "bcache.c".
6645         Replaced by opaque declaration.
6646         (bcache_xfree): Replace free_bcache.
6647         (bcache_xmalloc, bcache_memory_used): Declare.
6648         
6649         * bcache.c: Update copyright.
6650         (struct bstring, struct bcache): Moved to here from "bcache.h".
6651         Update comments.
6652         (bcache_xmalloc, bcache_memory_used): New functions.
6653         (bcache_xfree): Replace function free_bcache.
6654         
6655         * Makefile.in (objfiles.o): Add $(bcache_h).
6656         (objfiles_h): Remove $(bcache_h).
6657         (symfile.o): Add $(bcache_h).
6658
6659         * symmisc.c: Update copyright.
6660         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6661         (print_objfile_statistics): Use bcache_memory_used.
6662
6663         * symfile.c: Include "bcache.h".
6664         (reread_symbols): Use bcache_xfree.
6665         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6666         (add_psymbol_to_list): Pass psymbol_cache by value.
6667         (add_psymbol_with_dem_name_to_list): Ditto.
6668
6669         * objfiles.h: Update copyright.
6670         (struct bcache): Declare opaque.  Do not include "bcache.h".
6671         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6672         bcache'' pointers.
6673         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6674
6675         * objfiles.c: Include "bcache.h".  Update copyright.
6676         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6677         macro_cache.
6678         (free_objfile): Use bcache_xfree.
6679
6680 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6681
6682         * monitor.c (monitor_fetch_register): Make name a constant.
6683         (monitor_store_register): Same.
6684
6685 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6686
6687         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6688         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6689         (finish_block) For non-function blocks, hash the symbol table.  For
6690         function blocks, mark the symbol table as unhashed.
6691         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6692         (msymbol_hash_iw): Likewise.
6693         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6694         value.
6695         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6696         (lookup_minimal_symbol): Likewise for both.
6697         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6698         hashtable.
6699         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6700         (ALL_BLOCK_SYMBOLS): Update.
6701         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6702         (struct symbol): Add `hash_next' pointer.
6703         * symtab.c (lookup_block_symbol): Search using the hash table when
6704         possible.
6705         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6706         (search_symbols, find_addr_symbol): Likewise.
6707
6708         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6709         (read_dst_symtab): Likewise.
6710         * jv-lang.c (get_java_class_symtab): Likewise.
6711         * mdebugread.c: Include "gdb_assert.h".
6712         (shrink_block): Assert that the block being modified is not hashed.
6713         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6714         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6715         symbols.
6716         (dump_symtab): Recognize hashed blocks.
6717         * printcmd.c (print_frame_args):  Assert that function blocks do not
6718         have hashed symbol tables.
6719         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6720         (fill_in_ada_prototype, debug_print_block): Likewise.
6721         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6722
6723 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6724
6725         * stack.c (print_frame): Use result of frame_address_in_block()
6726         instead of fi->pc when evaluating symbols.
6727         (backtrace_command_1): Ditto.
6728
6729 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6730
6731         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6732         Make static.
6733
6734         * arm-tdep.c (arm_register_name): Make return type constant.
6735
6736 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6737
6738         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6739         prototype.
6740         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6741         * s390-tdep.c (s390_fp_regnum): Ditto.
6742         (s390_read_fp): Ditto.
6743         (s390_pop_frame): Ditto.
6744         (_initialize_s390_tdep): Ditto.
6745         * remote.c (get_remote_state): Ditto.
6746         * procfs.c (mappingflags): Ditto.
6747         * memattr.c (_initialize_mem): Ditto.
6748         * mcore-tdep.c (mcore_pop_frame): Ditto.
6749         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6750         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6751         * language.c (set_case_str): Ditto.
6752         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6753         * frv-tdep.c (new_variant): Ditto.
6754         (frv_stopped_data_address): Ditto.
6755         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6756         (context_alloc): Ditto.
6757         (frame_state_alloc): Ditto.
6758         (unwind_tmp_obstack_init): Ditto.
6759         (unwind_tmp_obstack_free): Ditto.
6760         (cfi_read_fp): Ditto.
6761         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6762         (cris_pop_frame): Ditto.
6763         * c-lang.c (scanning_macro_expansion): Ditto.
6764         (finished_macro_expansion): Ditto.
6765         (c_preprocess_and_parse): Ditto.
6766         * gdbarch.sh: Ditto.
6767         * gdbarch.h, gdbarch.c: Regenerate.
6768         * config/mn10200/tm-mn10200.h: Adjust indentation.
6769         * target.c: Adjust indentation.
6770         * symtab.h: Adjust indentation.
6771         * stabsread.h: Adjust indentation.
6772         * remote-es.c: Adjust indentation.
6773         * os9kread.c: Adjust indentation.
6774
6775 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6776         
6777         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6778         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6779
6780 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6781         
6782         * NEWS: Mention m68k, mcore multi-arching.  
6783         * MAINTAINERS: Change status of m68k, mcore to reflect
6784         multi-arching.
6785
6786 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6787
6788         * valops.c (find_overload_match): Free oload_syms.
6789
6790 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6791
6792         Define HAVE_SYS_PROC_H if sys/proc.h exists
6793         * configure.in: Add check for sys/proc.h
6794         * config.in: Regenerate.
6795         * configure: Regenerate.
6796
6797 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6798
6799         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6800         #if !GDB_MULTI_ARCH. 
6801
6802 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6803
6804         * config.in, configure: Regenerate.
6805
6806 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6807
6808         * dwarf2cfi.c: Include "gcore.h".
6809         (execute_stack_op): Fix implementation of the
6810         DW_OP_deref and DW_OP_deref_size operators by letting do their
6811         lookup in the target.
6812
6813 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6814
6815         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6816         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6817         tdep->sc_sp_offset.
6818
6819 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6820
6821         Fix PR gdb/595, gdb/602
6822         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6823         Don't call value_cast, just read the vtable pointer; update comments
6824         to match.
6825
6826 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6827
6828         * config/mcore/tm-mcore.h: Remove file.
6829         * config/mcore/mcore.mt: Remove definition of TM_FILE
6830         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6831
6832 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6833
6834         * i386bsd-tdep.c: Include "gdb_string.h".
6835
6836 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6837
6838         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6839         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6840         mcore-tdep.
6841         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6842         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6843         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6844         (RETVAL_REGNUM): Move macros from tm-mcore.h
6845         (mcore_reg_struct_has_addr): New function.
6846         (mcore_gdbarch_init): Added initializations for the macros removed
6847         from tm-mcore.h.
6848
6849 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6850
6851         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6852         traditonal string branding within the ELF header.
6853
6854 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6855
6856         * symtab.c (remove_params): New function.
6857         (make_symbol_overload_list): Use it instead of cplus_demangle.
6858         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
6859
6860 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6861
6862         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6863
6864         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6865         New variables.
6866         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6867         and tdep->sigtramp_end.
6868         * i386obsd-nat.c: New file.
6869         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6870
6871         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6872         Don't call get_current_frame().
6873
6874 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6875
6876         * i386-nat.c (child_post_startup_inferior): New function
6877         calling i386_cleanup_dregs if
6878         I386_USE_GENERIC_WATCHPOINTS is defined.
6879         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6880         conditional to acknowledge that i386-nat.c has its
6881         own child_post_startup_inferior function.
6882
6883 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6884
6885         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6886         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6887         instead of MAX_REGISTER_RAW_SIZE.
6888         (i386_extract_return_value, i386_extract_struct_value_address):
6889         Convert to use regcache.
6890         (i386_gdbarch_init): Set max_register_raw_size and
6891         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6892         Set extract_return_value and extract_struct_value_address instead
6893         of their deprecated variants.
6894
6895         Convert i386 target to generic dummy frames.
6896         * i386-tdep.c: Include "symfile.h".
6897         (i386_frameless_signal_p): Consider a function to be frameless if
6898         the pc points at the first instruction of the function.
6899         (i386_frame_chain): Handle (generic) call dummies.
6900         (i386_frame_saved_pc): Likewise.
6901         (i386_frame_init_saved_regs): Remove code dealing with call
6902         dummies on the stack.
6903         (i386_push_dummy_frame): Removed.
6904         (i386_call_dummy_words): Removed.
6905         (i386_fix_call_dummy): Removed.
6906         (i386_push_return_address): New function.
6907         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
6908         parameter, and don't call get_current_frame.
6909         (i386_pop_frame): New function.
6910         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6911         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6912         entry_point_address, set call_dummy_breakpoint_offset to 0, set
6913         call_dummy_length to 0, set call_dummy_words to NULL, set
6914         sizeof_call_dummy_words to 0, set fix_call_dummy to
6915         generic_fix_call_dummy, set pc_in_call_dummy to
6916         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6917         generic_push_dummy_frame, set push_return_address to
6918         i386_push_return_address and set frame_chain_valid to
6919         generic_file_frame_chain_valid.
6920
6921 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6922
6923         * gdbarch.sh (struct regcache): Add opaque declaration.
6924         (EXTRACT_RETURN_VALUE): New architecture method.
6925         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6926         * gdbarch.h, gdbarch.c: Regenerate.
6927         * arch-utils.c (legacy_extract_return_value): New function.
6928         * arch-utils.h (legacy_extract_return_value): Declare.
6929         * values.c (value_being_returned): Re-enable code handling
6930         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
6931         deprecated_grub_regcache_for_registers call to block handling
6932         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6933         (EXTRACT_RETURN_VALUE): Do not define.
6934
6935 2002-07-03  Grace Sainsbury  <graces@redhat.com>
6936
6937         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6938         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6939         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6940         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6941         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6942         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6943         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6944         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6945         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6946         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6947         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6948         argument so the function fits the prototype in the architecture
6949         vector.
6950         (mcore_pop_frame): Remove argument so the function fits the
6951         prototype. Use get_current_frame instead of the argument.
6952         (mcore_push_arguments): Change type of struct_return so the
6953         function can be used in the architecture vector.
6954         (mcore_store_struct_return): Add.
6955         (mcore_frame_init_saved_regs): Add.
6956         (mcore_gdbarch_init): Add function calls to replace the macros
6957         removed from tm-mcore.h
6958
6959 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6960
6961         * infcmd.c (print_return_value): Remove compatibility code calling
6962         deprecated_grub_regcache_for_registers.
6963         
6964         * values.c: Include "regcache.h".
6965         (value_being_returned): Update.  Use
6966         deprecated_grub_regcache_for_registers to extract the register
6967         buffer address.  
6968         * value.h (value_being_returned): Change ``retbuf'' parameter to a
6969         ``struct regcache''.
6970         * Makefile.in (values.o): Add dependency on $(regcache_h).
6971
6972         * inferior.h (run_stack_dummy): Change type of second parameter to
6973         a ``struct regcache''.
6974         * valops.c (hand_function_call): Change type of retbuf to ``struct
6975         regcache''.  Allocate using regcache_xmalloc, clean using
6976         make_cleanup_regcache_xfree.
6977         * infcmd.c (run_stack_dummy): Update.  Use
6978         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6979
6980         * regcache.c (do_regcache_xfree): New function.
6981         (make_cleanup_regcache_xfree): New function.
6982         * regcache.h (make_cleanup_regcache_xfree): Declare.
6983
6984 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6985
6986         * event-top.c (command_line_handler): Don't read past
6987         beginning of buffer.
6988
6989 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6990         
6991         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
6992         struct frame_id. 
6993         (varobj_create): Store frame_id for root.
6994         (varobj_gen_name): Use xasprintf.
6995         (varobj_update): Save and restore frame using get_frame_id() and
6996         frame_find_by_id().
6997         (create_child): Use xasprintf.
6998         (new_root_variable): Initialize frame_id.
6999         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7000         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7001         to prevent memory leak.
7002
7003 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7004
7005         * valops.c (hand_function_call): Move declaration of retbuf to
7006         start of function, allocate using malloc, add a cleanup but before
7007         the inf_status cleanup, cleanup the buffer.  Rename local variable
7008         old_chain to inf_status_cleanup.
7009
7010 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7011
7012         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7013
7014         * cli/cli-decode.c (cmd_func_p): New function.
7015         (cmd_func): New function.
7016
7017         * command.h: Add cmd_func() and cmd_func_p().   
7018         
7019 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7020
7021         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7022         (REGISTER_SIZE): Remove.
7023         (MAX_REGISTER_RAW_SIZE): Remove.
7024         (REGISTER_VIRTUAL_TYPE): Remove.
7025         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7026         (REGISTER_NAME): Remove.
7027         (USE_GENERIC_DUMMY_FRAMES): Remove.
7028         (CALL_DUMMY): Remove.
7029         (CALL_DUMMY_START_OFFSET): Remove.
7030         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7031         (CALL_DUMMY_LOCATION): Remove.
7032         (FIX_CALL_DUMMY): Remove.
7033         (CALL_DUMMY_ADDRESS): Remove.
7034         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7035         (SAVE_DUMMY_FRAME_TOS): Remove.
7036         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7037         (mcore_register_virtual_type): New function.
7038         (mcore_register_byte): New function.
7039         (mcore_register_size): New function.
7040         (mcore_register_name): New function.
7041         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7042         macros removed from tm-mcore.h.
7043         (mcore_dump_tdep): Add.
7044         (_initialize_mcore_tdep): Add gdbarch_register call.
7045
7046 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7047
7048         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7049         frameless_look_for_prologue, such that we actually call this
7050         function.
7051
7052 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7053
7054         * frame.h (frame_address_in_block): New function.
7055
7056         * blockframe.c (frame_address_in_block): New function extracted
7057         from get_frame_block().
7058         (get_frame_block): Use frame_address_in_block().
7059         (block_innermost_frame): Use frame_address_in_block() to match
7060         the frame pc address against the block boundaries rather than
7061         the frame pc directly. This prevents a failure when a frame pc
7062         is actually a return-address pointing immediately after the end
7063         of the given block. 
7064
7065 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7066
7067         * MAINTAINERS: Add self under write after approval. 
7068
7069 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7070
7071         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7072         used in architecture vector. The default is
7073         m68k_local_breakpoint_from_pc.
7074         (m68k_local_breakpoint_from_pc): Add.
7075         (enum): Add register numbers from tm-m68k.h.
7076         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7077         vector.  
7078         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7079         GDB_MULTI_ARCH_PARTIAL.
7080         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7081         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7082         m68k-tdep.c.
7083         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7084         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7085         to enum in m68k-tdep.c
7086
7087 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7088
7089         * solib-osf.c (open_map): Compute the list of shared libraries
7090         loaded by the inferior, rather than the list of libraries loaded
7091         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7092         the wrong shared libraries...
7093
7094 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7095
7096         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7097         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7098         macros.
7099         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7100         Remove functions.
7101         (FRAMELESS_SIGNAL): Remove function.
7102         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7103         i386_linux_saved_pc_after_call): Removed.
7104         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7105         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7106         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7107
7108         * i386-tdep.c (i386_frameless_signal_p): New function.
7109         (i386_frame_chain): Deal with frameless signals.
7110         (i386_sigtramp_saved_sp): New function.
7111         (i386_frame_saved_pc): Deal with frameless signals.
7112         (i386_saved_pc_after_call): Make sure the correct value is
7113         returned just after entry into a sigtramp.
7114         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7115         i386fbsd4_sc_sp_offset): New variables.
7116         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7117         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7118         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7119         similiar to what we already did for sc_pc_offset.
7120         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7121         tdep->sc_sp_offset.
7122
7123         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7124
7125 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7126
7127         * config/i386/tm-x86-64linux.h: New.
7128         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7129         definitions.
7130         * config/i386/nm-x86-64.h: Rename to ...
7131         * config/i386/nm-x86-64linux.h: ... this one.
7132         * config/i386/x86-64linux.mh: Reflect the above change.
7133         
7134 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7135
7136         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7137         with sigcontext_addr.  Add sc_sp_offset.
7138         (i386bsd_sigtramp_saved_pc): Remove prototype.
7139         (i386bsd_sicontext_addr): Add prototype.
7140         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7141         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7142         (i386_svr4_sigtramp_saved_pc): Removed.
7143         (i386_svr4_sigcontext_addr): New function.
7144         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7145         Initialize tdep->sigcontext_addr instead.  Initialize
7146         tdep->sc_pc_offset and tdep->sc_sp_offset.
7147         (i386_gdbarch_init): Likewise.
7148         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7149         any more.
7150         (i386bsd_sigtramp_saved_pc): Remove function.
7151         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7152         Initialize tdep->sigcontext_addr instead.  Initialize
7153         tdep->sc_pc_offset.
7154         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7155         of tdep->sigtramp_saved_pc.
7156         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7157         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7158         instead.
7159
7160         * i386-tdep.c (i386_frameless_function_invocation,
7161         i386_frame_num_args, i386_frame_init_saved_regs,
7162         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7163         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7164         i386_extract_return_value, i386_store_return_value,
7165         i386_extract_struct_value_address, i386_register_virtual_type,
7166         i386_register_convertible, i386_register_convert_to_virtual,
7167         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7168         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7169         static.
7170
7171 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7172
7173         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7174
7175         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7176         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7177         this macro.  Include "value.h".
7178
7179 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7180
7181         * ada-exp.tab.c: remove as it's a generated file
7182         * ada-lex.c: remove as it's a generated file
7183                 
7184 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7185
7186         * config/i386/tm-i386.h (struct frame_info, struct
7187         frame_saved_regs, struct value, struct type): Remove forward
7188         declarations.
7189
7190         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7191         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7192         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7193         (FILL_FPXREGSET): Define.
7194
7195         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7196
7197         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7198         i[3456]86-*-netbsd* case.
7199         * config/i386/tm-obsd.h: Removed.
7200         * config/i386/obsd.mt: Removed.
7201         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7202         core-aout.o.
7203         (MH_CFLAGS): Add -DYYDEBUG=0.
7204
7205         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7206         i386nbsd_sc_pc_offset on OpenBSD too.
7207
7208         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7209         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7210         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7211         define.
7212         * i386bsd-tdep.c: Include "arch-utils.h".
7213         (i386bsd_aout_in_solib_call_trampoline): New function.
7214         (i386bsd_init_abi): Set in_solib_call_trampoline to
7215         i386bsd_aout_in_solib_call_trampoline.
7216         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7217         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7218
7219 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7220
7221         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7222         (struct obstack, struct bcache): Add opaque declarations.
7223         * Makefile.in (macrotab_h): Update
7224
7225 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7226
7227         * blockframe.c (generic_find_dummy_frame): Change return type to
7228         ``struct regcache''.
7229         (struct dummy_frame): Replace field ``registers'' with regcache, a
7230         struct regcache object.
7231         (generic_find_dummy_frame): Update.
7232         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7233         regcache_xmalloc and regcache_cpy.
7234         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7235         regcache_xfree.
7236         (deprecated_generic_find_dummy_frame): Update.
7237         (generic_read_register_dummy): Update.  Use
7238         regcache_read_as_address.
7239         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7240         (generic_get_saved_register): Update.  Use regcache_read.
7241
7242 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7243
7244         * Makefile.in (objfiles_h): Add $(bcache_h).
7245         * objfiles.h: Include "bcache.h".
7246
7247         * Makefile.in (symtab_h): Remove $(bcache_h).
7248         * symtab.h: Do not include "bcache.h".
7249
7250 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7251
7252         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7253         generic_func_frame_chain_valid.
7254
7255 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7256
7257         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7258         * config/i386/tm-fbsd.h: Likewise.
7259
7260 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7261
7262         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7263         generic_unwind_get_saved_register.
7264
7265 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7266
7267         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7268         * regcache.c (supply_register): Add missing argument to
7269         register_buffer call.
7270
7271 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7272
7273         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7274         Solaris /bin/grep does not not like it.  From Peter Schauer.
7275
7276 2002-06-26  Tom Tromey  <tromey@redhat.com>
7277
7278         * command.h (add_setshow_cmd): Declare.
7279         (add_setshow_cmd_full): Declare.
7280         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7281         returns void.  Use add_setshow_cmd_full.
7282         (add_setshow_cmd_full): New function.
7283         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7284         (add_setshow_boolean_cmd): Likewise.
7285
7286 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7287
7288         * config/vax/tm-vax.h: Protect from multiple inclusion.
7289         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7290         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7291         * config/vax/tm-vaxbsd.h: ...here.  New file.
7292         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7293
7294 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7295
7296         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7297         (BELIEVE_PCC_PROMOTION): Remove.
7298         (AP_REGNUM): Move to...
7299         * config/vax/nm-vax.h: ...here.
7300         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7301         (vax_breakpoint_from_pc): New function.
7302         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7303         and gdbarch_believe_pcc_promotion.
7304
7305 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7306
7307         * Makefile.in (vax_tdep_h): Define.  
7308         (vax-tdep.o): Use $(vax_tdep_h).
7309         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7310         (vax_dump_tdep): New function. 
7311         (_initialize_vax_tdep): Register vax_dump_tdep.
7312         * vax-tdep.h: Include osabi.h.     
7313         (struct gdbarch_tdep): New. 
7314
7315 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7316
7317         * frame.h (deprecated_generic_find_dummy_frame): Rename
7318         generic_find_dummy_frame.
7319         * blockframe.c (generic_find_dummy_frame): Make static.
7320         (deprecated_generic_find_dummy_frame): New function.
7321         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7322         generic_find_dummy_frame with deprecated_find_dummy_frame.
7323         (sh64_nofp_frame_init_saved_regs): Ditto.
7324         (sh_fp_frame_init_saved_regs): Ditto.
7325         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7326         (s390_frame_chain): Ditto.
7327         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7328
7329 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7330
7331         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7332         gdbarch vector are at the top.
7333         (NUM_REGS): Remove.
7334         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7335         (FRAME_ARGS_ADDRESS): Remove.
7336         (FRAME_LOCALS_ADDRESS): Remove.
7337         (FRAME_NUM_ARGS): Remove.
7338         (FRAME_ARGS_SKIP): Remove.  
7339         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7340         (m68k_gdbarch_init): Add gdbarch initializations for macros
7341         undefined in tm-m68k.h
7342
7343 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7344
7345         * monitor.h: Add the function regname to monitor_ops
7346         structure. This way NUM_REGS does not have to be a constant.
7347         * monitor.c (monitor_fetch_register): Added support for regname
7348         function. The function is called if the array regnames is NULL.
7349         (monitor_store_register): Same.
7350         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7351         regnames array.
7352         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7353         cpu32bug_cmds.regname to point to new function.
7354         * abug-rom.c (abug_regname): Same as above.
7355         (init_abug_cmds): Same.
7356         * dbug-rom.c (dbug_regname): Same as above.
7357         (init_dbug_cmds): Same.
7358         * remote-est.c (est_regname): Same. 
7359         (init_est_cmds): Same.
7360         * rom68k-rom.c (rom68k_regname): Same. 
7361         (init_rom68k_cmds): Same.
7362
7363 2002-06-25  Tom Tromey  <tromey@redhat.com>
7364
7365         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7366
7367 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7368
7369         * infrun.c (stop_registers): Change variable's type to ``struct
7370         regcache'''.
7371         (xmalloc_inferior_status): Delete function.
7372         (free_inferior_status): Delete function.
7373         (normal_stop): Use regcache_cpy.
7374         (struct inferior_status): Change type of fields ``stop_registers''
7375         and ``registers'' to ``struct regcache''.
7376         (write_inferior_status_register): Use regcache_write.
7377         (save_inferior_status): Instead of calling
7378         xmalloc_inferior_status, allocate the inf_status buffer directly.
7379         Use regcache_dup_no_passthrough and regcache_dup to save the
7380         buffers.
7381         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7382         Replace the stop_registers regcache instead of overriding it.  Use
7383         regcache_xfree.  Instead of calling free_inferior_status, xfree
7384         the buffer directly.
7385         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7386         free_inferior_status, xfree the buffer directly.
7387         (build_infrun): Use regcache_xmalloc.
7388         (_initialize_infrun): Delete redundant call to build_infrun.
7389
7390         * Makefile.in (infcmd.o): Add $(regcache_h).
7391
7392         * infcmd.c: Include "regcache.h".
7393         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7394         obtain the address of `stop_registers' register buffer.
7395         (print_return_value): Ditto.
7396
7397         * inferior.h (struct regcache): Add opaque declaration.
7398         (stop_registers): Change variable's declared type to ``struct
7399         regcache''.
7400
7401 2002-06-24  Tom Tromey  <tromey@redhat.com>
7402
7403         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7404         * target.c (initialize_targets): Fixed typo in
7405         trust-readonly-sections `show' documentation.
7406
7407         * main.c: Marked all strings with _().
7408
7409 2002-06-24  Don Howard  <dhoward@redhat.com>
7410
7411         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7412         that means max CORE_ADDR+1.
7413         (lookup_mem_region): Ditto.
7414         (mem_info_command): Ditto.
7415
7416 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7417
7418         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7419         (REGISTER_BYTES_OK): Remove.
7420         (REGISTER_BYTES): Remove.
7421         (STORE_STRUCT_RETURN): Remove.
7422         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7423         (STORE_RETURN_VALUE): Remove.
7424         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7425         (FRAME_CHAIN): Remove.
7426         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7427         (FRAME_SAVED_PC): Remove.  
7428         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7429         (m68k_store_struct_return): Add.
7430         (m68k_deprecated_extract_return_value): Add.
7431         (m68k_deprecated_extract_struct_value_address): Add.
7432         (m68k_store_return_value): Add.
7433         (m68k_frame_chain): Add.
7434         (m68k_frameless_function_invocation): Add.
7435         (m68k_frame_saved_pc): Add.
7436         (m68k_gdbarch_init): added set_gdbarch calls for new 
7437         functions and deleted macros.
7438
7439 2002-06-23  Tom Tromey  <tromey@redhat.com>
7440
7441         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7442         (ALLDEPFILES): Likewise.
7443         (udiheaders): Removed.
7444         (udip2soc.o): Likewise.
7445         (udi2go32.o): Likewise.
7446         (udr.o): Likewise.
7447         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7448
7449 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7450
7451         * infrun.c (_initialize_infrun): Delete unnecessary call to
7452         build_infrun.
7453
7454         * regcache.h: Update comments describing the regcache_cpy family
7455         of functions.
7456         (regcache_save, regcache_restore): Delete declaration.
7457         (regcache_save_no_passthrough): Delete declaration.
7458         (regcache_restore_no_passthrough): Delete declaration.
7459         * regcache.c (regcache_save): Delete function.
7460         (regcache_save_no_passthrough): Delete function.
7461         (regcache_restore): Delete function.
7462         (regcache_restore_no_passthrough): Delete function.
7463
7464 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7465
7466         * config/m68k/tm-m68k.h: Fix typo.
7467         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7468         (m68k_frame_init_saved_regs): Declare.
7469
7470 2002-06-21  Jim Blandy  <jimb@redhat.com>
7471
7472         Remove some vestiges of Harris 88k support.
7473         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7474         register numbering quirk.
7475         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7476         odd symbols occurring in Harris 88k ELF targets.
7477
7478 2002-06-21  Tom Tromey  <tromey@redhat.com>
7479
7480         * gdb_locale.h: New file.
7481         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7482         (defs_h): Added gdb_locale.h.
7483         * configure, config.in: Rebuilt.
7484         * configure.in (PACKAGE): Define.
7485         * defs.h: Include gdb_locale.h.
7486         * main.c (captured_main): Call setlocale, bindtextdomain,
7487         textdomain.
7488
7489 2002-06-21  Dave Brolley  <brolley@redhat.com>
7490
7491         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7492         * config/frv/frv.mt: New file.
7493         * config/frv/tm-frv.h: New file.
7494         * configure.tgt: Support frv-*-*.
7495         * Makefile.in (frv-tdep.o): New target.
7496         * frv-tdep.c: New file.
7497         * NEWS: Mention frv.
7498
7499 2002-06-21  Dave Brolley  <brolley@redhat.com>
7500
7501         * MAINTAINERS: Add self to "Write After Approval" list.
7502
7503 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7504
7505         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7506         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7507         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7508         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7509         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7510
7511         * m68k-tdep.c: Include arch-utils.h
7512         (m68k_register_raw_size): Add.
7513         (m68k_register_virtual_size): Add.
7514         (m68k_register_virtual_type): Add.
7515         (m68k_register_name): Add.
7516         (m68k_stack_align): Add.
7517         (m68k_register_byte): Add.
7518         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7519         tm-m68k.h.
7520
7521 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7522
7523         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7524         m68k_find_saved_regs.
7525         (m68k_pop_frame): Removed saved_regs structure, and replaced
7526         references to it with frame->saved_regs.
7527         (m68k_gdbarch_init): Added function calls to initialize the
7528         gdbarch structure.
7529         (m68k_fix_call_dummy): Add. 
7530         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7531         (CALL_DUMMY): Remove.
7532         (CALL_DUMMY_LENGTH): Remove.
7533         (CALL_DUMMY_START_OFFSET): Remove.
7534         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7535         (FIX_CALL_DUMMY): Remove.
7536         (PUSH_DUMMY_FRAME): Remove.
7537         (POP_FRAME): Remove.
7538
7539 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7540
7541         * parse.c (parse_fprintf): New function used to avoid calls to
7542         fprintf in bison parser generated debug code.
7543         * parser-defs.h: Declaration of new parse_fprintf function.
7544         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7545         Set YYDEBUG to 1 by default.
7546         Set YYFPRINTF as parse_fprintf.
7547
7548 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7549
7550         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7551         encoding anymore.
7552         (pointer_encoding, enum ptr_encoding): New.
7553         (execute_cfa_program): Take care about pointer encoding.        
7554         (dwarf2_build_frame_info): Only call parse_frame_info for 
7555         .debug_frame and .eh_frame.
7556         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7557         fixed augmentation handling, added relative addressing, 
7558         ignore duplicate FDEs. Added comments.
7559         * dwarf2cfi.c: Reindented.
7560         
7561 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7562
7563         * event-top.c (command_handler): Don't use space_at_cmd_start
7564         unless there is sbrk() on the host. Assign time and space data
7565         to union fields of the appropriate length.
7566
7567 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7568
7569         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7570         x86_64_register_name. Return type changed to 'const char *'.
7571         (x86_64_register_name2nr): Rename to x86_64_register_number.
7572         (x86_64_gdbarch_init): Update to reflect the change.
7573         * x86-64-tdep.h: Ditto.
7574         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7575         (supply_fpregset): Ditto.
7576
7577 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7578
7579         * regcache.h: Update copyright.
7580         (struct regcache, struct gdbarch): Add opaque declarations.
7581         (current_regcache): Declare global variable.
7582         (regcache_read, regcache_write): Add gdbarch parameter.
7583         (regcache_save, regcache_save_no_passthrough)
7584         (regcache_restore, regcache_restore_no_passthrough)
7585         (regcache_dup, regcache_dup_no_passthrough)
7586         (regcache_cpy, regcache_cpy_no_passthrough)
7587         (deprecated_grub_regcache_for_registers)
7588         (deprecated_grub_regcache_for_register_valid)
7589         (regcache_valid_p): Add function declarations.
7590         
7591         * regcache.c: Update copyright.
7592         (regcache_descr_handle): New global variable.
7593         (struct regcache_descr): Define.
7594         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7595         (regcache_descr, xfree_regcache_descr): New functions.
7596         (struct regcache): Define.
7597         (regcache_xmalloc, regcache_xfree): New functions.
7598         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7599         (regcache_dup, regcache_dup_no_passthrough): New functions.
7600         (regcache_valid_p, regcache_read_as_address): New functions.
7601         (deprecated_grub_regcache_for_registers): New function.
7602         (deprecated_grub_regcache_for_register_valid): New function.
7603         (current_regcache): New global variable.
7604         (register_buffer): Add regcache parameter.  Update calls.
7605         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7606         (read_register_gen, write_register_gen): Update register_buffer
7607         call.  Test for legacy_p instead of gdbarch_register_read_p or
7608         gdbarch_register_write_p.
7609         (regcache_collect): Update register_buffer call.
7610         (build_regcache): Rewrite.  Use deprecated grub functions.
7611         (regcache_save, regcache_save_no_passthrough): New functions.
7612         (regcache_restore, regcache_restore_no_passthrough): New
7613         functions.
7614         (_initialize_regcache): Create the regcache_data_handle. Swap
7615         current_regcache global variable.
7616         
7617         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7618         parameter to regcache_read and regcache_write calls.
7619         (sh4_register_read): Ditto.
7620         (sh64_pseudo_register_read): Ditto.
7621         (sh64_register_read): Ditto.
7622         (sh_pseudo_register_write): Ditto.
7623         (sh4_register_write): Ditto.
7624         (sh64_pseudo_register_write): Ditto.
7625         (sh64_register_write): Ditto.
7626
7627         * defs.h (XCALLOC): Define.
7628
7629 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7630
7631         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7632         * m68k-tdep.c (m68k_gdbarch_init): Added.
7633         (m68k_dump_tdep): Added.
7634
7635 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7636
7637         * ada-lang.c (fill_in_ada_prototype): Update comment.
7638
7639 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7640
7641         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7642         MIPS_ABI_LAST.
7643         (mips_abi_string, mips_abi_strings): New.
7644         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7645         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7646         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7647         O32 if no ABI is found.
7648         (mips_dump_tdep): Use mips_abi_strings.
7649         (mips_abi_update): New function.
7650         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7651         ``set mips abi'' and ``show mips abi''.  Check the size of
7652         mips_abi_strings.
7653
7654 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7655
7656         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7657         constant.
7658
7659 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7660
7661         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7662         current frame using only the first stack size adjustment. All
7663         subsequent size adjustments are not considered to be part of
7664         the "static" part of the current frame.
7665         Compute the address of the saved registers relative to the
7666         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7667         in use in this frame.
7668
7669 2002-06-18  Don Howard  <dhoward@redhat.com>
7670  
7671         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7672         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7673         suggesting this solution.
7674
7675 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7676
7677         * config/romp/xm-rtbsd.h: Delete file.
7678         * config/romp/rtbsd.mh: Delete file.
7679
7680 2002-06-18  Keith Seitz  <keiths@redhat.com>
7681
7682         * breakpoint.c (condition_command): Post breakpoint_modify
7683         when a condition is added to an existing breakpoint.
7684         (commands_command): Likewise for commands.
7685         (set_ignore_count): Likewise for ignore counts.
7686         If no tty, do not simply return, still need to send event
7687         notification.
7688         (ignore_command): Only print a newline if the command came
7689         from a tty.
7690         Don't call breakpoints_changed, since this is now properly
7691         handled by set_ignore_count.
7692
7693 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7694
7695         * MAINTAINERS: Note that cris-elf target can be compiled with
7696         -Werror.
7697         * cris-tdep.c (cris_register_name): Make return type constant.
7698         (cris_breakpoint_from_pc): Ditto.
7699
7700 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7701
7702         * frame.h (struct frame_info): Change type of context to 
7703         'struct context'.
7704
7705 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7706
7707         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7708         pointer.
7709         * gdbarch.h, gdbarch.c: Regenerate.
7710         * config/mips/tm-mips.h (mips_register_name): Update.
7711         * i386-tdep.h (i386_register_name): Update.
7712         * mips-tdep.c (mips_register_name): Update
7713         * alpha-tdep.c (alpha_register_name): Update.
7714         * arch-utils.c (legacy_register_name): Update.
7715         * arch-utils.h (legacy_register_name): Update.
7716         * avr-tdep.c (avr_register_name): Update.
7717         * ia64-tdep.c (ia64_register_name): Update.
7718         * i386-tdep.c (i386_register_name): Update.
7719         * sparc-tdep.c (sparc32_register_name): Update.
7720         (sparc64_register_name): Update.
7721         (sparclite_register_name): Update.
7722         (sparclet_register_name): Update.
7723         * sh-tdep.c (sh_generic_register_name): Update.
7724         (sh_sh_register_name): Update.
7725         (sh_sh3_register_name): Update.
7726         (sh_sh3e_register_name): Update.
7727         (sh_sh_dsp_register_name): Update.
7728         (sh_sh3_dsp_register_name): Update.
7729         (sh_sh4_register_name): Update.
7730         (sh_sh64_register_name): Update.
7731         * s390-tdep.c (s390_register_name): Update.
7732         * rs6000-tdep.c (rs6000_register_name): Update.
7733         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7734         (ns32k_register_name_32382): Update.
7735         * d10v-tdep.c (d10v_ts2_register_name): Update.
7736         (d10v_ts3_register_name): Update.
7737         * xstormy16-tdep.c (xstormy16_register_name): Update.
7738         * vax-tdep.c (vax_register_name): Update.
7739         * v850-tdep.c (v850_register_name): Update.
7740         * m68hc11-tdep.c (m68hc11_register_name): Update.
7741         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7742         (am33_register_name): Update.
7743
7744 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7745
7746         * m68k-tdep.c: Reindented.
7747
7748 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7749
7750         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7751         list of predefined types.
7752
7753 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7754
7755         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7756         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7757         REGISTER_CONVERT_TO_RAW): Remove defines.
7758         (i386_register_virtual_type, i386_register_convertible,
7759         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7760         Remove prototypes.
7761         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7762         macros mentioned above.
7763
7764         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7765         (i386lynx_saved_pc_after_call): Remove prototype.
7766         * i386ly-tdep.c: Include "i386-tdep.h".
7767         (i386lynx_saved_pc_after_call): Make static.  Use
7768         read_memory_nobpt instead of read_memory.  Use
7769         read_memory_unsigned_integer instead of read_memory_integer.
7770         (i386lynx_init_abi): New function.
7771         (i386lynx_coff_osabi_sniffer): New function.
7772         (_initialize_i386bsd_tdep): New function.
7773
7774         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7775         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7776         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7777         (i386_fix_call_dummy): Remove prototype.
7778         * i386-tdep.c (i386_call_dummy_words): New variable.
7779         (i386_gdbarch_init): Adjust for removal of the
7780         macros mentioned above.
7781
7782 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7783
7784         * command.h (add_setshow_auto_boolean_cmd): Replace
7785         add_set_auto_boolean_cmd.
7786         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7787         add_set_auto_boolean_cmd.
7788         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7789         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7790         mask-address'' command.
7791         (show_mask_address): Add cmd parameter.
7792         * remote.c (add_packet_config_cmd): Update.  Change type of
7793         set_func and show_func to cmd_sfunc_ftype.
7794         (_initialize_remote): Update `set remote Z-packet'
7795         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7796         (show_remote_protocol_e_packet_cmd): Ditto.
7797         (show_remote_protocol_E_packet_cmd): Ditto.
7798         (show_remote_protocol_P_packet_cmd): Ditto.
7799         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7800         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7801         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7802         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7803         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7804         (show_remote_protocol_Z_packet_cmd): Ditto.
7805         (show_remote_protocol_binary_download_cmd): Ditto.
7806         (show_remote_cmd): Pass NULL to all of above.
7807
7808 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7809
7810         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7811         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7812         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7813         POP_FRAME): Remove defines.
7814         (i386_push_arguments, i386_store_struct_return,
7815         i386_extract_return_value, i386_store_return_value,
7816         i386_extract_struct_value_address, i386_push_dummy_frame,
7817         i386_pop_frame): Renove prototypes.
7818         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7819         macros mentioned above.
7820
7821 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7822
7823         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7824         add_set_boolean_cmd.
7825         (add_setshow_cmd): New function.
7826         * command.h (add_setshow_boolean_cmd): Replace
7827         add_set_boolean_cmd.
7828         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7829         and ``set rdiromatzero''.
7830         * maint.c (_initialize_maint_cmds): Update commented out code.
7831         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7832         * target.c (initialize_targets): Update `set
7833         trust-readonly-sections'.
7834         * remote.c (_initialize_remote): Update `set remotebreak'.
7835
7836 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7837
7838         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7839         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7840         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7841         fit into multi-arch framework.
7842         (i386_breakpoint_from_pc): New function.
7843         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7844         above.
7845
7846         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7847         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7848         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7849         (i386_frameless_function_invocation, i386_frame_num_args,
7850         i386_frame_init_saved_regs): Remove prototypes.
7851         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7852         macros mentioned above.
7853
7854 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7855
7856         * cli/cli-decode.c (set_cmd_cfunc): Update.
7857         (set_cmd_sfunc): Update.
7858         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7859         (set_cmd_sfunc, set_cmd_cfunc): Update.
7860         * cli/cli-decode.h: Update.
7861
7862 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7863
7864         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7865         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7866
7867 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7868
7869         * defs.h (auto_boolean): Declare enum.
7870         * command.h (cmd_auto_boolean): Delete enum.
7871         * mips-tdep.c (mask_address_var): Update.
7872         (mips_mask_address_p): Update.
7873         (show_mask_address): Update.
7874         * remote.c (struct packet_config): Update.
7875         (update_packet_config): Update.
7876         (show_packet_config_cmd): Update.
7877         (packet_ok): Update.
7878         (add_packet_config_cmd): Update.
7879         (_initialize_remote): 
7880         * command.h: Update.
7881         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7882         (do_setshow_command): Update.
7883         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7884         * cli/cli-decode.h: Update.
7885
7886 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7887
7888         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7889         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7890         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7891         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7892         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7893         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7894
7895         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7896         list of DJGPP COFF targets.
7897
7898         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7899         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7900         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7901         (FP0_REGNUM): Remove define.
7902         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7903         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7904         (i386_register_virtual_size): Remove protoype.
7905         * i386-tdep.c (i386_register_virtual_size): Removed.
7906         (i386_extract_return_value, i386_store_return_value): Use
7907         FP0_REGNUM instead of NUM_FREGS to determine whether the
7908         floating-point registers are available.
7909         (i386_gdbarch_init): Tweak FIXME about FPU registers.
7910         Adjust for removal of macros mentioned above.
7911
7912 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7913
7914         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
7915         comments.
7916         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7917         Remove prototypes.
7918         (supply_gregset, fill_gregset): Remove use of register keyword and
7919         remove declaration for regmap.  Use I386_NUM_GREGS instead of
7920         NUM_REGS and NUM_FREGS.
7921         (FPREGSET_FSAVE_OFFSET): Remove.
7922         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7923         NUM_FREGS to determine whether the floating-point registers are
7924         available.
7925
7926         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7927         gnu_store_registers): Replace usage of NUM_GREGS with
7928         I386_NUM_GREGS.
7929
7930         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7931         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7932         usage of NUM_GREGS with I386_NUM_GREGS.
7933
7934         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7935
7936         * i386bsd-nat.c: Include "i386-tdep.h".
7937         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7938         I386_NUM_GREGS.
7939
7940         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7941         and associated comment.  They no longer make any sense, since we
7942         don't use this file anymore on Linux.
7943
7944         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7945         * i386-tdep.c (i386_register_offset, i386_register_size): Use
7946         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7947         elements in these arrays.
7948         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7949         MAX_NUM_REGS.
7950
7951 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7952
7953         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7954         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7955
7956 2002-06-14  Andrew Cagney  <cagney@redhat.com>
7957
7958         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7959         EXTRACT_RETURN_VALUE.
7960         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7961         EXTRACT_STRUCT_VALUE_ADDRESS.
7962         * gdbarch.h, gdbarch.c: Regenerate.
7963         
7964         * values.c (value_being_returned): Handle
7965         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7966         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7967
7968         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
7969         * arm-tdep.c (arm_gdbarch_init): Update.
7970         * avr-tdep.c (avr_gdbarch_init): Update.
7971         * cris-tdep.c (cris_gdbarch_init): Update.
7972         * d10v-tdep.c (d10v_gdbarch_init): Update.
7973         * ia64-tdep.c (ia64_gdbarch_init): Update.
7974         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7975         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7976         * s390-tdep.c (s390_gdbarch_init): Update.
7977         * sh-tdep.c (sh_gdbarch_init): Update.
7978         * s390-tdep.c (s390_gdbarch_init): Update.
7979         * sparc-tdep.c (sparc_gdbarch_init): Update.
7980         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7981         * v850-tdep.c (v850_gdbarch_init): Update.
7982         * vax-tdep.c (vax_gdbarch_init): Update.
7983         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7984         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7985
7986         * config/arc/tm-arc.h: Update.
7987         * config/d30v/tm-d30v.h: Update.
7988         * config/fr30/tm-fr30.h: Update.
7989         * config/h8300/tm-h8300.h: Update.
7990         * config/h8500/tm-h8500.h: Update.
7991         * config/i386/tm-i386.h: Update.
7992         * config/i386/tm-ptx.h: Update.
7993         * config/i386/tm-symmetry.h: Update.
7994         * config/i960/tm-i960.h: Update.
7995         * config/m32r/tm-m32r.h: Update.
7996         * config/m68k/tm-delta68.h: Update.
7997         * config/m68k/tm-linux.h: Update.
7998         * config/m68k/tm-m68k.h: Update.
7999         * config/m88k/tm-m88k.h: Update.
8000         * config/mcore/tm-mcore.h: Update.
8001         * config/mips/tm-mips.h: Update.
8002         * config/mn10200/tm-mn10200.h: Update.
8003         * config/pa/tm-hppa.h: Update.
8004         * config/pa/tm-hppa64.h: Update.
8005         * config/sparc/tm-sp64.h: Update.
8006         * config/sparc/tm-sparc.h: Update.
8007         * config/sparc/tm-sparclet.h: Update.
8008         * config/z8k/tm-z8k.h: Update.
8009
8010 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8011
8012         * Makefile.in (i386_linux_tdep_h): Define.
8013         (i386_tdep_h, i387_tdep_h): Define.
8014         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8015         $(i386_tdep_h) and $(i387_tdep_h).
8016         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8017
8018 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8019
8020         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8021         Already covered by the default.
8022
8023         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8024         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8025         (i386_gdbarch_init): Initialize long_double_format and long_double
8026         bit.
8027
8028         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8029         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8030         Move these to ...
8031         * config/i386/i386sol2.mh: ... here.
8032         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8033         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8034         (SIGCONTEXT_PC_OFFSET): Remove define.
8035         (IN_SIGTRAMP): Remove define.
8036         * i386-sol2-tdep.c: New file.
8037         
8038         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8039         * config/i386/tm-i386nw.h: Removed.
8040
8041         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8042         USE_STRUCT_CONVENTION): Remove defines.
8043         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8044         (get_longjmp_target): Remove prototype.
8045         (IN_SIGTRAMP): Remove define.
8046         (i386bsd_in_sigtramp): Remove prototype.
8047         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8048         function.  Update comment accordingly
8049         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8050         (FRAME_SAVED_PC): Remove define.
8051         (i386bsd_frame_saved_pc): Remove prototype.
8052         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8053         GET_LONGJMP_TARGET): Remove defines.
8054         (get_longjmp_target): Remove prototype.
8055         (IN_SIGTRAMP): Remove define.
8056         (i386bsd_in_sigtramp): Remove prototype.
8057         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8058         function.  Update comment accordingly
8059         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8060         (FRAME_SAVED_PC): Remove define.
8061         (i386bsd_frame_saved_pc): Remove prototype.
8062         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8063         Remove prototype.
8064         (USE_STRUCT_CONVENTION): Remove prototype.
8065         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8066         declaration.
8067         (_initialize_i386bsd_nat): Revise logic to determine some
8068         constants at compile time when compiling a native GDB.  Warn if
8069         things don't match up with what we expect.
8070         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8071         Remove variables.
8072         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8073         to use date stored in `struct gdbarch_tdep'.
8074         (i386bsd_sigcontext_offset): Remove varaible.
8075         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8076         stored in `struct gdbarch_tdep'.
8077         (i386bsd_frame_saved_pc): Make static.
8078         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8079         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8080         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8081         i386fbsd4_sc_pc_offset): New variables.
8082         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8083         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8084         functions.
8085         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8086         functions.
8087         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8088         Modify the value of i386fbsd_sigtramp_start and
8089         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8090         i386fbsd_sigtramp_end.
8091         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8092         function.
8093
8094         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8095         define to i386-linux-tdep.h.
8096         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8097         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8098         defines.
8099         (i386_linux_register_name, i386_linux_register_byte,
8100         i386_linux_register_raw_size): Remove prototypes.
8101         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8102         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8103         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8104         TARGET_WRITE_PC): Remove defines.
8105         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8106         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8107         i386_linux_write_pc): Remove prototypes.
8108         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8109         (get_longjmp_target): Remove prototype.
8110         * i386-linux-tdep.h: New file.
8111         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8112         * i386-linux-tdep.c: Include "i386-tdep.h" and
8113         "i386-linux-tdep.h".
8114         (i386_linux_register_name, i386_linux_register_byte,
8115         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8116         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8117         Make static.
8118         (i386_linux_init_abi): New function.
8119         (_initialize_i386_linux_tdep): New function.
8120
8121         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8122         (i386_saved_pc_after_call): Remove prototype.
8123         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8124         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8125         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8126         (i386_register_name, i386_stab_reg_to_regnum,
8127         i386_dwarf_reg_to_regnum): Remove prototypes.
8128         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8129         SIZEOF_SSE_REGS): Remove defines.
8130         (REGISTER_BYTES): Remove define.
8131         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8132         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8133         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8134         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8135         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8136         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8137         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8138         (get_longjmp_target): Remove prototype.
8139         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8140         (sigtramp_saved_pc): Remove define.
8141         (i386v4_sigtramp_saved_pc): Remove prototype.
8142         * config/i386/tm-go32.h (FRAME_CHAIN,
8143         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8144         (i386go32_frame_saved_pc): Remove prototype.
8145         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8146         (get_longjmp_target): Remove prototype.
8147         * i386-tdep.h: Include "osabi.h".
8148         (enum i386_abi): Removed.
8149         (enum struct_return): New enum.
8150         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8151         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8152         sc_pc_offset members.
8153         (i386_gdbarch_register_os_abi): Remove prototype.
8154         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8155         I386_SSE_NUM_REGS): New defines.
8156         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8157         I386_SSE_SIZEOF_REGS): New defines.
8158         (i386_register_name, i386_register_byte, i386_register_raw_size):
8159         New prototypes.
8160         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8161         (i386bsd_sigtramp_saved_pc): New prototype.
8162         * i386-tdep.c: Don't include "elf-bfd.h".
8163         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8164         i386_frame_chain, i386_saved_pc_after_call): Make static.
8165         (i386_frame_saved_pc): Rewrite to call architecture dependent
8166         function to deal with signal handlers.  Make static.
8167         (i386go32_frame_saved_pc): Removed.
8168         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8169         Removed.
8170         (i386_get_longjmp_target): New function.
8171         (default_struct_convention, pcc_struct_convention,
8172         reg_struct_convention, valid_conventions, struct_convention): New
8173         variables.
8174         (i386_use_struct_convention): New function.
8175         (i386v4_sigtramp_saved_pc): Renamed to
8176         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8177         (i386_pc_in_sigtramp): New function.
8178         (i386_abi_names): Removed.
8179         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8180         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8181         Removed.
8182         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8183         i386_gdbarch_register_os_abi): Removed.
8184         (struct i386_abi_handler): Removed.
8185         (i386_abi_handler_list): Removed.
8186         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8187         functions.
8188         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8189         i386_nw_init_abi): New functions.
8190         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8191         Use set_gdbarch_xxx() calls instead of relying on macros for a
8192         number of calls.
8193         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8194         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8195         Register the various architecture variants defined in this file.
8196
8197 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8198
8199         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8200         (struct main_type): Remove arg_types member.  Update comments for
8201         struct field.
8202         (TYPE_ARG_TYPES): Remove.
8203         (TYPE_FN_FIELD_ARGS): Update.
8204         (smash_to_method_type): Update prototype.
8205
8206         * c-typeprint.c (cp_type_print_method_args): Take method type
8207         instead of argument list.  Use new argument layout.  Simplify.
8208         (c_type_print_args): Use new argument layout.  Simplify.
8209         (c_type_print_base): Update call to cp_type_print_method_args.
8210         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8211         argument; use die->type instead.  Update call to
8212         smash_to_method_type.
8213         (read_structure_scope): Update call to dwarf2_add_member_fn.
8214         * gdbtypes.c (allocate_stub_method): Update comment.
8215         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8216         Use new argument layout.
8217         (check_stub_method): Use new argument layout.  Don't count
8218         void as an argument.
8219         (print_arg_types): Update comments.  Use new argument layout.
8220         (recursive_dump_type): Don't print arg_types member.
8221         * hpread.c (hpread_read_struct_type): Use new argument layout.
8222         (fixup_class_method_type): Likewise.
8223         (hpread_type_lookup): Likewise.
8224         * stabsread.c (read_type): Update calls to read_args and
8225         smash_to_method_type.
8226         (read_args): Use new argument layout.  Simplify.
8227         * valops.c (typecmp): Use new argument layout.  Update parameters
8228         and comments.  Simplify.
8229         (hand_function_call): Use new argument layout.
8230         (search_struct_method): Update call to typecmp.
8231         (find_overload_match): Use new argument layout.
8232
8233 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8234
8235         * NEWS: Mention multithreaded debug support for gdbserver.
8236
8237 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8238
8239         * MAINTAINERS: Mention NEWS.
8240
8241 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8242
8243         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8244         (struct mips_objfile_private, compare_pdr_entries): New.
8245         (non_heuristic_proc_desc): Read the ".pdr" section if it
8246         is present.
8247
8248 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8249
8250         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8251         (arm_debug): New static variable.
8252         (_initialize_arm_tdep): Add ``set debug arm'' command.
8253
8254 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8255
8256         * Makefile.in (sim_arm_h): Define.
8257         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8258         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8259         (arm_register_sim_regno): New function, map an internal REGNUM
8260         onto a simulator register number.
8261         (arm_gdbarch_init): Set register_sim_regno.
8262
8263 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8264
8265         * MAINTAINERS: Add self.
8266
8267 2002-06-11  Jim Blandy  <jimb@redhat.com>
8268
8269         * source.c (source_info): Mention whether the symtab has
8270         information about preprocessor macros.
8271
8272         Call the command `info macro', not `show macro'.
8273         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8274         Fix error message.
8275         (_initialize_macrocmd): Register `info_macro_command' in
8276         `infolist', not `showlist'.
8277
8278 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8279
8280         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8281         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8282         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8283         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8284         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8285         unconditionally.
8286         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8287         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8288         (_initialize_mips_tdep): Remove dead code.
8289         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8290         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8291         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8292         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8293         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8294         MIPS_LAST_FP_ARG_REGNUM): Remove.
8295
8296 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8297
8298         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8299         (unwind_tmp_obstack_free, parse_frame_info)
8300         (update_context, cfi_read_fp, cfi_write_fp)
8301         (cfi_frame_chain, cfi_init_extra_frame_info)
8302         (cfi_virtual_frame_pointer): Use the above function.
8303         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8304
8305 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8306
8307         * v850-tdep.c (v850_type_is_scalar): New function.
8308         (v850_use_struct_convention): Match current gcc implementation
8309         as close as possible.
8310         (v850_push_arguments): Fix stack_offset handling.  Don't write
8311         struct_addr into register.  This is done by v850_store_struct_return.
8312         (v850_extract_return_value): Care for structs.
8313         (v850_store_return_value): Ditto.
8314         (v850_store_struct_return): Actually write address.
8315
8316 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8317
8318         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8319         without debug information too.
8320
8321 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8322
8323         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8324         Make multi-arch pure.
8325         * gdbarch.h, gdbarch.c: Re-generate.
8326         * arm-tdep.c (arm_print_float_info): Update.
8327         * arch-utils.h (default_print_float_info): Update.
8328         * arch-utils.c (default_print_float_info): Update.
8329         * infcmd.c (float_info): Update call.
8330
8331 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8332
8333         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8334         the front of the initialize list.
8335
8336 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8337
8338         * infrun.c (struct inferior_status): Replace fields
8339         selected_frame_address and selected_level with field
8340         selected_frame_id.
8341         (save_inferior_status): Update.  Use get_frame_id.
8342         (struct restore_selected_frame_args): Delete.
8343         (restore_selected_frame): Update.  Use frame_find_by_id.
8344         (restore_inferior_status): Update.
8345
8346         * breakpoint.h (struct breakpoint): Change type of
8347         watchpoint_frame to frame_id.
8348         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8349         call to get_current_frame.
8350         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8351         get_current_frame.
8352         (watchpoint_check): Use frame_find_by_id.
8353
8354         * frame.h (record_selected_frame): Delete declaration.
8355         * stack.c (record_selected_frame): Delete function.
8356         
8357         * frame.h (struct frame_id): Define.
8358         (get_frame_id): Declare.
8359         (frame_find_by_id): Declare.
8360         * frame.c (frame_find_by_id): New function.
8361         (get_frame_id): New function.
8362
8363 2002-06-10  Andrey Volkov <avolkov@transas.com>
8364
8365         * ser-e7kpc.c: Fix duplicated define and call of 
8366         _initialize_ser_e7000pc
8367             
8368 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8369
8370         * signals/signals.c (target_signal_from_host): Fix #ifdef
8371         SIGRTMIN case.
8372         (do_target_signal_to_host): Likewise.
8373
8374 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8375
8376         * mips-tdep.c (mips_find_abi_section): New function.
8377         (mips_gdbarch_init): Call it.
8378
8379 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8380
8381         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8382         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8383         after Andrew's 2002-06-08 gdbarch change.
8384
8385 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8386
8387         * i386-linux-nat.c (suppy_gregset): Don't supply
8388         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8389         register cache.
8390         (fill_gregset): Don't fetch it under the same circumstances.
8391
8392 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8393
8394         * Makefile.in (callback_h): Define.
8395         (remote_sim_h): Update path to remote-sim.h.
8396         (remote-rdp.o): Add $(callback_h).
8397         (remote-sim.o): Use $(callback_h).
8398         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8399         * remote-rdp.c: Include "gdb/callback.h".
8400
8401 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8402
8403         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8404         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8405
8406 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8407
8408         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8409         * rdi-share/serpardr.c: Ditto.
8410         * rdi-share/unixcomm.c: Ditto.
8411         * rdi-share/serdrv.c: Ditto.
8412         * rdi-share/hostchan.h: Ditto.
8413         * rdi-share/hostchan.c: Ditto.
8414         * rdi-share/host.h: Ditto.
8415         * rdi-share/devsw.c: Ditto.
8416
8417         * objfiles.h: Change type of obj_private to void pointer.
8418         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8419         strcmp instead of STREQ, use LONGEST, do not use PTR
8420         * somsolib.c: Ditto.
8421
8422         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8423         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8424         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8425
8426 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8427
8428         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8429         (default_get_saved_register): Delete function.
8430         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8431         generic_unwind_get_saved_register.
8432         * gdbarch.h, gdbarch.c: Re-generate.
8433         
8434 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8435
8436         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8437         generic_func_frame_chain_valid.
8438         * gdbarch.h, gdbarch.c: Re-generate.
8439         * blockframe.c (generic_func_frame_chain_valid): Only check
8440         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8441         passing FP to PC_IN_CALL_DUMMY.
8442         Fix PR gdb/360.
8443
8444 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8445
8446         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8447         (register_gdbarch_data): Initialize init_p.
8448         (gdbarch_data): Initialize data pointer using the init function.
8449         (init_gdbarch_data): Delete function.
8450         (gdbarch_update_p): Update.
8451         (initialize_non_multiarch): Update.
8452         (struct gdbarch): Add field initialized_p.
8453         * gdbarch.h, gdbarch.c: Re-generate.
8454
8455 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8456
8457         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8458         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8459         better do the things actually here.
8460         * x86-64-tdep.c (x86_64_register_name2nr): New.
8461         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8462         (x86_64_gdbarch_init): Respect the above change.
8463         * x86-64-tdep.h (x86_64_register_name2nr)
8464         (x86_64_register_nr2name): Add prototypes.
8465         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8466
8467 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8468
8469         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8470         Delete extra braces and re-indent.
8471         (d10v_store_return_value): Char return values
8472         must be shifted over by one byte in R0.
8473         (d10v_extract_return_value): Delete extra braces, re-indent.
8474
8475 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8476
8477         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8478         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8479         (d10v_integer_to_address): Rewrite.
8480         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8481         the d10v specific functions which take care of converting to the
8482         correct space.
8483
8484 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8485
8486         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8487         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8488
8489 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8490
8491         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8492         includes.
8493         * config/tm-linux.h: Ditto.
8494         * config/alpha/tm-alphalinux.h: Ditto.
8495         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8496         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8497         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8498         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8499         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8500         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8501         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8502         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8503         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8504         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8505         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8506         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8507         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8508         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8509         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8510         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8511         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8512         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8513         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8514         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8515         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8516         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8517         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8518         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8519         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8520         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8521         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8522         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8523         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8524         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8525         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8526         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8527         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8528         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8529         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8530         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8531         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8532
8533 2002-05-04  Aidan Skinner <aidan@velvet.net>
8534
8535         * ada-exp.tab.c: New file
8536         * ada-exp.y: New file
8537         * ada-lang.c: New file
8538         * ada-lang.h: New file
8539         * ada-lex.c: New file
8540         * ada-lex.l: New file
8541         * ada-tasks.c: New file
8542         * ada-typeprint.c: New file
8543         * ada-valprint.c: New file
8544         
8545 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8546
8547         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8548         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8549
8550 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8551
8552         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8553         insetead of ppc-linux-tdep.o.
8554         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8555         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8556
8557 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8558
8559         2002-05-07 Christian Groessler <chris@groessler.org>
8560         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8561         bit register contents for little endian hosts.
8562
8563 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8564
8565         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8566         any maintainer.
8567
8568 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8569
8570         * gdbarch.h: Regenerate.
8571
8572 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8573
8574         * MAINTAINERS: Add everyone to write-after-approval list.
8575
8576 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8577
8578         * stack.c (frame_info): Use frame_register_unwind instead of
8579         saved_regs.  Mention when the SP is on the stack or in a register.
8580
8581         * frame.h (frame_register_unwind_ftype): Define.  Document.
8582         (struct frame_info): Add field register_unwind and
8583         register_unwind_cache.
8584         (frame_register_unwind): Declare.
8585         (generic_unwind_get_saved_register): Declare.
8586
8587         * frame.c (frame_register_unwind): New function.
8588         (generic_unwind_get_saved_register): New function.
8589
8590         * blockframe.c (generic_call_dummy_register_unwind): New function.
8591         (frame_saved_regs_register_unwind): New function.
8592         (set_unwind_by_pc): New function.
8593         (create_new_frame): New function.
8594         (get_prev_frame): New function.
8595
8596 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8597
8598         * a29k-share/: Delete directory.
8599         * remote-vx29k.c: Delete file.
8600
8601 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8602
8603         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8604         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8605
8606 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8607
8608         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8609         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8610         (sparc64nbsd-nat.o)
8611         (sparcnbsd-nat.o)
8612         (sparcnbsd-tdep.o): New dependency lists.
8613         * NEWS: Note new UltraSPARC NetBSD native configuration.
8614         * configure.host (sparc64-*-netbsd*): New host.
8615         * configure.tgt (sparc-*-netbsdelf*)
8616         (sparc-*-netbsd*): Set gdb_target to nbsd.
8617         (sparc64-*-netbsd*): New target.
8618         * sparc64nbsd-nat.c: New file.
8619         * sparcnbsd-nat.c: New file.
8620         * sparcnbsd-tdep.c: New file.
8621         * sparcnbsd-tdep.h: New file.
8622         * config/sparc/nbsd.mt: New file.
8623         * config/sparc/nbsd64.mh: New file.
8624         * config/sparc/nbsd64.mt: New file.
8625         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8626         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8627         (HOST_IPC): Remove.
8628         * config/sparc/nbsdaout.mt: Remove.
8629         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8630         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8631         (HOST_IPC): Remove.
8632         * config/sparc/nbsdelf.mt: Remove.
8633         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8634         sparc-nat.c compatiblity defines.
8635         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8636         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8637         * config/sparc/tm-nbsd64.h: New file.
8638         * config/sparc/tm-nbsdaout.h: Remove.
8639         * config/sparc/xm-nbsd.h: Remove.
8640
8641 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8642
8643         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8644         * sparc-tdep.c: Include osabi.h.
8645         (gdbarch_tdep): Add osabi member.
8646         (_initialize_sparc_tdep): Use gdbarch_register.
8647         (sparc_gdbarch_init): Use generic OS ABI framework.
8648         (sparc_dump_tdep): New function.
8649
8650 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8651
8652         * corefile.c (do_captured_read_memory_integer): Return non-zero
8653         result.
8654         (safe_read_memory_integer): Copy result of memory read when
8655         status is non-zero.  Also, add comments.
8656
8657 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8658
8659         * Makefile.in (ppc_tdep_h): Define.
8660         (ppc-linux-nat.o)
8661         (ppc-linux-tdep.o)
8662         (rs6000-tdep.o): Use $(ppc_tdep_h).
8663         (ppc-sysv-tdep.o)
8664         (ppcnbsd-nat.o)
8665         (ppcnbsd-tdep.o): New dependency lists.
8666         * ppc-tdep.h: Use generic OS ABI framework.
8667         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8668         (ppc_linux_init_abi): New functions.
8669         (ppc_sysv_abi_broken_use_struct_convention)
8670         (ppc_sysv_abi_use_struct_convention)
8671         (ppc_sysv_abi_push_arguments): Move to...
8672         * ppc-sysv-tdep.c: ...here.
8673         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8674         * rs6000-tdep.c (process_note_abi_tag_sections)
8675         (get_elfosabi): Remove.
8676         (rs6000_gdbarch_init): Use generic OS ABI framework.
8677         (rs6000_dump_tdep): New function.
8678         (_initialize_rs6000_tdep): Use gdbarch_register.
8679         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8680         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8681         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8682         of ppc-linux-tdep.o.
8683         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8684         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8685         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8686         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8687         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8688         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8689
8690 2002-05-29  Jim Blandy  <jimb@redhat.com>
8691
8692         * macroscope.c (default_macro_scope): Put `void' in empty argument
8693         list.
8694
8695 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8696
8697         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8698         * arch-utils.c: Include "sim-regno.h".
8699         * gdbarch.sh: Don't include "sim-regno.h".
8700         * gdbarch.h, gdbarch.c: Regenerate.
8701         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8702         here.
8703         * arch-utils.h (legacy_register_sim_regno): To here.
8704         * remote-sim.c (legacy_register_sim_regno): Move function from
8705         here.
8706         * arch-utils.c (legacy_register_sim_regno): To here.
8707
8708 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8709
8710         * sim-regno.h: New file.
8711         * Makefile.in (sim_regno_h): Define.
8712         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8713         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8714         (legacy_register_sim_regno): New function.
8715         (one2one_register_sim_regno): New function.
8716         (gdbsim_fetch_register): Rewrite.
8717         (gdbsim_store_register): Only store a register when
8718         REGISTER_SIM_REGNO is valid.
8719         * d10v-tdep.c: Include "sim-regno.h".
8720         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8721         (d10v_ts3_register_sim_regno): Ditto.
8722         * gdbarch.sh: Include "sim-regno.h".
8723         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8724         * gdbarch.h, gdbarch.c: Regenerate.
8725         * arch-utils.h (default_register_sim_regno): Delete declaration.
8726         * arch-utils.c (default_register_sim_regno): Delete function.
8727
8728 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8729
8730         * ppcnbsd-nat.c: Rewrite.
8731         * ppcnbsd-tdep.c: New file.
8732         * ppcnbsd-tdep.h: New file.
8733         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8734         solib.o, and solib-svr4.o.
8735         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8736         nbsd-tdep.o, and corelow.o.
8737
8738 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8739
8740         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8741         `tr' and `sed'.  Mention that `broken' targets are not expected to
8742         build.
8743
8744 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8745
8746         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8747         Let PC point right after the prologue before looking up symbols.
8748         
8749 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8750
8751         * i386-tdep.c (i386_register_virtual_type): Return 
8752         builtin_type_vec128i for SSE registers.
8753
8754         * gdbtypes.h (builtin_type_vec128i): Declare.
8755
8756         * gdbtypes.c (build_builtin_type_vec128i): New function.
8757         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8758         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8759         (build_gdbtypes): Initialize new builtin vector types.
8760         (_initialize_gdbtypes): Register new vector types with gdbarch.
8761
8762 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8763
8764         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8765         since it has been multi-arch'd.
8766         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8767         Move Alpha and VAX multi-arch news entries to same section
8768         as other multi-arch news.
8769
8770 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8771
8772         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8773         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8774         static.  Rename some register numbers to put them in ns32k-tdep
8775         private namespace.
8776         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8777         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8778         functions.
8779         (_initialize_ns32k_tdep): Use gdbarch_register.
8780         * ns32k-tdep.h: New file.
8781         * ns32knbsd-tdep.c: New file.
8782         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8783         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8784         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8785         REGISTER_BYTES, REGISTER_BYTE): Remove.
8786         * config/ns32k/tm-ns32k.h: New file.
8787         * config/ns32k/tm-umax.h: Remove.
8788
8789 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8790
8791         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8792         ns32k_store_struct_return, ns32k_extract_return_value,
8793         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8794         functions.
8795         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8796         ns32k_saved_pc_after_call.
8797         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8798         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8799         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8800         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8801         ns32k_extract_struct_value_address.
8802
8803 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8804
8805         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8806         ns32k_fix_call_dummy): New.
8807         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8808         ns32k_call_dummy_words.
8809         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8810         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8811         CALL_DUMMY_NARGS): Remove.
8812         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8813
8814 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8815
8816         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8817         ns32k_frame_saved_pc, ns32k_frame_args_address,
8818         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8819         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8820         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8821         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8822         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8823         (BREAKPOINT): Remove..
8824         (FRAME_CHAIN): Define as ns32k_frame_chain.
8825         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8826         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8827         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8828         (FRAME_FIND_SAVED_REGS): Remove.
8829         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8830         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8831         (POP_FRAME): Define as ns32k_pop_frame.
8832
8833 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8834
8835         * ns32k-tdep.c (ns32k_register_byte_32082,
8836         ns32k_register_byte_32382, ns32k_register_raw_size,
8837         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8838         functions.
8839         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8840         ns32k_register_byte_32382.
8841         * config/ns32k/tm-umax.h: Update copyright years.
8842         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8843         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8844         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8845         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8846         (ns32k_get_enter_addr): Fix prototype.
8847
8848 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8849
8850         * ns32k-tdep.c: Update copyright years.
8851         (ns32k_register_name_32082): New function.
8852         (ns32k_register_name_32382): Ditto.
8853         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8854         (REGISTER_NAME): Define as ns32k_register_name_32382.
8855         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8856         (REGISTER_NAME): Define as ns32k_register_name_32082.
8857
8858 2002-05-24  Jim Blandy  <jimb@redhat.com>
8859
8860         * dwarf2read.c (free_line_header): Use xfree, not free.
8861
8862 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
8863
8864         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8865         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8866
8867 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8868
8869         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8870
8871 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8872
8873         From Ross Alexander at NEC Europe:
8874         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8875
8876 2002-05-23  Michael Snyder  <msnyder@redhat.com>
8877
8878         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8879         for input, rather than parse_and_eval_address.  
8880
8881 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8882
8883         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8884         * Makefile.in (sim_d10v_h): Update definition.
8885
8886 2002-05-24  Andrew Cagney  <cagney@redhat.com>
8887
8888         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8889         change `2002-05-22 Michael Snyder' below.
8890         (d10v_push_arguments): Ditto.
8891         (d10v_extract_return_value): Ditto.
8892
8893 2002-05-23  Jim Blandy  <jimb@redhat.com>
8894
8895         * macrotab.c (check_for_redefinition): Don't complain if the new
8896         definition is the same as the previous one.  Take more arguments
8897         to allow the comparison.
8898         (macro_define_object, macro_define_function): Pass more arguments
8899         to check_for_redefinition.
8900
8901 2002-05-22  Michael Snyder  <msnyder@redhat.com>
8902
8903         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8904         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8905         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8906         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8907         Don't bail if return_pc is PC_IN_CALL_DUMMY.
8908         Add a temp variable to save a call (and a memory read).
8909         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8910         if possible (so that PC_IN_CALL_DUMMY will work).
8911
8912 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
8913
8914         * MAINTAINERS: Remove status `OBSOLETE' from v850.
8915
8916 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
8917
8918         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8919         fde->cie_ptr.
8920         (dwarf2_build_frame_info): Corrected handling of eh_frame.
8921         (dwarf2_build_frame_info): Add offset to fde->initial_location 
8922         so that frames of shared libraries are mapped correctly.
8923         (execute_stack_op): Change type of 'result' from ULONGEST to
8924         CORE_ADDR.
8925         
8926 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8927
8928         * config/alpha/tm-nbsd.h: Include solib.h.
8929
8930 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8931
8932         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8933         assumptions about the host's byte order.
8934
8935 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8936
8937         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8938         to dependency list.
8939         * alphanbsd-tdep.c: Include solib-svr4.h.
8940         * shnbsd-tdep.c: Ditto.
8941
8942 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8943
8944         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8945         nbsd-tdep.h to dependency list.
8946         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8947         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8948         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8949         nbsdaout.mh and nbsdelf.mh consistently.
8950         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8951         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8952         nbsdaout.mt and nbsdelf.mh consistently.
8953         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
8954         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8955         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8956         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
8957         a.out shared library stuff from here...
8958         * config/nm-nbsdaout.h: ...to here.
8959         * config/tm-nbsd.h: Remove.
8960         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8961         * config/arm/nbsd.mh: Remove.
8962         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8963         nbsd-tdep.o.
8964         * config/arm/nbsdaout.mh: New file. 
8965         * config/arm/nbsdelf.mh: New file.
8966         * config/arm/nm-nbsdaout.h: New file.
8967         * config/i386/nbsd.mh: Remove.
8968         * config/i386/nbsd.mt: Remove.
8969         * config/i386/nbsdaout.mh: New file.
8970         * config/i386/nbsdaout.mt: New file.
8971         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8972         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8973         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
8974         i386_register_u_addr): Remove.
8975         * config/i386/nm-nbsdaout.h: New file.
8976         * config/i386/nm-nbsdelf.h: Remove.
8977         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8978         (USE_STRUCT_CONVENTION): Remove.
8979         * config/i386/tm-nbsdaout.h: New file.
8980         * config/i386/tm-nbsdelf.h: Remove.
8981         * config/m68k/nbsd.mh: Remove.
8982         * config/m68k/nbsd.mt: Remove.
8983         * config/m68k/nbsdaout.mh: New file.
8984         * config/m68k/nbsdaout.mt: New file. 
8985         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8986         * config/m68k/nm-nbsdaout.h: New file.
8987         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8988         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8989         * config/ns32k/nbsd.mh: Remove.
8990         * config/ns32k/nbsd.mt: Remove. 
8991         * config/ns32k/nbsdaout.mh: New file.
8992         * config/ns32k/nbsdaout.mt: New file.
8993         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
8994         * config/ns32k/nm-nbsdaout.h: New file.
8995         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
8996         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8997         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8998         (SVR4_SHARED_LIBS): Remove.
8999         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9000         * config/sparc/nbsd.mh: Remove.
9001         * config/sparc/nbsd.mt: Remove.
9002         * config/sparc/nbsdaout.mh: New file.
9003         * config/sparc/nbsdaout.mt: New file.
9004         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9005         * config/sparc/nbsdelf.mt: New file.
9006         * config/sparc/nm-nbsdaout.h: New file.   
9007         * config/sparc/nm-nbsdelf.h: Remove.
9008         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9009         * config/sparc/tm-nbsdaout.h: New file.
9010
9011 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9012
9013         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9014         mipsnbsd-tdep.c
9015         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9016
9017 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9018
9019         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9020         shnbsd-nat.c.
9021         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9022
9023 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9024
9025         * NEWS: Note new MIPS NetBSD native configuration. 
9026         * configure.host (mips*-*-netbsd*): New host. 
9027         * configure.tgt (mips*-*-netbsd*): New target. 
9028         * mipsnbsd-nat.c: New file.
9029         * mipsnbsd-tdep.c: New file.
9030         * mipsnbsd-tdep.h: New file.
9031         * config/mips/nbsd.mh: New file.
9032         * config/mips/nbsd.mt: New file.
9033         * config/mips/nm-nbsd.h: New file.
9034         * config/mips/tm-nbsd.h: New file.
9035
9036 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9037
9038         * Makefile.in (SFILES): Add osabi.c.
9039         (COMMON_OBS): Add osabi.o.
9040         (osabi.o): New dependency list.
9041         * osabi.c: New file.
9042         * osabi.h: New file.
9043         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9044
9045         * Makefile.in (alpha_tdep_h): Define and use instead of
9046         alpha-tdep.h.
9047         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9048         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9049         Remove.
9050         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9051         * alpha-tdep.h: Include osabi.h.
9052         (alpha_abi): Remove.
9053         (gdbarch_tdep): Use generic OS ABI framework.
9054         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9055         gdbarch_register_osabi.
9056         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9057         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9058         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9059
9060         * Makefile.in (sh_tdep_h): Add osabi.h.
9061         * sh-tdep.h (sh_osabi): Remove.
9062         (gdbarch_tdep): Use generic OS ABI framework.
9063         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9064         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9065         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9066         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9067
9068         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9069         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9070         gdbarch_register_osabi.
9071         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9072         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9073         (get_elfosabi): Rename to...
9074         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9075         ABI framework support routines.
9076         (arm_gdbarch_init): Use generic OS ABI framework.
9077         (arm_dump_tdep): Likewise.
9078         (_initialize_arm_tdep): Likewise.
9079         * arm-tdep.h: Include osabi.h.
9080         (arm_abi): Remove.
9081         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9082         osabi member.
9083         (arm_gdbarch_register_os_abi): Remove prototype.
9084         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9085         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9086
9087         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9088         * mips-tdep.c: Include osabi.h.
9089         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9090         OS ABI framework.
9091
9092 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9093
9094         * h8300-tdep.c: Fix formatting.
9095
9096 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9097
9098         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9099         printing vector registers.
9100
9101 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9102
9103         From Fernando Nasser:
9104         * remote.c (remote_async_open_1): Re-throw the exception when the
9105         connection fails.
9106         (remote_cisco_open): Ditto.
9107         (remote_open_1): Ditto.
9108
9109 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9110
9111         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9112         (remote_start_remote): Add uiout parameter.  Pass through to
9113         remote_start_remote_dummy.
9114         (remote_open_1): Use catch_exception instead of catch_errors.
9115         (remote_async_open_1): Ditto.
9116         (remote_cisco_open): Ditto.
9117
9118 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9119
9120         * remote.c (remote_start_remote): Replace PTR with void pointer.
9121         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9122         static.
9123
9124 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9125
9126         * gdb_indent.sh: Allow the script to be run in the sim directory.
9127
9128 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9129
9130         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9131         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9132
9133         * corelow.c (core_open): Only call set_gdbarch_from_file if
9134         exec_bfd is NULL.
9135
9136 2002-05-17  Andrey Volkov <avolkov@transas.com>
9137
9138         * h8300-tdep.c: Add support of EXR register
9139         * config/h8300/tm-h8300.h: Ditto. 
9140         
9141 2002-05-17  Andrey Volkov <avolkov@transas.com>
9142
9143         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9144         
9145 2002-05-17  Andrey Volkov <avolkov@transas.com>
9146
9147         * h8300-tdep.c: Change literal regnums to REGNO.
9148         
9149 2002-05-17  Jim Blandy  <jimb@redhat.com>
9150
9151         * NEWS: Note addition of macro support.
9152
9153         Expand preprocessor macros in C expressions.
9154         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9155         (scan_macro_expansion, scanning_macro_expansion,
9156         finished_macro_expansion): New function declarations.
9157         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9158         variable declarations.
9159         * parser-defs.h (expression_context_pc): New declaration.
9160         * parse.c (expression_context_pc): New variable.
9161         (parse_exp_1): Set expression_context_pc, as well as
9162         expression_context_block.
9163         * c-exp.y (yylex): If we're not already reading the result of a
9164         macro expansion, try to macro-expand the next token.  When we're
9165         done scanning a macro expansion, switch back to the mainline text.
9166         Commas and `if's in a macro's expansion don't terminate the input.
9167         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9168         (macro_original_text, macro_expanded_text,
9169         expression_macro_lookup_func, expression_macro_lookup_baton): New
9170         variables.
9171         (scan_macro_expansion, scanning_macro_expansion,
9172         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9173         c_preprocess_and_parse): New functions.
9174         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9175         c_preprocess_and_parse, instead of c_parse.
9176         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9177         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9178
9179 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9180
9181         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9182         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9183         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9184
9185 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9186
9187         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9188
9189 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9190
9191         * Makefile.in (sh_tdep_h): Define and use.
9192         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9193         register enum): Move to...
9194         * * sh-tdep.h: ...here.
9195         * sh-tdep.c: Include sh-tdep.h.
9196         * sh3-rom.c: Likewise.
9197         * shnbsd-tdep.c: Likewise.
9198
9199 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9200
9201         * arm-tdep.c: Spelling fix in comment.
9202
9203 2002-05-16  Jim Blandy  <jimb@redhat.com>
9204
9205         Add commands for manually expanding macros and showing their
9206         definitions.
9207         * macrocmd.c, macroscope.c, macroscope.h: New files.
9208         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9209         (macroscope_h): New variable.
9210         (HFILES_NO_SRCDIR): Add macroscope.h.
9211         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9212         (macroscope.o, macrocmd.o): New rules.
9213
9214         Teach the Dwarf 2 reader to read macro information.
9215         * dwarf2read.c: #include "macrotab.h".
9216         (dwarf_macinfo_buffer): New variable.
9217         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9218         dwarf_macinfo_size.
9219         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9220         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9221         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9222         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9223         dwarf2_macro_spaces_in_definition): New complaints.
9224         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9225         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9226         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9227         the partial symbol table.
9228         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9229         from what's recorded in the partial symbol table.
9230         (read_file_scope): If the compilation unit has a
9231         `DW_AT_macro_info' attribute, read its macro information.
9232         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9233
9234 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9235
9236         Fix PR gdb/546
9237         * ser-tcp.c: Don't include <netinet/udp.h>.
9238
9239 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9240
9241         * MAINTAINERS: Update my email address.
9242
9243 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9244
9245         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9246         include file of the same name.
9247
9248 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9249
9250         * configure.tgt: Mark v850 as multi-arched.
9251         * config/v850/tm-v850.h: Remove file.
9252         * config/v850/v850.mt: Eliminate TM_FILE.
9253
9254 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9255
9256         * v850-tdep.c: Full multi-arch.
9257         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9258         Define GDB_MULTI_ARCH to 2.
9259
9260 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9261
9262         * p-exp.y (current_type): New static variable.
9263         Carries the type of the expression at the position that is parsed.
9264         (push_current_type, pop_current_type): Two new functions. Used
9265         to store/restore current_type in expression on specific tokens.
9266         (search_field): New static variable. Set to one after parsing a point
9267         as at that point only a FIELDNAME token should be searched.
9268         (FIELDNAME): New token. After a point only a token belonging to 
9269         current_type type definition is allowed.
9270         (all over token rules): reset and change current_type according
9271         to rules.
9272         (exp '[' rule): insert implicit array index field if
9273         exp is a pascal string type.
9274
9275 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9276
9277         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9278         frame info.  Use frame_info's saved_regs instead of matching member
9279         in extra_frame_info throughout.
9280         (v850_frame_init_saved_regs): New function.
9281         (v850_init_extra_frame_info): Move most functionality into
9282         v850_frame_init_saved_regs().
9283         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9284         (v850_frame_find_saved_regs): Remove declaration.
9285         (FRAME_FIND_SAVED_REGS): Remove definition.
9286         (v850_frame_init_saved_regs): Add declaration.
9287         (FRAME_INIT_SAVED_REGS): Add definition.
9288
9289 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9290
9291         * v850-tdep.c: Begin multi-arch'ing v850.
9292         (v850_target_architecture_hook): Remove function.
9293         (v850_gdbarch_init): New function.  Add code previously in
9294         v850_target_architecture_hook().
9295         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9296         Call register_gdbarch_init() instead.
9297
9298 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9299
9300         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9301         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9302         (fixup_class_method_type): Likewise.
9303
9304 2002-05-15  Jim Blandy  <jimb@redhat.com>
9305
9306         Add macro structures to GDB's symbol tables.  Nobody puts anything
9307         in them yet.
9308         * symtab.h (struct symtab): New member: `macro_table'.
9309         * buildsym.h (pending_macros): New global variable.
9310         * buildsym.c: #include "macrotab.h".
9311         (buildsym_init): Initialize `pending_macros'.
9312         (end_symtab): If we found macro information while reading a CU's
9313         debugging info, do build a symtab structure for it.  Make the
9314         symtab point to the macro information, and clear the
9315         `pending_macros' pointer which held it while we were reading the
9316         debug info.
9317         (really_free_pendings): Free any pending macro table.
9318         * objfiles.h (struct objfile): New member: `macro_cache'.
9319         * objfiles.c (allocate_objfile): Set allocate and free functions
9320         for the macro cache's objstack.
9321         (free_objfile): Empty the macro cache's obstack.
9322         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9323         set new allocate and free functions for it.
9324         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9325         free functions for the macro cache's objstack.  (Why is this
9326         function building its own objfile?)
9327         * symmisc.c (print_objfile_statistics): Print statistics on the
9328         macro bcache.
9329         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9330
9331 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9332
9333         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9334         (REGISTER_U_ADDR): Delete definition.
9335         (arm_register_u_addr): Delete declaration.
9336
9337 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9338
9339         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9340         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9341
9342 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9343
9344         * regcache.c (register_valid): Revise comments refering to "Not
9345         available" and "unavailable".
9346         * frame.c (frame_register_read): Ditto.
9347         * findvar.c (value_of_register): Ditto.
9348
9349 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9350
9351         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9352         (remote-sim.o): Update dependencies.
9353         (d10v-tdep.o): Specify dependencies.
9354         (sim_d10v_h): Define.
9355
9356 2002-05-14  Jim Blandy  <jimb@redhat.com>
9357
9358         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9359         * macrotab.c (macro_lookup_inclusion, find_definition,
9360         new_macro_table): Same.
9361         
9362         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9363         not `! strcmp ()'.  This is a dubious improvement.
9364         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9365
9366         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9367         although it's not necessary, to avoid a warning.
9368
9369 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9370
9371         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9372         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9373         TYPE_INSTANCE_FLAGS.
9374         (struct main_type): New.
9375         (struct type): Move most members to struct main_type.  Change
9376         cv_type and as_type to new type_chain member.  Add instance_flags.
9377         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9378         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9379         (finish_cv_type): Remove prototype.
9380         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9381         Set TYPE_CHAIN.
9382         (alloc_type_instance): New function.
9383         (smash_type): New function.
9384         (make_pointer_type, make_reference_type, make_function_type)
9385         (smash_to_member_type, smash_to_method_type): Call smash_type.
9386         (make_qualified_type): New function.
9387         (make_type_with_address_space): Call make_qualified_type.
9388         (make_cv_type): Likewise.
9389         (finish_cv_type): Remove unnecessary function.
9390         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9391         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9392         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9393         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9394         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9395         * hpread.c (hpread_read_struct_type): Likewise.
9396         * stabsread.c (read_struct_type): Likewise.
9397
9398 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9399
9400         * configure.tgt: Add a catch all sh* target, for cases like
9401         sh[2,3,4]-elf and sh-hms.
9402
9403 2002-05-14  Keith Seitz  <keiths@redhat.com>
9404
9405         * event-loop.c (create_file_handler): Don't do anything but
9406         update data when we are given a fd which we are already
9407         monitoring.
9408
9409 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9410
9411         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9412         (update_context): Use __func__ in warnings.
9413         
9414 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9415
9416         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9417         and tcp_close to net_open and net_close.
9418         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9419         using UDP if requested.  Don't try to disable Nagle on UDP
9420         sockets.
9421         * remote.c (remote_serial_open): New function.  Warn about UDP.
9422         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9423
9424 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9425
9426         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9427
9428 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9429
9430         * configure.tgt: Remove sh-hms target.
9431         * MAINTAINERS: Don't list sh-hms as a separate target.
9432
9433 2002-05-13  Jim Blandy  <jimb@redhat.com>
9434
9435         Add first preprocessor macro-expansion files.
9436         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9437         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9438         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9439         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9440         (COMMON_OBS): Add macrotab.o, macroexp.o.
9441         (macroexp.o, macrotab.o): New rules.
9442
9443 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9444
9445         * config/m88k/tm-m88k.h: Update copyright.
9446         (m88k_target_write_pc): Declare
9447         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9448         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9449         (SHIFT_INST_REGS): Update definition.
9450         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9451         using old definition of TARGET_WRITE_PC.
9452         * regcache.c (generic_target_write_pc): Delete code handling
9453         NNPC_REGNUM.
9454         * gdbarch.sh (NNPC_REGNUM): Delete.
9455         * gdbarch.h, gdbarch.c: Regenerate.
9456
9457 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9458
9459         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9460         builtin reg number.
9461
9462 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9463
9464         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9465         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9466         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9467         access macros.
9468         * c-typeprint.c (cp_type_print_method_args): Likewise.
9469         (c_type_print_args): Likewise.
9470         * d10v-tdep.c (d10v_push_arguments): Likewise.
9471         (d10v_extract_return_value): Likewise.
9472         * expprint.c (print_subexp): Likewise.
9473         * gdbtypes.c (lookup_primitive_typename): Likewise.
9474         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9475         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9476         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9477         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9478         (TYPE_VECTOR): Likewise.
9479         * hpread.c (hpread_read_struct_type)
9480         (fix_static_member_physnames, fixup_class_method_type)
9481         (hpread_type_lookup): Likewise.
9482         * mdebugread.c (parse_symbol, parse_type): Likewise.
9483         * p-lang.c (is_pascal_string_type): Likewise.
9484         * valops.c (hand_function_call): Likewise.
9485         * x86-64-tdep.c (classify_argument): Likewise.
9486
9487         * hpread.c (hpread_read_function_type)
9488         (hpread_read_doc_function_type): Call replace_type.
9489         * dstread.c (create_new_type): Delete.
9490         (decode_dst_structure, process_dst_function): Call alloc_type.
9491         Use type access macros.
9492
9493 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9494
9495         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9496         the're not supported by the current architecture.
9497         (i387_fill_fxsave): Likewise.
9498
9499 2002-05-12  Fred Fish  <fnf@redhat.com>
9500
9501         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9502         sect_index_xxx members to index the first slot in section_offsets
9503         if all of the section_offsets are zero.
9504
9505 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9506
9507         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9508         checked in with last change.
9509
9510 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9511
9512         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9513         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9514         config.sub.
9515
9516 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9517
9518         * Makefile.in: Update dependencies.
9519
9520 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9521
9522         * language.c (local_hex_string_custom): Simplify.  Do not depend
9523         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9524
9525         * memattr.c (mem_info_command): Replace calls to
9526         longest_local_hex_string and longest_local_hex_string_custom.
9527         * buildsym.c (make_blockvector): Ditto.
9528         * solib.c (info_sharedlibrary_command): Ditto.
9529         * tracepoint.c (tracepoints_info): Ditto.
9530         * symtab.c (print_msymbol_info): Ditto.
9531
9532         * language.c (local_hex_string): Delete.
9533         (local_hex_string_custom): Delete.
9534         (longest_local_hex_string): Rename to local_hex_string.
9535         (longest_local_hex_string_custom): Rename to
9536         local_hex_string_custom.
9537         * language.h (local_hex_string): Change parameter type to LONGEST.
9538         (local_hex_string_custom): Ditto.
9539         (longest_local_hex_string): Delete declaration.
9540         (longest_local_hex_string_custom): Ditto.
9541
9542         * solib.c: Update copyright.
9543         * memattr.c: Update copyright.
9544         
9545 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9546
9547         * arch-utils.h (legacy_register_to_value): Declare.
9548         (legacy_value_to_register): Declare.
9549         (legacy_convert_register_p): Declare.
9550         * arch-utils.c (legacy_register_to_value): New function.
9551         (legacy_value_to_register): New function.
9552         (legacy_convert_register_p): New function.
9553
9554         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9555         (VALUE_TO_REGISTER): Define.
9556         (CONVERT_REGISTER_P): Define.
9557         * gdbarch.h, gdbarch.c: Regenerate.
9558
9559         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9560         VALUE_TO_REGISTER.
9561         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9562         CONVERT_REGISTER_P.
9563
9564 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9565             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9566
9567         * Makefile.in: Update dependencies for valops.c.
9568         * valops.c: Include "gdb_assert.h".
9569         (typecmp): Skip THIS parameter to methods.
9570         (find_method_list): Remove static_memfuncp argument,
9571         update callers.  Check for stub methods.
9572         (find_value_oload_method_list): Don't set *static_memfuncp.
9573         (find_overload_match): Don't check for stub methods.  Assert
9574         that methods are not stubbed.  Handle static methods.
9575         (value_find_oload_method_list): Remove static_memfuncp argument.
9576         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9577         to the argument list for static stub methods.
9578         * value.h (value_find_oload_method_list): Update prototype.
9579
9580 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9581
9582         * arch-utils.h (generic_register_size): Declare.
9583         (generic_register_raw_size, generic_register_virtual_size): Delete
9584         declarations.
9585         * arch-utils.c (generic_register_raw_size): Delete.
9586         (generic_register_size): New function.
9587         (generic_register_virtual_size): Delete.
9588
9589         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9590         default generic_register_size.
9591         * gdbarch.h, gdbarch.c: Re-generate.
9592         
9593         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9594         register_virtual_size.
9595         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9596         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9597
9598 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9599
9600         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9601         * gdbarch.h, gdbarch.c: Regenerate.
9602         * gnu-v3-abi.c: Update copyright.
9603         (vtable_address_point_offset): Update.
9604         (gnuv3_rtti_type): Update.
9605         (gnuv3_baseclass_offset): Update.
9606         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9607         (init_fetch_link_map_offsets): Update.
9608         * remote.c (get_remote_state): Update.
9609         
9610 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9611
9612         * TODO: Remove value_headof/value_from_vtable_info comment.
9613         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9614         * values.c (value_headof, value_from_vtable_info): Delete.
9615         * value.h (value_from_vtable_info): Delete prototype.
9616
9617 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9618
9619         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9620         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9621         $(gdb_regex_h).
9622         (gdb_assert_h): Define.
9623         (gdb_wait_h): Define.
9624         (gdb_regex_h): Define.
9625
9626 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9627
9628         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9629         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9630
9631 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9632
9633         * nbsd-tdep.c: Fix comment.
9634
9635 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9636
9637         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9638         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9639         (nbsd-tdep.o): New dependency list.
9640         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9641         nbsd-tdep.h.
9642         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9643         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9644         * nbsd-tdep.c: New file.
9645         * nbsd-tdep.h: New file.
9646         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9647         nbsd-tdep.h.
9648         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9649         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9650         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9651         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9652
9653 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9654
9655         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9656         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9657         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9658         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9659         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9660         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9661
9662 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9663
9664         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9665         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9666         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9667         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9668         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9669         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9670         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9671
9672 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9673
9674         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9675         fetch_elfcore_registers to...
9676         * i386nbsd-tdep.c: ...here.
9677         (i386nbsd_use_struct_convention): Rename to...
9678         (i386nbsd_aout_use_struct_convention): ...this.
9679         (i386nbsd_supply_reg): New function.
9680         (i386nbsd_fill_reg): New function.
9681         (fetch_core_registers): Use i386nbsd_supply_reg.
9682         (fetch_elfcore_registers): Likewise.
9683         (_initialize_i386nbsd_tdep): New function.
9684         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9685         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9686         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9687         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9688         (i386nbsd_aout_use_struct_convention): ...this.
9689
9690 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9691
9692         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9693         (store_inferior_registers): Use shnbsd_fill_reg.
9694         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9695         sh_nbsd_supply_register): Collapse into...
9696         (shnbsd_supply_reg): ...this.
9697         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9698         (shnbsd_fill_reg): ...this.
9699         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9700         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9701         (fetch_core_registers): Use shnbsd_supply_reg.
9702         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9703         (sh_nbsd_core_fns): Rename to...
9704         (shnbsd_core_fns): ...this.
9705         (sh_nbsd_elfcore_fns): Rename to...
9706         (shnbsd_elfcore_fns): ...this.
9707         (sh_nbsd_init_abi): Rename to...
9708         (shnbsd_init_abi): ...this.
9709         (_initialize_sh_nbsd_tdep): Rename to...
9710         (_initialize_shnbsd_tdep): ...this.
9711         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9712         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9713         sh_nbsd_fill_register): Remove prototypes.
9714         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9715
9716 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9717
9718         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9719         (i387-nat.o): Delete dependency list.
9720         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9721         (x86-64-linux-nat.o): Likewise.
9722         * i387-nat.c: Delete file, moving contents to...
9723         * i387-tdep.c: ...here.
9724         * i387-nat.h: Rename...
9725         * i387-tdep.h: ...to this.
9726         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9727         * i386-linux-nat.c: Likewise.
9728         * i386bsd-nat.c: Likewise.
9729         * i386gnu-nat.c: Likewise.
9730         * i386nbsd-nat.c: Likewise.
9731         * i386v4-nat.c: Likewise.
9732         * x86-64-linux-nat.c: Likewise.
9733         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9734         * config/i386/go32.mh (NATDEPFILES): Likewise.
9735         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9736         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9737         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9738         * config/i386/linux.mh (NATDEPFILES): Likewise.
9739         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9740         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9741         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9742         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9743
9744 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9745
9746         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9747         (alphanbsd-nat.o): Remove dependency list.
9748         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9749         * alphanbsd-nat.c: Delete.  Contents moved to...
9750         * alphanbsd-tdep.c: ...here.
9751         (_initialize_alphanbsd_tdep): Register core functions.
9752         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9753
9754 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9755
9756         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9757         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9758         (alphanbsd-nat.o): Likewise.
9759         (alphabsd-tdep.o): New dependency list.
9760         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9761         (fill_gregset): Use alphabsd_fill_reg.
9762         (supply_fpregset): Use alphabsd_supply_fpreg.
9763         (fill_fpregset): Use alphabsd_fill_fpreg.
9764         (fetch_inferior_registers): Use struct reg and struct fpreg
9765         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9766         and alphabsd_supply_fpreg.
9767         (store_inferior_registers): Use struct reg and struct fpreg
9768         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9769         and alphabsd_fill_fpreg.
9770         * alphabsd-tdep.c: New file.
9771         * alphabsd-tdep.h: New file.
9772         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9773         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9774         alphabsd_supply_fpreg.
9775         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9776         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9777
9778 2002-05-11  Eric Christopher  <echristo@redhat.com>
9779
9780         * mips-tdep.c (mips_double_register_type): Fix thinko.
9781         (mips_single_register_type): Ditto.
9782         * MAINTAINERS: Add self.
9783
9784 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9785
9786         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9787         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9788         right thing on architectures with different endianness and/or
9789         integer sizes.
9790
9791 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9792
9793         From Christian Limpach <chris@Pin.LU>
9794         * configure.in: Change sed expression which comments out
9795         NATDEPFILES to also comment out continuation lines.
9796         * configure: Regenerate.
9797
9798 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9799
9800         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9801         big patch.
9802
9803 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9804
9805         * sh-tdep.c: Include correct file.
9806
9807 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9808
9809         New support for sh64-elf (sh5) target.
9810
9811         * configure.tgt: For sh64-elf target, default to sh-elf.
9812
9813         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9814         (struct gdbarch_tdep): Add new fields for new registers and ABI
9815         info.
9816
9817         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9818         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9819         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9820         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9821         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9822         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9823         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9824         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9825         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9826         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9827         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9828         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9829         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9830         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9831         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9832         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9833         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9834         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9835         sign_extend, sh64_nofp_frame_init_saved_regs,
9836         sh64_init_extra_frame_info, sh64_get_saved_register,
9837         sh64_extract_struct_value_address, sh64_pop_frame,
9838         sh64_push_arguments, sh64_extract_return_value,
9839         sh64_store_return_value, sh64_show_media_regs,
9840         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9841         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9842         sh_sh64_register_virtual_type,
9843         sh_sh64_register_convert_to_virtual,
9844         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9845         sh64_register_read, sh64_pseudo_register_write,
9846         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9847         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9848         sh64_do_pseudo_register, sh_compact_do_registers_info,
9849         sh64_do_registers_info, sh_gdbarch_init): New functions.
9850
9851 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9852
9853         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9854
9855 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
9856
9857         * linespec.c (decode_line_1): Check for a double quote after
9858         a filename correctly.
9859
9860 2002-05-10  Jim Blandy  <jimb@redhat.com>
9861
9862         Properly track the size of the current objfile's .debug_line section.
9863         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9864         (DWARF_LINE_SIZE): New macro.
9865         (dwarf2_build_psymtabs_hard): Record the line section's size in
9866         the partial symbol table.
9867         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9868         symbol table.
9869
9870 2002-05-10  Petr Sorfa  <petrs@caldera.com>
9871
9872         * ia64-tdep.c: Handle breakpoints on L instruction type
9873         in MLX instruction bundle by moving the breakpoint to
9874         the third slot (X instruction type) as L holds only data.
9875
9876 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
9877
9878         * dbxread.c (discarding_local_symbols_complaint): New complaint.
9879         (process_one_symbol): Complain about discarding local symbols
9880         due to a misplaced N_LBRAC entry.
9881
9882 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
9883
9884         From Daniel Berlin <dan@cgsoftware.com>
9885         * linespec.c (find_toplevel_char): '<' and '>' also increase and
9886         decrease the depth we are at, in the case of templates.
9887
9888 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9889
9890         * mips-tdep.c (mips_float_register_type): New function.
9891         (mips_double_register_type): New function.
9892         (mips_print_register): Use them.
9893         (do_fp_register_row): Likewise.
9894
9895 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9896
9897         * signals/signals.c (signals): Remove conditional compilation around
9898         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
9899         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9900
9901 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9902
9903         * remote-rdp.c (remote_rdp_can_run): Remove.
9904
9905 2002-05-09  Tom Tromey  <tromey@redhat.com>
9906
9907         * jv-valprint.c (java_val_print): Handle `char' as a special case
9908         of TYPE_CODE_INT.
9909
9910 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9911
9912         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9913         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9914         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9915         str r(0123),[sp,#nn].
9916         (arm_skip_prologue): Ditto.  Also make disassembly
9917         order-independent by placing it in a loop.
9918
9919 2002-05-06  Michael Snyder  <msnyder@redhat.com>
9920
9921         * stabsread.c (read_type): Add recognition for new attribute:
9922         "@V;" means that an array type is actually a vector.
9923         This is analogous to the vector flag that's been added to dwarf2.
9924
9925 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
9926
9927         * i386-tdep.h (i386_abi): New enum.
9928         (struct gdbarch_tdep): Replace os_ident member with abi.
9929         (i386_gdbarch_register_os_abi): New prototype.
9930         * i386-tdep.c (i386_abi_names): New array.
9931         (process_note_abi_tag_sections): Removed.
9932         (process_note_sections): New function.
9933         (i386_elf_abi_from_note, i386_elf_abi): New functions.
9934         (struct i386_abi_handler): New struct.
9935         (i386_abi_handler_list): New variable.
9936         (i386_gdbarch_register_os_abi): New function.
9937         (i386_gdbarch_init): Adapt for the changes given above.
9938
9939 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
9940
9941         * gregset.h: Say "GNU/Linux".
9942
9943 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
9944
9945         * gdbtypes.c : Add new builtin type for 64 bit vectors.
9946         (build_gdbtypes): Build builtin_type_v2_float.
9947         (_initialize_gdbtypes): Register new builtin type.
9948
9949 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
9950
9951         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9952         (clear_gdbarch_swap): New function.
9953         (initialize_non_multiarch): Call.
9954         (gdbarch_update_p): Before calling init(), swap out and clear the
9955         existing architecture.
9956         * gdbarch.c: Regenerate.
9957
9958 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9959
9960         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9961         alphanbsd-tdep.c.
9962
9963 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9964
9965         * sh-nbsd-nat.c: Rename to...
9966         * shnbsd-nat.c: ...this.
9967         * sh-nbsd-tdep.c: Rename to...
9968         * shnbsd-tdep.c: ...this.
9969         * sh-nbsd-tdep.h: Rename to...
9970         * shnbsd-tdep.h: ...this.
9971         * config/sh/nbsd.mh: Use shnbsd-nat.o.
9972         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9973
9974 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
9975
9976         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9977         concatenation for command help messages.
9978
9979 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9980
9981         * NEWS: Note new sh*-*-netbsdelf* configuration.
9982         * configure.host: Set gdb_host_cpu to sh for all sh*.
9983         (sh*-*-netbsdelf*): New host.
9984         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9985         (sh*-*-netbsdelf*): New target.
9986         * sh-nbsd-nat.c: New file.
9987         * sh-nbsd-tdep.c: New file.
9988         * sh-nbsd-tdep.h: New file.
9989         * config/sh/nbsd.mh: New file.
9990         * config/sh/nbsd.mt: New file.
9991         * config/sh/nm-nbsd.h: New file.
9992         * config/sh/tm-nbsd.h: New file.
9993
9994 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9995
9996         * sh-tdep.c (sh_osabi_names): Declare.
9997         (process_note_abi_tag_sections): New function.
9998         (get_elfosabi): Ditto.
9999         (sh_gdbarch_register_os_abi): Ditto.
10000         (sh_dump_tdep): Ditto.
10001         _initialize_sh_tdep): Use gdbarch_register to register
10002         sh_gdbarch_init and sh_dump_tdep.
10003         * config/sh/tm-sh.h (sh_osabi): Declare.
10004         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10005
10006 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10007
10008         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10009         (thumb_scan_prologue): Ditto.
10010         (arm_find_callers_reg): Ditto.
10011         (arm_frame_chain): Ditto.
10012         (arm_init_extra_frame_info): Ditto.
10013         (arm_frame_saved_pc): Ditto.
10014         (arm_pop_frame): Ditto.
10015         (arm_push_return_address): New function.
10016         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10017         call_dummy_location, call_dummy_breakpoint_offset_p,
10018         call_dummy_breakpoint_offset, call_dummy_p,
10019         call_dummy_stack_adjust_p, call_dummy_words,
10020         sizeof_call_dummy_words, call_dummy_start_offset,
10021         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10022         call_dummy_address, push_return_address and push_dummy_frame for
10023         generic dummy frames.
10024
10025 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10026
10027         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10028         size computation for alloca.
10029         (sh_fp_frame_init_saved_regs): Likewise.
10030
10031 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10032
10033         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10034         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10035         * arm-tdep.c (arm_store_return_value): Use them.
10036         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10037         * remote-rdp.c (remote_rdp_fetch_register): Use
10038         ARM_MAX_REGISTER_RAW_SIZE.
10039         (remote_rdp_store_register): Likewise.
10040
10041 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10042
10043         * dwarf2cfi.c: Code cleanup, removed unused variables,
10044         added default labels to switch {} statements.
10045         * x86-64-tdep.c: Ditto.
10046         * x86-64-linux-nat.c: Ditto.
10047
10048 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10049
10050         * solib.h: Protect against multiple inclusion.
10051
10052 2002-05-06  Jim Blandy  <jimb@redhat.com>
10053
10054         Add first preprocessor macro-expansion files.
10055         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10056         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10057         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10058         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10059         (COMMON_OBS): Add macrotab.o, macroexp.o.
10060         (macroexp.o, macrotab.o): New rules.
10061
10062         Separate the job of reading the line number info statement program
10063         header (...expialidocious) out into its own function.
10064         * dwarf2read.c (struct line_head, struct filenames, struct
10065         directories): Replace with...
10066         (struct line_header): New structure, containing the full
10067         contents of the statement program header, including the
10068         include directory and file name tables.
10069         (read_file_scope): If we have line number info, instead of just
10070         calling dwarf_decode_lines to do all the work, call
10071         dwarf_decode_line_header first to get a `struct line_header'
10072         containing the data in the statement program header, and then
10073         pass that to dwarf_decode_lines, which will pick up where that
10074         left off.  Be sure to clean up the `struct line_header' object.
10075         (dwarf_decode_line_header, free_line_header, add_include_dir,
10076         add_file_name): New functions.
10077         (dwarf_decode_lines): Move all the code to read the statement
10078         program header into dwarf_decode_line_header.  Take the line
10079         header it built as the first argument, instead of the offset to
10080         the compilation unit's line number info.  Use the new `struct
10081         line_header' type instead of the old structures.  No need to do
10082         cleanups here now, since we don't allocate anything.
10083         (dwarf2_statement_list_fits_in_line_number_section,
10084         dwarf2_line_header_too_long): New complaints.
10085
10086 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10087
10088         * gdbtypes.c (init_vector_type): New function.
10089         (build_builtin_type_vec128): Simplify the representation of SIMD
10090         registers.
10091         (build_gdbtypes): Initialize new builtin vector types.
10092         (_initialize_gdbtypes): Register new vector types with gdbarch.
10093         (builtin_type_v4_float, builtin_type_v4_int32,
10094         builtin_type_v8_int16, builtin_type_v16_int8,
10095         builtin_type_v2_int32, builtin_type_v4_int16,
10096         builtin_type_v8_int8): New (renamed) SIMD types.
10097
10098 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10099
10100         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10101         (i387_fill_fxsave): Likewise.
10102
10103 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10104
10105         * alpha-tdep.c (alpha_extract_return_value): Don't use
10106         non-constant array size in prototype.
10107
10108 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10109
10110         From Brian Taylor <briant at model dot com>:
10111         * ui-out.c (ui_out_field_core_addr): Use the function
10112         longest_local_hex_string_custom'to format addresses > 32 bits
10113         wide.
10114
10115         * ui-out.c (ui_out_field_core_addr): Update comment.
10116
10117 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10118
10119         * stack.c (select_and_print_frame): Make static.  Delete the
10120         parameter `level'.
10121         (func_command): Update call.
10122         (select_frame_command): Delete code computing the frame level.
10123         * frame.h (select_and_print_frame): Delete declaration.
10124
10125 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10126
10127         * sparc-tdep.c (sparc_get_saved_register): Comment why
10128         get_prev_frame call is safe.
10129
10130 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10131
10132         * frame.h (select_frame): Delete level parameter.
10133         * stack.c (select_frame): Update.  Use frame_relative_level to
10134         obtain the frame's level.
10135         (select_and_print_frame): Update call.
10136         (select_frame_command): Ditto.
10137         (up_silently_base): Ditto.
10138         (down_silently_base): Ditto.
10139         * ocd.c (ocd_start_remote): Ditto.
10140         * remote-rdp.c (remote_rdp_open): Ditto.
10141         * remote-mips.c (mips_initialize): Ditto.
10142         (common_open): Ditto.
10143         * remote-e7000.c (e7000_start_remote): Ditto.
10144         * m3-nat.c (select_thread): Ditto.
10145         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10146         (child_get_current_exception_event): Ditto.
10147         * varobj.c (varobj_create): Ditto.
10148         (varobj_update): Ditto.
10149         (c_value_of_root): Ditto.
10150         * tracepoint.c (finish_tfind_command): Ditto.
10151         * corelow.c (core_open): Ditto.
10152         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10153         * thread.c (info_threads_command): Ditto.
10154         (switch_to_thread): Ditto.
10155         * infrun.c (normal_stop): Ditto.
10156         (restore_selected_frame): Ditto.
10157         (restore_inferior_status): Ditto.
10158         * breakpoint.c (insert_breakpoints): Ditto.
10159         (watchpoint_check): Ditto.
10160         (bpstat_stop_status): Ditto.
10161         (do_enable_breakpoint): Ditto.
10162         * blockframe.c (flush_cached_frames): Ditto.
10163         (reinit_frame_cache): Ditto.
10164
10165 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10166
10167         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10168         maintainer.
10169
10170 2002-05-04  Jim Blandy  <jimb@redhat.com>
10171
10172         * gdbtypes.c (replace_type): Doc fix.
10173
10174 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10175
10176         * valprint.c (strcat_longest): Delete commented out function.
10177         Update copyright.
10178
10179 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10180
10181         * MAINTAINERS: Mark a29k as deleted.
10182         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10183         Move new configurations to the top.
10184         * configure.tgt: Remove a29k.
10185         * config/a29k/tm-vx29k.h: Delete.
10186         * config/a29k/vx29k.mt: Delete.
10187         * config/a29k/tm-a29k.h: Delete.
10188         * config/a29k/a29k-udi.mt: Delete.
10189         * config/a29k/a29k.mt: Delete.
10190         * a29k-tdep.c: Delete.
10191         * remote-udi.c: Delete.
10192         * remote-mm.c: Delete.
10193         * remote-eb.c: Delete.
10194         * remote-adapt.c: Delete.
10195         * Makefile.in: Remove obsolete code.
10196         * config/s390/s390x.mt: Ditto.
10197         * config/s390/s390.mt: Ditto.
10198         * config/sparc/sparclynx.mh: Ditto.
10199         * config/sparc/linux.mh: Ditto.
10200         * config/pa/hppaosf.mh: Ditto.
10201         * config/pa/hppabsd.mh: Ditto.
10202         * config/ns32k/nbsd.mt: Ditto.
10203         * config/mips/vr5000.mt: Ditto.
10204         * config/m68k/sun3os4.mh: Ditto.
10205         * config/m68k/nbsd.mt: Ditto.
10206         * config/m68k/m68klynx.mh: Ditto.
10207         * config/m32r/m32r.mt: Ditto.
10208         * config/i386/x86-64linux.mt: Ditto.
10209         * config/i386/nbsdelf.mt: Ditto.
10210         * config/i386/nbsd.mt: Ditto.
10211         * config/i386/i386lynx.mh: Ditto.
10212
10213 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10214
10215         * target.c (debug_print_register): New function.  Handle oversize
10216         registers.
10217         (debug_to_fetch_registers): Call.
10218         (debug_to_store_registers): Call.
10219
10220 2002-05-03  Jim Blandy  <jimb@redhat.com>
10221
10222         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10223         (read_type): Doc fix.
10224         * gdbtypes.c (replace_type): Doc fix.
10225
10226         * stabsread.c (multiply_defined_struct): New complaint.
10227         (read_struct_type): If the type we were passed isn't empty, or
10228         incomplete, don't read the new struct type into it; complain,
10229         and return the original type unchanged.  Take a new `type_code'
10230         argument, which is the type code for the new type.
10231         (read_type): Rather than storing the type's type code here, pass
10232         it as an argument to read_struct_type, and let that take care of
10233         storing it.  That way, we don't overwrite the original type code,
10234         so read_struct_type can use it to decide whether we're overwriting
10235         something we shouldn't.
10236         (complain_about_struct_wipeout): New function.
10237
10238 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10239
10240         * gdbarch.sh: Assert that gdbarch is non-NULL.
10241         * gdbarch.c: Regenerate.
10242
10243 2002-05-03  Jason Merrill  <jason@redhat.com>
10244
10245         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10246         and return NULL.
10247
10248 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10249
10250         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10251         (x86_64_dwarf2gdb_regno_map_length),
10252         (x86_64_dwarf2_reg_to_regnum): Added.
10253         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10254         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10255         (_initialize_x86_64_tdep): Synced with the change above.
10256         (x86_64_skip_prologue): Reformulated message.
10257
10258 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10259
10260         * f-exp.y: Also use new prev_lexptr variable
10261         to improve error reporting. Based on Michael Snyder
10262         2002-04-24 dated patch to c-exp.y.
10263         * jv-exp.y: Likewise.
10264         * m2-exp.y: Likewise.
10265
10266 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10267
10268         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10269         we are dealing with vectors.
10270
10271 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10272
10273         * config/m68k/tm-nbsd.h: Obvious fix,
10274         correct machine name.
10275
10276 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10277
10278         * p-typeprint.c (pascal_type_print_base): Add support
10279         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10280
10281 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10282
10283         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10284         for fondamental pascal 'char' type.
10285
10286 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10287
10288         * p-lang.h (is_pascal_string_type): Declaration changed,
10289         new sixth argument of type char ** added.
10290         * p-lang.c (is_pascal_string_type): Implementation
10291         changed. Args length_pos, length_size, string_pos, char_size
10292         can now be NULL. New argument arrayname set to the field
10293         name of the char array. Return value set to char array
10294         field index plus one.
10295         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10296         is_pascal_string_type function.
10297
10298 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10299
10300         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10301         <cagney@redhat.com> change.
10302         * gdbarch.c: Regenerate.
10303
10304 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10305
10306         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10307         before probing for a new one.  Detect errorenous gdbarch_init
10308         functions.
10309         * gdbarch.c: Regenerate.
10310
10311 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10312
10313         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10314         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10315         * config/v850/tm-v850.h: Ditto.  Update copyright.
10316
10317 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10318
10319         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10320         current_gdbarch.
10321
10322 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10323
10324         * arm-tdep.c: Whitespace clean-ups.
10325         (arm_skip_prologue): Fix thinko; two lines
10326         should have been removed as part of 4/24 change.
10327
10328 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10329
10330         * rs6000-tdep.c: Added comment describing how fpscr register
10331         numbers were chosen.
10332
10333 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10334
10335         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10336
10337 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10338
10339         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10340         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10341         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10342
10343 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10344
10345         From Louis Hamilton <hamilton@redhat.com>:
10346         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10347         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10348         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10349         not bfd-private xcoff data, to determine wordsize.
10350         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10351
10352 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10353
10354         GDB 5.2 released from 5.2 branch.
10355
10356 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10357
10358         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10359         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10360         (x86_64_register_info_table): Added comments with register numbers.
10361
10362 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10363
10364         * rs6000-tdep.c (rs6000_extract_return_value,
10365         rs6000_store_return_value): Handle returning vectors.
10366         (rs6000_gdbarch_init): Use
10367         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10368         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10369         New function.
10370         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10371         vectors.
10372         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10373         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10374
10375 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10376
10377         * hpread.c (hpread_psymtab_to_symtab_1,
10378         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10379         with fprintf_unfiltered (gdb_stderr,...).
10380
10381 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10382
10383         * remote-array.c (printf_monitor, write_monitor,
10384         array_insert_breakpoint, array_remove_breakpoint ):
10385         Replace fprintf (stderr,...
10386         with fprintf_unfiltered (gdb_stderr,....
10387         * remote-es.c: Likewise.
10388         * remote-os9k.c: Likewise.
10389         * remote-st.c: Likewise.
10390
10391 2002-04-28  Andreas Schwab  <schwab@suse.de>
10392
10393         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10394         linux-proc.o and gcore.o.
10395
10396 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10397
10398         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10399         code without frame pointers.
10400
10401 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10402
10403         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10404         ON_STACK is needed.
10405
10406 2002-04-26  Ben Elliston  <bje@redhat.com>
10407
10408         * target.c (do_xfer_memory): Correct reference to the new option
10409         "trust-readonly-sections".
10410
10411 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10412
10413         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10414         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10415         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10416         vectors.
10417         (read_array_type): Record the fact that this array type is really a
10418         vector (i.e. are passed in by value).
10419
10420 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10421
10422         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10423         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10424         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10425         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10426         * alpha-linux-tdep.c: Include frame.h.
10427         (alpha_linux_sigcontext_addr): New function.
10428         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10429         alpha_linux_sigcontext_addr.
10430         * alpha-osf1-tdep.c: Include gdbcore.h.
10431         (alpha_osf1_sigcontext_addr): New function.
10432         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10433         alpha_osf1_sigcontext_addr.
10434         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10435         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10436
10437 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10438
10439         * stack.c (selected_frame_level):
10440         (select_frame): Do not set selected_frame_level.
10441         * frame.h (selected_frame_level): Delete declaration.
10442
10443 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10444
10445         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10446         convert_from_func_ptr-addr when AIX / PowerOpen.
10447
10448 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10449
10450         * valops.c (hand_function_call): Call
10451         generic_save_call_dummy_addr.
10452         * frame.h (generic_save_call_dummy_addr): Declare.
10453         * blockframe.c (struct dummy_frame): Add fields call_lo and
10454         call_hi.
10455         (generic_find_dummy_frame): Check for PC in range call_lo to
10456         call_hi instead of entry_point_address.
10457         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10458         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10459         (generic_save_call_dummy_addr): New function.
10460
10461 2002-04-24  David S. Miller  <davem@redhat.com>
10462
10463         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10464         sparc_skip_prologue.
10465         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10466         information to find prologue when possible.
10467         (sparc_prologue_frameless_p): Call examine_prologue directly.
10468         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10469         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10470         second argument.
10471         (SKIP_PROLOGUE): Likewise.
10472
10473 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10474
10475         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10476         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10477         indicate that the condition it was testing is always true.
10478         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10479         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10480         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10481
10482 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10483
10484         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10485         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10486         tdep->jb_pc and tdep->jb_elt_size.
10487         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10488         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10489         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10490         * alpha-nat.c (get_longjmp_target): Remove.
10491         (JB_ELEMENT_SIZE): Ditto.
10492         (JB_PC): Ditto.
10493         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10494         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10495         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10496         to alpha_get_longjmp_target.
10497         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10498         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10499         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10500
10501 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10502
10503         * README: Update to GDB 5.2.
10504
10505 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10506
10507         * gdbarch.sh (LC_ALL): Set to `c'.
10508
10509 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10510
10511         * avr-tdep.c: Ran through gdb_indent.sh.
10512
10513 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10514
10515         * MAINTAINERS: Add myself as AVR maintainer.
10516         * NEWS: Note new target avr.
10517
10518 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10519
10520         * Makefile.in: Add support for AVR target.
10521         * configure.tgt: Add support for AVR target.
10522         * avr-tdep.c: New file
10523         * config/avr/avr.mt: New file.
10524
10525 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10526
10527         * MAINTAINERS: Add myself to write-after-approval.
10528
10529 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10530
10531         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10532         with fprintf_unfiltered (gdb_stderr,....
10533
10534 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10535
10536         Fix PR gdb/508.
10537         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10538
10539 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10540
10541         * p-exp.y: Also use new prev_lexptr variable
10542         to improve error reporting. Based on Michael Snyder
10543         2002-04-24 dated patch to c-exp.y.
10544
10545 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10546
10547         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10548         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10549         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10550         to 0.
10551         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10552         and struct value.
10553         (FUNCTION_START_OFFSET): Remove.
10554         (BREAKPOINT): Ditto.
10555
10556 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10557
10558         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10559         * NEWS: Ditto.
10560
10561 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10562
10563         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10564         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10565         alpha_linux_pc_in_sigtramp.
10566         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10567         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10568         alpha_osf1_pc_in_sigtramp.
10569         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10570         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10571         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10572         alphafbsd_pc_in_sigtramp.
10573         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10574         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10575         alphanbsd_pc_in_sigtramp.
10576         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10577         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10578
10579 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10580
10581         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10582
10583 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10584
10585         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10586         alphanbsd-tdep.c.
10587         (alphanbsd-nat.o): New dependency list.
10588         (alphanbsd-tdep.o): Ditto.
10589         * NEWS: Note new native NetBSD/alpha configuration.
10590         * alphanbsd-nat.c: New file.
10591         * alphanbsd-tdep.c: Ditto.
10592         * configure.host (alpha*-*-netbsd*): New host.
10593         * configure.tgt (alpha*-*-netbsd*): New target.
10594         * config/alpha/nbsd.mh: New file.
10595         * config/alpha/nbsd.mt: Ditto.
10596         * config/alpha/nm-nbsd.h: Ditto.
10597         * config/alpha/tm-nbsd.h: Ditto.
10598
10599 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10600
10601         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10602         (alpha-osf1-tdep.o): New dependency list.
10603         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10604         and skip_sigtramp_frame members.
10605         * alpha-linux-tdep.c: Include gdbcore.h.
10606         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10607         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10608         * alpha-osf1-tdep.c: New file.
10609         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10610         alpha-osf1-dep.c.
10611         (alpha_frame_past_sigtramp_frame): New function.
10612         (alpha_dynamic_sigtramp_offset): Ditto.
10613         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10614         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10615         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10616         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10617         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10618         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10619         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10620         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10621         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10622         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10623         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10624         to find_solib_trampoline_target.
10625         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10626         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10627         (SKIP_TRAMPOLINE_CODE): Remove.
10628         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10629         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10630         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10631         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10632         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10633         (PROC_SIGTRAMP_MAGIC): Ditto.
10634         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10635         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10636         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10637         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10638         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10639
10640 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10641
10642         * NEWS: Note that Alpha targets are now multi-arch.
10643
10644 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10645
10646         * parser-defs.h (prev_lexptr): New external variable.
10647         * parse.c (parse_exp_1): Set prev_lexptr to null before
10648         calling the language-specific parser.
10649         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10650         (yyerror): Use prev_lexptr in error reporting.
10651
10652 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10653
10654         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10655         * gregset.h: If FILL_FPXREGSET is defined, provide
10656         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10657         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10658         is defined, call fill_fpxregset.
10659
10660 2002-04-24  Roland McGrath  <roland@frob.com>
10661
10662         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10663         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10664         (supply_gregset, supply_fpregset): New functions.
10665
10666         * gnu-nat.c (gnu_find_memory_regions): New function.
10667         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10668         (gnu_xfer_memory): Add a cast.
10669
10670 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10671
10672         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10673         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10674         of argument regs ("str r(0123), [r11, #-nn"]).
10675         (arm_skip_prologue): Better handling for frameless functions.
10676         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10677         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10678
10679 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10680
10681         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10682         NUM_PSEUDO_REGS can be used.
10683
10684 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10685
10686         * arch-utils.h: Update copyright.
10687
10688         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10689         * gdbarch.h, gdbarch.c: Re-generate.
10690
10691         * inferior.h (IN_SIGTRAMP): Delete definition.
10692         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10693         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10694
10695         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10696         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10697         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10698         (find_proc_framesize): Ditto.
10699         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10700         (alpha_init_extra_frame_info): Ditto.
10701         * infrun.c (handle_inferior_event): Ditto.
10702         (handle_inferior_event): Ditto.
10703         (check_sigtramp2): Ditto.
10704         * blockframe.c (create_new_frame): Ditto.
10705         (get_prev_frame): Ditto.
10706         * ppc-linux-tdep.c: Update comments.
10707         * i386-linux-tdep.c: Update comments.
10708         * breakpoint.c (bpstat_what): Update comment.
10709
10710 2002-04-24  David S. Miller  <davem@redhat.com>
10711
10712         * i960-tdep.c (register_in_window_p): New function.
10713         (i960_find_saved_register): Use it instead of
10714         REGISTER_IN_WINDOW_P.
10715         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10716
10717         * symtab.h (find_stab_function_addr): Kill extern.
10718         * minsyms.c (find_stab_function_addr): Remove from here...
10719         * dbxread.c: ... to here, and mark it static.
10720
10721 2002-04-20  David S. Miller  <davem@redhat.com>
10722
10723         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10724         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10725
10726 2002-04-21  David S. Miller  <davem@redhat.com>
10727
10728         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10729         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10730         (vx_write_register): Likewise.
10731
10732 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10733
10734         * source.c (is_regular_file): New function.
10735         (openp): Check wether file to open is a regular file
10736         to avoid opening directories.
10737
10738 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10739
10740         * findvar.c (extract_signed_integer): Cast printf argument
10741         to suppress format warning.
10742         (extract_unsigned_integer): Likewise.
10743         * infcmd.c (registers_info): Likewise.
10744         * top.c (get_prompt_1): Likewise.
10745         * valops.c (value_assign): Likewise.
10746         * valprint.c (print_decimal): Likewise.
10747
10748 2002-04-22  H.J. Lu  (hjl@gnu.org)
10749
10750         * c-exp.y (typebase): Support
10751
10752         [long|long long|short] [signed|unsigned] [int|]
10753
10754         and
10755
10756         signed [long|long long|short] int
10757
10758 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10759
10760         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10761         and vax-tdep.h.
10762         * vax-tdep.h: New file.
10763         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10764         Make several routines static.
10765         (vax_get_saved_register): New function.
10766         (vax_gdbarch_init): New function.
10767         (_initialize_vax_tdep): Register vax_gdbarch_init.
10768         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10769         Remove macros now under the control of gdbarch.
10770
10771 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10772
10773         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10774         Some whitespace and coding standards tweaks.
10775
10776 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10777
10778         * vax-tdep.c: Include regcache.h.
10779         (vax_call_dummy_words): New.
10780         (sizeof_vax_call_dummy_words): New.
10781         (vax_fix_call_dummy): New function.
10782         (vax_saved_pc_after_call): Ditto.
10783         * config/vax/tm-vax.h: Don't include regcache.h.
10784         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10785         (CALL_DUMMY): Remove.
10786         (CALL_DUMMY_WORDS): Define.
10787         (SIZEOF_CALL_DUMMY_WORDS): Define.
10788         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10789
10790 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10791
10792         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10793
10794 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10795
10796         * vax-tdep.c (vax_frame_chain): New function.
10797         (vax_push_dummy_frame): Ditto.
10798         (vax_pop_frame): Ditto.
10799         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10800         (FRAMELESS_FUNCTION_INVOCATION): Use
10801         generic_frameless_function_invocation_not.
10802         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10803         (POP_FRAME): Use vax_pop_frame.
10804
10805 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10806
10807         * vax-tdep.c (vax_store_struct_return): New function.
10808         (vax_extract_return_value): Ditto.
10809         (vax_store_return_value): Ditto.
10810         (vax_extract_struct_value_address): Ditto.
10811         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10812         vax_store_struct_return.
10813         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10814         (STORE_RETURN_VALUE): Use vax_store_return_value.
10815         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10816
10817 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10818
10819         * vax-tdep.c (vax_frame_saved_pc): New function.
10820         (vax_frame_args_address_correct): Ditto.
10821         (vax_frame_args_address): Ditto.
10822         (vax_frame_locals_address): Ditto.
10823         (vax_frame_num_args): Move code to be in proximity to
10824         other frame-related functions.
10825         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10826         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10827         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10828         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10829         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10830
10831 2002-04-22  H.J. Lu  (hjl@gnu.org)
10832
10833         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10834         includedir.
10835
10836 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10837
10838         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10839         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10840         (FRAME_INIT_SAVED_REGS): New macro.
10841
10842 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10843
10844         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10845
10846 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10847
10848         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10849         where needed.
10850         (fetch_osf_core_registers): Likewise.
10851         (supply_gregset): Likewise.
10852
10853 2002-04-22  J. Brobecker  <brobecker@gnat.com>
10854
10855         * symfile.h (get_section_index): Define.
10856         * symfile.c (get_section_index): New function.
10857         * mdebugread.c (SC_IS_SBSS): New macro.
10858         (SC_IS_BSS): Return true for the scBss storage class only, as
10859         the scSBss storage class refers to the .sbss section.
10860         (parse_partial_symbols): Discard the symbols which associated
10861         section does not exist.
10862         Make sure to use the .sbss section index for symbols which
10863         storage class is scBss, rather than using the .bss section index.
10864
10865 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10866
10867         * vax-tdep.c: Update copyright years.
10868         (vax_register_name): New function.
10869         (vax_register_byte): Ditto.
10870         (vax_register_raw_size): Ditto.
10871         (vax_register_virtual_size): Ditto.
10872         (vax_register_virtual_type): Ditto.
10873         * config/vax/tm-vax.h: Update copyright years.
10874         (REGISTER_NAMES): Remove.
10875         (REGISTER_NAME): Define.
10876         (REGISTER_BYTE): Use vax_register_byte.
10877         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10878         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10879         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10880
10881 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10882
10883         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10884         declaration
10885         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10886
10887 2002-04-21  David S. Miller  <davem@redhat.com>
10888
10889         * arch-utils.c (generic_prologue_frameless_p): Kill
10890         SKIP_PROLOGUE_FRAMELESS_P code.
10891         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10892         references.
10893         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10894         * arc-tdep.c (arc_prologue_frameless_p): Implement.
10895         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10896         references.
10897         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10898         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10899         (sparc_gdbarch_init): Pass it to
10900         set_gdbarch_prologue_frameless_p.
10901
10902 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10903
10904         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10905         (alphabsd-nat.o): New dependency list.
10906
10907 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10908
10909         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10910         alphafbsd-tdep.c.
10911         (alpha-linux-tdep.o): New dependency list.
10912         (alphafbsd-tdep.o): Likewise.
10913
10914 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10915
10916         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
10917         to here...
10918         * alpha-tdep.c: ...from here.
10919         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10920
10921 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10922
10923         * config/alpha/tm-alpha.h: Move alpha_software_single_step
10924         prototype from here...
10925         * alpha-tdep.h: ...to here.
10926
10927 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10928
10929         * frame.h (selected_frame_level): Document as deprecated.
10930         (frame_relative_level): Declare.
10931         * stack.c (frame_relative_level): New function.
10932         (selected_frame_level): Document as deprecated.
10933         (select_frame): Do not set the selected_frame_level.
10934
10935         * stack.c (frame_info, record_selected_frame): Update.
10936         (frame_command, current_frame_command): Update.
10937         (up_silently_base, up_command, down_silently_base): Update.
10938         (down_command): Update.
10939         * inflow.c (kill_command): Update.
10940         * tracepoint.c (finish_tfind_command): Update.
10941         * corelow.c (core_open): Update.
10942         * thread.c (info_threads_command): Update.
10943         (do_captured_thread_select): Update.
10944         * infcmd.c (finish_command): Update.
10945         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10946
10947 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10948
10949         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10950
10951 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10952
10953         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
10954         type const.
10955
10956 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10957
10958         * alphafbsd-tdep.c: Update copyright years.  Include
10959         alpha-tdep.h.
10960         (alphafbsd_use_struct_convention): Make static.
10961         (alphafbsd_init_abi): New function.
10962         (_initialize_alphafbsd_tdep): New function.
10963         * config/alpha/tm-fbsd.h: Update copyright years.
10964         (USE_STRUCT_CONVENTION): Remove.
10965
10966 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10967
10968         * alpha-tdep.c (alpha_abi_handler): New structure to describe
10969         an Alpha ABI variant.
10970         (alpha_abi_handler_list): Declare.
10971         (alpha_gdbarch_register_os_abi): New function.
10972         (alpha_gdbarch_init): Give registered ABI variant handlers a
10973         chance to tweak the gdbarch once we have set up defaults.
10974         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10975
10976 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10977
10978         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10979         to standard_coerce_float_to_double.
10980         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10981
10982 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10983
10984         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10985         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10986         from gdbarch_tdep rather than a constant.
10987         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10988         the default text address for all Alpha Unix ABIs.
10989         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10990         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10991
10992 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10993
10994         * alpha-tdep.h: New file.  Includes several Alpha target constants
10995         taken from...
10996         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
10997         let gdbarch deal with.
10998         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10999         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11000         to dependency list.
11001         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11002         Alpha target register names.
11003         * alphabsd-nat.c: Likewise.
11004         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11005         Alpha target register names.  Make serveral routines static.
11006         (alpha_get_saved_register): New function.
11007         (alpha_abi_names): New.
11008         (process_note_abi_tag_sections): New function.
11009         (get_elfosabi): New function.
11010         (alpha_gdbarch_init): New function.
11011         (alpha_dump_tdep): New function.
11012         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11013
11014 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11015
11016         * frame.c (find_saved_register): Delete #ifdef
11017         HAVE_REGISTER_WINDOWS code.
11018         * config/sparc/tm-sparc.h: Update comments.
11019         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11020
11021 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11022
11023         * i960-tdep.c (i960_find_saved_register): New function.
11024         (i960_get_saved_register): New function.
11025         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11026         (i960_get_saved_register): Declare.
11027         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11028
11029 2002-04-20  David S. Miller  <davem@redhat.com>
11030
11031         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11032
11033 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11034
11035         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11036         instead of NUM_PSEUDO_REGS.
11037
11038 2002-04-20  David S. Miller  <davem@redhat.com>
11039
11040         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11041         GDB_MULTI_ARCH_PARTIAL
11042         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11043         define, let tm-sp64.h do it.
11044
11045 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11046
11047         * frame.c (find_saved_register): Avoid a NULL pointer
11048         dereference and actually walk the frame list.
11049
11050 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11051
11052         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11053         sorted in most most-recent-used order.  Document.
11054         * gdbarch.h, gdbarch.c: Regenerate.
11055
11056 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11057
11058         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11059         instead of ->prev.
11060         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11061         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11062         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11063         instead of ->prev.
11064
11065 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11066
11067         Fix PR gdb/471.
11068         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11069         (build_builtin_type_vec128): Ditto.
11070         (append_composite_type_field): Fix calculation of type length in
11071         union case.
11072
11073 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11074
11075         * config/djgpp/README: Update.
11076
11077         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11078         compiler warnings.
11079
11080 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11081
11082         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11083         (alpha_setup_arbitrary_frame): ...to this.
11084         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11085         for alpha_setup_arbitrary_frame.
11086
11087 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11088
11089         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11090         * gdbarch.h, gdbarch.c: Regenerate.
11091
11092         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11093         * target.h (memory_breakpoint_from_pc): Update declaration.
11094         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11095
11096         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11097         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11098         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11099         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11100         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11101         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11102         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11103         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11104         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11105         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11106         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11107         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11108
11109         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11110         const pointer.
11111         * monitor.c (monitor_insert_breakpoint): Ditto.
11112         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11113
11114         * config/mcore/tm-mcore.h: Update copyright.
11115         * mem-break.c: Ditto.
11116         * xstormy16-tdep.c: Ditto.
11117
11118 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11119
11120         * p-exp.y: Add precedence rule for '^' token.
11121         This removes the shift/reduce conflicts.
11122         Remove the comment concerning these shift/reduce conflicts.
11123
11124 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11125
11126         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11127         (registers_powerpc_nofp): New register set for processors
11128         without floating point unit.
11129
11130 2002-04-18  David S. Miller  <davem@redhat.com>
11131
11132         * MAINTAINERS: Add myself to write-after-approval.
11133
11134 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11135
11136         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11137
11138 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11139
11140         * rs6000-tdep.c (frame_initial_stack_address): Use
11141         frame_register_read to read the alloca_reg.
11142
11143 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11144
11145         * frame.c (find_saved_register): Find saved registers in the next
11146         not prev frame.
11147         Fix PR gdb/365.
11148
11149 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11150
11151         * gdbarch.sh (LANG): Set to ``c''.
11152
11153 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11154
11155         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11156
11157 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11158
11159         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11160         Update copyright.
11161
11162         * hpread.c (hpread_get_lntt): Add declaration.
11163         Also fix PR gdb/391.
11164
11165 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11166
11167         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11168         * aclocal.m4, configure: Re-generate.
11169         Fix PR gdb/391.
11170
11171 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11172
11173         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11174         instead of tm_print_insn.
11175
11176 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11177
11178         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11179
11180 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11181
11182         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11183         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11184         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11185
11186 2002-04-12  Don Howard  <dhoward@redhat.com>
11187
11188         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11189         max_user_call_depth.
11190         (init_cmd_lists): Initialize the new value;
11191         * cli/cli-script.c (execute_user_command): Limit the call depth of
11192         user defined commands.  This avoids a core-dump when user commands
11193         are infinitly recursive.
11194
11195 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11196
11197         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11198         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11199         from tdep struct instead of DEFAULT_LR_SAVE.
11200         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11201         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11202         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11203
11204 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11205
11206         * Remote.c: Spelling fix.
11207         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11208         If no symbol found for "sbrk", try "_sbrk".
11209         (make_output_phdrs): Use bfd_section_name.
11210         (gcore_copy_callback): Use bfd_section_name.
11211         * eval.c: Indentation fix-ups.
11212         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11213         in case it gets applied to an address that is already
11214         in the instruction space.
11215         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11216         * symfile.c: Fix indentation, long lines.
11217         * source.c: White space fix-up.
11218
11219 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11220
11221         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11222         * frame.c (frame_register_read): New function.  Return non-zero on
11223         success.
11224         (read_relative_register_raw_bytes_for_frame): Delete.
11225         (read_relative_register_raw_bytes): Delete.
11226         * frame.h (frame_register_read): Declare.
11227         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11228         * sh-tdep.c: Ditto.
11229         * infcmd.c (do_registers_info): Ditto.
11230         * hppa-tdep.c: Ditto.
11231         * rs6000-tdep.c: Ditto.
11232         * h8500-tdep.c: Ditto.
11233         * mips-tdep.c: Ditto.
11234         * h8300-tdep.c: Ditto.
11235         * z8k-tdep.c: Ditto.
11236
11237 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11238
11239         From Jimi X <jimix@watson.ibm.com>:
11240         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11241         64-bit SysV ABI.
11242
11243 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11244
11245         From Jimi X <jimix@watson.ibm.com>:
11246         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11247         bfd info.
11248
11249 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11250
11251         From Jimi X <jimix@watson.ibm.com>:
11252         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11253         register sets for these processor variants.
11254
11255 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11256
11257         * regformats/reg-ppc.dat: Support FPSCR.
11258
11259 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11260
11261         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11262         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11263         Add fpscr as an invalid/unfetchable register.
11264         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11265         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11266         (fill_fpregset): Add support for register fpscr.
11267         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11268         (fill_gregset): Account for the fact that register ``mq'' might
11269         not exist.
11270         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11271         (registers_power): Add fpscr to register set at slot 71.
11272         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11273         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11274
11275 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11276
11277         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11278         * configure: Regenerate.
11279         * config.in: Regenerate.
11280         * acconfig.h: Add define for _SYSCALL32.
11281         * core-sol2.c: Remove #define _SYSCALL32.
11282         * solib-legacy.c: Remove #define _SYSCALL32.
11283
11284 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11285
11286         * stack.c (select_frame): Cleanup internal error message, do not
11287         use %p.
11288
11289 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11290
11291         * stack.c (select_frame): Check that selected_frame and the
11292         specified level are as expected.
11293         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11294         Update copyright.
11295         * frame.h (struct frame_info): Add field `level'.  Update
11296         copyright.
11297         Work-in-progress PR gdb/464.
11298
11299 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11300
11301         * maint.c (maint_print_section_info): Rename print_section_info.
11302         (print_bfd_section_info, print_objfile_section_info): Update.
11303         * inferior.h (struct gdbarch): Add opaque declaration.
11304         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11305         * gdbarch.h: Regenerate.
11306
11307 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11308
11309         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11310         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11311         (kernel_u_size): Added.
11312         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11313         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11314
11315 2002-04-04  Jim Ingham  <jingham@apple.com>
11316
11317        * valarith.c (find_size_for_pointer_math): New function, either returns
11318        the size for a pointer's target, returns 1 for void *, or errors for
11319        incomplete types.
11320        (value_add, value_sub): use find_size_for_pointer_math.
11321
11322 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11323
11324         * linux-low.c (linux_look_up_symbols): New hook.
11325         (linux_target_ops): Add linux_look_up_symbols.
11326         * remote-utils.c (decode_address): New function.
11327         (look_up_one_symbol): New function.
11328         * server.c (handle_query): Call target look_up_symbols hook.
11329         * server.h (look_up_one_symbol): Add prototype.
11330         * target.h (struct target_ops): Add look_up_symbols hook.
11331
11332 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11333
11334         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11335         override FP_REGNUM with frame->fp.  Update copyright.
11336         * parse.c (num_std_regs, std_regs): Delete.
11337         (target_map_name_to_register): Do not search std_regs.  Update
11338         function description.
11339         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11340         declarations.  Update copyright.
11341         Fix PR gdb/251.
11342
11343 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11344
11345         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11346         after the last symbol in a block.
11347
11348 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11349
11350         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11351         is non zero as a found symbol.
11352
11353 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11354
11355         * findvar.c: Include "builtin-regs.h".
11356         (value_of_register): Call value_of_builtin_reg when applicable.
11357         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11358         (target_map_name_to_register): Call
11359         builtin_reg_map_name_to_regnum.
11360         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11361         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11362         (builtin_regs_h): Define.
11363         (builtin-regs.o): New target.
11364         (findvar.o): Add $(builtin_regs_h).
11365         * builtin-regs.c, builtin-regs.h: New files.
11366         * std-regs.c: New file.
11367         Partial fix for PR gdb/251.
11368
11369 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11370
11371         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11372         it's no longer required.
11373
11374 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11375
11376         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11377
11378 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11379
11380         From Jimi X <jimix@watson.ibm.com>:
11381         * rs6000-tdep.c (rs6000_software_single_step): Use
11382         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11383         and size.  Use target_insert_breakpoint() and
11384         target_remove_breakpoint() to insert and remove breakpoints
11385         instead of explicit memory reads and writes.
11386
11387 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11388
11389         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11390         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11391         ELF_OBJECT_FORMAT ifdef.
11392
11393 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11394
11395         From Jimi X <jimix@watson.ibm.com>:
11396         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11397
11398 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11399
11400         From Jimi X <jimix@watson.ibm.com>:
11401         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11402         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11403
11404 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11405
11406         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11407         s/asprintf/xasprintf/.
11408         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11409
11410 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11411
11412         I believe Jeff Law denies responsability for this one:
11413         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11414         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11415         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11416         Work-around for PR gdb/366.
11417
11418 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11419
11420         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11421         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11422         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11423
11424 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11425
11426         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11427         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11428         information.
11429
11430 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11431
11432         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11433         maintainer.
11434
11435 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11436
11437         * README (Reporting Bugs in GDB): Document the bug web page as the
11438         prefered way of submitting bugs.
11439         Fix PR gdb/402.
11440
11441 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11442
11443         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11444         -1.  Update comment.
11445         * gdbarch.h, gdbarch.c: Re-generate.
11446
11447 2002-04-07  Andreas Schwab  <schwab@suse.de>
11448
11449         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11450         buffer to regcache_collect.
11451
11452 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11453
11454         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11455         * gdbarch.c, gdbarch.h: Re-generate.
11456
11457 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11458
11459         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11460         declaration.  Fix -Werror.
11461
11462 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11463
11464         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11465         * gdbarch.c: Regenerate.
11466
11467 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11468
11469         * breakpoint.c (clear_command): Rewrite middle section to
11470         combine two loops with identical control conditions.
11471         Add a cleanup to eliminate a memory leak.
11472         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11473
11474 2002-04-05  H.J. Lu  (hjl@gnu.org)
11475
11476         * solib-svr4.c (bkpt_names): Add "__start".
11477
11478 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11479
11480         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11481         as test for 64 bit target.
11482
11483 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11484
11485         * h8500-tdep.c (h8500_write_fp): Delete function.
11486         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11487         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11488         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11489         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11490         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11491         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11492         (s390_write_fp):
11493         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11494         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11495         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11496         (d10v_write_fp): Delete function.
11497         * inferior.h (write_fp, generic_target_write_fp): Delete
11498         declarations.
11499         * regcache.c (generic_target_write_fp): Delete function.
11500         (write_fp): Delete function.
11501         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11502         * gdbarch.h, gdbarch.c: Regenerate.
11503         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11504         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11505         (sparc64_write_fp): Delete declaration.
11506         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11507         (h8500_write_fp): Delete declaration.
11508
11509 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11510
11511         * sparc-tdep.c (sparc64_write_fp): Delete.
11512         (sparc_push_dummy_frame): Replace write_fp call with code to store
11513         the FP directly.
11514         (sparc_gdbarch_init): Do not initialize write_fp.
11515
11516 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11517
11518         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11519         clause.
11520
11521 2002-03-29  Jim Blandy  <jimb@redhat.com>
11522
11523         * stack.c (get_selected_block): Add new argument `addr_in_block',
11524         used to return the exact code address we used to select the block,
11525         not just the block.
11526         * blockframe.c (get_frame_block, get_current_block): Same.
11527         * frame.h (get_frame_block, get_current_block,
11528         get_selected_block): Update declarations.
11529         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11530         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11531
11532 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11533
11534         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11535         warning message.
11536
11537 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11538
11539         * utils.c (xfullpath): New function.
11540         * defs.h (xfullpath): Add declaration.
11541         * source.c (openp): Use xfullpath in place of gdb_realpath to
11542         avoid resolving the basename part of filenames when the
11543         associated file is a symbolic link. This fixes a potential
11544         inconsistency between the filenames known to GDB and the
11545         filenames it prints in the annotations.
11546         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11547         to be able to match a filename with either the real filename, or
11548         the name of any symbolic link to this file.
11549         (lookup_partial_symtab): Ditto.
11550
11551 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11552
11553         * breakpoint.c: Add support for hardware breakpoints in overlays.
11554         (overlay_events_enabled): New state variable.
11555         (insert_breakpoints): Use overlay_events_enabled to decide
11556         whether to attempt to set a breakpoint at the overlay load addr.
11557         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11558         (remove_breakpoint): Use overlay_events_enabled to decide
11559         whether breakpoints need to be removed from overlay load addr.
11560         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11561         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11562         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11563         disable_overlay_breakpoints): Update overlay_events_enabled.
11564
11565 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11566
11567         * dwarf2read.c (struct function_range): New.
11568         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11569         (check_cu_functions): New.
11570         (read_file_scope): Initialize global function lists.
11571         Call dwarf_decode_line after processing children.
11572         (read_func_scope): Add to global function list.
11573         (dwarf_decode_lines): Call check_cu_functions everywhere
11574         record_line is called.  Call record_line with a linenumber
11575         of 0 to mark sequence ends.
11576
11577 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11578
11579         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11580         change sync with glibc.
11581
11582 2002-04-03  Jim Blandy  <jimb@redhat.com>
11583
11584         * configure.in: Call AC_C_INLINE.
11585         * configure: Regenerated.
11586
11587 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11588
11589         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11590         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11591
11592 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11593
11594         * NEWS: Mention gcore support on FreeBSD/i386.
11595
11596         * fbsd-proc.c: New file.
11597         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11598         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11599
11600         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11601         while statement.
11602
11603 2002-03-29  Jim Blandy  <jimb@redhat.com>
11604
11605         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11606         unescaped newlines in string literals, but newer ones don't.  So
11607         escape them.
11608
11609 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11610             Andrew Cagney <cagney@redhat.com>
11611
11612         * cli/cli-dump.c: New file.  Dump memory to file,
11613         restore file to memory.
11614         * cli/cli-dump.h: New file.
11615         * Makefile.in: Add rules, dependencies for cli-dump.o.
11616         * NEWS: Mention new commands.
11617
11618 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11619
11620         * symfile.c (symbol_file_add): Move test for null symbols to later.
11621
11622 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11623
11624         From veksler at il.ibm.com:
11625         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11626         the xstrduped original path.
11627         Fix PR gdb/417.
11628
11629 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11630
11631         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11632         * infcmd.c (_initialize_infcmd): Ditto.
11633         * language.c (_initialize_language): Ditto.
11634         * symfile.c (_initialize_symfile): Ditto.
11635         * top.c (_init_main): Ditto.
11636         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11637
11638 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11639
11640         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11641         vector registers handling.
11642         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11643         fields of frame data.
11644         (frame_get_saved_regs): Fill in information for AltiVec registers.
11645
11646 2002-03-27  Jim Blandy  <jimb@redhat.com>
11647
11648         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11649         a function; leave this macro here to invoke that function.
11650         (symbol_init_mangled_name): Declaration for that function.
11651         * symtab.c (symbol_init_mangled_name): New function.
11652
11653 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11654
11655         * valarith.c: Replace strerror with safe_strerror.
11656         * tracepoint.c: Ditto.
11657         * lin-lwp.c: Ditto.
11658         * go32-nat.c: Ditto.
11659         * inflow.c: Ditto.
11660         * gnu-nat.c: Ditto.
11661
11662 2002-03-27  Andreas Schwab  <schwab@suse.de>
11663
11664         * event-top.c (command_line_handler): Remove useless if.
11665
11666 2002-03-27  Andreas Jaeger  <aj@suse.de>
11667
11668         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11669         comment.
11670
11671 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11672
11673         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11674         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11675         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11676         (x86_64_linux_dr_get_status, supply_gregset),
11677         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11678         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11679         (x86_64_register_info_table): Add.
11680         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11681         (x86_64_register_raw_size, x86_64_register_virtual_type),
11682         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11683         general x86_64_register_info_table.
11684         (i386_gdbarch_init): gdbarch_register_bytes is now set
11685         dynamicaly during initialization.
11686         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11687         * gdbserver/linux-x86-64-low.c: Ditto.
11688
11689 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11690
11691         * gdbserver/server.c (main): Call target_signal_to_host_p
11692         and target_signal_to_host on signals received from the remote.
11693         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11694         target_signal_from_host on signals sent to the remote.
11695         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11696         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11697
11698 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11699
11700         * signals/signals.c: Include "server.h" in gdbserver build.
11701         (target_signal_from_name): Don't use STREQ.
11702         (_initialize_signals): Likewise.  Don't include function in
11703         gdbserver build.
11704
11705 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11706
11707         * signals.c: Moved to...
11708         * signals/signals.c: Here.
11709         * Makefile (signals.o): Update.
11710
11711 2002-03-26  Jeff Law (law@redhat.com)
11712
11713         * somread.c (som_symtab_read): Remove some commented out code and
11714         updated related comments.  Do not set the minimal symbol table to
11715         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11716         in a dynamic executable.
11717         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11718         where we are unable to find the minimal symbol for the given
11719         PC value.
11720
11721 2002-03-25  Jeff Law (law@redhat.com)
11722
11723         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11724
11725 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11726
11727         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11728
11729 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11730
11731         * command.h: Update copyright.
11732         (struct cmd_list_element): Replace definition with opaque
11733         declaration.
11734         (enum cmd_types): Document that it will eventually be moved to
11735         cli/cli-decode.h
11736         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11737         (MALLOCED_REPLACEMENT): Delete macro.
11738         * Makefile.in (cli_decode_h): Add $(command_h).
11739         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11740         * top.c: Include "cli/cli-decode.h".
11741         * completer.c: Include "cli/cli-decode.h".
11742         * maint.c: Include "cli/cli-decode.h".
11743         * cli/cli-decode.h: Include "command.h".
11744         (enum command_class): Delete.
11745         (enum cmd_types): Comment out.
11746         (enum cmd_auto_boolean): Delete.
11747         (enum var_types): Delete.
11748
11749 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11750
11751         * cli/cli-decode.c: Include "gdb_assert.h".
11752         (add_set_or_show_cmd): New static function.
11753         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11754         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11755         all fields, such as func, from the set command.
11756
11757 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11758
11759         * MAINTAINERS (sh-elf): Change warning flag to -w.
11760
11761 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11762
11763         * defs.h (error): Add printf format attribute.
11764         * thread-db.c (thread_from_lwp): Fix error format string.
11765         * stack.c (parse_frame_specification): Ditto.
11766         * cli/cli-decode.c (undef_cmd_error): Ditto.
11767         * scm-lang.c (scm_lookup_name): Ditto.
11768         * tracepoint.c (trace_error): Ditto.
11769         * remote-utils.c (usage): Ditto.
11770         * remote.c (compare_sections_command): Ditto.
11771         Fix PR gdb/328.
11772
11773 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11774
11775         * gdbtypes.c (append_composite_type_field): New function.
11776         (init_composite_type): New function.
11777         * gdbtypes.h (append_composite_type_field): Declare.
11778         (init_composite_type): Ditto.
11779
11780 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11781
11782         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11783         function.
11784         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11785         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11786         structure returning convention for SYSV ABI case, but not
11787         for GNU/Linux, FreeBSD, or NetBSD.
11788
11789 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11790
11791         * symtab.h (lookup_block_symbol): Add mangled_name argument
11792         to prototype.
11793
11794         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11795         with new mangled_name argument.
11796         * linespec.c (decode_line_1): Likewise.
11797         * valops (value_of_this): Likewise.
11798         * symtab.c (lookup_transparent_type): Likewise.
11799         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11800         (lookup_symbol): If we are given a mangled name, pass it down
11801         to lookup_symbol_aux.
11802         (lookup_block_symbol): If we are given a mangled name to check
11803         against, only return symbols which match it.
11804
11805 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11806
11807         * win32-nat.c (child_create_inferior): Check for proper shell to use
11808         here, in case the user changes it on the fly.
11809         (_initialize_inftarg): Remove shell path considerations.
11810
11811 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11812
11813         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11814         for gdbarch_max_register_raw_size and max_register_virtual_size.
11815         Adjust copyright year.
11816
11817 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11818
11819          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11820          in a function to cover the entire beginning of the function
11821          as well if it does not already.
11822
11823 2002-03-21  Tom Rix  <trix@redhat.com>
11824
11825         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11826         (rs6000_ptrace64): Renamed from ptrace64.
11827
11828 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11829
11830         * gdbserver/remote-utils.c (remote_open): Don't call
11831         getprotobyname, we're all using TCP here so just use
11832         IPPROTO_TCP.
11833         * gdbserver/gdbreplay.c (remote_open): Ditto.
11834
11835 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11836
11837         * regcache.c (_initialize_regcache): No need to call
11838         build_regcache() at this time; it gets called whenever
11839         the gdbarch changes.
11840
11841 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11842
11843         * sparc-nat.c:  Include sys/param.h where possible.
11844
11845 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11846
11847         Fix PR gdb/422.
11848         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11849         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11850         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11851         complex types.
11852         * stabsread.c (rs6000_builtin_type): Likewise.
11853         (read_sun_floating_type): Likewise.
11854
11855 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11856
11857         * stabsread.c (read_member_functions): Remove skip code for duplicate
11858         constructor/destructor methods.  Use standard parsing for these
11859         methods and just do not chain them to the list of methods after
11860         parsing.
11861
11862 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
11863
11864         * coffread.c: Remove redundant static declarations.  Replace
11865         occurrences of `PTR' with `void *'.
11866         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11867         * top.h (quit_cover): Likewise.
11868         * defs.h (catch_errors): Likewise.
11869
11870 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11871
11872         * defs.h (XMALLOC): Define.
11873         * gdb-events.sh (XMALLOC): Delete macro.
11874         * gdb-events.c, gdb-events.h: Regenerate.
11875         * gdbarch.sh (XMALLOC): Delete macro.
11876         * gdbarch.c: Regenerate.
11877         * serial.c (XMALLOC): Delete macro.
11878         * ui-file.c (XMALLOC): Ditto.
11879         * ser-unix.h (XMALLOC): Ditto.
11880         * sh-tdep.c (XMALLOC): Ditto.
11881         * ui-out.c (XMALLOC): Ditto.
11882         * utils.c (XMALLOC): Ditto.
11883         * i386-tdep.c (XMALLOC): Ditto.
11884         * gdb-events.c (XMALLOC): Ditto.
11885         * d10v-tdep.c (XMALLOC): Ditto.
11886         * cli-out.c (XMALLOC): Ditto.
11887
11888         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11889         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11890         * ui-file.c, ui-out.c: Ditto.
11891
11892 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11893
11894         * command.h (struct cmd_list_element): Add field context.
11895         (set_cmd_context, get_cmd_context): Declare.
11896         * cli/cli-decode.h: Ditto.
11897         * cli/cli-decode.c (get_cmd_context): New function.
11898         (set_cmd_context): New function.
11899         (add_cmd): Initialize context.
11900         Part of fixing PR gdb/145 and PR gdb/146.
11901
11902 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11903
11904         * cli/cli-decode.c (cmd_type): New function.
11905         * command.h (cmd_type): Declare.
11906         * infrun.c (set_schedlock_func): Call function cmd_type.
11907         * kod.c (kod_set_os): Call cmd_type.
11908         * cris-tdep.c (cris_version_update): Use function cmd_type.
11909         (cris_mode_update, cris_abi_update): Ditto.
11910
11911         * command.h: (execute_cmd_post_hook): Declare.
11912         (execute_cmd_pre_hook): Declare.
11913         * cli/cli-script.c (clear_hook_in_cleanup): New function.
11914         (execute_cmd_post_hook, execute_cmd_pre_hook): New
11915         functions. Execute pre/post hook while ensuring that afterwords
11916         hook_in is cleared.
11917         * top.c (execute_command): Use execute_cmd_post_hook, and
11918         execute_cmd_pre_hook to execute pre/post commands.
11919         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11920         hook_stop_stub.
11921         (hook_stop_stub): Call execute_cmd_pre_hook.
11922
11923 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11924
11925         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
11926         set'' and this leads to a core dump.  Move xstrdup of
11927         operating_system to after check that it is not NULL.
11928
11929 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11930
11931         * kod.c (kod_set_os): Remove unnecessary check that
11932         ``command->type'' is set_cmd.
11933
11934         * valprint.c (set_input_radix): Use input_radix.
11935         (set_output_radix): Use output_radix.
11936         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11937         isn't reverted.
11938
11939 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
11940
11941         * value.h (struct value): Delete field ``substring_addr''.  Change
11942         aligner fields to force_doublest_align, force_longest_align,
11943         force_core_addr_align and force_pointer_aligh.
11944
11945         * value.h (struct value): Fix typo in above change.
11946
11947 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11948
11949         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11950         to fix internal_error from ``maintenance print architecture''.
11951
11952 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11953
11954         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11955         for gcc versions after gcc-2.8.1.
11956
11957 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11958
11959         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11960         for method resolution.  Restore adjustment of ``this'' pointer after
11961         calling value_struct_elt, which was accidentally removed during the
11962         HP merge.
11963
11964 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
11965
11966         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11967         value_of_register.
11968         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
11969         get_saved_register.
11970         * value.h (value_of_register): Update.
11971
11972 2002-03-14  Richard Henderson  <rth@redhat.com>
11973
11974         * configure.in: Detect declaration for canonicalize_file_name.
11975         * utils.c (canonicalize_file_name): Declare, if needed.
11976         (gdb_realpath): Prefer realpath if available and usable.
11977         * config.in, configure: Rebuild.
11978
11979 2002-03-14  Richard Henderson  <rth@redhat.com>
11980
11981         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11982         a constant array bound.
11983
11984         * MAINTAINERS: Add myself to write-after-approval.
11985
11986 2002-03-14  Michael Snyder  <msnyder@redhat.com>
11987
11988         * symfile.c (syms_from_objfile): Return immediately if no syms.
11989         (symbol_file_add): Return immediately if no syms.
11990         (find_sym_fns): Return immediately if no syms.
11991
11992 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
11993
11994         * gdbserver/remote-util.c (remote_open): Print remote-side's
11995         IP address when remote debugging over the network.
11996
11997 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
11998
11999         * config/sparc/fbsd.mh: Fix copyright.
12000         * config/sparc/fbsd.mt: Likewise.
12001
12002 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12003
12004         * MAINTAINERS: Fix typo in name of gdb warnings option.
12005         (x86-64): Fix formating so that this can be parsed by awk.
12006
12007 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12008
12009         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12010         * defs.h: Include "gdb/signals.h".
12011         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12012
12013 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12014
12015         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12016         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12017         from x86-64-tdep.h
12018
12019 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12020             Don Howard <dhoward@redhat.com>
12021
12022         * mips-tdep.c (ST0_FR): Define.
12023         (mips2_fp_compat): New function, temporarily disabled.
12024         (mips_read_fp_register_single): New function.
12025         (mips_read_fp_register_double): New function.
12026         (mips_print_register): Use them.
12027         (do_fp_register_row): Likewise.
12028
12029 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12030
12031         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12032         approval''.
12033
12034 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12035
12036         * stabsread.c (read_member_functions): Fix is_stub test for
12037         static member functions, improve comment.
12038
12039 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12040
12041         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12042         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12043         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12044         commands that set boolean values.
12045         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12046         (arm_rdi_resume): Always initialize PC.
12047         (arm_rdi_open): Don't use rslt as a boolean.
12048         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12049         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12050         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12051         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12052
12053 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12054
12055         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12056         * configure: Rebuilt.
12057
12058 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12059
12060         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12061         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12062
12063 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12064
12065         * cli/cli-decode.c (set_cmd_completer): New function.
12066         * command.h (set_cmd_completer): Declare.
12067         * cli/cli-decode.h (set_cmd_completer): Ditto.
12068
12069         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12070         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12071         * win32-nat.c (_initialize_inftarg): Ditto.
12072         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12073         * proc-api.c (_initialize_proc_api): Ditto.
12074         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12075         * source.c (_initialize_source): Ditto.
12076         * exec.c (_initialize_exec): Ditto.
12077         * solib.c (_initialize_solib): Ditto.
12078         * top.c (init_main): Ditto.
12079         * tracepoint.c (_initialize_tracepoint): Ditto.
12080         * symfile.c (_initialize_symfile): Ditto.
12081         * printcmd.c (_initialize_printcmd): Ditto.
12082         * infcmd.c (_initialize_infcmd): Ditto.
12083         * corefile.c (_initialize_core): Ditto.
12084
12085 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12086
12087         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12088
12089 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12090
12091         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12092
12093 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12094
12095         * NEWS: Update headings, 5.2 has branched.
12096
12097 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12098
12099         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12100         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12101         (register_addr, REGISTER_RAW_SIZE): Likewise.
12102         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12103         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12104
12105 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12106
12107         * MAINTAINERS (x86-64): Add myself.
12108         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12109         changed value_ptr -> struct value *
12110
12111 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12112
12113         * configure.host (sparc64-*-freebsd): Add.
12114         * configure.tgt: Likewise.
12115         * config/sparc/fbsd.mh: New file.
12116         * config/sparc/fbsd.mt: Likewise.
12117         * config/sparc/nm-fbsd.h: Likewise.
12118         * config/sparc/tm-fbsd.h: Likewise.
12119
12120 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12121
12122         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12123         regformats/reg-s390x.dat.
12124
12125 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12126
12127         * utils.c: Add FIXME explaining true/false problem.
12128
12129 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12130
12131         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12132
12133 2002-02-28  Michael Chastain  <mec@shout.net>
12134
12135         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12136
12137 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12138
12139         * gdbserver/linux-s390-low.c: New file.
12140         * regformats/reg-s390.dat: New file.
12141         * regformats/reg-s390x.dat: New file.
12142         * gdbserver/configure.srv: Add S/390.
12143         * gdbserver/Makefile.in: Add S/390.
12144         * configure.tgt: Enable gdbserver for S/390.
12145
12146 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12147
12148         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12149         first line of the doc string for "info dos", except at the end of
12150         the sentence, since the short help stops at the first period.
12151
12152 2002-02-28  Jason Merrill  <jason@redhat.com>
12153
12154         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12155
12156 2002-02-27  Fred Fish  <fnf@redhat.com>
12157
12158         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12159         comment (dumy -> dummy).
12160
12161 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12162
12163         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12164
12165 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12166
12167       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12168
12169 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12170
12171         * gdbserver/acconfig.h: New file.
12172         * gdbserver/i387-fp.c: New file.
12173         * gdbserver/i387-fp.h: New file.
12174         * gdbserver/linux-x86-64.c: New file.
12175         * regformats/reg-x86-64.dat: New file.
12176         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12177         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12178         * gdbserver/configure.in: Add support for regsets.
12179         * gdbserver/config.in: Regenerate.
12180         * gdbserver/configure: Regenerate.
12181         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12182         * gdbserver/linux-low.h: New file.
12183         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12184         for regsets.
12185         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12186         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12187         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12188         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12189         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12190         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12191         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12192         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12193         * gdbserver/regcache.c (supply_register): New function.
12194         (supply_register_by_name): New function.
12195         (collect_register): New function.
12196         (collect_register_by_name): New function.
12197
12198 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12199
12200         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12201         (config.status): Add configure.srv dependency.
12202         (server_h): Add config.h dependency.
12203
12204 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12205
12206         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12207         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12208         * gdbserver/configure.srv: Change i386-*-linux* to use
12209         reg-i386-linux.o.
12210
12211 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12212
12213         * x86-64-tdep.c: Re-indent.  Update copyright date.
12214
12215 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12216
12217         From Michal Ludvig <mludvig@suse.cz>:
12218         * x86-64-tdep.c (value.h): Delete.
12219         (gdb_assert.h): Include.
12220         (x86_64_register_convert_to_virtual,
12221         x86_64_register_convert_to_raw ): Add check which lets only
12222         floating-point values to be converted.
12223         (value_push): Delete.
12224         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12225         (i386_gdbarch_init): Number of register_bytes fixed.
12226
12227 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12228
12229         * MAINTAINERS: Add x86-64 target.
12230
12231 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12232
12233         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12234         * osfsolib.c (solib_map_sections): Ditto.
12235         * irix5-nat.c (solib_map_sections): Ditto.
12236         * corelow.c (gdb_check_format): Ditto.
12237         * symfile.c (symfile_bfd_open): Ditto.
12238         * solib.c (solib_map_sections): Ditto.
12239         Fix PR gdb/354.
12240
12241 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12242
12243         * remote.c (_initialize_remote): By default, disable ``e'' and
12244         ``E'' step out-of-range packets.
12245
12246 2002-02-26  Andreas Schwab  <schwab@suse.de>
12247
12248         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12249         m68k_linux_frame_saved_pc.
12250         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12251         in_sigtramp.
12252         (SIGCONTEXT_PC_OFFSET): Remove.
12253         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12254         m68k_linux_sigtramp_saved_pc): New functions.
12255         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12256         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12257         (UCONTEXT_PC_OFFSET): Define.
12258         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12259         non-RT and RT signal trampolines.
12260
12261 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12262
12263         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12264         (TARGET_NBPG, STACK_END_ADDR): Delete
12265         (VARIABLES_INSIDE_BLOCK): Delete.
12266
12267 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12268
12269         * utils.c (perror_with_name): Make string parameter constant.
12270         (print_sys_errmsg): Ditto.
12271         (query): Ditto.
12272         * defs.h (perror_with_name): Update.
12273         (print_sys_errmsg): Update.
12274         (query): Update.
12275
12276 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12277
12278         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12279         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12280
12281 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12282
12283         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12284         if it already matches the current architecture from the exec file.
12285         Include arch-utils.h for gdbarch_info_init prototype.
12286         * Makefile.in (rs6000-nat.o): Update dependencies.
12287
12288 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12289
12290         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12291          list of exported variables.
12292
12293 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12294
12295         * gdbserver/configure.srv: New file.
12296         * gdbserver/configure.in: Use configure.srv instead
12297         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12298         from it.
12299         * gdbserver/configure: Regenerated.
12300         * gdbserver/terminal.h: New file.
12301         * gdbserver/Makefile.in: Update for configure changes.  Remove
12302         more unneeded include paths.
12303
12304 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12305
12306         From wiz at danbala:
12307         * config/sparc/tm-sp64.h: Fix grammar and typos.
12308         Fix PR gdb/287.
12309
12310 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12311
12312         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12313         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12314         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12315         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12316         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12317         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12318         * s390-tdep.c: Ditto.
12319         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12320         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12321         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12322         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12323         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12324         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12325         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12326         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12327         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12328         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12329         Fix PR gdb/378.
12330
12331 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12332
12333         * lin-thread.c: Delete file.
12334         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12335         to gdb_proc_service.h.
12336         * configure: Re-generate.
12337
12338         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12339         * serial.c (serial_open): Delete check for "ocd".
12340         Fix PR gdb/349.
12341
12342         * Makefile.in (linux-thread.o): Delete target.
12343         * linux-thread.c: Delete file.
12344
12345         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12346         renamed SH files to be consistent.
12347
12348         * symtab.c (sort_search_symbols): Use xfree.
12349
12350 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12351
12352         * arm-linux-tdep.c (arm_linux_init_abi): Register
12353         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12354         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12355         definition with undef, since we don't want the sysvr4 definition.
12356         (SKIP_TRAMPOLINE_CODE): Likewise.
12357
12358 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12359
12360         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12361
12362         * configure.in: (AC_CHECK_FUNCS) Added test for
12363         canonicalize_file_name Regenerated.
12364         * config.in, configure: Regenerated.
12365         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12366         defined use canonicalize_file_name.
12367
12368 2002-02-23  Michael Chastain  <mec@shout.net>
12369
12370         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12371
12372 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12373
12374         * README: Remove references to cygnus.com.
12375         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12376         dot com'' form.  Remove references to cygnus.com and sourceware.
12377
12378 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12379
12380         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12381         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12382         1003.1-2001 no longer allows "head -1".
12383         * gdb/Makefile.in (version.c): Likewise.
12384         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12385         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12386         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12387
12388 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12389
12390         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12391         * command.h (cmd_cfunc_eq): Declare.
12392         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12393
12394         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12395         ``struct cmd_list_element *''.
12396         * cli/cli-cmds.c (is_complete_command): Update.  Use
12397         cmd_cfunc_eq.
12398         * top.c (execute_command): Pass the command to
12399         is_complete_command.
12400         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12401
12402 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12403
12404         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12405         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12406         architecture defines.
12407         * s390-tdep.c (s390_gdbarch_init): Likewise.
12408
12409 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12410
12411         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12412         (arm_linux_push_arguments): Likewise.
12413         (arm_linux_init_abi): Register them.  Also register linux-specific
12414         call_dummy_words.
12415         (find_minsym_and_objfile): Use strcmp, not STREQ.
12416         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12417         (arm_linux_call_dummy_words): Delete declaration.
12418         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12419         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12420         declarations.
12421         (LOWEST_PC): Delete.
12422
12423 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12424
12425         * maint.c (print_section_info): Do not prepend `0x' to filepos
12426         output, it will be handled by local_hex_string_custom.
12427
12428 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12429
12430         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12431         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12432         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12433
12434 2002-02-22  Jim Blandy  <jimb@redhat.com>
12435
12436         Indicate that the bcache functions don't change the strings
12437         they're passed.
12438         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12439         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12440
12441 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12442
12443         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12444
12445 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12446
12447         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12448         find the complete path to a loaded DLL.
12449
12450 2002-02-21  Fred Fish  <fnf@redhat.com>
12451
12452         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12453         that marks the end of the range of a function, enter a line number
12454         entry that has a line number of zero and a PC offset that matches
12455         the end of the function.  This starts a range of PC's for which no
12456         line number information is known.
12457         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12458         PC's for which no line number info is found (line number is zero)
12459         then we didn't find any valid line information.
12460         * symtab.h: Document use of zero line number entry.
12461
12462 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12463
12464         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12465         (have_ptrace_getvrregs): Define for run time checks.
12466         (gdb_vrregset_t): New type for Altivec register handling.
12467         (fetch_register, store_register): Fetch/store altivec register
12468         when needed.
12469         (fetch_altivec_register, store_altivec_register): New functions.
12470         (supply_vrregset, fill_vrregset): New functions.
12471         (fetch_altivec_registers, store_altivec_registers): New functions.
12472         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12473         registers as well.
12474
12475 2002-02-21  Jiri Smid  <smid@suse.cz>
12476
12477         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12478
12479 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12480
12481         * Makefile.in (armnbsd-nat.o): Update dependencies.
12482         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12483         supply the integer register set.
12484         (supply_fparegset): New function.  Similar for FPA registers.
12485         (fetch_regs, fetch_fp_regs): Use them.
12486         (fetch_core_registers): Likewise.
12487         (fetch_elfcore_registers): New function.
12488         (arm_netbsd_elfcore_fns): New core-file type specification.
12489         (_initialize_arm_netbsd_nat): Register it.
12490
12491 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12492
12493         * armnbsd-nat.c: Include gdbcore.h.
12494         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12495         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12496         'void' to declaration, to shut up ARI.
12497         (fetch_core_registers): Make static.  Rewrite using supply_register.
12498         (arm_netbsd_core_fns): New core-file type specification.
12499         (_initialize_arm_netbsd_nat): New function.
12500
12501 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12502
12503         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12504         value.
12505
12506 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12507
12508         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12509         fails.
12510
12511 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12512
12513         * jv-exp.y (parse_number): Change type of implicit longs
12514         to builtin_type_uint64.
12515
12516 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12517
12518         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12519         to be an integer instead of a `union wait'.
12520
12521 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12522
12523         * mips-linux-nat.c: Call the operating system GNU/Linux.
12524         * mips-linux-tdep.c: Likewise.
12525         * mips-tdep.c: Likewise.
12526
12527 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12528
12529         Fix PR gdb/265.
12530         * jv-exp.y (parse_number): Handle 64-bit integers.
12531
12532 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12533
12534         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12535         AC_STDC_HEADERS to AC_HEADER_STDC.
12536         * gdbserver/configure: Regenerated.
12537
12538 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12539
12540         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12541         is defined.
12542         * sparc-tdep.c (get_longjmp_target): Likewise.
12543
12544 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12545
12546         * News: Add news about ARM and Multi-arch.  Mention the new target
12547         arm*-*-netbsd*.
12548
12549 2002-02-19  Jim Blandy  <jimb@redhat.com>
12550
12551         * stabsread.c (error_type_complaint): Improve error message.
12552
12553 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12554
12555         * gdbserver/README: Update documentation.
12556         * gdbserver/configure.in: Update configury to match documentation.
12557         * gdbserver/Makefile.in: Likewise.
12558         * gdbserver/configure: Regenerated.
12559         * gdbserver/aclocal.m4: New file, generated by aclocal.
12560         * gdbserver/config.in: New file, generated by autoheader.
12561
12562 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12563
12564         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12565         armnbsd-nat.c.
12566
12567 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12568
12569         * arm-tdep.h (enum arm_float_model): New enum.
12570         (struct gdbarch_tdep): Add fp_model.
12571         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12572         up floating-point conversions until we know the floating-point model
12573         in use by the inferior.  Don't complain about being unable to
12574         determine the ABI of the inferior when we don't have one.
12575         (arm_extract_return_value): Support different floating-point models.
12576         (arm_store_return_value): Likewise.
12577         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12578         ARM_FLOAT_SOFT.
12579         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12580
12581 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12582
12583         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12584         of ``current_gdbarch''.
12585
12586 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12587
12588         * armnbsd-nat.c : ANSIfy all function declarations.
12589         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12590         (fetch_inferior_registers): Re-implement in terms of above.
12591         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12592         (store_inferior_registers): Re-implement in terms of above.
12593
12594 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12595
12596         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12597         kernel.
12598         * arm-linux-tdep.c: Likewise.
12599         * config/arm/tm-linux.h: Likewise.
12600
12601 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12602
12603         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12604         * config/arm/nbsd.mt (TM_FILE): Delete.
12605         * config/arm/tm-nbsd.h: Delete.
12606
12607 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12608
12609         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12610         Initialize CALL_DUMMY_LENGTH.
12611
12612 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12613
12614         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12615         function.
12616         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12617         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12618         defines one thing and that is incorrect for this port.
12619         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12620
12621 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12622
12623         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12624
12625 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12626
12627         * win32-nat.c (display_selector): New function. Displays information
12628         about the information returned by GetThreadSelectorEntry API function.
12629         (display_selectors): New function. Displays the infomation of
12630         the selector given as argument, or of CS, DS ans FS selectors
12631         if no argument is given.
12632         ( _initialize_inftarg): Add "w32" as info prefix command.
12633         Add "info w32 selector" as command calling display_selectors.
12634
12635 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12636
12637         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12638         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12639         if not defined.
12640
12641 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12642
12643         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12644
12645 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12646
12647         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12648         (arm_fix_call_dummy): Call it.
12649         (arm_call_dummy_breakpoint_offset): Delete.
12650         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12651         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12652
12653 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12654
12655         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12656         Default to func_frame_chain_valid.
12657         * gdbarch.h, gdbarch.c: Re-generate.
12658         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12659
12660 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12661
12662         * ppc-linux-nat.c: Update copyright.
12663         (fetch_register, store_register): Add tid parameter, don't compute
12664         tid here.
12665         (fetch_ppc_registers, store_ppc_registers): Add tid
12666         parameter. Pass it along to callees.
12667         (fetch_inferior_registers, store_inferior_registers): Compute tid
12668         here, and pass it to calleed functions.
12669         (fill_gregset, supply_fpregset): Clean up formatting.
12670
12671 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12672
12673         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12674         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12675
12676 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12677
12678         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12679         * gdbarch.c gdbarch.h: Regenerate.
12680         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12681         function.
12682         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12683         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12684         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12685
12686         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12687         * arm-tdep.c (arm_get_longjmp_target): New function.
12688         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12689         this to a positive value register arm_get_longjmp_target as the
12690         longjmp handler.
12691         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12692         (arm_linux_init_abi): Set up longjmp description in tdep.
12693         * armnbsd-nat.c (get_longjmp_target): Delete.
12694         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12695         description in tdep.
12696         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12697         (get_longjmp_target): Delete declaration.
12698         (GET_LONGJMP_TARGET): Delete.
12699         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12700         (GET_LONGJMP_TARGET): Delete.
12701
12702 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12703
12704         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12705         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12706         of ``current_gdbarch''.
12707
12708 2002-02-17  Tom Tromey  <tromey@redhat.com>
12709
12710         * cli/cli-cmds.c (compare_strings): New function.
12711         (complete_command): Only print each unique item once.
12712         * completer.h (complete_line): Declare.
12713         * completer.c (complete_line): New function.
12714         (line_completion_function): Use it.
12715
12716 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12717
12718         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12719         * gdbarch.h, gdbarch.c: Re-generate.
12720
12721 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12722
12723         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12724
12725 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12726
12727         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12728         * valops.c (value_arg_coerce): Don't take the address of a reference
12729         to convert an argument to a reference.
12730
12731 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12732
12733         * win32-nat.c (get_image_name): New function.
12734         (handle_load_dll): Use get_image_name function.
12735         (get_child_debug_event): Avoid registering debug events until possibly
12736         execed process is started.
12737         (child_create_inferior): Allow invocation via shell so that command
12738         line redirection, etc.  works ok.
12739         (_initialize_inftarg): Add new command: "set shell" to control whether
12740         a shell is used to start a process.
12741
12742 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12743
12744         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12745         instead of find_register_by_number.
12746         (cannot_store_register): Likewise.
12747
12748 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12749
12750         * dwarf2read.c: Replace fprintf (stderr, ...) by
12751         fprintf_unfiltered (gdb_stderr, ...).
12752
12753 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12754
12755         * gdbserver/gdbserver.1: Document --attach.
12756
12757 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12758
12759         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12760         descriptions.
12761         * arm-tdep.c (arm_default_arm_le_breakpoint)
12762         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12763         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12764         traditional breakpoint defines.
12765         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12766         (arm_gdbarch_init): Initialize new breakpoint variables.
12767         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12768         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12769         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12770         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12771         code out to ...
12772         (arm_netbsd_init_abi_common): ... here; new function.
12773         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12774         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12775         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12776         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12777
12778 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12779
12780         * arm-tdep.h (enum arm_abi): New enum.
12781         (struct gdbarch_tdep): New structure.
12782         (LOWEST_PC): Provide a default.
12783         (arm_gdbarch_register_os_abi): Declare new function.
12784         * arm-tdep.c (arm_abi_names): New array.
12785         (process_note_abi_tag_sections): New function.
12786         (get_elfosabi): New function.
12787         (arm_gdbarch_register_os_abi): New function.
12788         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12789         support for that ABI has been built in, then call the appropriate
12790         configuration routine.  Use gdbarch_num_regs() to get the number
12791         of registers.
12792         (arm_dump_tdep): New function.
12793         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12794         place-holder functions.
12795         (_initialize_arm_tdep): Register them.
12796         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12797
12798         * armnbsd-tdep.c: New file.
12799         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12800         * config/arm/nbsd.mt (TDEPFILES): Add it.
12801         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12802
12803         * armnbsd-nat.c: Include regcache.h.
12804         * Makefile.in (armnbsd-nat.o): Update dependency list.
12805
12806         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12807
12808 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12809
12810         * gdbserver/Makefile.in: Fix typos in target rules.
12811
12812 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12813
12814         Fix part of PR gdb/267.
12815         * linespec.c (find_methods): Handle constructors specially for now.
12816
12817 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12818
12819         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12820         handling.
12821         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12822         standard_coerce_float_to_double().
12823
12824 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12825
12826         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12827         GDBINIT_FILENAME.
12828
12829 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12830
12831         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12832         find_variant_by_name, because it confuses the multiarch
12833         framework. Return NULL if there isn't an architecture with the
12834         user supplied name, instead of forcing a different one without
12835         recording the change with the multiarch machinery.
12836         (find_variant_by_name): Delete.
12837
12838 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12839
12840         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12841         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12842
12843 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12844
12845         * stack.c (print_frame_info_base): When calling
12846         print_frame_info_listing_hook, set current_source_symtab.
12847
12848 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12849
12850         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12851         and remove unused $(INCLUDE_DIR).
12852         Add regcache.c to OBS.
12853         Add generated register protocol files to clean target.
12854         Update dependencies for new objects, obsolete old target code.
12855
12856         * gdbserver/linux-low.c: Remove all platform-specific code to
12857         new files.  Remove various dead code.  Update to use regcache
12858         functionality.
12859         * gdbserver/remote-utils.c (fromhex): Add return statement
12860         to quiet warning.
12861         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12862         constant.
12863         (input_interrupt): Add integer parameter to match prototype
12864         of a signal handler.
12865         (outreg): Use register_data ().
12866         (prepare_resume_reply): Use gdbserver_expedite_regs.
12867         * gdbserver/server.c (main): Dynamically allocate own_buf because
12868         PBUFSIZ is no longer constant.  Use registers_to_string () and
12869         registers_from_string ().
12870         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
12871         for error (), fatal (), and warning ().  Update definition of
12872         PBUFSIZ to use regcache functionality.  Add include guard.
12873         * gdbserver/utils.c (fatal): Add missing ``const''.
12874         (warning): New function.
12875
12876         * regformats/regdat.sh: Include "regcache.h" in generated files.
12877         Provide init_registers () function.
12878         * regformats/regdef.h: Add prototype for set_register_cache ().
12879         Add include guard.
12880
12881         * gdbserver/linux-arm-low.c: New file.
12882         * gdbserver/linux-i386-low.c: New file.
12883         * gdbserver/linux-ia64-low.c: New file.
12884         * gdbserver/linux-m68k-low.c: New file.
12885         * gdbserver/linux-mips-low.c: New file.
12886         * gdbserver/linux-ppc-low.c: New file.
12887         * gdbserver/linux-sh-low.c: New file.
12888
12889         * gdbserver/regcache.c: New file.
12890         * gdbserver/regcache.h: New file.
12891
12892         * gdbserver/low-linux.c: Removed obsolete file.
12893
12894 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12895
12896         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12897         * config/i386/linux.mt: Likewise.
12898         * config/ia64/linux.mt: Likewise.
12899         * config/m68k/linux.mh: Likewise.
12900         * config/powerpc/linux.mh: Likewise.
12901         * config/mips/linux.mt: Likewise.
12902
12903         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12904
12905         * config/i386/i386lynx.mh: Mark gdbserver variables
12906         as (currently) obsolete for this target.
12907         * config/i386/nbsd.mt: Likewise.
12908         * config/i386/nbsdelf.mt: Likewise.
12909         * config/m32r/m32r.mt: Likewise.
12910         * config/m68k/m68klynx.mh: Likewise.
12911         * config/m68k/nbsd.mt: Likewise.
12912         * config/m68k/sun3os4.mh: Likewise.
12913         * config/mips/vr5000.mt: Likewise.
12914         * config/ns32k/nbsd.mt: Likewise.
12915         * config/pa/hppabsd.mh: Likewise.
12916         * config/pa/hppaosf.mh: Likewise.
12917         * config/powerpc/nbsd.mt: Likewise.
12918         * config/rs6000/rs6000lynx.mh: Likewise.
12919         * config/s390/s390.mt: Likewise.
12920         * config/s390/s390x.mt: Likewise.
12921         * config/sparc/sparclynx.mh: Likewise.
12922         * config/sparc/sun4os4.mh: Likewise.
12923         * config/i386/x86-64linux.mt: Likewise.
12924         * config/sparc/linux.mh: Likewise.
12925
12926 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12927
12928         * configure.tgt: Configure gdbserver only for known working
12929         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
12930         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
12931         SUBDIRS if it is configured.  Update comment for ${nativefile}.
12932         * configure: Regenerated.
12933
12934 2002-02-13  Michael Snyder  <msnyder@redhat.com>
12935
12936         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12937
12938         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12939         (default_gcore_mach): Just return 0, work around a problem in bfd.
12940         (default_gcore_target): OK to return NULL if exec_bfd is null.
12941         (make_mem_sec): Use a cast, avoid a warning.
12942
12943         * procfs.c (find_memory_regions_callback): Use a cast instead of
12944         calling host_pointer_to_address (which complains if
12945         sizeof (host pointer) != sizeof (target pointer)).
12946         (procfs_make_note_section): Avoid overflow in psargs string.
12947
12948         * procfs.c (procfs_make_note_section): Make the default
12949         implementation return an error.
12950
12951 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
12952
12953         * procfs.c (procfs_make_note_section): Provide a default definition
12954         (for alpha-dec-osf4.0f). Fix typos.
12955
12956 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
12957
12958         * linux-proc.c: Add include of regcache.h.
12959         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12960
12961 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
12962
12963         From 2002-01-18 Greg McGary <greg@mcgary.org>:
12964         * memattr.c (create_mem_region): Disallow useless empty region.
12965         Regions are half-open intervals, so allow [A..B) [B..C) as
12966         non-overlapping.
12967
12968 2002-02-13  Michael Chastain <mec@shout.net>
12969
12970         * defs.h: Kill CONST_PTR.
12971         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12972         * c-lang.c (c_builtin_types): Likewise.
12973         * ch-lang.c (ch_builtin_types): Likewise.
12974         * f-lang.c (f_builtin_types): Likewise.
12975         * language.c (unknown_builtin_types): Likewise.
12976         * m2-lang.c (m2_builtin_types): Likewise.
12977         * p-lang.c (pascal_builtin_types): Likewise.
12978         * scm-lang.c (c_builtin_types): Likewise.
12979
12980 2002-02-13  Keith Seitz  <keiths@redhat.com>
12981
12982         * arm-tdep.h (arm_get_next_pc): Add declaration.
12983
12984 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
12985
12986         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
12987         with other related struct-returning functions.
12988         (arm_extract_struct_value_address): New function.
12989         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
12990         initialize float_format, double_format and long_double_format as
12991         appropriate to the endianness of the target.
12992         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12993         (arm_use_struct_convention): Delete declaration.
12994         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12995
12996 2002-02-13  Keith Seitz  <keiths@redhat.com>
12997
12998         * defs.h (core_addr_to_string_nz): New function.
12999
13000 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13001
13002         Apply missing bits of 2002-01-15 patch.
13003         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13004         (fill_fpregset): Use i387_fill_fsave.
13005
13006 2002-02-12  Keith Seitz  <keiths@redhat.com>
13007
13008         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13009         (core_addr_to_string_nz): New function.
13010
13011 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13012
13013         * arm-linux-nat.c: Really include arm-tdep.h.
13014         * config/arm/tm-linux.h (struct type, struct value): Declare.
13015
13016 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13017
13018         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13019         (gcore section): Ifdef for Solaris and Unixware only.
13020         (procfs_do_thread_registers): Unixware needs one lwpstatus
13021         per thread (not one prstatus or pstatus).
13022         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13023         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13024         once before iterating over threads.
13025
13026 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13027
13028         * arm-tdep.h: New file.
13029         * arm-tdep.c: Include arm-tdep.h.
13030         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13031         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13032         (arm_print_float_info, arm_register_type, convert_to_extended)
13033         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13034         (arm_extract_return_value, arm_register_name): Make static.
13035         (arm_software_single_step): Similarly.  Fix types in declaration.
13036         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13037         (arm_store_return_value, arm_store_struct_return): New functions.
13038         (arm_gdbarch_init): Register the above functions.  Also register
13039         call_dummy_start_offset, sizeof_call_dummy_words,
13040         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13041         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13042         max_register_virtual_size, register_size.  Set up
13043         prologue_cache.saved_regs here, rather than ...
13044         (_initialize_arm_tdep): ... here.
13045         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13046         declarations.
13047         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13048         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13049         (arm_print_float_info, arm_register_type, convert_to_extended)
13050         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13051         (arm_extract_return_value, arm_register_name): Delete declarations.
13052         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13053         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13054         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13055         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13056         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13057         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13058         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13059         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13060         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13061         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13062         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13063         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13064         interface.
13065         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13066         * remote-rdi.c remote-rdp.c: Likewise.
13067         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13068         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13069         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13070         definition.
13071
13072         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13073         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13074         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13075         from non-ARM_ prefixed definitions.
13076         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13077         all uses of above.
13078         * remote-rdi.c remote-rdp.c: Likewise.
13079         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13080
13081 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13082
13083         * arm-tdep.c (arm_frameless_function_invocation)
13084         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13085         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13086         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13087         (arm_pop_frame, arm_get_next_pc): Make static.
13088         (arm_gdbarch_init): Register above in gdbarch structure.
13089         (arm_read_fp): Renamed from arm_target_read_fp.
13090         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13091         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13092         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13093         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13094         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13095         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13096         (arm_pc_is_thumb_dummy): Delete declarations.
13097         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13098         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13099         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13100         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13101
13102 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13103
13104         * symtab.c (compare_search_syms): New function.
13105         (sort_search_symbols): New function.
13106         (search_symbols): Sort symbols after searching rather than
13107         before.
13108
13109 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13110
13111         * NEWS: Linux -> GNU/Linux.
13112
13113 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13114
13115         * gdbarch.sh: For for level one methods, disallow a definition
13116         when partially multi-arched.  Add comments explaining rationale.
13117         * gdbarch.h: Re-generate.
13118
13119 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13120
13121         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13122         multi-arch partial.
13123
13124 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13125
13126         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13127         field.  Use diff -u.
13128         * gdbarch.c: Re-generate.
13129
13130 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13131
13132         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13133         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13134         partial.
13135
13136 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13137
13138         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13139         multi-arch partial.
13140         (PUSH_ARGUMENTS): Switch to using predefault.
13141         * gdbarch.c: Regenerate.
13142
13143 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13144
13145         * valops.c (PUSH_ARGUMENTS): Delete definition.
13146         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13147         partial.  Default to default_push_arguments.
13148         * gdbarch.h, gdbarch.c: Regenerate.
13149
13150 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13151
13152         * defs.h (throw_exception): Rename return_to_top_level.  Update
13153         comments.
13154         * utils.c (error_stream, internal_verror, quit): Ditto.
13155         * top.c (throw_exception, catcher): Ditto.
13156         * sparclet-rom.c (sparclet_load): Ditto.
13157         * remote.c (interrupt_query, minitelnet): Ditto.
13158         * remote-sds.c (interrupt_query): Ditto.
13159         * remote-mips.c (mips_error, mips_kill): Ditto.
13160         * ocd.c (interrupt_query): Ditto.
13161         * monitor.c (monitor_interrupt_query): Ditto.
13162         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13163         * target.h: Update comment.
13164
13165         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13166
13167 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13168
13169         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13170         default_double_format.
13171         * gdbarch.h, gdbarch.c: Re-generate.
13172         * findvar.c (floatformat_unknown): Delete variable definition.
13173         * doublest.h (floatformat_unknown): Delete variable declaration.
13174
13175 2002-02-09  Jim Blandy  <jimb@redhat.com>
13176
13177         * stabsread.c (read_type): Add code to parse Sun's syntax for
13178         prototyped function types.
13179
13180 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13181
13182         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13183         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13184
13185 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13186
13187         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13188         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13189         now _initialize_xcoffsolib gets called again and overrides the
13190         commands from solib.c in a native configuration.
13191
13192 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13193
13194         * doublest.c (store_typed_floating): Don't try to return a value.
13195         Fixes PR gdb/290.
13196
13197 2002-02-08  Jim Blandy  <jimb@redhat.com>
13198
13199         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13200         is prototyped and has no arguments, print its argument list as
13201         `(void)'.
13202
13203 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13204
13205         * MAINTAINERS (write-after-approval): Add myself.
13206         (paper-trail): I've escaped!
13207
13208 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13209
13210         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13211         changes.
13212         (_initialize_check_for_gdb_ini): Ditto.
13213
13214 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13215
13216         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13217         xaprintf -> xasprintf.
13218
13219 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13220
13221         * win32-nat.c: Remove use of printf and sprintf functions.
13222
13223 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13224
13225         * arm-tdep.c (arm_frame_chain_valid): Make static.
13226         (arm_push_arguments): Likewise.
13227         (arm_gdbarch_init): New function.
13228         (_initialize_arm_tdep): Call it.
13229         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13230         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13231         (FRAME_CHAIN_VALID): Delete.
13232         (arm_frame_chain_valid): Delete declaration.
13233         (PUSH_ARGUMENTS): Delete.
13234         (arm_push_arguments): Delete declaration.
13235         (CALL_DUMMY_P): Delete.
13236
13237 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13238             Corinna Vinschen  <vinschen@redhat.com>
13239
13240         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13241         on builtin float types.
13242
13243 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13244
13245         * utils.c: Include <curses.h> before "bfd.h".
13246         * tui/tui-hooks.c: Likewise.
13247         * tui/tui.c: Likewise.
13248         * tui/tuiCommand.c: Likewise.
13249         * tui/tuiData.c: Likewise.
13250         * tui/tuiDataWin.c: Likewise.
13251         * tui/tuiDisassem.c: Likewise.
13252         * tui/tuiGeneralWin.c: Likewise.
13253         * tui/tuiIO.c: Likewise.
13254         * tui/tuiLayout.c: Likewise.
13255         * tui/tuiRegs.c: Likewise.
13256         * tui/tuiSource.c: Likewise.
13257         * tui/tuiSourceWin.c: Likewise.
13258         * tui/tuiStack.c: Likewise.
13259         * tui/tuiWin.c: Likewise.
13260
13261 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13262
13263         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13264         to include space for pseudoregs as well. Update loops accordingly.
13265         (sh_fp_frame_init_saved_regs): Ditto.
13266         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13267
13268 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13269
13270         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13271         Add Richard Earnshaw to Arm maintainers.
13272
13273 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13274
13275         * defs.h (warning_begin): Delete declaration.
13276
13277         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13278         Delete macro.
13279
13280 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13281
13282         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13283         Logic bug, remove misplaced else.
13284
13285 2002-02-07  Klee Dienes  <klee@apple.com>
13286
13287         * fork-inferior.c (fork_inferior): Add '!' to the list of
13288         characters that need to be quoted when building a string for the
13289         shell.  Quote '!' specifically with a backslash, since CSH chokes
13290         when trying to evaluate "str!str".
13291
13292 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13293
13294         * rdi-share/host.h: Only provide a typedef for bool if it is not
13295         defined.
13296
13297 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13298
13299         * breakpoint.h (enum bptype): Add new overlay event bp type.
13300         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13301
13302         * breakpoint.c (create_internal_breakpoint): New function.
13303         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13304         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13305         (create_thread_event_breakpoint): Ditto.
13306         (create_solib_event_breakpoint): Ditto.
13307         (create_overlay_event_breakpoint): New function.
13308         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13309         (update_breakpoints_after_exec): Delete and re-initialize
13310         overlay event breakpoints after an exec.  Add FIXME comment
13311         about longjmp breakpoint.
13312         (print_it_typical): Ignore overlay event breakpoints.
13313         (print_one_breakpoint): Ditto.
13314         (mention): Ditto.
13315         (bpstat_what): Do not stop for overlay event breakpoints.
13316         (delete_breakpoint): Don't delete overlay event breakpoints.
13317         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13318         (breakpoint_re_set): Re-create overlay event breakpoint.
13319
13320         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13321         (overlay_manual_command): Disable overlay breakpoints.
13322         (overlay_off_command): Disable overlay breakpoints.
13323
13324 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13325
13326         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13327         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13328         to here from config/tm-arm.h.
13329         (coff_sym_is_thumb): Make static.
13330         (arm_elf_make_msymbol_special): New function.
13331         (arm_coff_make_msymbol_special): New function.
13332         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13333         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13334         (coff_sym_is_thumb): Delete declaration.
13335         (arm_elf_make_msymbol_special): Declare.
13336         (arm_coff_make_msymbol_special): Declare.
13337         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13338         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13339
13340 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13341
13342         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13343
13344 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13345
13346         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13347         * gdbarch.c gdbarch.h: Regenerate.
13348         * arch-utils.c (default_print_float_info): New function.
13349         * arch-utils.h (default_print_float_info): Prototype it.
13350         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13351         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13352         (PRINT_FLOAT_INFO): Document it.
13353
13354         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13355         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13356         (PRINT_FLOAT_INFO): Define.
13357
13358 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13359
13360         * win32-nat.c (_initialize_check_for_gdb_ini):
13361         Add typecast to sprintf argument to suppress a warning.
13362
13363 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13364
13365         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13366         to allow easier handling of pass state.
13367         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13368         that gives exception name and address.
13369         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13370         and set last_sig value to ourstatus->value.sig. Some missing
13371         exceptions added.
13372         (child_continue): Correctly report continue_status.
13373         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13374         TARGET_SIGNAL_0 (new default value).
13375         (child_resume): consider sig argument passed to decide if
13376         the exception should be passed to debuggee or not.
13377
13378 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13379
13380         * regcache.c (fetch_register): Call target_fetch_register
13381         only if we don't call FETCH_PSEUDO_REGISTER.
13382         (store_register): Call target_store_register only if we
13383         don't call STORE_PSEUDO_REGISTER.
13384
13385 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13386
13387         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13388         ELF_MAKE_MSYMBOL_SPECIAL.
13389         * gdbarch.c, gdbarch.h: Regenerate.
13390         * arch-utils.c (default_make_msymbol_special): New function.
13391         * arch-utils.h (default_make_msymbol_special): Export.
13392         * elfread.c (elf_symtab_read): Compile use of
13393         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13394         multiarched.
13395         * coffread.c (coff_symtab_read): Ditto, for
13396         COFF_MAKE_MSYMBOL_SPECIAL.
13397
13398 2002-02-05  Jim Blandy  <jimb@redhat.com>
13399
13400         * solib-svr4.c (svr4_truncate_ptr): New function.
13401         (svr4_relocate_section_addresses): Do the address arithmetic with
13402         the appropriate truncation for target addresses, even when
13403         CORE_ADDR is larger than a target address.
13404
13405 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13406
13407         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13408         to (int *).
13409
13410 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13411
13412         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13413         code.
13414
13415 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13416
13417         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13418
13419 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13420
13421         * gdbserver/linux-low.c: Remove unused include files.
13422
13423 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13424
13425         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13426         (read_inferior_memory): Use it.
13427         (write_inferior_memory): Likewise.
13428
13429 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13430
13431         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13432         grubbing through sys_errlist.
13433
13434 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13435
13436         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13437
13438 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13439         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13440
13441 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13442
13443         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13444         (do_sfunc, set_cmd_sfunc): New functions.
13445
13446         * command.h (struct cmd_list_element): Add field func.
13447         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13448         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13449         * cli/cli-decode.h: Ditto.
13450
13451         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13452         (help_all, help_cmd_list): Ditto.
13453         (find_cmd, complete_on_cmdlist): Ditto.
13454         * top.c (execute_command): Ditto.
13455
13456         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13457         function.sfunc.
13458
13459         * infcmd.c (notice_args_read): Fix function signature.
13460
13461         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13462         * cli/cli-decode.c (add_set_cmd): Ditto.
13463         * utils.c (initialize_utils): Ditto.
13464         * maint.c (_initialize_maint_cmds): Ditto.
13465         * infrun.c (_initialize_infrun): Ditto.
13466         * demangle.c (_initialize_demangler): Ditto.
13467         * remote.c (add_packet_config_cmd): Ditto.
13468         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13469         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13470         * proc-api.c (_initialize_proc_api): Ditto.
13471         * kod.c (_initialize_kod): Ditto.
13472         * valprint.c (_initialize_valprint): Ditto.
13473         * top.c (init_main): Ditto.
13474         * infcmd.c (_initialize_infcmd): Ditto.
13475         * corefile.c (_initialize_core): Ditto.
13476         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13477         * arch-utils.c (initialize_current_architecture): Ditto.
13478         (_initialize_gdbarch_utils): Ditto.
13479         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13480
13481         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13482         * wince.c (_initialize_inftarg): Ditto.
13483         * symfile.c (_initialize_symfile): Ditto.
13484         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13485         * language.c (_initialize_language): Ditto.
13486         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13487
13488 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13489
13490         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13491
13492 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13493
13494         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13495         Add rules for building the register data files.
13496
13497 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13498
13499         * regformats/regdat.sh: Add braces to the definition of
13500         expedite_regs_${arch}.
13501
13502 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13503
13504         * regformats/regdef.h (struct reg): Add comment describing the
13505         requirements for offset and size fields.
13506
13507 2002-02-04  Andreas Schwab  <schwab@suse.de>
13508
13509         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13510         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13511
13512 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13513
13514         * gdbarch.sh (copyright): Update years in generated header.
13515         (SMASH_TEXT_ADDRESS): Add rule.
13516         * gdbarch.h, gdbarch.c: Re-generate.
13517         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13518         * dbxread.c: Likewise.
13519         * dwarfread.c: Likewise.
13520         * elfread.c: Likewise.
13521         * somread.c: Likewise.
13522
13523         * arm-tdep.c (arm_smash_text_address): New function.
13524         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13525
13526 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13527
13528         Add support for hardware watchpoints on win32 native.
13529         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13530         CONTEXT_DEBUG_REGISTERS.
13531         (dr variable): New variable. Static array containing a local copy
13532         of debug registers.
13533         (debug_registers_changed): New variable.  Reflects when debug registers
13534         are changed and need to be written to inferior.
13535         (debug_registers_used): New variable. Reflects when any debug register
13536         was set, used when new threads are created.
13537         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13538         i386-nat code.
13539         (thread_rec): Set dr array if id is the thread of current_event .
13540         (child_continue, child_resume): Change the debug registers for all
13541         threads if debug_registers_changed.
13542         (child_add_thread): Change the debug registers if debug_registers_used.
13543         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13544         Link nm.h to new nm-cygwin.h file.
13545         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13546         of hardware registers.
13547
13548 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13549
13550         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13551         Restore behavour broken by 2002-01-20 Andrew Cagney
13552         <ac131313@redhat.com> IEEE_FLOAT removal.
13553
13554 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13555
13556         * c-valprint.c (c_val_print): Pass a proper valaddr to
13557         cp_print_class_method.
13558         * valops.c (search_struct_method): If there is only one method
13559         and args is NULL, return that method.
13560
13561 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13562
13563         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13564         accessing tag_name directly.
13565
13566 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13567
13568         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13569         of accessing tag_name directly.
13570
13571 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13572
13573         PR gdb/280
13574         * gdbtypes.c (replace_type): New function.
13575         * gdbtypes.h (replace_type): Add prototype.
13576         * stabsread.c (read_type): Use replace_type.
13577
13578 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13579
13580         * Makefile.in (memattr.o): Add missing dependencies rule.
13581
13582 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13583
13584         * breakpoint.c (break_at_finish_command): Really export.
13585         (break_at_finish_at_depth_command): Ditto.
13586         (tbreak_at_finish_command): Ditto.
13587         * hppa-tdep.c: Include completer.h.
13588         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13589         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13590
13591 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13592
13593         * utils.c (do_write): New function.
13594         (error_stream): Rewrite combining the code from error_begin and
13595         verror.
13596         (verror): Rewrite using error_stream.
13597         (error_begin): Delete function.
13598
13599 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13600
13601         * utils.c (error_begin): Make static.
13602         * defs.h (error_begin): Delete declaration.
13603
13604         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13605         (decode_line_1): Use cplusplus_error instead of error_begin,
13606         cplusplus_hint and return_to_top_level.
13607         * coffread.c (coff_symfile_read): Use error instead of error_begin
13608         and return_to_top_level.
13609         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13610
13611 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13612
13613         * language.h (type_error, range_error): Make string parameter
13614         constant.
13615         * language.c (warning_pre_print): Delete extern declaration.
13616         * dwarfread.c (warning_pre_print): Ditto.
13617         * language.c (type_error, range_error): Rewrite to use verror and
13618         vwarning instead of warning_begin.
13619
13620 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13621
13622         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13623         (set_ignore_count): Move misplaced comment back where it belongs.
13624
13625 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13626
13627         * command.h (NO_FUNCTION): Delete macro.
13628         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13629         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13630         * tracepoint.c (_initialize_tracepoint): Ditto.
13631         * cli/cli-decode.c (add_set_cmd): Ditto.
13632         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13633
13634 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13635
13636         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13637         Update ``this'' pointer when calling virtual functions.
13638
13639 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13640
13641         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13642         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13643
13644 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13645
13646         * regformats/reg-arm.dat: New file.
13647         * regformats/reg-i386.dat: New file.
13648         * regformats/reg-ia64.dat: New file.
13649         * regformats/reg-m68k.dat: New file.
13650         * regformats/reg-mips.dat: New file.
13651         * regformats/reg-ppc.dat: New file.
13652         * regformats/reg-sh.dat: New file.
13653         * regformats/regdef.h: New file.
13654         * regformats/regdat.sh: New file.
13655
13656 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13657
13658         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13659         (arm_frame_args_address, arm_frame_locals_address): New functions.
13660         (arm_frame_num_args): New function.
13661         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13662         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13663         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13664
13665 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13666
13667         * breakpoint.c (break_at_finish_command): Export.
13668         (break_at_finish_at_depth_command): Export.
13669         (tbreak_at_finish_command): Export.
13670         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13671         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13672         "txbreak" commands, which are HPPA specific.
13673
13674         * printcmd.c (disassemble_command): Remove an ancient
13675         artifact of an old merge.
13676
13677         * symfile.h (enum overlay_debugging_state):
13678         Define enum constant values for overlay mode.
13679         * symfile.c (overlay_debugging): Use enums instead of literals.
13680         (overlay_is_mapped, overlay_auto_command,
13681         overlay_manual_command): Ditto.
13682
13683         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13684         breakpoint_here_p, breakpoint_inserted_here_p,
13685         breakpoint_thread_match, bpstat_stop_status,
13686         describe_other_breakpoints, check_duplicates, clear_command):
13687         Coding standard fixes.
13688
13689         * target.c (target_xfer_memory): Add spaces, coding standard.
13690         (do_xfer_memory): Add missing line to trust-readonly
13691         code: check bfd SEC_READONLY flag for section.
13692
13693 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13694
13695         * PROBLEMS: Fix typo, 5.1->5.1.1.
13696
13697 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13698
13699         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13700         data symbols, since we search based on textlow and texthigh.
13701         (find_pc_sect_symtab): Likewise.
13702
13703 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13704
13705         * defs.h (vwarning): Declare.
13706         * utils.c (vwarning): New function.
13707         (warning): Call vwarning.
13708         (warning_begin): Delete function.
13709
13710         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13711         the warning message.
13712         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13713         warning_begin.
13714
13715 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13716
13717         * NEWS: Mention "set trust-readonly-sections" command.
13718         Mention generate-core-file command.
13719
13720 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13721
13722         * target.c: New command, "set trust-readonly-sections on".
13723         (do_xfer_memory): Honor the suggestion to trust readonly sections
13724         by reading them from the object file instead of from the target.
13725         (initialize_targets): Register command "set trust-readonly-sections".
13726
13727 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13728
13729         * parse.c (target_map_name_to_register): Simplify, search regs and
13730         pseudo-regs using a single loop.
13731
13732 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13733
13734         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13735
13736 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13737
13738         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13739         * config/i386/i386v42mp.mh: Add i387-nat.o .
13740         * i386v4-nat.c: Include i387-nat.h.
13741         (supply_fpregset): Use i387_supply_fsave.
13742         (fill_fpregset): Use i387_fill_fsave.
13743
13744 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13745
13746         * arm-tdep.c (arm_call_dummy_words): Define.
13747         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13748         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13749         (CALL_DUMMY_WORDS): Define.
13750         (arm_call_dummy_words): Declare.
13751         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13752         (arm_linux_call_dummy_words): Declare.
13753
13754 2002-01-30  Andreas Schwab  <schwab@suse.de>
13755
13756         * m68klinux-nat.c: Fix last change to use regcache_collect
13757         instead of referencing registers[] directly.
13758
13759 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13760
13761         * parse.c (target_map_name_to_register): Delete code wrapped in
13762         #ifdef REGISTER_NAME_ALIAS_HOOK.
13763
13764 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13765
13766         * regcache.c (legacy_read_register_gen): Need to be able to
13767         read pseudo-register as well as real register.
13768         (legacy_write_register_gen): Ditto.
13769
13770 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13771
13772         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13773         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13774         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13775         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13776         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13777         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13778         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13779         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13780         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13781         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13782         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13783         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13784         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13785         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13786         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13787         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13788         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13789         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13790         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13791         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13792
13793 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13794
13795         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13796         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13797         (initialize_current_architecture): Update target_byte_order using
13798         information from BFD.
13799         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13800         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13801
13802 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13803
13804         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13805         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13806
13807         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13808         #ifdef INVALID_FLOAT.
13809         * infcmd.c (do_registers_info): Ditto.
13810         * values.c (unpack_double): Ditto.  Add comment.
13811
13812         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13813         already commented out.
13814
13815 2002-01-26  Andreas Schwab  <schwab@suse.de>
13816
13817         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13818         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13819         registers and add support for PTRACE_GETREGS.
13820
13821 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13822
13823         GDB 5.1.1 released from 5.1 branch.
13824         * NEWS: Add 5.1.1 news.
13825         * README: Sync with 5.1 branch.
13826
13827 2002-01-23  Fred Fish  <fnf@redhat.com>
13828
13829         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13830         stabstring on initial malloc.  Reallocing will copy it for us,
13831         if necessary.
13832
13833 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13834
13835         * Makefile.in (hpread_h): Delete.
13836         (HFILES_NO_SRCDIR): Remove hpread.h.
13837         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13838         (hpread.o): Update dependencies.
13839         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13840
13841         * hp-psymtab-read.c: Remove file.
13842         * hp-symtab-read.c: Remove file.
13843         * hpread.h: Remove file.
13844
13845         * hpread.c: Merge all contents of hp-psymtab-read.c,
13846         hp-symtab-read.c and hpread.h into this file, as it was prior to
13847         January 1999.
13848
13849         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13850         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13851         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13852         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13853
13854 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13855
13856         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13857         fill_gregset): Call gdbarch_tdep() just once, assign result to
13858         variable and use that, instead of calling the function several
13859         times.
13860
13861 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
13862
13863         * configure.host: Accept sparcv9 as alias for sparc64.
13864         * configure.tgt: Likewise.
13865
13866 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
13867
13868         * solib-aix5.c (build_so_list_from_mapfile)
13869         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13870         arguments is not reversed.
13871         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13872         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13873
13874 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
13875
13876         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13877         modified version of obsolete sh_fetch_pseudo_register.
13878         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13879         (sh4_register_read): New function.
13880         (sh_pseudo_register_write): New function. Renamed and modified
13881         version of obsolete sh_store_pseudo_register.
13882         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13883         (sh4_register_write): New function.
13884         (sh_gdbarch_init): Remove setting of gdbarch function
13885         fetch_pseudo_register and store_pseudo_register. Remove setting of
13886         register_convert_to_raw, register_convert_to_virtual,
13887         register_convertible.
13888         (sh_sh4_register_convertible): Delete. No longer needed. All is
13889         taken care by architecture specific functions
13890         register_read/register_write.
13891         (sh_sh4_register_convert_to_virtual): Make static.
13892         (sh_sh4_register_convert_to_raw): Ditto.
13893
13894 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
13895
13896         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13897         (floatformat_is_nan, floatformat_mantissa): Ditto.
13898
13899         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13900         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13901         builtin_type_ieee_double_little,
13902         builtin_type_ieee_double_littlebyte_bigword,
13903         builtin_type_m68881_ext, builtin_type_i960_ext,
13904         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13905         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13906         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13907         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13908
13909 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
13910
13911         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13912         parameter.  Set frameless flag if it exists and depended of
13913         whether the scanned function is frameless or not.
13914         (xstormy16_skip_prologue): If function is frameless, return
13915         result of xstormy16_scan_prologue().
13916         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13917         call.
13918
13919 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
13920
13921         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13922         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13923         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13924         sh_sh4_register_byte, sh_sh4_register_raw_size,
13925         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13926         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13927         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13928         sh_store_pseudo_register, sh_do_pseudo_register): Call
13929         gdbarch_tdep() just once, assign result to variable and use that,
13930         instead of calling the function several times.
13931
13932 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
13933
13934         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13935         macros instead of LAST_FPU_CTRL_REGNUM.
13936         (store_register): Likewise.
13937
13938 2002-01-21  Jim Blandy  <jimb@redhat.com>
13939
13940         * infcmd.c (run_command): Check that the `exec' target layer's BFD
13941         is up-to-date before running the program, not just when a program
13942         exits.
13943
13944 2002-01-21  Fred Fish  <fnf@redhat.com>
13945
13946         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13947         when we have found all instructions we are looking for.
13948
13949 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13950
13951         * arm-tdep.c (arm_register_name): New function.
13952         (arm_registers_names): Make static.
13953         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13954         (arm_register_name): Declare.
13955         (REGISTER_NAME): Use it.
13956
13957 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13958             Kevin Buettner  <kevinb@redhat.com>
13959
13960         Convert arm targets to new FRAME interface.
13961         * arm-tdep.c (struct frame_extra_info): Remove fsr.
13962         (arm_frame_find_save_regs): Delete.
13963         (arm_frame_init_saved_regs): New.
13964         (arm_init_extra_frame_info): Alloacte saved_regs as required.
13965         Allocate extra_info as required.  Convert all uses of fsr.regs
13966         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13967         to use extra_info.
13968         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13969         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13970         (check_prologue_cache, save_prologue_cache): Likewise.
13971         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13972         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13973         (FRAME_FIND_SAVED_REGS): Delete.
13974         (arm_frame_find_saved_regs): Delete prototype.
13975         (arm_frame_init_saved_regs): New prototype.
13976         (FRAME_INIT_SAVED_REGS): Define.
13977
13978 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13979
13980         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13981
13982 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13983
13984         From Jeff Law <law@redhat.com>:
13985         * infttrace.c: Include <sys/pstat.h>.
13986         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
13987         exec file if the ttrace equivalent fails.
13988
13989 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13990
13991         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13992         (closeLogFile): Ditto.
13993
13994 2002-01-20  Michael Chastain  <mec@shout.net>
13995
13996         * top.c (print_gdb_version): Bump copyright year to 2002.
13997
13998 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13999
14000         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14001         Zannoni and Eli Zaretskii.
14002
14003 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14004
14005         * buildsym.c: Update copyright years.
14006         * c-typeprint.c: Likewise.
14007         * dwarf2read.c: Likewise.
14008         * f-typeprint.c: Likewise.
14009         * gdbtypes.c: Likewise.
14010         * gdbtypes.h: Likewise.
14011         * hp-symtab-read.c: Likewise.
14012         * hpread.c: Likewise.
14013         * mdebugread.c: Likewise.
14014         * p-typeprint.c: Likewise.
14015
14016 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14017
14018         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14019         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14020         byte-order selectable.
14021         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14022         * arch-utils.c: Ditto.
14023         (set_endian): Ditto.
14024         (set_endian_from_file): Ditto.
14025         * gdbserver/low-sim.c (create_inferior): Ditto.
14026         * gdbarch.sh: Ditto.
14027         * gdbarch.h: Re-generate.
14028         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14029         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14030         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14031         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14032         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14033         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14034         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14035         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14036         macro definition.
14037         * config/mips/tm-wince.h: Remove #undef of macro
14038         TARGET_BYTE_ORDER_SELECTABLE.
14039         * config/sh/tm-wince.h: Ditto.
14040
14041 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14042
14043         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14044         member function fields.  Add accessor macro
14045         TYPE_FN_FIELD_ARTIFICIAL.
14046         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14047         * c-typeprint.c (c_type_print_base): Skip artificial member
14048         functions.
14049
14050 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14051
14052         * f-typeprint.c: Delete unused function f_type_print_args.
14053         * p-typeprint.c: Delete unused function pascal_type_print_args.
14054
14055 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14056
14057         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14058         comment.  Add ``artificial'' to ``union field_location''.
14059
14060         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14061
14062         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14063         * mdebugread.c (parse_symbol): Likewise.
14064         * stabsread.c (define_symbol): Likewise.
14065         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14066         initializing TYPE_FIELD_BITPOS to n (obsolete).
14067         (hpread_doc_function_type): Likewise.
14068         * hpread.c (hpread_function_type): Likewise.
14069
14070 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14071
14072         * configure.in (host_makefile_frag): Only require a host makefile
14073         fragment when a native build.
14074         * configure: Re-generate.
14075
14076 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14077
14078         * doublest.h (floatformat_from_type): Declare.
14079         * doublest.c (floatformat_from_type): New function.
14080         (convert_typed_floating): Use.
14081
14082         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14083         call to function floatformat_from_type.
14084
14085         * gdbarch.sh (IEEE_FLOAT): Delete.
14086         * gdbarch.h, gdbarch.c: Re-generate.
14087         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14088         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14089         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14090         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14091         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14092         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14093         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14094         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14095         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14096         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14097         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14098         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14099
14100         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14101         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14102         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14103         * sh-tdep.c (sh_gdbarch_init): Ditto.
14104         * mips-tdep.c (mips_gdbarch_init): Ditto.
14105         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14106         * cris-tdep.c (cris_gdbarch_init): Ditto.
14107
14108 2002-01-20  Jiri Smid  <smid@suse.cz>
14109
14110         * configure.host, configure.tgt: Support x86-64.
14111         * NEWS: Note new target x86-64.
14112
14113         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14114         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14115         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14116         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14117         x86-64-linux-nat.o): Fix dependencies.
14118
14119 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14120
14121         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14122         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14123         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14124         * config/sparc/xm-sun4os4.h: Delete file.
14125         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14126
14127 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14128
14129         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14130         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14131         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14132         * config/i386/i386lynx.mh (XM_FILE): Delete.
14133         * config/rs6000/xm-rs6000ly.h: Delete file.
14134         * config/sparc/xm-sparclynx.h: Delete file.
14135         * config/m68k/xm-m68klynx.h: Delete file.
14136         * config/i386/xm-i386lynx.h: Delete file.
14137         * config/xm-lynx.h: Delete file.
14138         * config/djgpp/fnchange.lst: Update.
14139
14140 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14141
14142         * alpha-tdep.c (alpha_register_byte): New function.
14143         (alpha_register_raw_size): Ditto.
14144         (alpha_register_virtual_size): Ditto.
14145         (alpha_skip_prologue_internal): Renamed from
14146         alpha_skip_prologue.
14147         (alpha_skip_prologue): New version that calls
14148         alpha_skip_prologue_internal.
14149         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14150         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14151         second argument from alpha_skip_prologue.
14152         (REGISTER_BYTE): Use alpha_register_byte.
14153         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14154         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14155         (FRAMELESS_FUNCTION_INVOCATION): Use
14156         generic_frameless_function_invocation_not.
14157         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14158         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14159
14160 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14161
14162         * config/mips/xm-news-mips.h: Delete file.
14163         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14164
14165         * config/m88k/xm-m88k.h: Delete file.
14166         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14167         * config/m88k/xm-delta88v4.h: Ditto.
14168         * config/m88k/xm-delta88.h: Ditto.
14169
14170         * config/alpha/xm-fbsd.h: Delete file.
14171         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14172
14173         * config/sparc/xm-sparc.h: Delete file.
14174         * Makefile.in (xm-sun4os4.h): Delete dependency.
14175         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14176         * config/sparc/xm-sun4os4.h: Ditto.
14177         * config/sparc/xm-linux.h: Ditto.
14178
14179         * config/i386/xm-windows.h: Delete file.
14180
14181 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14182
14183         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14184         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14185
14186 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14187
14188         * alpha-tdep.c (alpha_call_dummy_words): New.
14189         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14190         (CALL_DUMMY_P): Define.
14191         (CALL_DUMMY_WORDS): Define.
14192         (SIZEOF_CALL_DUMMY_WORDS): Define.
14193
14194 2002-01-19  Per Bothner  <per@bothner.com>
14195
14196         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14197         isn't NULL, which can happen with some gcj-3.x-produced code.
14198
14199 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14200
14201         * alpha-tdep.c (alpha_register_virtual_type): New function.
14202         (alpha_init_frame_pc_first): Ditto.
14203         (alpha_fix_call_dummy): Ditto.
14204         (alpha_store_struct_return): Ditto.
14205         (alpha_extract_struct_value_address): Ditto.
14206         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14207         alpha_register_virtual_type.
14208         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14209         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14210         alpha_extract_struct_value_address.
14211         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14212         (INIT_FRAME_PC): Use init_frame_pc_noop.
14213         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14214
14215 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14216
14217         * i386gnu-nat.c: Include "i386-tdep.h".
14218         (fetch_fpregs): Simplify code dealing with uninitialized floating
14219         point states such that it doesn't require FP7_REGNUM.
14220
14221 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14222
14223         * alpha-tdep.c (frame_extra_info): New.
14224         (alpha_find_saved_regs): Make static.  Use
14225         frame->extra_info.
14226         (alpha_frame_init_saved_regs): New function.
14227         (alpha_frame_saved_pc): Use frame->extra_info.
14228         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14229         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14230         (init_extra_frame_info): Rename to...
14231         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14232         (alpha_print_extra_frame_info): New function.
14233         (alpha_frame_locals_address): Ditto.
14234         (alpha_frame_args_address): Ditto.
14235         (alpha_pop_frame): Use frame->extra_info.
14236         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14237         alpha_frame_args_address.
14238         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14239         (alpha_find_saved_regs): Remove prototype.
14240         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14241         (EXTRA_FRAME_INFO): Remove.
14242         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14243         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14244
14245 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14246
14247         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14248         (alpha_cannot_fetch_register): Ditto.
14249         (alpha_cannot_store_register): Ditto.
14250         (alpha_register_convertible): Ditto.
14251         (alpha_use_struct_convention): Ditto.
14252         * config/alpha/tm-alpha.h: Update copyright years.
14253         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14254         (INNER_THAN): Use core_addr_lessthan.
14255         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14256         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14257         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14258         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14259         (FRAME_CHAIN): Remove unnecessary cast.
14260
14261 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14262
14263         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14264         obsolete.
14265
14266 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14267
14268         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14269         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14270         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14271         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14272         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14273         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14274         * x86-64-linux-nat.c: Ditto.
14275
14276 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14277
14278         * alpha-tdep.c (alpha_register_name): New function.
14279         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14280         (REGISTER_NAME): Define.
14281
14282 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14283
14284         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14285
14286 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14287
14288         * alpha-tdep.c: Update copyright years.
14289         (alpha_next_pc): New function.
14290         (alpha_software_single_step): Ditto.
14291         * config/alpha/tm-alpha.h: Add prototype for
14292         alpha_software_single_step.
14293
14294 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14295
14296         * alphabsd-nat.c: Update copyright years.
14297         (fill_gregset): Use regcache_collect.
14298         (fill_fpregset): Likewise.
14299         (fetch_inferior_registers): Only fetch integer registers
14300         if requested to do so.
14301         (store_inferior_registers): Only store integer registers
14302         if requested to do so.
14303
14304 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14305
14306         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14307         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14308         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14309         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14310         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14311         * config/arm/linux.mh (XDEPFILES): Delete.
14312         * config/arm/nbsd.mh (XDEPFILES): Delete.
14313         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14314         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14315         * config/i386/i386m3.mh (XDEPFILES): Delete.
14316         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14317         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14318         * config/i386/fbsd.mh (XDEPFILES): Delete.
14319         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14320         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14321         * config/i386/i386v4.mh (XDEPFILES): Delete.
14322         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14323         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14324         * config/i386/i386aix.mh (XDEPFILES): Delete.
14325         * config/i386/go32.mh (XDEPFILES): Delete.
14326         * config/i386/cygwin.mh (XDEPFILES): Delete.
14327         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14328         * config/i386/i386mach.mh (XDEPFILES): Delete.
14329         * config/i386/i386v32.mh (XDEPFILES): Delete.
14330         * config/i386/linux.mh (XDEPFILES): Delete.
14331         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14332         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14333         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14334         * config/i386/i386sco.mh (XDEPFILES): Delete.
14335         * config/i386/i386v.mh (XDEPFILES): Delete.
14336         * config/i386/nbsd.mh (XDEPFILES): Delete.
14337         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14338         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14339         * config/i386/symmetry.mh (XDEPFILES): Delete.
14340         * config/i386/obsd.mh (XDEPFILES): Delete.
14341         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14342         * config/ia64/linux.mh (XDEPFILES): Delete.
14343         * config/ia64/aix.mh (XDEPFILES): Delete.
14344         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14345         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14346         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14347         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14348         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14349         * config/m68k/linux.mh (XDEPFILES): Delete.
14350         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14351         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14352         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14353         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14354         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14355         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14356         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14357         * config/m88k/delta88.mh (XDEPFILES): Delete.
14358         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14359         * config/m88k/m88k.mh (XDEPFILES): Delete.
14360         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14361         * config/mips/linux.mh (XDEPFILES): Delete.
14362         * config/mips/irix6.mh (XDEPFILES): Delete.
14363         * config/mips/irix5.mh (XDEPFILES): Delete.
14364         * config/mips/irix4.mh (XDEPFILES): Delete.
14365         * config/mips/irix3.mh (XDEPFILES): Delete.
14366         * config/mips/decstation.mh (XDEPFILES): Delete.
14367         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14368         (NATDEPFILES): Move core-aout.o to here.
14369         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14370         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14371         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14372         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14373         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14374         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14375         * config/pa/hpux11.mh (XDEPFILES): Delete.
14376         * config/powerpc/aix.mh (XDEPFILES): Delete.
14377         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14378         * config/powerpc/linux.mh (XDEPFILES): Delete.
14379         * config/romp/rtbsd.mh: Rename XDEPFILES.
14380         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14381         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14382         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14383         * config/s390/s390.mh (XDEPFILES): Delete.
14384         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14385         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14386         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14387         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14388         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14389         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14390         * config/sparc/linux.mh (XDEPFILES): Delete.
14391         * config/vax/vaxult.mh (XDEPFILES): Delete.
14392         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14393         * Makefile.in (DEPFILES): Remove XDEPFILES.
14394
14395 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14396
14397         * utils.c (internal_verror): Fix comments, default is yes not no.
14398         Update queries to match.  Default to quit and dump core.
14399
14400 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14401
14402         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14403         copyright.
14404         * defs.h, event-top.c, gdbcmd.h: Ditto.
14405         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14406         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14407         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14408         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14409         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14410         * mi/mi-main.c:Ditto.
14411
14412         * stack.c, symfile.c: Update copyright.
14413
14414 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14415
14416         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14417         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14418         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14419         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14420
14421 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14422
14423         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14424         * gdbserver/low-lynx.c (myattach): Likewise.
14425         * gdbserver/low-nbsd.c (myattach): Likewise.
14426         * gdbserver/low-sim.c (myattach): Likewise.
14427         * gdbserver/low-sparc.c (myattach): Likewise.
14428         * gdbserver/low-sun3.c (myattach): Likewise.
14429
14430         * gdbserver/low-linux.c (myattach): New function.
14431
14432         * gdbserver/server.c (attach_inferior): New function.
14433         (main): Handle "--attach".
14434
14435 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14436
14437         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14438         maintainer.
14439
14440 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14441
14442         * c-typeprint.c (is_type_conversion_operator): Add additional
14443         check for non-conversion operators.
14444
14445 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14446
14447         * linux-proc.c: Add "info proc" command, a la procfs.c.
14448         (read_mapping): New function, abstract and re-use code.
14449         (linux_find_memory_regions): Use new func read_mapping.
14450         (linux_info_proc_cmd): New function, implement "info proc".
14451         (_initialize_linux_proc): Add new command "info proc".
14452
14453 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14454
14455         * symfile.c (generic_load): Use bfd_map_over_sections method
14456         instead of manipulating bfd structure members directly.
14457         (add_section_size_callback): New function, bfd sections callback
14458         used by generic_load.
14459         (load_sections_callback): New function, bfd sections callback
14460         used by generic_load.
14461
14462 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14463
14464         [Based on work by Jim Blandy]
14465         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14466         (builtin_type_vec128): Export.
14467         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14468         types.
14469         (builtin_type_vec128): New builtin type for 128 bit vector
14470         registers.
14471         (build_gdbtypes): Initialize builtin_type_v16qi and
14472         builtin_type_v8hi. Create the vec128 register builtin type
14473         structure.
14474         (build_builtin_type_vec128): New function.
14475         (_initialize_gdbtypes): Register builtin_type_v16qi and
14476         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14477         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14478         AltiVec register to new builtin type.
14479
14480 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14481
14482         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14483         to make_cv_type.
14484
14485 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14486
14487         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14488         CLEAN_UP_REGISTER_VALUE.
14489         * regcache.c (supply_register): Update only call.
14490
14491 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14492
14493         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14494         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14495         a29k-*-vxworks* targets as obsolete.
14496
14497 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14498
14499         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14500         until we can resolve portability issues.
14501         * gregset.h: Remove references to fpxregs.
14502         * gcore.c (gcore_command): Initialize note_sec to NULL.
14503
14504 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14505
14506         * signals.c (target_signal_to_name): Rewrite.  Only use
14507         signals[].name when in bounds and non-NULL.
14508
14509 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14510
14511         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14512         * signals.c (target_signal_to_name): Verify that SIG is within the
14513         bounds of the signals array.
14514
14515 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14516
14517         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14518
14519 2002-01-13  Keith Seitz  <keiths@redhat.com>
14520
14521         * stack.c (print_frame_info_base): Print the frame's pc
14522         only if when print_frame_info_listing_hook is not defined.
14523
14524 2002-01-13  Keith Seitz  <keiths@redhat.com>
14525
14526         * varobj.c (varobj_set_value): Make sure that there were no
14527         errors evaluating the object before attempting to set its
14528         value.
14529         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14530         so this offset adjustment is no longer necessary.
14531         (create_child): Don't set the error flag if the child is
14532         a CPLUS_FAKE_CHILD.
14533         (value_of_child): If value_fetch_lazy fails, return NULL
14534         so that callers will be notified that an error occurred.
14535         (c_value_of_variable): Delay check of variable's validity
14536         until later. We actually want all structs and unions to have
14537         the value "{...}".
14538         Do not return "???" for variables which could not be evaluated.
14539         This error condition must be returned to the caller so that it
14540         can get the error condition from gdb.
14541         (cplus_name_of_child): Adjust index for vptr before figuring
14542         out the name of the child.
14543         (cplus_value_of_child): If a child's (real) parent is not valid,
14544         don't even bother trying to give a value for it. Just return
14545         an error. Change all instances in this function.
14546         (cplus_type_of_child): If our parent is one of the "fake"
14547         parents, we need to get at the type of the real parent, and
14548         derive the child's true type using this information.
14549
14550 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14551
14552         From 2002-01-09 John Marshall <johnm@falch.net>:
14553         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14554         sources.redhat.com, and tweak some related URLs which had
14555         suffered from linkrot.
14556
14557 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14558
14559         From Jeff law:
14560         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14561         structures passed in registers.
14562
14563 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14564
14565         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14566         white space which prevented compilation.  Reported by DSK
14567         <dsk@student.unsw.edu.au>.
14568
14569 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14570
14571         * symfile.c (build_section_addr_info_from_section_tab):
14572         Use bfd access method instead of manipulating bfd directly.
14573         (syms_from_objfile): Ditto.
14574         (simple_overlay_update_1): Ditto.
14575         (simple_overlay_update): Ditto.
14576         (generic_load): Ditto.
14577         (overlay_unmapped_address): FIXME comment, bfd access methods.
14578         (sections_overlap): FIXME comment, bfd access methods.
14579         (pc_in_mapped_range): FIXME comment, bfd access methods.
14580         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14581         (section_is_mapped): FIXME comment, bfd access methods.
14582         (section_is_overlay): FIXME comment, bfd access methods.
14583
14584         * symfile.c (generic_load): Whitespace and long line cleanups.
14585         Remove duplicate variable, change several local variables to
14586         more appropriate data types.
14587         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14588
14589 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14590
14591         From Peter Schauer:
14592         * language.c (longest_local_hex_string_custom): Use phex_nz to
14593         convert NUM to a hex string.
14594
14595 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14596
14597         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14598         the function.
14599         Update Copyright year.
14600
14601 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14602
14603         * language.c (longest_raw_hex_string): Delete unused function.
14604
14605 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14606
14607         * MAINTAINERS (write-after-approval): Add myself.
14608         * dwarf2read.c (read_tag_string_type): Handling of
14609         DW_AT_byte_size.
14610         (read_tag_string_type): FORTRAN fix to prevent propagation of
14611         first string size.
14612         (set_cu_language): Handling of DW_LANG_Fortran95
14613
14614 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14615
14616         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14617         GETPID(inferior_ptid).
14618         (store_inferior_registers): Likewise.
14619
14620 2002-01-10  Jason Merrill  <jason@redhat.com>
14621
14622         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14623         Fix DW_OP_minus.
14624
14625 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14626
14627         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14628         and bfd/elf32-sh-nbsd.c.
14629
14630 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14631
14632         * NEWS: Mention --pid and corefile/proc-id behavior change.
14633
14634         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14635         * gcore.c: Include cli/cli-decode.h instead of command.h.
14636
14637         * main.c (captured_main): Add new command line option "--pid".
14638         If the second command line argument (following the symbol-file)
14639         begins with a digit, try to attach to it before trying to open
14640         it as a corefile.
14641         (print_gdb_help): Document the "--pid" argument.
14642
14643 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14644
14645         * completer.c (command_completer): New function.
14646
14647         * completer.h <command_completer>: Add prototype.
14648
14649         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14650         completer for the "help" command.
14651
14652 2002-01-09  Jason Merrill  <jason@redhat.com>
14653
14654         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14655
14656 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14657
14658         * i386-linux-nat.c (fill_fpxregset): Make global.
14659         (store_fpxregset): Ditto.
14660
14661         * gregset.h (gdb_fpxregset_t): Define.
14662         (supply_fpxregset): Prototype.
14663         (fill_fpxregset): Prototype.
14664
14665         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14666
14667 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14668
14669         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14670         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14671         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14672
14673 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14674
14675         * MAINTAINERS: Update target maintainer rules so that any
14676         Maintainer can approve a tested patch for a maintenance-only
14677         target.
14678
14679 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14680
14681         * MAINTAINERS (write-after-approval): Add myself.
14682
14683         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14684         IN_SIGTRAMP.
14685
14686 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14687
14688         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14689         real name of the executable, rather than the /proc name.
14690
14691 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14692
14693         Implement a "generate-core-file" command in gdb, save target state.
14694         * gcore.c: New file.  Implement new command 'generate-core-file'.
14695         Save a corefile image of the current state of the inferior.
14696         * linux-proc.c: Add linux-specific code for saving corefiles.
14697         * target.h (struct target_ops): Add new target vectors for saving
14698         corefiles; to_find_memory_regions and to_make_corefile_notes.
14699         (target_find_memory_regions): New macro.
14700         (target_make_corefile_notes): New macro.
14701         * target.c (update_current_target): Inherit new target methods.
14702         (dummy_find_memory_regions): New place-holder method.
14703         (dummy_make_corefile_notes): New place-holder method.
14704         (init_dummy_target): Initialize new dummy target vectors.
14705         * exec.c (exec_set_find_memory_regions): New function.
14706         Allow the exec_ops vector for memory regions to be taken over.
14707         (exec_make_note_section): New function, target vector method.
14708         * defs.h (exec_set_find_memory_regions): Export prototype.
14709         * procfs.c (proc_find_memory_regions): New function, corefile method.
14710         (procfs_make_note_section): New function, corefile method.
14711         (init_procfs_ops): Set new target vector pointers.
14712         (find_memory_regions_callback): New function.
14713         (procfs_do_thread_registers): New function.
14714         (procfs_corefile_thread_callback): New function.
14715         * sol-thread.c (sol_find_memory_regions): New function.
14716         (sol_make_note_section): New function.
14717         (init_sol_thread_ops): Initialize new target vectors.
14718         * inftarg.c (inftarg_set_find_memory_regions): New function.
14719         Allow to_find_memory_regions vector to be taken over.
14720         (inftarg_set_make_corefile_notes): New function.
14721         Allow to_make_corefile_notes vector to be taken over.
14722         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14723         interface layer if not target_has_execution (may be a corefile).
14724         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14725         * config/sparc/sun4sol2.mh: Ditto.
14726         * config/alpha/alpha-linux.mh: Ditto.
14727         * config/arm/linux.mh: Ditto.
14728         * config/i386/x86-64linux.mh: Ditto.
14729         * config/ia64/linux.mh: Ditto.
14730         * config/m68k/linux.mh: Ditto.
14731         * config/mips/linux.mh: Ditto.
14732         * config/powerpc/linux.mh: Ditto.
14733         * config/sparc/linux.mh: Ditto.
14734
14735 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14736
14737         * arm-linux-nat.c: Remove references to regcache.c internal data
14738         (registers[] and register_valid[]).
14739
14740 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14741
14742         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14743         so that attaching to a pid will automatically read the process's
14744         symbol file and shlibs.
14745         * Makefile.in: Add rule for linux-proc.o.
14746         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14747         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14748         * config/arm/linux.mh: Ditto.
14749         * config/i386/linux.mh: Ditto.
14750         * config/i386/x86-64linux.mh: Ditto.
14751         * config/ia64/linux.mh: Ditto.
14752         * config/m68k/linux.mh: Ditto.
14753         * config/mips/linux.mh: Ditto.
14754         * config/powerpc/linux.mh: Ditto.
14755         * config/sparc/linux.mh: Ditto.
14756
14757 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14758
14759         * win32-nat.c: Add i386-tdep.h dependency.
14760
14761 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14762
14763         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14764         instead of bfd_get_arch_size.  Don't bail out just because
14765         there's no exec_bfd.
14766
14767         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14768         * p-valprint.c (pascal_object_print_value): Ditto.
14769         * somread.c (som_symtab_read): Ditto.
14770         * symfile.c (simple_free_overlay_region_table): Ditto.
14771         * valops.c (value_assign): Ditto.
14772
14773         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14774         use tilde_expand and strerror for opening save-tracepoints file.
14775
14776         * thread-db.c (thread_db_new_objfile): Indendation fix.
14777
14778         * infptrace.c (GDB_MAX_ALLOCA): New define.
14779         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14780         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14781         can be overridden with whatever value is appropriate to the host).
14782         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14783         alloca to allocate potentially large buffer.
14784         * rs6000-nat.c (child_xfer_memory): Ditto.
14785         * symm-nat.c (child_xfer_memory): Ditto.
14786         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14787
14788 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14789
14790         From Nick Clifton  <nickc@redhat.com>
14791         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14792
14793 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14794
14795         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14796         Don't use exec_bfd if it's NULL.
14797
14798 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14799
14800         * valops.c (value_arg_coerce): Fix formatting.
14801
14802 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14803
14804         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14805         * gnu-nat.c: Ditto.
14806
14807 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14808
14809         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14810         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14811         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14812         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14813         z8k-coff have not been multi-arched.  Update z8k-coff build
14814         status.
14815
14816 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14817
14818         * MAINTAINERS: Mark a29k target as obsolete.
14819         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14820         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14821         comments.
14822         * NEWS: Note that a29k targets are obsolete.
14823         * a29k-tdep.c: Mark as obsolete.
14824         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14825         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14826         a29k-*-vxworks* targets as obsolete.
14827         * remote-adapt.c: Obsolete.
14828         * remote-eb.c: Obsolete.
14829         * remote-mm.c: Obsolete.
14830         * remote-udi.c: Obsolete.
14831         * config/a29k/a29k-udi.mt: Obsolete.
14832         * config/a29k/a29k.mt: Obsolete.
14833         * config/a29k/tm-a29k.h: Obsolete.
14834         * config/a29k/tm-vx29k.h: Obsolete.
14835         * config/a29k/vx29k.mt: Obsolete.
14836
14837 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14838
14839         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14840         with BFD_ENDIAN_BIG.
14841
14842 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14843
14844         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14845         * configure, config.in: Re-generate.
14846         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14847         * defs.h: Do not include <endian.h>.
14848
14849 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
14850
14851         * acconfig.h (HAVE_PT_GETXMMREGS): New.
14852         * config.in: Regenerate.
14853         * configure.in: Update copyright years.
14854         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14855         * configure: Regenerate.
14856         * i386bsd-nat.c: Update copyright years.
14857         (fill_gregset): Use regcache_collect.
14858         (fetch_inferior_registers): Only fetch integer registers
14859         if requested to do so.  Add support for XMM registers
14860         using PT_GETXMMREGS.
14861         (store_inferior_registers): Only store integer registers
14862         if requested to do so.  Add support for XMM registers
14863         using PT_SETXMMREGS.
14864         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14865         (store_inferior_registers): Remove.
14866         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14867         (fetch_elfcore_registers): New function.
14868         (i386nbsd_elfcore_fns): New.
14869         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14870         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14871         i386bsd-nat.o.
14872         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14873         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14874         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14875         * config/i386/tm-nbsd.h: Update copyright years.
14876         (HAVE_SSE_REGS): Define.
14877         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14878         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14879         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14880         (SIGCONTEXT_PC_OFFSET): Remove.
14881         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14882
14883 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14884
14885         * configure.tgt: Remove powerpc-*-macos* target.
14886         * config/m68k/xm-mpw.h: Delete file.
14887         * config/xm-mpw.h: Delete file.
14888         * ser-mac.c: Delete file.
14889         * mpw-make.sed: Delete file.
14890         * mpw-config.in: Delete file.
14891         * mac-xdep.c: Delete file.
14892         * mac-gdb.r: Delete file.
14893         * mac-defs.h: Delete file.
14894         * mac-nat.c: Delete file.
14895         * config/powerpc/macos.mh: Delete file.
14896         * config/powerpc/macos.mt: Delete file.
14897         * config/powerpc/nm-macos.h: Delete file.
14898         * config/powerpc/tm-macos.h: Delete file.
14899         * source.c (openp, open_source_file): Remove obsolete code.
14900         * top.c (gdb_readline): Ditto.
14901         * utils.c (query): Ditto.
14902         * event-top.c (display_gdb_prompt): Ditto.
14903         * Makefile.in (ser-mac.o): Delete obsolete target.
14904         * NEWS: Update.
14905
14906 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14907
14908         * defs.h (BIG_ENDIAN): Delete macro definition.
14909         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14910         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14911         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14912         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14913         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14914         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14915         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14916         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14917         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14918         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14919         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14920         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14921         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14922         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14923         * gdbarch.c: Re-generate.
14924
14925 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14926
14927         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14928         for core files.
14929
14930 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14931
14932         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14933
14934 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14935
14936         * value.h (value_ptr): Delete typedef.
14937
14938 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14939
14940         * i386nbsd-nat.c: Update copyright years.
14941         Include i386-tdep.h.
14942
14943 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
14944
14945         * stabsread.c: Update copyright years.
14946
14947         From Debashis Mahata <debashis.mahata@wipro.com>:
14948         (read_struct_fields): Deal with Sun C compiler erroneous stab
14949         output for structs and unions.
14950         Fix PR gdb/269.
14951
14952 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14953
14954         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14955         prototype.
14956
14957 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14958
14959         * cp-abi.c: Fix whitespace.
14960         (baseclass_offset): New wrapper function.
14961         * cp-abi.h (baseclass_offset): Add prototype.
14962         (struct cp_abi_ops): Add baseclass_offset pointer.
14963
14964         * valops.c (vb_match): Move to...
14965         * gnu-v2-abi.c (vb_match): here.
14966         * valops.c (baseclass_offset): Move to...
14967         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14968
14969         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14970
14971         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14972         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14973         * hpacc-abi.c (init_hpacc_ops): Likewise.
14974
14975 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14976
14977         * valops.c (find_overload_match): Accept obj as a
14978         reference parameter.  Update it before returning.
14979         * value.h (find_overload_match): Update prototype.
14980         * eval.c (evaluate_subexp_standard): Pass object to
14981         find_overload_match by reference.
14982
14983 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
14984
14985         * valarith.c: Replace value_ptr with struct value pointer.  Remove
14986         register attribute from value declarations.
14987         * valops.c: Ditto.
14988         * value.h: Ditto.
14989         * scm-lang.c (scm_lookup_name): Ditto.
14990
14991 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14992
14993         Abstract the functionality of iterating over mapped memory
14994         regions into a general purpose iterator function.
14995         * procfs.c (iterate_over_mappings): New function, general purpose
14996         iterator for memory sections.
14997         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14998         (solib_mappings_callback): New function, callback for above.
14999         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15000         (info_mappings_callback): New function, callback for above.
15001
15002         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15003
15004 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15005
15006         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15007         * i386-tdep.c: Include "elf-bfd.h".
15008         (process_note_abi_tag_sections): New function.
15009         (i386_gdbarch_init): Add code to recognize various OS/ABI
15010         combinations.
15011
15012         * maint.c (_initialize_maint_cmds): Add missing \ in
15013         string-literal.
15014
15015 For older changes see ChangeLog-2001
15016 \f
15017 Local Variables:
15018 mode: change-log
15019 left-margin: 8
15020 fill-column: 74
15021 version-control: never
15022 End: