Add GNU/Linux specific support for the n32 and n64 MIPS ABIs.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
2
3         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
4         $(gdb_assert_h).
5         * configure.tgt: Recognize mips64*-*-linux*.
6         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
7         (supply_32_bit_reg): New function.
8         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
9         (fill_gregset): Use regcache_collect() instead of
10         deprecated_registers[].
11         (register_addr): Change name to mips_linux_register_addr().
12         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
13         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
14         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
15         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
16         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
17         (MIPS64_LINUX_JB_PC): New defines.
18         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
19         (mips64_elf_fpregset_t): New typedefs.
20         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
21         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
22         (mips64_linux_register_addr, set_mips_linux_register_addr)
23         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
24         (init_register_addr_data)
25         New functions.
26         (fetch_core_registers): Add support for core file formats with 64-bit
27         registers.
28         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
29         (register_addr_data): New static global variable.
30         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
31         gdbarch_register_osabi() for each MIPS machine.
32         * config/mips/linux64.mt: New file.
33         * config/mips/tm-linux64.h: New file.
34
35 2002-12-23  Adam Fedor  <fedor@gnu.org>
36
37         * maint.c (maintenance_demangle): Add switch to demangle
38         ObjC language symbols as well.
39
40 2002-12-23  Adam Fedor  <fedor@gnu.org>
41
42         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
43         last argument from complaint function call.
44
45 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
46
47         * exec.c (print_section_info): Add FIXME comments regarding format
48         string choices.
49
50 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
51
52         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
53         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
54
55 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
56
57         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
58
59 2002-12-23  David Carlton  <carlton@math.stanford.edu>
60
61         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
62         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
63         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
64         information associated to a minsym, not lookup_symbol.
65
66 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
67
68         * x86-64-tdep.h (x86_64_init_abi): New prototype.
69         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
70         (x86_64_init_abi): Make non-static.  Set number of pseudo
71         registers to 0.
72         (x86_64_gdbarch_init): Remove function.
73         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
74         Remove code dealing with dissambly.
75         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
76         (_initialize_x86_64_linux_tdep): New function.
77         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
78         i386-tdep.o.
79
80 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
81
82         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
83         (struct gdb_osabi_handler): Remove member `arch'.  Add member
84         `arch_info'.
85         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
86         construct a `struct bfd_arch_info' and store it in the `struct
87         gdb_osabi_handler' that is created.
88         (gdbarch_init_osabi): Check for compatibility based on machine
89         type and architecture.
90         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
91         comment.
92         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
93         second argument in call to gdbarch_register_osabi.
94         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
95         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
96         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
97         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
98         * arm-tdep.c (_initialize_arm_tdep): Likewise.
99         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
100         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
101         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
102         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
103         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
104         * i386-tdep.c (_initialize_i386_tdep): Likewise.
105         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
106         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
107         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
108         _initialize_i386bsd_tdep and updated likewise.
109         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
110         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
111         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
112         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
113         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
114         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
115         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
116         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
117         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
118         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
119
120 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
121
122         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
123         DT_MIPS_RLD_MAP case for 64-bit targets.
124
125 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
126
127         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
128         ``temp_saved_regs'', not the pointer or other storage contiguous
129         to this pointer.
130
131 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
132
133         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
134         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
135         (mips_linux_get_longjmp_target): Delete declarations.
136         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
137         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
138         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
139         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
140         (mips_linux_get_longjmp_target)
141         (mips_linux_svr4_fetch_link_map_offsets): Make static.
142         (mips_linux_init_abi): New function.
143         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
144
145 2002-12-19  Keith Seitz  <keiths@redhat.com>
146
147         patch committed by Elena Zannoni  <ezannoni@redhat.com>
148         * thread.c (do_captured_list_thread_ids): Call prune_threads and
149         target_find_new_threads. Fix for PR mi/669.
150
151 2002-12-19  David Carlton  <carlton@math.stanford.edu>
152
153         * linespec.c (decode_line_1): Move code into decode_all_digits.
154         (decode_all_digits): New function.
155
156 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
157
158         * exec.c (print_section_info): Select a format string to use with
159         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
160
161 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
162
163         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
164         deprecated_update_current_frame_pc_hack.
165         (deprecated_update_frame_base_hack): New function.
166         * frame.h (deprecated_update_frame_pc_hack): Replace
167         (deprecated_update_frame_base_hack): Declare.
168         * infrun.c (normal_stop): Update.
169
170 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
171
172         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
173         frame_extra_info_zalloc.
174         (rs6000_frame_args_address): Use get_frame_extra_info.
175         (frame_get_saved_regs): Use get_frame_saved_regs.
176         (frame_initial_stack_address): Use get_frame_saved_regs and
177         get_frame_extra_info.
178         (frame_initial_stack_address): Use get_frame_extra_info.
179
180 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
181
182         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
183         array size.
184         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
185         checks for r3900_regnames[].
186
187 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
188
189         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
190         All uses changed
191         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
192
193 2002-12-17  David Carlton  <carlton@math.stanford.edu>
194
195         * symtab.c (lookup_partial_symbol): Don't search past the end of
196         the partial symbols.
197
198 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
199
200         * stack.c (frame_info): Use get_frame_saved_regs.
201         * breakpoint.c (until_break_command): Use get_frame_pc.
202
203 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
204
205         * buildsym.c (block_end_complaint, anon_block_end_complaint)
206         (innerblock_complaint, innerblock_anon_complaint)
207         (blockvector_complaint): Delete deprecated complaint structs.
208         (finish_block, make_blockvector, end_symtab): Replace calls
209         to complain() with calls to complaint().
210         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
211         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
212         (unexpected_type_complaint, bad_sclass_complaint)
213         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
214         Delete deprecated complaint structs.
215         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
216         Replace calls to complain() with calls to complaint().
217         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
218         (unknown_symtype_complaint, unknown_symchar_complaint)
219         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
220         (lbrac_mismatch_complaint, repeated_header_complaint)
221         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
222         Delete deprecated complaint structs.
223         (unknown_symtype_complaint, lbrac_mismatch_complaint)
224         (repeated_header_complaint)
225         (function_outside_compiliation_unit_complaint): New functions.
226         (add_old_header_file, find_corresponding_bincl_psymtab)
227         (set_namestring, find_stab_function_addr, read_dbx_symtab)
228         (process_one_symbol): Replace calls to complain() with, possibly
229         indirect, calls to complaint().
230         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
231         (unknown_attribute_form, unknown_attribute_length)
232         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
233         (const_ignored, botched_modified_type, op_deref2, op_deref4)
234         (basereg_not_handled, dup_user_type_allocation)
235         (dup_user_type_definition, missing_tag, bad_array_element_type)
236         (subscript_data_items, unhandled_array_subscript_format)
237         (unknown_array_subscript_format, not_row_major)
238         (missing_at_name): Delete deprecated complaint structs.
239         (bad_die_ref_complaint, unknown_attribute_form_complaint)
240         (dup_user_type_definition_complaint)
241         (bad_array_element_type_complaint): New functions.
242         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
243         (decode_subscript_data_item, dwarf_read_array_type)
244         (read_tag_string_type, read_subroutine_type, read_func_scope)
245         (locval, scan_partial_symbols, decode_modified_type)
246         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
247         (attribute_size): Replace calls to complain() with, possibly
248         indirect, calls to complaint().
249         * elfread.c (section_info_complaint, section_info_dup_complaint)
250         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
251         Delete deprecated complaint structs.
252         (elf_symtab_read, elfstab_offset_sections): Replace calls to
253         complain() with calls to complaint().
254         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
255         struct.
256         (stub_noname_complaint): New function.
257         (check_typedef, add_mangled_type): Replace calls to complain()
258         with calls to complaint().
259         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
260         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
261         (hpread_unhandled_type_complaint, hpread_struct_complaint)
262         (hpread_array_complaint, hpread_type_lookup_complaint)
263         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
264         (hpread_unhandled_common_complaint)
265         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
266         struct definitions and declarations.
267         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
268         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
269         Replace calls to complain() with, possibly indirect, calls to
270         complaint().
271         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
272         Likewise.
273         * mdebugread.c (bad_file_number_complaint, index_complaint)
274         (aux_index_complaint, block_index_complaint)
275         (unknown_ext_complaint, unknown_sym_complaint)
276         (unknown_st_complaint, block_overflow_complaint)
277         (basic_type_complaint, unknown_type_qual_complaint)
278         (array_index_type_complaint, bad_tag_guess_complaint)
279         (block_member_complaint, stEnd_complaint)
280         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
281         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
282         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
283         (bad_continued_complaint, bad_rfd_entry_complaint)
284         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
285         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
286         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
287         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
288         complaint structs.
289         (index_complaint, unknown_ext_complaint, basic_type_complaint)
290         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
291         (unexpected_type_code_complaint)
292         (function_outside_compilation_unit_complaint): New functions.
293         (parse_symbol, parse_type, upgrade_type, parse_procedure)
294         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
295         Replace calls to complain() with, possibly indirect calls to
296         complaint().
297         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
298         Delete deprecated complaint structs.
299         (lookup__objc_class, lookup_child_selector): Replace complain()
300         with complaint().
301         * remote-vx.c (cant_contact_target): Delete deprecated complaint
302         struct.
303         (vx_lookup_symbol): Replace complain() with complaint().
304         * stabsread.c (invalid_cpp_abbrev_complaint)
305         (invalid_cpp_type_complaint, member_fn_complaint)
306         (const_vol_complaint, error_type_complaint)
307         (invalid_member_complaint, range_type_base_complaint)
308         (reg_value_complaint, vtbl_notfound_complaint)
309         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
310         (unresolved_sym_chain_complaint, stabs_general_complaint)
311         (lrs_general_complaint, multiply_defined_struct): Delete
312         deprecated complaint structs.
313         (invalid_cpp_abbrev_complaint, ref_value_complaint)
314         (stabs_general_complaint, lrs_general_complaint)
315         (msg_unknown_complaint): New functions.
316         (dbx_lookup_type, read_cfront_baseclasses)
317         (read_cfront_member_functions, resolve_symbol_reference)
318         (define_symbol, resolve_live_range, add_live_range, read_type)
319         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
320         (read_one_struct_field, read_baseclasses, read_tilde_fields)
321         (read_cfront_static_fields, attach_fields_to_type)
322         (complain_about_struct_wipeout, read_range_type)
323         (common_block_start, common_block_end, cleanup_undefined_types)
324         (scan_file_globals): Replace complain() with complaint().
325         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
326         Delete deprecated complaint struct declarations.
327         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
328         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
329         (bf_not_found_complaint, ef_complaint, eb_complaint)
330         (function_outside_compilation_unit_complaint): New functions.
331         (record_include_begin, record_include_end, enter_line_range)
332         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
333         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
334         complain() with complaint().
335
336 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
337
338         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
339         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
340         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
341         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
342         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
343         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
344         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
345         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
346         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
347         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
348         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
349         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
350         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
351         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
352         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
353         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
354         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
355         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
356         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
357         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
358         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
359         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
360         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
361         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
362         * config/m88k/xm-dgux.h: Delete.
363         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
364         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
365         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
366         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
367         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
368         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
369         * ch-valprint.c: Delete.
370         
371 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
372
373         * infrun.c (handle_inferior_event): Rearrange code to resume if
374         no catchpoint triggers for an event.
375
376 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
377
378         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
379         and TARGET_WAITKIND_VFORKED cases.
380
381 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
382
383         * infrun.c (handle_inferior_event): Assume that catchpoints
384         are not affected by DECR_PC_AFTER_BREAK.
385
386 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
387
388         * target.c (update_current_target): Don't inherit DONT_USE.
389         * target.h (struct target_ops): Remove DONT_USE.
390         (target_next): Remove macro.
391
392 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
393
394         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
395
396 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
397
398         * arm-tdep.c (convert_from_extended): New argument to hold the
399         type of floating point result we want to convert to.  Make input 
400         argument const.  Fix all callers.
401         (convert_to_extended): Similarly.
402         (arm_extract_return_value): Now takes a regcache argument.  Change
403         code to use regcache accessor functions.  Correctly extract 
404         smaller-than-word results on big-endian machines.
405         (arm_store_return_value): Now takes a regcache argument.  Change
406         code to use regcache accessor functions.  Correctly zero/sign extend
407         smaller than word results before storing into r0.
408         (arm_gdbarch_init): Register new-style extract_return_value and
409         store_return_value functions.
410
411 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
412
413         * thread-db.c (thread_from_lwp): Uniquify error msg.
414         (lwp_from_thread): Ditto.
415         (check_event): Ditto.
416         (find_new_threads_callback): Ditto.
417         (thread_db_pid_to_str): Ditto.
418
419 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
420
421         * frame.h (get_frame_saved_regs): Declare.
422         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
423         pointer.
424         * frame.c (get_frame_saved_regs): New function.
425         (frame_saved_regs_zalloc): Return the allocated saved_regs.
426
427 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
428
429         * frame.c (deprecated_update_current_frame_pc_hack): New
430         function.
431         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
432         * infrun.c (normal_stop): Use said function instead of directly
433         modifying the frame's PC.
434         
435 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
436
437         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
438
439 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
440
441         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
442         config/mips/tm-irix6.h (NUM_REGS): Delete.
443         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
444         (temp_saved_regs): Declare as a pointer rather than an array.
445         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
446         that ``temp_saved_regs'' has storage allocated to it and that
447         it's the correct size.
448
449 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
450
451         * defs.h (init_last_source_visited): New prototype.
452         (add_path): Ditto.
453         * source.c (add_path): New function that adds to a specified path.
454         (mod_path): Change to call add_path.
455         (init_last_source_visited): New function to allow interfaces to
456         initialize static variable: last_source_visited.  Part of fix
457         for PR gdb/741.
458         * Makefile.in: Add support for mi/mi-cmd-env.c.
459
460 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
461
462         * frame.h (frame_id_unwind): Declare.
463         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
464         id_unwind_cache.
465         (frame_id_unwind_ftype): Declare.
466         * frame.c (frame_id_unwind): New function.
467         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
468         (create_new_frame, get_prev_frame): Pass id_unwind to
469         set_unwind_by_pc.
470         (frame_saved_regs_id_unwind): New function.
471         (frame_saved_regs_id_unwind): New function.
472         * dummy-frame.c (dummy_frame_id_unwind): New function.
473         (struct dummy_frame): Add field id.
474         (generic_push_dummy_frame): Initialize `id'.
475         * dummy-frame.h (dummy_frame_id_unwind): Declare.
476
477 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
478
479         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
480         pass that to set_momentary_breakpoint.  Move comments to where they
481         belong.
482         * frame.h (set_current_frame): Delete declaration.
483         * frame.c (set_current_frame): Delete function.
484
485 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
486
487         * frame.c (frame_extra_info_zalloc): New function.
488         * frame.h (frame_extra_info_zalloc): Declare.
489
490 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
491
492         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
493         in the previous prototype change to set_momentary_breakpoint.
494
495 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
496
497         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
498         and saw_child_exec.
499         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
500         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
501         (stop_stepping): Remove outdated check for child vfork events.
502
503 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
504
505         * GDB 5.3 released from gdb_5_3-branch.
506
507 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
508
509         * corelow.c (init_core_ops): Delete references to to_require_attach
510         and to_require_detach.
511         * exec.c (init_exec_ops): Likewise.
512         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
513         hppa_require_detach directly.
514         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
515         * inftarg.c (child_detach): Remove.
516         (child_detach_from_process): Rename to child_detach, remove
517         after_fork argument.
518         (child_attach): Remove.
519         (child_attach_to_process): Rename to child_attach, remove after_fork
520         argument.
521         (init_child_ops): Delete references to to_require_attach
522         and to_require_detach.
523         * infttrace.c (hppa_require_attach): Update comment.
524         * target.c (cleanup_target, update_current_target)
525         (init_dummy_target, setup_target_debug): Delete references to
526         to_require_attach and to_require_detach.
527         (find_default_require_detach, find_default_require_attach)
528         (debug_to_require_attach, debug_to_require_detach): Remove
529         functions.
530         * target.h (struct target_ops): Remove to_require_attach
531         and to_require_detach.
532         (target_require_attach, target_require_detach): Delete macros.
533         (find_default_require_detach, find_default_require_attach): Delete
534         prototypes.
535         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
536
537 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
538
539         * frame.c (get_frame_extra_info): New function.
540         * frame.h (get_frame_extra_info): Declare.
541
542 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
543
544         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
545         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
546         with `struct frame_id'.
547         (set_longjmp_resume_breakpoint): Ditto.
548         * infrun.c (handle_inferior_event): Update.
549         * breakpoint.c (watch_command_1, until_break_command): Update.
550         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
551         (handle_inferior_event, step_over_function): Update.
552         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
553         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
554         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
555         * infcmd.c (finish_command, run_stack_dummy): Update.
556
557 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
558
559         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
560         (dwarf2_non_const_array_bound_ignored)
561         (dwarf2_missing_line_number_section)
562         (dwarf2_statement_list_fits_in_line_number_section)
563         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
564         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
565         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
566         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
567         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
568         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
569         (dwarf2_missing_member_fn_type_complaint)
570         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
571         (dwarf2_const_value_length_mismatch)
572         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
573         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
574         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
575         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
576         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
577         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
578         complaints using deprecated struct..
579         (dwarf2_non_const_array_bound_ignored_complaint)
580         (dwarf2_complex_location_expr_complaint)
581         (dwarf2_unsupported_at_frame_base_complaint)
582         (dwarf2_const_value_length_mismatch_complaint)
583         (dwarf2_macros_too_long_complaint)
584         (dwarf2_macro_malformed_definition_complaint)
585         (dwarf2_invalid_attrib_class_complaint): New functions.
586         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
587         (read_structure_scope, read_array_type, read_common_block)
588         (read_tag_pointer_type, read_base_type, read_partial_die)
589         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
590         (new_symbol, dwarf2_const_value, read_type_die)
591         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
592         (parse_macro_definition, dwarf_decode_macros): Replace calls to
593         complain() with, possibly indirect, calls to complaint().
594
595 2002-12-11  Andrew Cagney  <cagney@redhat.com>
596
597         * frame.c (deprecated_get_frame_saved_regs): Rename
598         get_frame_saved_regs.
599         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
600         * sparc-tdep.c: Update.
601         * hppa-tdep.c: Update.
602         * h8500-tdep.c: Update.
603
604 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
605
606         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
607         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
608         ``char *'' for return and parameter types.
609         * gdbarch.h, gdbarch.c: Regenerate.
610         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
611         return type from ``char *'' to ``const char *''.
612         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
613         const.
614
615 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
616
617         * i386-tdep.c: Include "dummy-frame.h".
618         (i386_frame_chain, i386_frame_saved_pc): Replace
619         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
620         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
621
622 2002-12-10  Andrew Cagney  <cagney@redhat.com>
623
624         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
625         Change to a function with predicate.
626         * gdbarch.h, gdbarch.c: Re-generate.
627         * frame.c (get_prev_frame): Update.  Test
628         DEPRECATED_INIT_FRAME_PC_P.
629         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
630         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
631         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
632         * alpha-tdep.c (alpha_gdbarch_init): Update.
633         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
634         * mips-tdep.c (mips_gdbarch_init): Update.
635         * i386-interix-tdep.c (i386_interix_init_abi): Update.
636         * arm-tdep.c: Update comments.
637         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
638         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
639         * frv-tdep.c (frv_gdbarch_init): Ditto.
640         * x86-64-tdep.c (x86_64_init_abi): Ditto.
641         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
642         * s390-tdep.c (s390_gdbarch_init): Ditto.
643         * v850-tdep.c (v850_gdbarch_init): Ditto.
644         * vax-tdep.c (vax_gdbarch_init): Ditto.
645         * sh-tdep.c (sh_gdbarch_init): Ditto.
646         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
647         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
648         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
649         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
650         * i386-tdep.c (i386_gdbarch_init): Ditto.
651         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
652         * cris-tdep.c (cris_gdbarch_init): Ditto.
653         * avr-tdep.c (avr_gdbarch_init): Ditto.
654         * arm-tdep.c (arm_gdbarch_init): Ditto.
655         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
656         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
657
658 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
659
660         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
661         CHILD_FOLLOW_FORK.
662         * hppah-nat.c (saved_vfork_pid): Add.
663         (child_post_follow_vfork): Remove.
664         (child_follow_fork): New function.
665         (child_wait): Call detach_breakpoints after receiving the child vfork.
666         Call child_resume directly instead of going through resume ().
667         Make sure we have the exec before reporting the vfork.
668         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
669         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
670         (follow_fork): New function.  Call target_follow_fork.
671         (follow_inferior_reset_breakpoints): New function broken out from
672         old follow_inferior_fork.
673         (resume): Remove hack to follow exec after vfork.
674         * inftarg.c (child_post_follow_vfork): Remove.
675         (child_follow_fork): New function.
676         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
677         * target.c (cleanup_target): Replace to_post_follow_vfork with
678         to_follow_fork.
679         (update_current_target): Likewise.
680         (setup_target_debug): Likewise.
681         (debug_to_post_follow_vfork): Remove.
682         (debug_to_follow_fork): New function.
683         * target.h (struct target_ops): Replace to_post_folow_vfork with
684         to_follow_fork.
685         (child_post_follow_vfork): Remove prototype.
686         (child_follow_fork): Add prototype.
687         (target_post_follow_vfork): Remove macro.
688         (target_follow_fork): Add macro.
689
690 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
691
692         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
693         (child_post_follow_vfork): Cancel pending exec event if we follow
694         the parent.
695         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
696         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
697         event at the following wait call if necessary.
698         * infrun.c (follow_vfork): Don't follow_exec here.
699         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
700         case about HP/UX 10.20.  Remove code pushed down to
701         hppah-nat.c:child_wait.
702         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
703         vfork_in_flight is set.
704
705 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
706
707         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
708         for the parent's fork event.
709         * infrun.c (handle_inferior_event): Only expect one fork event.
710         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
711         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
712
713 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
714
715         * PROBLEMS: Delete reference to PR gdb/725.
716         
717         * MAINTAINERS (gdb.c++): Add David Carlton.
718
719 2002-12-09  David Carlton  <carlton@math.stanford.edu>
720
721         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
722         * cli/cli-cmds.c: Ditto.
723
724 2002-12-09  Andrew Cagney  <cagney@redhat.com>
725
726         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
727         function address in <>.
728         * gdbarch.c: Re-generate.
729
730 2002-12-09  David Carlton  <carlton@math.stanford.edu>
731
732         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
733
734 2002-12-09  David Carlton  <carlton@math.stanford.edu>
735
736         * linespec.c (symtab_from_filename): New function.
737         (decode_line_1): Move code into symtab_from_filename.
738
739 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
740
741         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
742
743 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
744
745         * f-valprint.c (info_common_command): Use get_frame_pc.
746         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
747         * ax-gdb.c (agent_command): Ditto.
748         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
749         (rs6000_pop_frame): Ditto.
750         (rs6000_frameless_function_invocation): Ditto.
751         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
752         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
753         * macroscope.c (default_macro_scope): Ditto.
754         * stack.c (print_frame_info_base): Ditto.
755         (print_frame, frame_info, print_frame_label_vars): Ditto.
756         (return_command, func_command, get_frame_language): Ditto.
757         * infcmd.c (finish_command): Ditto.
758         * dummy-frame.c (cached_find_dummy_frame): Ditto.
759         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
760         (break_at_finish_at_depth_command_1): Ditto.
761         (break_at_finish_command_1): Ditto.
762         (until_break_command, get_catch_sals): Ditto.
763         * blockframe.c (func_frame_chain_valid): Ditto.
764         (frameless_look_for_prologue): Ditto.
765         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
766
767 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
768
769         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
770         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
771
772 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
773
774         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
775         to pure functions.
776         * gdbarch.h, gdbarch.c: Re-generate.
777         * frame.c (get_prev_frame): Explictly assign prev's pc with value
778         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
779
780         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
781         declaration to a function returning a CORE_ADDR.
782         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
783         * arch-utils.c (init_frame_pc_noop): Return the PC value.
784         (init_frame_pc_default): Ditto.
785         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
786         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
787         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
788         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
789         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
790         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
791
792         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
793         to init_frame_pc_noop.
794         (i386_interix_init_frame_pc): Delete function.
795         * z8k-tdep.c (init_frame_pc): Delete function.
796         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
797         (INIT_FRAME_PC_FIRST): Ditto.
798         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
799         (INIT_FRAME_PC_FIRST): Ditto.
800         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
801         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
802         init_frame_pc_noop.
803         (INIT_FRAME_PC_FIRST): Convert to an expression.
804         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
805
806 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
807
808         * blockframe.c: Use get_frame_base instead of directly accessing
809         the `struct frame_info' member frame.
810         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
811         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
812
813 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
814
815         * Makefile.in (readline_h): Define.
816         (completer.o): Depend on readline_h.
817         (corelow.o): Ditto.
818         (event-top.o): Ditto.
819         (exec.o): Ditto.
820         (solib.o): Ditto.
821         (source.o): Ditto. 
822         (symfile.o): Ditto. 
823         (symmisc.o): Ditto. 
824         (top.o): Ditto.
825         (tracepoint.o): Ditto. 
826         (utils.o): Ditto.
827         (cli-dump.o): Ditto.
828         (tui-hooks.o): Ditto. 
829         (tuiWin.o): Ditto. 
830
831 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
832
833         More cleanup from import of readline 4.3.
834         * completer.h (complete_line, readline_line_completion_function):
835         Update prototypes.
836         (line_completion_function): Removed, not used outside of completer.c.
837         * completer.c (readline_line_completion_function,
838         complete_function, line_completion_function): Use const for first
839         parameter.
840         (line_completion_function): Make static.
841         (filename_completer): filename_completion_function is now called
842         rl_filename_completion_function
843         * corelow.c: Include <readline/readline.h>.
844         * exec.c: Ditto.
845         * solib.c: Ditto.
846         * source.c: Ditto.
847         * symfile.c: Ditto.
848         * symmisc.c: Ditto.
849         * top.c (init_main): No need to coerce
850         readline_line_completion_function anymore.
851         * cli/cli-dump.c: Include <readline/readline.h>.
852
853 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
854
855         * stack.c (frame_info): Use get_prev_frame.
856         * blockframe.c (frame_address_in_block): Ditto.
857         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
858         (rs6000_frameless_function_invocation): Ditto.
859         (rs6000_frame_saved_pc): Ditto.
860         (rs6000_frame_chain): Ditto.
861         * arch-utils.c (init_frame_pc_default): Ditto.
862
863 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
864
865         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
866         Delete redundant definition.
867
868 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
869
870         Import of readline 4.3:
871         * cli/cli-cmds.c: Include readline/tilde.h.
872         * cli/cli-setshow.c: Ditto.
873         * defs.h: Don't declare tilde_expand anymore, since readline
874         exports it.
875
876 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
877
878         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
879         -Werror on this file.
880
881 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
882
883         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
884         the format name.
885         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
886         * gdbarch.c: Regenerate.
887         
888 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
889
890         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
891         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
892         provide a default value.
893         * gdbarch.h, gdbarch.c: Regenerate.
894         * frame.c (get_prev_frame): Update.  Check
895         DEPRECATED_INIT_FRAME_PC_FIRST_P.
896         * s390-tdep.c (s390_gdbarch_init): Update.
897         * mips-tdep.c (mips_gdbarch_init): Update.
898         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
899         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
900         * alpha-tdep.c (alpha_gdbarch_init): Update.
901         
902 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
903
904         * ia64-linux-nat.c: Include gdb_string.h.
905         * alpha-nat.c: Ditto.
906         * ppc-linux-nat.c: Ditto.
907         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
908         Update dependencies.
909
910 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
911
912         * gdbthread.h: Include "frame.h".
913         (struct thread_info): Replace step_frame_address with
914         step_frame_id.
915         * inferior.h: Include "frame.h".
916         (step_frame_id): Replace external variable step_frame_address.
917         * gdbthread.h (save_infrun_state): Replace step_frame_address
918         parameter with step_frame_id parameter.
919         (load_infrun_state): Ditto.
920         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
921         * infcmd.c (step_frame_id, step_1, step_once): Update.
922         * thread.c (load_infrun_state, save_infrun_state): Update.
923         * infrun.c (clear_proceed_status, save_inferior_status): Update.
924         (handle_inferior_event, step_over_function): Update.
925         (normal_stop, context_switch, restore_inferior_status): Update.
926         (struct inferior_status): Replace step_frame_address with
927         step_frame_id.
928
929 2002-12-05  David Carlton  <carlton@math.stanford.edu>
930
931         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
932         DW_TAG_member as well as a declaration as being a C++ static data
933         member.
934         (read_structure_scope): Combine tests for DW_TAG_member and
935         DW_TAG_variable.
936
937 2002-12-05  David Carlton  <carlton@math.stanford.edu>
938
939         * linespec.c (decode_compound): New function.
940         (decode_line_1): Move code into decode_compound.
941
942 2002-12-05  David Carlton  <carlton@math.stanford.edu>
943
944         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
945         argument.
946         (lookup_symbol_aux): Do the 'field_of_this' check before checking
947         the static block.  See PR gdb/804.
948
949 2002-12-05  David Carlton  <carlton@math.stanford.edu>
950
951         * symtab.c (lookup_symbol_aux_block): New function.
952         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
953
954 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
955
956         * gdbarch.sh: Dump the predicate function and macro values.
957         (read): Print error on standard error.
958         * gdbarch.c: Regenerate.
959         
960 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
961
962         * Makefile.in (mips_tdep_h): Define.
963         (mips-tdep.o): Add mips_tdep_h to dependency list.
964         * mips-tdep.h: New file.
965         * mips-tdep.c (mips-tdep.h): Include.
966         (enum mips_abi): Move to mips-tdep.h.
967         (mips_abi): New function.
968
969 2002-12-04  David Carlton  <carlton@math.stanford.edu>
970
971         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
972
973 2002-12-04  David Carlton  <carlton@math.stanford.edu>
974
975         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
976         function.
977         (lookup_symbol_aux_minsyms): New function.
978
979 2002-12-04  J. Brobecker  <brobecker@gnat.com>
980
981         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
982
983 2002-12-04  J. Brobecker  <brobecker@gnat.com>
984
985         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
986         which is an obsolete macro name.
987
988 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
989
990         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
991         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
992
993 2002-12-03  H.J. Lu  (hjl@gnu.org)
994
995         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
996         (create_breakpoints): Make sure the addr_string field is not
997         NULL.
998
999 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1000
1001         * sparc-nat.c (fetch_inferior_registers)
1002         (store_inferior_registers): Add comment on problem of LWP vs
1003         threads.
1004         
1005         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1006         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1007         (lin_lwp_store_registers): Remove.
1008         (init_lin_lwp_ops): Use fetch_inferior_registers
1009         and store_inferior_registers directly.
1010         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1011         (store_inferior_registers): Likewise.
1012         Fix PR gdb/725.
1013
1014 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1015
1016         * frame.h (get_frame_id): Convert to a function.
1017         (null_frame_id, frame_id_p): Declare.
1018         (frame_id_eq, frame_id_inner): Declare.
1019         (frame_id_build): New function.
1020         * frame.c (get_frame_id): Update.  Use null_frame_id.
1021         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1022         frame_id_inner.
1023         (null_frame_id, frame_id_p): Define.
1024         (frame_id_eq, frame_id_inner): Define.
1025         (frame_id_build): New function.
1026         * varobj.c (varobj_create): Update.
1027         (varobj_update): Update.
1028         * valops.c (value_assign): Update.
1029         (new_root_variable): Update.
1030         * infrun.c (save_inferior_status): Update.
1031         * breakpoint.c (watch_command_1): Update.
1032
1033 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1034
1035         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1036         (SNAP2): Likewise.
1037
1038 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1039
1040         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1041         patch.
1042
1043         * PROBLEMS: Mention PR gdb/725.
1044
1045 2002-12-03  Andreas Schwab  <schwab@suse.de>
1046
1047         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1048
1049 2002-12-02  Adam Fedor  <fedor@gnu.org>
1050             Klee Dienes  <kdienes@apple.com>
1051
1052         * objc-lang.c (objc_printstr): Add width arg to match
1053         printstr prototype.
1054         (compare_selectors): Add 'const' to arg types.
1055         (compare_classes): Likewise.
1056         (find_imps): Cast msym pointer to avoid compiler warning.
1057         (print_object_command): Validate the address before
1058         passing it to the print routine.
1059         (find_objc_msgcall_submethod): Change function argument to
1060         return an int.
1061         * objc-lang.h: Add 'extern' to all function declarations.
1062         (value_nsstring): Add declaration.
1063
1064 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1065
1066         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1067         Fixes a build failure on HP/UX.
1068
1069         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1070         failure on HP/UX. 
1071         (hpread_has_name): Advance declaration to avoid a compilation warning.
1072         (pst_syms_count): Add missing variable type. By change, the compiler
1073         was defaulting to int, which seems a good choice. Fixes a compilation
1074         warning.
1075         (pst_syms_size): Likewise.
1076  
1077 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1078
1079         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1080         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1081         later to set the proper gdbarch methods depending on the osabi.
1082         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1083
1084 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1085
1086         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1087         * osabi.c (gdb_osabi_name): Add strings images for the two new
1088         enum values.
1089         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1090
1091 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1092
1093         * MAINTAINERS (Java): Global maintainers are responible for Java.
1094         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1095         part Java maintainers.
1096
1097 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1098
1099         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1100         Fixes a compilation failure on AiX.
1101
1102 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1103
1104         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1105         why aix-thread.o is not listed.
1106
1107 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1108
1109         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1110         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1111         * gdbarch.h, gdbarch.c: Re-generate.
1112         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1113         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1114         * config/pa/tm-hppa.h, frame.h: Update.
1115         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1116         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1117         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1118         * cris-tdep.c, alpha-tdep.c: Update.
1119         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1120         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1121         (get_prev_frame): Ditto.
1122
1123 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1124
1125         * exec.c (xfer_memory): Replace boolean with int.
1126         * p-exp.y: Use 0 instead of false.
1127         * corelow.c (gdb_check_format): Change return type to int from
1128         boolean.
1129         * utils.c: Don't include <curses.h> or <term.h> first.
1130
1131 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1132
1133         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1134         (m68hc11_register_byte): Remove.
1135         (m68hc11_gdbarch_init): Don't set the above.
1136
1137 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1138
1139         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1140         by calling get_selected_frame.
1141         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1142         set_current_frame, create_new_frame, select_frame and
1143         get_current_frame.
1144         * remote-e7000.c (e7000_start_remote): Ditto.
1145         * remote-mips.c (common_open): Ditto
1146         * remote-rdp.c (remote_rdp_open): Ditto.
1147
1148 2002-11-29  Andreas Schwab  <schwab@suse.de>
1149
1150         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1151         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1152         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1153         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1154         read_memory_unsigned_integer instead of read_memory_integer when
1155         dealing with addresses and instruction opcodes.
1156         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1157         (m68k_linux_frame_saved_pc): Likewise.
1158
1159 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1160
1161         * stack.c (selected_frame, select_frame): Move from here ...
1162         * frame.c (selected_frame, select_frame): ... to here.  Include
1163         "language.h".
1164         * Makefile.in (frame.o): Update dependencies.
1165         * frame.c (get_selected_frame): New function.
1166         * frame.h (get_selected_frame): Declare.
1167         (deprecated_selected_frame): Rename selected_frame.
1168         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1169         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1170         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1171         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1172         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1173         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1174         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1175         * z8k-tdep.c, cli/cli-cmds.c: Update.
1176         
1177 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1178
1179         * frame.h (get_selected_block): Add comments.
1180
1181 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1182
1183         * frame.c (pc_notcurrent): New function.
1184         (find_frame_sal): New function.
1185         * frame.h (find_frame_sal): Declare.
1186         (struct symtab_and_line): Add opaque declaration.
1187         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1188         find_pc_line.
1189         (frame_info): Ditto.
1190         * ada-lang.c (find_printable_frame): Ditto.
1191
1192 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1193
1194         * configure.in: Check that the pthdebug library is recent enough
1195         before enabling thread support on native AiX.
1196         * configure: Regenerate.
1197
1198         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1199         from the list of object files as it is now appended by configure
1200         if thread support is enabled.
1201         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1202         if thread support is enabled.
1203
1204 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1205
1206         * stack.c (get_selected_block): In-line get_current_block.
1207         * frame.h (get_current_block): Delete declaration.
1208         * blockframe.c (get_current_block): Delete function.
1209
1210 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1211
1212         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1213         USE_GENERIC_DUMMY_FRAMES.
1214         * gdbarch.h, gdbarch.c: Regenerate.
1215         * valops.c, frame.c: Update.
1216         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1217         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1218         * config/pa/tm-hppa.h, blockframe.c: Update.
1219         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1220         * m68k-tdep.c, alpha-tdep.c: Ditto.
1221
1222         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1223         * mips-tdep.c: Ditto.
1224
1225 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1226
1227         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1228         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1229         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1230         * gdbarch.c, gdbarch.h: Re-generate.
1231         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1232         (CALL_DUMMY_LOCATION): Delete macro definition.
1233         (PC_IN_CALL_DUMMY): Delete macro definitions.
1234         
1235         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1236         default is already generic_pc_in_call_dummy.
1237         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1238         * v850-tdep.c (v850_gdbarch_init): Ditto.
1239         * sh-tdep.c (sh_gdbarch_init): Ditto.
1240         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1241         * mips-tdep.c (mips_gdbarch_init): Ditto.
1242         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1243         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1244         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1245         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1246         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1247         * avr-tdep.c (avr_gdbarch_init): Ditto.
1248         
1249         * arm-tdep.c (arm_gdbarch_init): Do not set
1250         use_generic_dummy_frames, default is already 1.
1251         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1252         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1253         * v850-tdep.c (v850_gdbarch_init): Ditto.
1254         * sh-tdep.c (sh_gdbarch_init): Ditto.
1255         * s390-tdep.c (s390_gdbarch_init): Ditto.
1256         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1257         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1258         * mips-tdep.c (mips_gdbarch_init): Ditto.
1259         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1260         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1261         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1262         * i386-tdep.c (i386_gdbarch_init): Ditto.
1263         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1264         * frv-tdep.c (frv_gdbarch_init): Ditto.
1265         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1266         * cris-tdep.c (cris_gdbarch_init): Ditto.
1267         * avr-tdep.c (avr_gdbarch_init): Ditto.
1268
1269         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1270         call_dummy_location, default is already AT_ENTRY_POINT.
1271         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1272         * v850-tdep.c (v850_gdbarch_init): Ditto.
1273         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1274         * sh-tdep.c (sh_gdbarch_init): Ditto.
1275         * s390-tdep.c (s390_gdbarch_init): Ditto.
1276         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1277         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1278         * mips-tdep.c (mips_gdbarch_init): Ditto.
1279         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1280         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1281         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1282         * i386-tdep.c (i386_gdbarch_init): Ditto.
1283         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1284         * frv-tdep.c (frv_gdbarch_init): Ditto.
1285         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1286         * cris-tdep.c (cris_gdbarch_init): Ditto.
1287         * avr-tdep.c (avr_gdbarch_init): Ditto.
1288         * arm-tdep.c (arm_gdbarch_init): Ditto.
1289         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1290
1291 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1292
1293         * frame.h: Update comments on set_current_frame, create_new_frame,
1294         flush_cached_frames, reinit_frame_cache, select_frame and
1295         selected_frame.
1296         
1297 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1298
1299         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1300         deprecated pc_in_call_dummy function.
1301         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1302         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1303         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1304         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1305         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1306
1307 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1308
1309         * Makefile.in: Remove Tix dependencies.
1310         * acinclude.m4: Ditto.
1311         * aclocal.m4: Ditto.
1312         * configure.in: Ditto.
1313         * configure: Regenerated.
1314         
1315 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1316
1317         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1318         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1319         * gdbarch.c: Re-generate.
1320         
1321 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1322
1323         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1324         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1325         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1326         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1327         pc_in_call_dummy_at_entry_point.
1328         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1329         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1330         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1331         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1332         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1333         pc_in_call_dummy_on_stack.
1334         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1335         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1336         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1337         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1338         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1339         
1340 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1341
1342         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1343         pc_in_call_dummy_before_text_end
1344         (deprecated_pc_in_call_dummy_after_text_end): Rename
1345         pc_in_call_dummy_after_text_end.
1346         (deprecated_pc_in_call_dummy_on_stack): Rename
1347         pc_in_call_dummy_on_stack.
1348         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1349         pc_in_call_dummy_at_entry_point.
1350         * m68k-tdep.c (m68k_gdbarch_init): Update.
1351         * s390-tdep.c (s390_gdbarch_init): Update.
1352         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1353         * vax-tdep.c (vax_gdbarch_init): Update.
1354         * sparc-tdep.c (sparc_gdbarch_init): Update.
1355         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1356         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1357         * i386-tdep.c (i386_gdbarch_init): Update.
1358         * frv-tdep.c (frv_gdbarch_init): Update.
1359         * cris-tdep.c (cris_gdbarch_init): Update.
1360         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1361         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1362         (deprecated_pc_in_call_dummy_after_text_end)
1363         (deprecated_pc_in_call_dummy_on_stack)
1364         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1365         * alpha-tdep.c (alpha_gdbarch_init): Update.
1366
1367 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1368
1369         * acconfig.h (HAVE_PREAD64): Add.
1370         * configure.in: Check for pread64.
1371         * config.in: Regenerated.
1372         * configure: Regenerated.
1373         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1374         * linux-proc.c (linux_proc_xfer_memory): New function.
1375         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1376
1377 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1378
1379         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1380         pdi's with no name.
1381
1382 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1383
1384         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1385         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1386
1387 2002-11-25  Jim Blandy  <jimb@redhat.com>
1388
1389         * symfile.c (init_objfile_sect_indices): New function.
1390         (default_symfile_offsets): Move the section-index-initializing
1391         stuff into init_objfile_sect_indices, and call that.
1392
1393         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1394         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1395
1396         * symfile.c (syms_from_objfile): Adjust indentation.
1397
1398         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1399         || info_verbose isn't true.
1400
1401 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1402
1403         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1404         default to get_frame_base.
1405         * gdbarch.h, gdbarch.c: Regenerate.
1406         * arch-utils.c (default_frame_address): Delete function.
1407         * arch-utils.h (default_frame_address): Delete declaration
1408
1409 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1410
1411         * varobj.c (find_frame_addr_in_frame_chain):
1412         Use get_frame_base instead of FRAME_FP,
1413         obvious fix.
1414
1415 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1416
1417         * frame.h (FRAME_FP): Delete macro.
1418         (get_frame_base): New function declaration.
1419         * frame.c (get_frame_base): New function.
1420         (get_frame_id): Use ->frame.
1421         (frame_find_by_id): Rewrite to use get_frame_id.
1422         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1423         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1424         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1425         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1426         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1427         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1428         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1429
1430 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1431
1432         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1433
1434 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1435
1436         * frame.c (set_unwind_by_pc): Revert change below, use
1437         PC_IN_CALL_DUMMY.
1438         (get_prev_frame): Ditto.
1439
1440 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1441
1442         * dummy-frame.c (pc_in_dummy_frame): New function.
1443         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1444         (find_dummy_frame): Update comment.
1445         (generic_pop_current_frame): Use get_frame_type.
1446         * dummy-frame.h (pc_in_dummy_frame): Declare.
1447         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1448         (create_new_frame): Use pc_in_dummy_frame.
1449         (get_prev_frame): Use pc_in_dummy_frame.
1450         (frame_saved_regs_register_unwind): Use get_prev_frame.
1451         (deprecated_generic_get_saved_register): Use get_prev_frame.
1452
1453 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1454
1455         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1456         from here ...
1457         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1458         (varobj_create): Note that frame ID should be used.
1459         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1460
1461 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1462
1463         * breakpoint.c: Include "gdb_assert.h".
1464         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1465         not being used.
1466         * Makefile.in (breakpoint.o): Update dependencies.
1467         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1468         deprecated_frame_in_dummy.
1469         * stack.c (print_frame_info_base): Ditto.
1470         (frame_info): Ditto.
1471         (print_frame_info_base): Ditto.  Delete dead code.
1472         
1473 2002-11-23  Andreas Schwab  <schwab@suse.de>
1474
1475         * Makefile.in (m68k_tdep_h): Define.
1476         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1477         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1478         * m68k-tdep.c: Move register number enum ...
1479         * m68k-tdep.h: ... to this new file and rename the constants from
1480         E_* to M68K_*.  All uses changed.
1481         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1482         * abug-rom.c: Include "m68k-tdep.h".  Use
1483         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1484         * cpu32bug-rom.c: Likewise.
1485         * dbug-rom.c: Likewise.
1486         * m68k-tdep.c: Likewise.
1487         * m68klinux-nat.c: Likewise.
1488         * remote-est.c: Likewise.
1489         * rom68k-rom.c: Likewise.
1490         * config/m68k/tm-linux.h: Likewise.
1491
1492 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1493
1494         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1495         dummy frame initialization code.
1496         * mips-tdep.c (mips_gdbarch_init): Ditto.
1497
1498 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1499
1500         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1501         attach will hang.
1502
1503 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1504
1505         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1506         to default_frame_address.
1507         * gdbarch.h, gdbarch.c: Re-generate.
1508
1509         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1510         or frame_locals_address to default_frame_address.
1511         * m68k-tdep.c (m68k_gdbarch_init): Update.
1512         * i386-tdep.c (i386_gdbarch_init): Update.
1513         * frv-tdep.c (frv_gdbarch_init): Update.
1514         * sh-tdep.c (sh_gdbarch_init): Update.
1515         * v850-tdep.c (v850_gdbarch_init): Update.
1516         * sparc-tdep.c (sparc_gdbarch_init): Update.
1517         * mips-tdep.c (mips_gdbarch_init): Update.
1518         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1519         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1520         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1521
1522         * cris-tdep.c (cris_frame_args_address): Delete function.
1523         (cris_frame_locals_address): Delete function.
1524         (cris_gdbarch_init): Do not set frame_args_address or
1525         frame_locals_address.
1526
1527 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1528
1529         * thread-db.c (thread_db_load): Tell the user what's going on
1530         if dlopen fails on libthread_db.
1531
1532 2002-11-23  Andreas Schwab  <schwab@suse.de>
1533
1534         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1535         invariant return values.
1536
1537 2002-11-22  Andreas Schwab  <schwab@suse.de>
1538
1539         * valops.c (value_slice): Move declaration of `offset' to avoid
1540         warning.
1541
1542 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1543
1544         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1545         (struct so_stuff): Add end_addr field.
1546         (register_loaded_dll): Calculate and store end address of loaded dll.
1547         (solib_address): New function.
1548         (child_solib_loaded_library_pathname): Pass carefully constructed
1549         section info to safe_symbol_file_add rather than ignoring it.
1550         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1551         DLL is loaded.
1552         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1553         (child_create_inferior): Fix a compiler warning.
1554         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1555         (solib_address): Declare new function.
1556
1557 2002-11-22  Andreas Schwab  <schwab@suse.de>
1558
1559         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1560         and FPS registers.
1561
1562 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1563
1564         * maint.c (_initialize_maint_cmds): Fix typo.  From
1565         Francesco Potorti` <pot@gnu.org>.
1566
1567 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1568
1569         * mips-tdep.c (mips_dump_tdep): Delete references to
1570         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1571         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1572         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1573         * printcmd.c (build_address_symbolic): Delete calls to
1574         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1575         (address_info): Ditto.
1576         Fix PR gdb/773.
1577         
1578 2002-11-19  Klee Dienes  <kdienes@apple.com>
1579             Adam Fedor  <fedor@gnu.org>
1580
1581         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1582         the ability to explicitly specify the quote characters and word
1583         break characters; if NULL is specified for either, use the old
1584         behavior of using the characters used by the completer.
1585         (skip_chars): New function.  Convenience wrapper around
1586         skip_quoted_chars to provide the original skip_chars behavior.
1587         * completer.h (skip_quoted_chars): Add prototype.
1588
1589 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1590
1591         Problems reported by Paul Eggert.
1592         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1593
1594 2002-11-19  Andreas Schwab  <schwab@suse.de>
1595
1596         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1597         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1598         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1599         (m68k_linux_frame_saved_pc): Move to ...
1600         * m68klinux-tdep.c: ... here.  New file.
1601         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1602         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1603
1604 2002-11-19  Adam Fedor  <fedor@gnu.org>
1605
1606         * objc-exp.y: Revert to old skip_quoted usage.
1607
1608 2002-11-19  Adam Fedor  <fedor@gnu.org>
1609
1610         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1611         (objc_lang_h): Define.
1612         (YYFILES): Add objc-exp.tab.c.
1613         (local-maintainer-clean): Remove objc-exp.tab.c.
1614         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1615         
1616 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1617
1618         * p-exp.y (typecast rule): Add automatic dereference of
1619         pascal classes if needed.
1620         (THIS): Set current_type.
1621         Automatically dereference pascal classes. 
1622         (typebase rule): Add ^typebase recognition.
1623
1624 2002-11-18  Adam Fedor  <fedor@gnu.org>
1625
1626         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1627         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1628         (op_name): Handle OP_OBJC_SELF.
1629         * Makefile.in (expprint.o): Add additional depends.
1630
1631 2002-11-18  Adam Fedor  <fedor@gnu.org>
1632
1633         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1634         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1635         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1636         * objc-exp.y: Likewise. 
1637
1638 2002-11-18  Adam Fedor  <fedor@gnu.org>
1639
1640         * gdb/parser-defs.h: (struct objc_class_str): New structure
1641         for parsing ObjC classes.
1642
1643 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1644
1645         * stack.c (frame_relative_level): Copy function from here ...
1646         * frame.c (frame_relative_level): ...to here.
1647
1648 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1649
1650         * frame.h (enum frame_type): Define.
1651         (get_frame_type): Declare.
1652         (struct frame_info): Add field `type'.  Delete field
1653         signal_handler_caller.
1654         (deprecated_set_frame_signal_handler_caller): Declare.
1655         * frame.c (get_frame_type): New function.
1656         (deprecated_set_frame_type): New function.
1657         (create_new_frame): Set the frame's type.
1658         (get_prev_frame): Similar.
1659         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1660         * s390-tdep.c: Ditto.
1661         * m68klinux-nat.c: Ditto.
1662         * ns32k-tdep.c: Ditto.
1663         * x86-64-linux-tdep.c: Ditto.
1664         * vax-tdep.c: Ditto.
1665         * rs6000-tdep.c: Ditto.
1666         * ppc-linux-tdep.c: Ditto.
1667         * i386-interix-tdep.c: Ditto.
1668         * mips-tdep.c: Ditto.
1669         * m68k-tdep.c: Ditto.
1670         * hppa-tdep.c: Ditto.
1671         * ia64-tdep.c: Ditto.
1672         * cris-tdep.c: Ditto.
1673         * arm-tdep.c: Ditto.
1674         * alpha-tdep.c: Ditto.
1675         * i386-tdep.c: Ditto.
1676         * stack.c: Ditto.
1677         * ada-lang.c: Ditto.
1678         * blockframe.c: Update.
1679         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1680         deprecated_set_frame_type instead of signal_handler_caller.
1681         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1682         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1683         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1684
1685 2002-11-18   Klee Dienes  <kdienes@apple.com>
1686
1687         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1688
1689 2002-11-18  Klee Dienes  <kdienes@apple.com>
1690
1691         * buildsym.c (pop_context): Add comment.
1692         
1693 2002-11-18  Klee Dienes  <kdienes@apple.com>
1694
1695         * buildsym.h (pop_context): Convert to function, defined in
1696         buildsym.c.
1697         * buildsym.c: Include gdb_assert.h.
1698         (pop_context): Implement as C function.  Add check for stack
1699         underflow.
1700         * dbxread.c (process_one_symbol): Complain and stop processing
1701         that symbol if we are already at the top of the context stack for
1702         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1703         when processing N_RBRAC.
1704
1705 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1706
1707         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1708         define.
1709         (struct target_waitstatus): Add opaque definition.
1710         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1711         * exec.c (init_exec_ops): Likewise.
1712         * fork-child.c (clone_and_follow_inferior): Remove.
1713         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1714         * inferior.h (clone_and_follow_inferior): Remove prototype.
1715         * infrun.c (follow_fork_mode_both): Remove.
1716         (follow_fork_mode_kind_names): Remove commented out "both".
1717         (follow_inferior_fork): Remove follow_fork_mode_both support.
1718         * inftarg.c (child_clone_and_follow_inferior): Remove.
1719         (child_post_follow_inferior_by_clone): Remove.
1720         (init_child_ops): Don't set to_clone_and_follow_inferior
1721         or to_post_follow_inferior_by_clone.
1722         * target.c (default_clone_and_follow_inferior): Remove.
1723         (cleanup_target): Don't set to_clone_and_follow_inferior
1724         or to_post_follow_inferior_by_clone.
1725         (find_default_clone_and_follow_inferior): Remove.
1726         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1727         (debug_to_clone_and_follow_inferior): Remove.
1728         (debug_to_post_follow_inferior_by_clone): Remove.
1729         (setup_target_debug): Don't set to_clone_and_follow_inferior
1730         or to_post_follow_inferior_by_clone.
1731         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1732         and to_post_follow_inferior_by_clone.
1733         (child_clone_and_follow_inferior): Remove prototype.
1734         (child_post_follow_inferior_by_clone): Remove prototype.
1735         (target_clone_and_follow_inferior): Remove macro.
1736         (target_post_follow_inferior_by_clone): Remove macro.
1737         (find_default_clone_and_follow_inferior): Remove prototype.
1738
1739 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1740
1741         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1742         inferior_has_vforked, and inferior_has_execd instead of
1743         target_has_forked, target_has_vforked, and target_has_execd.
1744         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1745         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1746         (CHILD_WAIT): Define.
1747         (child_wait): Add prototype.
1748         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1749         Add prototype.
1750         (hpux_has_vforked): Likewise, from child_has_vforked.
1751         (hpux_has_execd): Likewise, from child_has_execd.
1752         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1753         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1754         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1755         and hpux_has_syscall_event instead of the target hooks.
1756         * infrun.c (inferior_has_forked, inferior_has_vforked)
1757         (inferior_has_execd): New functions.
1758         * inftarg.c (not_same_real_pid): Remove.
1759         (child_wait): Remove references to not_same_real_pid,
1760         target_has_forked, target_has_vforked, target_has_execd,
1761         and target_has_syscall_event.
1762         (child_has_forked, child_has_vforked, child_has_execd)
1763         (child_has_syscall_event): Remove.
1764         (init_child_ops): Remove references to child_has_forked,
1765         child_has_vforked, child_has_execd, and child_has_syscall_event.
1766         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1767         (hpux_has_vforked): Likewise, from child_has_vforked.
1768         (hpux_has_execd): Likewise, from child_has_execd.
1769         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1770         * target.c (cleanup_target): Remove references to
1771         to_has_forked, to_has_vforked, to_has_execd, and
1772         to_has_syscall_event.
1773         (update_current_target): Likewise.
1774         (setup_target_debug): Likewise.
1775         (debug_to_has_forked): Remove.
1776         (debug_to_has_vforked): Remove.
1777         (debug_to_has_execd): Remove.
1778         (debug_to_has_syscall_event): Remove.
1779         * target.h (struct target_ops): Remove to_has_forked.
1780         to_has_vforked, to_has_execd, and to_has_syscall_event.
1781         (child_has_forked, child_has_vforked, child_has_execd)
1782         (child_has_syscall_event): Remove prototypes.
1783         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1784         prototypes.
1785         (target_has_forked, target_has_vforked, target_has_execd)
1786         (target_has_syscall_event): Remove macros.
1787
1788 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1789
1790         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1791         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1792         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1793         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1794         * target.c (cleanup_target): Remove reference to
1795         to_can_follow_vfork_prior_to_exec.
1796         (update_current_target): Likewise.
1797         (debug_to_can_follow_vfork_prior_to_exec): Remove.
1798         (setup_target_debug): Remove reference to
1799         to_can_follow_vfork_prior_to_exec.
1800         * target.h (struct target_ops): Remove
1801         to_can_follow_vfork_prior_to_exec.
1802         (child_can_follow_vfork_prior_to_exec): Remove prototype.
1803         (target_can_follow_vfork_prior_to_exec): Remove definition.
1804         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1805         define.
1806         * infrun.c (follow_vfork_when_exec): Remove.
1807         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1808         (follow_exec): Likewise.
1809         (handle_inferior_event): Likewise.
1810         (keep_going): Likewise.
1811
1812 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1813
1814         * frame.c (generic_unwind_get_saved_register): Make static.
1815         * frame.h (generic_unwind_get_saved_register): Delete declaration.
1816         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1817         defaults to generic_unwind_get_saved_register.
1818         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1819         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1820         * frv-tdep.c (frv_gdbarch_init): Ditto.
1821         * i386-tdep.c (i386_gdbarch_init): Ditto.
1822         * s390-tdep.c (s390_gdbarch_init): Ditto.
1823         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1824         * v850-tdep.c (v850_gdbarch_init): Ditto.
1825         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1826         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1827         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1828
1829 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1830
1831         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
1832         i386-tdep.c.
1833
1834 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1835
1836         * frame.h (sigtramp_saved_pc): Delete declaration.
1837         * blockframe.c (sigtramp_saved_pc): Delete function.
1838         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1839         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1840         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1841         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1842
1843 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1844
1845         * frame.c (frame_pc_unwind): New function.
1846         (frame_saved_regs_pc_unwind): New function.
1847         (frame_register_unwind): Pass unwind_cache instead of
1848         register_unwind_cache.
1849         (set_unwind_by_pc): Add unwind_pc parameter, set.
1850         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1851         (get_prev_frame): Ditto.
1852         * frame.h (frame_pc_unwind_ftype): Declare.
1853         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1854         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
1855         (frame_pc_unwind): Declare.
1856         * dummy-frame.c (dummy_frame_pc_unwind): New function.
1857         (struct dummy_frame): Add comment mentioning that values are for
1858         previous frame.
1859         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1860         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1861         (generic_file_frame_chain_valid): Ditto.
1862         * stack.c (frame_info): Ditto.
1863
1864 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1865
1866         * linespec.c (locate_first_half): New function.
1867         (decode_line_1): Move code into locate_first_half.
1868
1869 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1870
1871         * complaints.h: Add comment explaining how to eliminate a
1872         deprecated_complain call.
1873         * complaints.h: Fix spelling errors.
1874
1875 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1876
1877         * printcmd.c: Remove #include "disasm.h".
1878
1879 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1880
1881         * frame.h: Move the most relevant interface functions to the start
1882         of the file.
1883
1884 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1885
1886         * regcache.h (deprecated_registers): Rename registers.
1887         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1888         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1889         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1890         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1891         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1892         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1893         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1894         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1895         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1896         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1897         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1898         * v850ice.c: Update.
1899
1900 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
1901
1902         * utils.c (gdb_realpath): Add comment mentioning realpath with a
1903         NULL buffer.
1904
1905 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1906
1907         * regcache.h (deprecated_read_register_bytes): Rename
1908         read_register_bytes.
1909         (deprecated_write_register_bytes): Rename write_register_bytes.
1910         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1911         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1912         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1913         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1914         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1915         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1916         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1917         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1918         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1919         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1920         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1921         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1922         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1923         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1924
1925 2002-11-13  Jim Blandy  <jimb@redhat.com>
1926
1927         * findvar.c (read_var_value): Doc fix.
1928
1929 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1930
1931         * regcache.c (struct regcache): Replace passthough_p with
1932         readonly_p.
1933         (regcache_xmalloc): Initialize readonly_p.
1934         (build_regcache): Initialize readonly_p.
1935         (regcache_save): New function.
1936         (regcache_restore): New function.
1937         (regcache_cpy): Re-implement using regcache_save and
1938         regcache_restore.
1939         (regcache_raw_read): Update.
1940         (regcache_cooked_read): When a read-only cache, checked for cached
1941         pseudo register values.
1942         (regcache_raw_write): Assert that the cache is not read-only.
1943         Remove code handling a non-passthrough cache.
1944         * regcache.h (regcache_save): Declare.
1945         (regcache_restore): Declare.
1946
1947 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1948
1949         * regcache.c (struct regcache_descr): Add fields
1950         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1951         (init_legacy_regcache_descr): Compute the size of a cooked
1952         register cache and then assign that to sizeof_raw_registers.  Set
1953         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1954         (init_legacy_regcache_descr): Ditto.
1955
1956 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1957
1958         * regcache.c (register_buffer): Move to near start of file, update
1959         description.
1960         (regcache_raw_read): Use.
1961         (regcache_raw_write): Use.
1962         (struct regcache): Rename raw_registers to registers and
1963         raw_register_valid_p to register_valid_p.
1964         (regcache_xmalloc): Update.
1965         (regcache_xfree): Update.
1966         (register_buffer): Update.
1967         (regcache_cpy): Update.
1968         (regcache_cpy_no_passthrough): Update.
1969         (regcache_valid_p): Update.
1970         (deprecated_grub_regcache_for_registers): Update.
1971         (deprecated_grub_regcache_for_register_valid): Update.
1972         (set_register_cached): Update.
1973         (regcache_raw_write): Update.
1974
1975 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
1976
1977         * p-exp.y (name_not_typename): Use copy_name to
1978         set current_type variable for fields of THIS.
1979
1980 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
1981
1982         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1983         * monitor.c (init_base_monitor_ops): Likewise.
1984         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1985         * remote-array.c (init_array_ops): Likewise.
1986         * remote-e7000.c (init_e7000_ops): Likewise.
1987         * remote-es.c (init_es1800_ops): Likewise.
1988         (init_es1800_child_ops): Likewise.
1989         * remote-rdp.c (init_remote_rdp_ops): Likewise.
1990         * remote-sim.c (init_gdbsim_ops): Likewise.
1991         * remote-st.c (init_st2000_ops): Likewise.
1992         * sol-thread.c (init_sol_core_ops): Likewise.
1993         (init_sol_thread_ops): Likewise.
1994         * v850ice.c (init_850ice_ops): Likewise.
1995         * win32-nat.c (init_child_ops): Likewise.
1996         * wince.c (init_child_ops): Likewise.
1997
1998 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
1999
2000         * utils.c (gdb_realpath): Make rp a constant pointer.
2001
2002 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2003
2004         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2005         a constant buffer; cannonicalize_file_name(); realpath() with a
2006         pathconf() defined buffer, xstrdup().
2007
2008 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2009
2010         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2011         to hang2.C; hang3.c to hang3.C.
2012
2013 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2014
2015         * findvar.c (read_var_value): Reenable TLS code.
2016
2017 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2018             Jim Blandy  <jimb@redhat.com>
2019         
2020         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2021         * target.c (update_current_target): Add
2022         to_get_thread_local_address.
2023         * target.h (to_get_thread_local_address): Export.
2024         (target_get_thread_local_address): Define.
2025         (target_get_thread_local_address_p): Define.
2026         * thread-db.c: Include solib-svr4.h.
2027         (td_thr_tls_get_addr_p): Define.
2028         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2029         (thread_db_get_thread_local_address): New function.
2030         (init_thread_db_ops): Initialize to_get_thread_local_address.
2031         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2032         * configure: Regenerate.
2033         * config.in: Regenerate.
2034
2035 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2036
2037         * linespec.c (set_flags): New function.
2038         (decode_line_1): Move code into set_flags.
2039
2040 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2041
2042         * linespec.c (decode_line_1): Move chunks of code to separate
2043         functions.
2044         (initialize_defaults): New function.
2045         (decode_indirect): New function.
2046
2047 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2048
2049         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2050         instead of void_code_ptr.
2051         (sigtramp_saved_pc): Ditto.
2052
2053         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2054         i386_fp_regnum_p.
2055
2056 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2057
2058         * gdbtypes.h (struct main_type): Move artificial flag out of
2059         loc.  New member of ``struct field'' named static_kind.  Reduce
2060         overloaded meaning of bitsize.
2061         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2062         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2063         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2064
2065         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2066         new fields.
2067         (template_to_fixed_record_type, template_to_static_fixed_type)
2068         (to_record_with_fixed_variant_part): Likewise.
2069         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2070         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2071         * dwarfread.c (struct_type, enum_type): Likewise.
2072         * hpread.c (hpread_read_enum_type)
2073         (hpread_read_function_type, hpread_read_doc_function_type)
2074         (hpread_read_struct_type): Likewise.
2075         * mdebugread.c (parse_symbol): Likewise.
2076
2077 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2078
2079         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2080         * stack.c (print_frame_info_base): Update.
2081         (print_frame_info_base, frame_info): Update.
2082         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2083         (sparc_frame_saved_pc): Update.
2084         * ada-lang.c (find_printable_frame): Update.
2085         * breakpoint.c (deprecated_frame_in_dummy): Update.
2086         
2087 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2088
2089         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2090         defined.
2091         (regmap): Extend to cover all registers.
2092         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2093         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2094         definitions.
2095         (fetch_register, sore_register): Simplify.
2096         (old_fetch_inferior_registers, old_store_inferior_registers):
2097         Remove functions.
2098         (cannot_fetch_register, cannot_store_register): Change
2099         implementation to use regmap array to decide which registers
2100         cannot be fetched/stored.  This removes $orig_eax from the
2101         registers that cannot be fetched/stored.
2102         (fetch_inferior_registers): Call fetch_register directly instead
2103         of calling old_fetch_inferior_registers.
2104         (store_inferior_registers): Call store_register directly instead
2105         of calling old_store_inferior_registers.
2106         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2107         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2108         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2109
2110 2002-11-09  Klee Dienes  <kdienes@apple.com>
2111
2112         * i387-tdep.c (i387_supply_register): When called with NULL as a
2113         buffer, mark the register as not provided (to mirror the behavior
2114         of supply_register).
2115         (i387_supply_fxsave): Ditto.
2116         (i387_supply_fsave): Ditto (inherits the behavior from
2117         i387_supply_register).
2118
2119 2002-11-09  Klee Dienes  <kdienes@apple.com>
2120
2121         * blockframe.c (sigtramp_saved_pc): Use
2122         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2123         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2124         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2125         
2126 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2127
2128         * frame.c (get_prev_frame): Test prev_p to identify a previously
2129         unwound frame.  Initialize prev_p.
2130         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2131         comment.
2132
2133 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2134
2135         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2136         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2137         more comments.  Zap dead code.
2138
2139 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2140
2141         * infcmd.c (print_vector_info, print_float_info): Move code that
2142         checks whether the target has any registers and whether there is a
2143         selected frame up, such that it is also used if a target provides
2144         multi-arch definitions of these functions.
2145
2146 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2147
2148         * Makefile.in (DESTDIR): Define.
2149         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2150         prefix.
2151
2152         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2153         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2154
2155 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2156
2157         * i386-linux-tdep.c: Include "reggroups.h".
2158         (i386_linux_register_reggroup_p): New function.
2159         (i386_linux_init_abi): Set register_reggroup_p to
2160         i386_linux_register_reggroup_p.
2161         * i386-tdep.h (i386_register_reggroup_p): Declare.
2162         * i386-tdep.c: Include "reggroups.h".
2163         (i386_init_reggroups): New function.
2164         (i386_add_reggroups): New function.
2165         (i386_register_reggroup_p): New function.
2166         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2167         (_initialize_i386_tdep): Call i386_init_reggroups.
2168         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2169         specific reggroups.
2170
2171 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2172
2173         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2174         request that's available in *BSD.
2175
2176         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2177
2178         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2179         FDOFF_REGNUM.
2180
2181 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2182
2183         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2184         * dummy-frame.c (find_dummy_frame): Rename
2185         generic_find_dummy_frame, make static.  Return the dummy frame
2186         instead of the regcache.
2187         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2188         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2189         (dummy_frame_register_unwind): Rename
2190         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2191         * dummy-frame.h (dummy_frame_register_unwind): Rename
2192         generic_call_dummy_register_unwind.
2193
2194 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2195
2196         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2197         except the inclusion of "i386/tm-i386.h", to...
2198         * config/i386/nm-i386v42mp.h: ...here.
2199         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2200
2201 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2202
2203         * Makefile.in (frame.o): Update dependencies.
2204         * blockframe.c (current_frame, frame_obstack_alloc)
2205         (frame_saved_regs_zalloc, get_current_frame)
2206         (set_current_frame, create_new_frame)
2207         (set_unwind_by_pc, get_next_frame)
2208         (flush_cached_frames, reinit_frame_cache)
2209         (frame_saved_regs_register_unwind)
2210         (deprecated_generic_get_saved_register)
2211         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2212         (_initialize_blockframe): Move frame code from here...
2213         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2214         "annotate.h" and "dummy-frame.h".
2215         (_initialize_frame): New function.
2216
2217 2002-11-08  Jim Blandy  <jimb@redhat.com>
2218
2219         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2220         when we finish a function a context.
2221         * buildsym.h (outermost_context_p): New macro.
2222         (Bug analyzed by David Edelsohn.)
2223
2224 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2225
2226         * blockframe.c: Include "dummy-frame.h".
2227         (struct dummy_frame, dummy_frame_stack)
2228         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2229         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2230         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2231         (generic_save_call_dummy_addr, generic_pop_current_frame)
2232         (generic_pop_dummy_frame, generic_fix_call_dummy)
2233         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2234         dummy frame code from here...
2235         * dummy-frame.c: ...to here.  New file.
2236         * dummy-frame.h: New file.
2237         (generic_call_dummy_register_unwind): Declare.
2238         (generic_find_dummy_frame): Declare.
2239         * Makefile.in (SFILES): Add dummy-frame.c.
2240         (dummy-frame.o): Specify dependencies.
2241         (dummy_frame_h): Define.
2242         (COMMON_OBS): Add dummy-frame.o.
2243         (blockframe.o): Update dependencies.
2244
2245 2002-11-08  Jim Blandy  <jimb@redhat.com>
2246
2247         * dwarf2read.c (read_func_scope): Restore local_symbols and
2248         param_symbols after we finish the function context.  (Based on a
2249         patch from David Edelsohn.)
2250
2251 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2252
2253         * linespec.c (symbol_found): New function.
2254         (minsym_found): New function.
2255         (decode_line_1): Separate out some code into separate functions.
2256
2257 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2258
2259         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2260         the benefit of the interix target.
2261         * i386-tdep.h (i386_frameless_signal_p): Declare.
2262
2263 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2264
2265         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2266         declaration that snuck in from change below.
2267
2268 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2269
2270         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2271         all callers.
2272         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2273         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2274         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2275         (i386_mxcsr_regnum_p): new function.  Use instead of
2276         MXCSR_REGNUM_P.
2277         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2278         (i386_sse_regnum_p): Declare.
2279         (i386_mxcsr_regnum_p): Declare.
2280         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2281         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2282         (IS_FP_REGNUM): Update definition.
2283         (IS_FPU_CTRL_REGNUM): Update definition..
2284         (IS_SSE_REGNUM): Update definition..
2285         * i386v-nat.c (register_u_addr): Update.
2286         * go32-nat.c (fetch_register): Update.
2287         (store_register): Update.
2288
2289 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2290
2291         Preparation work to convert the hppa targets to multiarch partial.
2292
2293         * hppa-tdep.c: Add new functions replacing macro bodies from
2294         config/pa/tm-hppa.h. These function will be used to initialize
2295         the gdbarch structure. Import some comments from tm-hppa.h,
2296         and place them where appropriate, to avoid loosing them when
2297         we cleanup this file.
2298         (hppa_reg_struct_has_addr): New function.
2299         (hppa_inner_than): New function.
2300         (hppa_stack_align): New function.
2301         (hppa_pc_requires_run_before_use): New function.
2302         (hppa_instruction_nullified): New function.
2303         (hppa_register_byte): New function.
2304         (hppa_register_virtual_type): New function.
2305         (hppa_store_struct_return): New function.
2306         (hppa_cannot_store_register): New function.
2307         (hppa_frame_args_address): New function.
2308         (hppa_frame_locals_address): New function.
2309         (hppa_smash_text_address): New function.
2310         (hppa_coerce_float_to_double): New function. Requires the inclusion
2311         of "language.h".
2312
2313         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2314
2315         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2316         gdbarch-eligible macro to a call to the new associated function
2317         created in hppa-tdep.c.
2318         (INNER_THAN): Likewise.
2319         (STACK_ALIGN): Likewise.
2320         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2321         (INSTRUCTION_NULLIFIED): Likewise.
2322         (REGISTER_BYTE): Likewise.
2323         (REGISTER_VIRTUAL_TYPE): Likewise.
2324         (STORE_STRUCT_RETURN): Likewise.
2325         (CANNOT_STORE_REGISTER): Likewise.
2326         (FRAME_ARGS_ADDRESS): Likewise.
2327         (FRAME_LOCALS_ADDRESS): Likewise.
2328         (SMASH_TEXT_ADDRESS): Likewise.
2329         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2330         (ABOUT_TO_RETURN): Delete, as no longer used.
2331
2332 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2333
2334         * printcmd.c (disassemble_command): Remove obsolete function.
2335         (_initialize_printcmd): Do not create disassemble command here.
2336         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2337         disassemble command.
2338         (init_cli_cmds): Create disassemble command here instead.
2339
2340 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2341
2342         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2343
2344 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2345
2346         * regcache.h (regcache_cooked_read_using_offset_hack)
2347         (regcache_cooked_write_using_offset_hack): Delete declarations.
2348         (register_changed): Delete declaration.
2349         * regcache.c (regcache_cooked_read_using_offset_hack)
2350         (regcache_cooked_write_using_offset_hack): Delete functions.
2351         (cooked_xfer_using_offset_hack): Delete function.
2352         (register_changed): Delete function.
2353
2354 2002-11-07  Jim Blandy  <jimb@redhat.com>
2355
2356         * macroscope.c: #include "complaints.h".
2357         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2358         but not in the macro table.
2359         * Makefile.in (macroscope.o): Record dependency.
2360
2361 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2362
2363         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2364
2365 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2366
2367         * regcache.c (deprecated_registers_fetched): Update.
2368         * regcache.h (deprecated_registers_fetched): Rename
2369         registers_fetched.
2370         * remote-vxsparc.c (vx_read_register): Update.
2371         * remote-vxmips.c (vx_read_register): Update.
2372         * remote-vx68.c (vx_read_register): Update.
2373         * irix5-nat.c (fetch_core_registers): Update.
2374         * mipsm3-nat.c (fetch_inferior_registers): Update.
2375         * sun3-nat.c (fetch_inferior_registers): Update.
2376         * symm-nat.c (fetch_inferior_registers): Update.
2377         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2378         (fetch_core_registers): Update.
2379         (fetch_kcore_registers): Update.
2380         * mips-nat.c (fetch_inferior_registers): Update.
2381         * corelow.c (get_core_registers): Update.
2382         * a68v-nat.c (fetch_inferior_registers): Update.
2383
2384 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2385
2386         Put in place the framework necessary for multiarching the hppa targets.
2387         * hppa-tdep.c (hppa_gdbarch_init): New function.
2388         (hppa_dump_tdep): New function.
2389         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2390         tdep structure dumper.
2391         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2392         until the multi-arching conversion has partially been completed.
2393
2394 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2395
2396         * valops.c (value_assign): Merge lval_register case into
2397         lval_reg_frame_relative.  Use frame_register and
2398         regcache_cooked_write instead of get_saved_register and
2399         write_register_bytes.  After flushing the register cache, try to
2400         re-select the selected frame.
2401
2402 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2403
2404         * regcache.h (deprecated_register_valid): Rename register_valid.
2405         * regcache.c: Update.
2406         * ia64-aix-nat.c: Update.
2407         * i386gnu-nat.c: Update.
2408         * alpha-nat.c: Update.
2409         * sparc-nat.c: Update.
2410         * lynx-nat.c: Update.
2411         * remote-mips.c: Update.
2412
2413 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2414
2415         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2416         to end of file, to be more consistent with the pratice followed
2417         by other targets.
2418
2419 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2420
2421         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2422         (print_float_info): Print registers in float_reggroup.
2423         (print_vector_info): Print registers in vector_reggroup.
2424         (default_print_registers_info): When all, print registers in
2425         all_reggroup.  Otherwize, print registers in general_reggroup.
2426         (registers_info): Rewrite.  Add support for register groups.
2427         Eliminate a goto.
2428
2429 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2430
2431         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2432         ages.
2433         (symtab_symbol_info): Remove eons old ifdeffed out code.
2434         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2435         command.
2436
2437 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2438
2439         * c-exp.y: Add missing semi-colons.
2440         * f-exp.y: Add missing semi-colons.
2441         * m2-exp.y: Add missing semi-colons.
2442         * p-exp.y: Add missing semi-colons.
2443         Add empty action to start rule to avoid a type clash error when
2444         building with bison >= 1.50.
2445
2446 2002-11-06  Jim Blandy  <jimb@redhat.com>
2447
2448         * macrotab.h (struct macro_source_file): Doc fix.
2449
2450 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2451
2452         * varobj.c (child_exists, cplus_number_of_children): Change
2453         STREQ macro references to strcmp.
2454         (cplus_name_of_child): Change code to handle the fact that
2455         fields are not necessarily contiguous with regards to their 
2456         access control. This is a fix for PR gdb/792.
2457
2458 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2459
2460         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2461         * gdbarch.h, gdbarch.c: Regnerate.
2462         * frame.h (frame_register): Declare.
2463         * frame.c (frame_register): New function.
2464         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2465         GET_SAVED_REGISTER, otherwize call
2466         generic_unwind_get_saved_register.
2467         (frame_register_read): Use frame_register instead of
2468         get_saved_register.
2469
2470 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2471         
2472         From Jim Ingham  <jingham@apple.com>:
2473         * event-top.c (gdb_disable_readline): New function.
2474         (_initialize_event_loop): Move comment.
2475
2476 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2477
2478         * event-loop.c (start_event_loop): Add comment.
2479         Update copyright.
2480
2481 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2482
2483         * infcmd.c (default_print_registers_info): Do not call
2484         PRINT_REGISTER_HOOK.
2485
2486 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2487
2488         * sparc-tdep.c (sparc_print_register_hook): Make static.
2489         (sparc_print_registers_info): New function.
2490         (sparc_do_registers_info): New function.
2491         (sparclet_print_registers_info): New function.
2492         (sparclet_do_registers_info): New function.
2493         (do_sparc_print_registers_info): New function.
2494         (sparc_print_registers): New static function, clone of infcmd.c's
2495         default_print_registers_info.
2496         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2497         (sparclet_do_registers_info): Declare.
2498         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2499         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2500         Re-define.
2501         (sparc_do_registers_info): Declare.
2502         (PRINT_REGISTER_HOOK): Delete macro.
2503         (sparc_print_register_hook): Delete declaration.
2504
2505 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2506
2507         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2508         functions.
2509         (lookup_symbol_aux_local): New function.
2510         (lookup_symbol_aux_symtabs): New function.
2511         (lookup_symbol_aux_psymtabs): New function.
2512
2513 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2514
2515         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2516         previous values of 'objfile' and 'block'.
2517
2518 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2519
2520         * values.c (value_change_enclosing_type): Set 
2521         enclosing_type field correctly also for the case where 
2522         more memory needs to be allocated.
2523
2524 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2525
2526         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2527         of puts_filtered.
2528
2529         * i387-tdep.c (i387_print_float_info): Replace calls to
2530         register_read and deprecated_read_register_gen with calls to
2531         frame_register_read, and make the necessary adjustments to the
2532         surrounding code.
2533
2534 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2535
2536         * gdbarch.sh (register_reggroup_p): Allow default value.
2537         * gdbarch.h, gdbarch.c: Regenerate.
2538
2539 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2540
2541         * regcache.h: Add coment indicating replacements for deprecated
2542         functions.
2543
2544 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2545
2546         * reggroups.h, reggroups.c: New files.
2547         * regcache.c: Include "reggroups.h".
2548         (enum regcache_dump_what): Add `regcache_dump_groups'.
2549         (regcache_dump): Contract size of the "Type" column.  When
2550         specified, dump the register's groups.
2551         (maintenance_print_register_groups): New function.
2552         (_initialize_regcache): Add command `maint print register-groups'.
2553         * Makefile.in (COMMON_OBS): Add reggroups.o
2554         (SFILES): Add reggroups.c.
2555         (reggroups_h): Define.
2556         (regcache.o, gdbarch.o): Update dependencies.
2557         (reggroups.o): Specify dependencies.
2558         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2559         Add opaque declaration for `struct reggroup' in generated .h file.
2560         Include "reggroups.h" in generated .c file.
2561         gdbarch.h, gdbarch.c: Re-generate.
2562
2563 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2564
2565         * regcache.h (deprecated_read_register_gen): Rename
2566         read_register_gen.
2567         (deprecated_write_register_gen): Rename write_register_gen.
2568         * i387-tdep.c: Update.
2569         * x86-64-linux-nat.c: Update
2570         * wince.c: Update.
2571         * thread-db.c: Update.
2572         * win32-nat.c: Update.
2573         * mips-tdep.c: Update.
2574         * d10v-tdep.c: Update.
2575         * cris-tdep.c: Update.
2576         * remote-sim.c: Update.
2577         * remote-rdi.c: Update.
2578         * remote-rdp.c: Update.
2579         * frame.c: Update.
2580         * target.c: Update.
2581         * blockframe.c: Update.
2582         * x86-64-tdep.c: Update.
2583         * xstormy16-tdep.c: Update.
2584         * sh-tdep.c: Update.
2585         * s390-tdep.c: Update.
2586         * rs6000-tdep.c: Update.
2587         * sparc-tdep.c: Update.
2588         * i386-tdep.c: Update.
2589         * dwarf2cfi.c: Update.
2590         * regcache.c: Update.
2591
2592 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2593
2594         New interix-specific files:
2595         * config/i386/nm-interix.h: New file.
2596         * config/i386/interix.mh: New file.
2597         * config/i386/interix.mt: New file.
2598         * i386-interix-nat.c: New file.
2599         * i386-interix-tdep.c: New file.
2600
2601 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2602
2603         * frame.h (deprecated_generic_get_saved_register): Rename
2604         generic_get_saved_register.
2605         * blockframe.c (deprecated_generic_get_saved_register): Update.
2606         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2607         (xstormy16_frame_saved_register): Update.
2608         * sh-tdep.c (sh_gdbarch_init): Update.
2609         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2610         * ia64-tdep.c (ia64_get_saved_register): Update.
2611         * cris-tdep.c (cris_gdbarch_init): Update.
2612         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2613         * arm-tdep.c (arm_gdbarch_init): Update.
2614
2615 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2616
2617         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2618
2619 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2620
2621         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2622         trampolines in sigaction.
2623
2624 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2625
2626         * h8300-tdep.c: Include "gdb_assert.h".
2627         (h8300_print_register): Add gdbarch, file and frame parameters.
2628         Use frame_read_unsigned_register to read the register's value.
2629         Use fprintf_filtered to display output.
2630         (h8300_print_registers_info): Replace h8300_do_registers_info.
2631         (h8300_gdbarch_init): Set print_registers_info.
2632
2633 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2634
2635         * frame.c (frame_read_unsigned_register): New function.
2636         (frame_read_signed_register): New function.
2637         * frame.h (frame_read_unsigned_register): Declare.
2638         (frame_read_signed_register): Declare.
2639
2640 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2641
2642         * h8500-tdep.c (h8500_print_registers_info): New static function,
2643         clone of infcmd.c's default_print_registers_info.
2644         (h8500_do_registers_info): New funtion.
2645         (h8500_print_register_hook): Rename print_register_hook, make
2646         static.
2647
2648         * config/h8500/tm-h8500.h: Update copyright.
2649         (DEPRECATED_DO_REGISTERS_INFO): Define.
2650         (h8500_do_registers_info: Declare.
2651         (PRINT_REGISTER_HOOK): Delete macro.
2652         (print_register_hook): Delete function.
2653
2654 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2655
2656         * z8k-tdep.c (z8k_print_register_hook): Make static.
2657         (z8k_print_registers_info): New static function, clone of
2658         infcmd.c's default_print_registers_info.
2659         (z8k_do_registers_info): New function.  Wrap
2660         z8k_print_registers_info.
2661         * config/z8k/tm-z8k.h: Update copyright.
2662         (PRINT_REGISTER_HOOK): Delete macro.
2663         (z8k_print_register_hook): Delete declaration.
2664         (DEPRECATED_DO_REGISTERS_INFO): Define.
2665         (z8k_do_registers_info): Declare.
2666
2667 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2668
2669         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2670         as this is already provided by value.h, and was actually causing
2671         a compilation error because of a conflict in parameter type
2672         declaration due to a missing const keyword.
2673         (low_text_segment_addres): Fix a compilation warning.
2674
2675 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2676
2677         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2678         registers without a name.
2679         (mips_linux_cannot_store_register): Don't store registers without
2680         a name.
2681
2682 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2683
2684         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2685         out.)
2686         * symtab.h: Delete prototype for find_addr_symbol.
2687
2688 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2689
2690         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2691         DO_REGISTERS_INFO.
2692         gdbarch.h, gdbarch.c: Re-generate.
2693         * infcmd.c (default_print_registers_info): Update reference.
2694         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2695         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2696         * sh-tdep.c (sh_gdbarch_init): Ditto.
2697         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2698         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2699
2700 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2701
2702         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2703         cfi_init_extra_frame_info.
2704         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2705         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2706
2707         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2708         target where necessary.  Add more comments and remove the ones
2709         that don't provide any useful information.
2710
2711         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2712         deprecated_read_register_dummy with
2713         frame_unwind_unsigned_register.
2714
2715         * i386-tdep.c (i386_extract_struct_value_address): Use
2716         regcache_raw_read_unsigned instead of
2717         regcache_cooked_read_unsigned since we know that the register
2718         we're reading isn't a pseudo register.  Rename variable 'val' into
2719         the more descriptive 'addr'.
2720
2721         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2722         (x86_64_push_return_address): Add comment.
2723         (x86_64_pop_frame): Make static.
2724         (examine_argument): Clarify comment.
2725         (x86_64_skip_prologue): Make prolog_expact variable static.
2726
2727         * dwarf2cfi.c: Fix some formatting problems.
2728         (context_cpy, read_encoded_pointer): Clarify comments.
2729
2730         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2731         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2732         i386 target back into x86_64_gdbarch_init.  Add some comments and
2733         remove meaningless ones.
2734
2735 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2736
2737         * complaints.h (struct deprecated_complaint): Rename `struct
2738         complaint'.
2739         * complaints.c (complain): Update.
2740         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2741         incorrect comment indicating that "symfile.h" was being included
2742         for the `struct complaint' definition.
2743         * remote-vx.c: Update.
2744         * objc-lang.c: Update.
2745         * xcoffread.c: Update.
2746         * hpread.c: Update.
2747         * mdebugread.c: Update.
2748         * stabsread.c: Update.
2749         * dwarf2read.c: Update.
2750         * dwarfread.c: Update.
2751         * elfread.c: Update.
2752         * coffread.c: Update.
2753         * stabsread.h: Update.
2754         * dbxread.c: Update.
2755         * buildsym.c: Update.
2756         * gdbtypes.c: Update.
2757         * macrotab.c: Update.
2758
2759 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2760
2761         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2762         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2763         (x86_64_init_abi): ...new function.
2764
2765         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2766         * i386v-nat.c: Include "i386-tdep.h".
2767
2768 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2769
2770         * gdbtypes.c (address_space_name_to_int): Update.
2771         (address_space_int_to_name): Update.
2772         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2773         multi-arch predicate.
2774         (address_class_name_to_type_flags): Ditto.
2775         * gdbarch.h, gdbarch.c: Re-generate.
2776         
2777         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2778
2779 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
2780
2781         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2782
2783 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
2784
2785         * symtab.h (INIT_SAL): Delete macro.
2786         (init_sal): Export.
2787         * symtab.c (init_sal): New function.
2788
2789         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2790         to init_sal function call.
2791         (find_sal_from_funcs_and_line): Ditto.
2792         (all_sals_for_line): Ditto. 
2793         * breakpoint.c (create_internal_breakpoint): Ditto. 
2794         (create_fork_vfork_event_catchpoint): Ditto. 
2795         (create_exec_event_catchpoint): Ditto. 
2796         (parse_breakpoint_sals): Ditto. 
2797         (watch_command_1): Ditto. 
2798         (handle_gnu_4_16_catch_command): Ditto.
2799         (clear_command): Ditto. 
2800         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
2801         * infcmd.c (run_stack_dummy): Ditto. 
2802         * infrun.c (process_event_stop_test): Ditto.
2803         (check_sigtramp2): Ditto.
2804         (step_over_function): Ditto. 
2805         * linespec.c (decode_line_2): Ditto. 
2806         (decode_line_1): Ditto. 
2807         * source.c (line_info): Ditto. 
2808         * symtab.c (find_pc_sect_line): Ditto.
2809
2810 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
2811
2812         * dwarf2cfi.c (struct context)
2813         (struct context_reg): Moved to dwarf2cfi.h
2814         (context_alloc, frame_state_alloc, context_cpy):
2815         Made extern instead of static, removed prototypes.
2816         * dwarf2cfi.h (struct context)
2817         (struct context_reg): New, moved from dwarf2cfi.c
2818         (context_alloc, frame_state_alloc, context_cpy):
2819         New prototypes.
2820         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2821         Changed from static to extern.
2822         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2823         (LINUX_SIGCONTEXT_FP_OFFSET)
2824         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2825         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2826         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2827         * x86-64-tdep.c (x86_64_gdbarch_init): Several
2828         set_gdbarch_*() calls now use x86-64 specific functions 
2829         instead of DWARF2 CFI ones.
2830         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2831         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2832         (x86_64_init_extra_frame_info): New prototypes.
2833         
2834 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2835
2836         * linespec.c: #include "parser-defs.h".
2837         Delete prototype for find_template_name_end.
2838         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2839
2840 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
2841
2842         * NEWS: add recent mi fixes.
2843         * varobj.c (struct varobj): Add new "updated" flag.
2844         (new_variable): Default "updated" flag to 0.
2845         (varobj_set_value): Set "updated" flag to 1 if value
2846         changes.
2847         (varobj_update): Check varobj "updated" flag before
2848         comparing old and refreshed values.  Fix for
2849         PR gdb/702.
2850
2851 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2852
2853         * parse.c (parse_exp_1): Use BLOCK_START.
2854         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2855         SYMBOL_BLOCK_VALUE.
2856         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2857
2858 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2859
2860         * symtab.c: Delete cplusplus_hint.
2861         Delete prototype for find_template_name_end.
2862
2863 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2864
2865         * symtab.h: Update comment.
2866
2867 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2868
2869         * printcmd.c (address_info): Restore quotes in output.
2870         * valops.c (value_of_local): Restore quotes in error message.
2871
2872 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2873
2874         * symtab.c (symbol_demangled_name): New function.
2875         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2876         turning most of it into a function.
2877         (symbol_demangled_name): Export.
2878
2879 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2880
2881         * valops.c (value_of_local): Restore quotes in error message.
2882
2883 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2884
2885         * symtab.c (symbol_init_language_specific): New function.
2886         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2887         turning most of it into a function.
2888         (symbol_init_language_specific): Export.
2889
2890 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2891
2892         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2893         (dwarf_attr_name): Ditto.
2894         (dwarf_type_encoding_name): Ditto.
2895         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2896         (process_die): Handle DW_TAG_namespace,
2897         DW_TAG_imported_declaration, DW_TAG_imported_module.
2898         (read_namespace): New function.
2899
2900 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
2901
2902         * configure.in: Define NEW_PROC_API on Interix too.
2903         * configure: Regenerate.
2904
2905 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
2906
2907         * configure: Regenerate using the proper version of autoconf.
2908
2909 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2910
2911         * findvar.c (read_var_value): Temporarily disable TLS code, until
2912         complete TLS support is added.
2913
2914 2002-10-21  Jim Blandy  <jimb@redhat.com>
2915             Elena Zannoni  <ezannoni@redhat.com>
2916
2917         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2918         for thread local storage locations.
2919         (struct symbol): Add objfile field.
2920         (SYMBOL_OBJFILE): Define.
2921         * dwarf2read.c (is_thread_local): New static variable.
2922         (new_symbol): If variable is in thread local fill in address class
2923         and objfile appropriately.
2924         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2925         stack operation.
2926         * printcmd.c (address_info): Print the information for thread
2927         local storage variable.
2928         * findvar.c (read_var_value): In case of thread local variable,
2929         defer to the target vector code to compute address.
2930
2931 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2932
2933         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2934         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
2935
2936 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2937
2938         * symtab.h (address_class):  Rename
2939         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2940         * hpread.c (hpread_process_one_debug_symbol): Ditto.
2941         * printcmd.c (address_info): Ditto.
2942         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2943
2944 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
2945
2946         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2947         DBREG_DRX macro to acces debug registers.
2948
2949         * Makefile.in (i386obsd-tdep.o): New target.
2950
2951         * solib-sunos.c: Include "bcache.h" and "regcache.h".
2952         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2953
2954         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2955         * config/i386/obsd.mt: New file.
2956         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2957         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2958         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2959         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2960         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2961         * i386obsd-tdep.c: New file.
2962
2963 2002-10-19  Adam Fedor  <fedor@gnu.org>
2964
2965         * objc-exp.y (name_not_typename): Fix invalid comment.  
2966
2967 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
2968
2969         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2970         to allocate partial syms and macro byte caches.
2971
2972 2002-10-18  David Carlton  <carlton@math.stanford.edu>
2973
2974         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2975
2976 2002-10-18  Adam Fedor  <fedor@gnu.org>
2977
2978         * stabsread.c (find_name_end): New function.
2979         (define_symbol): Use it.
2980
2981 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
2982
2983         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2984         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2985         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2986         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2987
2988 2002-10-17  David Carlton  <carlton@math.stanford.edu>
2989
2990         * symfile.h: Add opaque declaration for struct obstack.
2991         Declare obsavestring to take a const char *.
2992         * symfile.c (obsavestring): Make first argument a const char *.
2993
2994 2002-10-16  Adam Fedor  <fedor@gnu.org>
2995
2996         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2997         names when matching breakpoints in current file.
2998
2999 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3000
3001         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3002         (read_tag_pointer_type): Add address class support.
3003         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3004         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3005         New methods.
3006         * gdbarch.h, gdbarch.c: Regenerate.
3007         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3008         (make_type_with_address_space, recursive_type_dump): Add address
3009         class support.
3010         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3011         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3012         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3013
3014 2002-10-16  Klee Dienes  <kdienes@apple.com>
3015
3016         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3017         to get the last character of a char[] buffer, not
3018         name[sizeof(vptr_name)-1].
3019
3020 2002-10-14  Adam Fedor  <fedor@gnu.org>
3021
3022         * symtab.h: New objc_specific struct.
3023         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3024         (SYMBOL_DEMANGLED_NAME): Likewise.
3025
3026 2002-10-14  Adam Fedor  <fedor@gnu.org>
3027
3028         * symfile.c (init_filename_language_table): Add ObjC file extension.
3029
3030 2002-10-14  Adam Fedor  <fedor@gnu.org>
3031
3032         * utils.c (puts_filtered_tabular): New function.
3033         (fprintf_symbol_filtered): Get ObjC demangled name.
3034         * defs.h (puts_filtered_tabular): Declared.
3035
3036 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3037
3038         * c-lang.h (c_type_print_varspec_prefix): Delete.
3039         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3040         ``need_post_space'' parameter.  Adjust all callers.
3041
3042 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3043  
3044         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3045         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3046         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3047         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3048
3049 2002-10-13  Adam Fedor  <fedor@gnu.org>
3050
3051         * source.c (print_source_lines): Update comments.
3052
3053 2002-10-13  Adam Fedor  <fedor@gnu.org>
3054
3055         * valops.c (value_of_local): New function.
3056         (value_of_this): Use it.
3057         * value.h (value_of_local): Declared.
3058
3059 2002-10-13  Adam Fedor  <fedor@gnu.org>
3060
3061         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3062         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3063
3064 2002-10-12  Adam Fedor  <fedor@gnu.org>
3065
3066         * language.c (binop_result_type): Add language_objc to case.
3067         (integral_type): Likewise.
3068         (character_type): Likewise.
3069         (string_type): Likewise.
3070         (boolean_type): Likewise.
3071         (structured_type): Likewise.
3072         (binop_type_check): Likewise.
3073
3074 2002-10-11  Adam Fedor  <fedor@gnu.org>
3075
3076         * printcmd.c (address_info): Print 'self' for ObjC.
3077
3078 2002-10-11  Adam Fedor  <fedor@gnu.org>
3079
3080         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3081         OP_SELF.
3082
3083 2002-10-11  Adam Fedor  <fedor@gnu.org>
3084
3085         * language.h (CAST_IS_CONVERSION): Add language_objc.
3086
3087 2002-10-11  Adam Fedor  <fedor@gnu.org>
3088
3089         * defs.h (enum language): Add language_objc.
3090
3091 2002-10-11  Klee Dienes  <kdienes@apple.com>
3092
3093         * corefile.c (read_memory_typed_address): New function.
3094         * gdbcore.h (read_memory_typed_address): Add prototype.
3095         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3096         to read a value destined for a CORE_ADDR, not read_memory_integer.
3097         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3098         (f77_get_dynamic_lowerbound): Ditto.
3099
3100 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3101
3102         * utils.c (string_to_core_addr): After turning string into
3103         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3104         which will do necessary sign-extension, etc.
3105
3106 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3107
3108         * c-exp.y (THIS): Delete token and grammar rule.
3109         (yylex): Don't return THIS.
3110         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3111         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3112         * demangle.c (cplus_markers): Update comment.  Put '$'
3113         first.  Remove CPLUS_MARKER.
3114         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3115         * jv-exp.y (THIS): Delete token and grammar rule.
3116         (yylex): Don't return THIS.
3117         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3118         * objc-exp.y (THIS): Delete token and grammar rule.
3119         (yylex): Don't return THIS.
3120         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3121         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3122         (read_member_functions): Likewise for opname.
3123         (read_tilde_fields): Use is_cplus_marker.
3124
3125         * defs.h (CPLUS_MARKER): Don't define.
3126         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3127         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3128         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3129         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3130         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3131
3132         * config/i386/tm-i386v4.h: Delete file.
3133         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3134         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3135         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3136         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3137         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3138         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3139         * config/i386/i386v4.mt (TM_FILE): Likewise.
3140         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3141
3142 2002-10-10  Marko Mlinar  <markom@opencores.org>
3143
3144         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3145         accidentially not commited 2002-10-09
3146         * gdbarch.h, gdbarch.c: Re-generate.
3147
3148 2002-10-09  Marko Mlinar  <markom@opencores.org>
3149
3150         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3151         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3152         * gdbarch.h, gdbarch.c: Re-generate.
3153
3154 2002-10-08  Petr Sorfa <petrs@caldera.com>
3155
3156         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3157
3158         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3159         so we can work on more than one compilation unit at a time.  This
3160         helps prepare GDB to handle inter-CU die references.
3161         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3162         the code to be defined before struct comp_unit_head.
3163         (comp_unit_head): Added new members - offset, cu_head,
3164         begin_die, next and dwarf2_abbrevs.
3165         (dwarf2_abbrevs): Removed single static var; now member of
3166         struct comp_unit_head.
3167         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3168         members.
3169         (psymtab_to_symtab_1): Changed to work with the new
3170         struct comp_unit_head.
3171         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3172         constructs the dwarf2_abbrevs[] inside the cu_header.
3173         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3174         dwarf2_abbrev table to clean up.
3175         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3176         handling of dwarf2_abbrevs inside the cu_header.
3177         (read_partial_die): Now supports the call to the new
3178         dwarf2_lookup_abbrev.
3179         (read_full_die): Now supports the call to the new
3180         dwarf2_lookup_abbrev.
3181
3182 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3183
3184         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3185         insure that shell variables, such as "transformed_name" are propagated
3186         to later shell statements in rule.
3187
3188 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3189
3190         * config/i386/nm-i386sco.h: Add protection against
3191         multiple-inclusion.  Include "i386/nm-i386v.h".
3192         (REGISTER_U_ADDR): Remove define.
3193         (i386_register_u_addr): Remove prototype.
3194
3195 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3196
3197         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3198         before treating it as a single-step event.
3199
3200 2002-10-03  Adam Fedor  <fedor@gnu.org>
3201
3202         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3203         (objc_demangle): Remove assignment in if statements, Replace
3204         free with xfree.
3205         (add_msglist): Likewise.
3206         (end_msglist): Likewise.
3207         (complare_selectors): Likewise.
3208         (selectors_info): Likewise.
3209         (compare_classes): Likewise.
3210         (classes_info): Likewise.
3211         (print_object_command): Likewise.
3212         (find_objc_msgcall_submethod): Replace PTR with void *.
3213         * objc-lang.h: Remove check for __STDC__.
3214
3215 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3216
3217         * ui-out.h (ui_out_field_fmt_int): New prototype.
3218         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3219         of field width and alignment.
3220         * stack.c (print_frame_info_base): When printing frame level, use
3221         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3222         PR gdb/192
3223
3224 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3225
3226         * MAINTAINERS: Add self to Write After Approval list.
3227
3228 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3229
3230         * infcmd.c (interrupt_target_command_wrapper): Delete.
3231         (interrupt_target_command): Make non static.
3232         (nofp_registers_info): Make static.
3233         * stack.c (return_command_wrapper): Delete.
3234         (return_command): Make non static.
3235
3236 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3237
3238         * event-top.c (gdb_setup_readline): New function. Code moved from
3239         _initialize_event_loop().
3240         (_initialize_event_loop): Call gdb_setup_readline().
3241
3242 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3243
3244         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3245         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3246         * gdbarch.h, gdbarch.c: Re-generate.
3247
3248 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3249
3250         Fix PR gdb/778
3251         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3252         before recursing.
3253         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3254         of fill_in_vptr_fieldno.
3255
3256 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3257
3258         * inferior.h (registers_info, stepi_command, nexti_command,
3259         continue_command, interrupt_target_command): Export from infcmd.c.
3260         * frame.h (args_info, selected_frame_level_changed_hook,
3261         return_command): Export from stack.c.
3262         * v850ice.c (stepi_command, nexti_command, continue_command): use
3263         prototypes from inferior.h.
3264         * tracepoint.c (registers_info, args_info, locals_info): Use
3265         prototypes from frame.h and inferior.h.
3266         * Makefile.in (mi-main.o): Add dependency on frame.h.
3267
3268 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3269
3270         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3271         value in register 3 adjusted by ppc_gp0_regnum.
3272
3273         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3274
3275 2002-10-02  Marko Mlinar <markom@opencores.org>
3276
3277         * MAINTAINERS: Add myself to the Write After Approval list.
3278
3279 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3280
3281         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3282         of the section for the N64 ABI, fixed.
3283
3284         * config/mips/tm-irix6.h: Include solib.h.
3285
3286 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3287
3288         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3289         GNU operators.
3290
3291 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3292
3293         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3294         and that "mi0" syntax has been removed.
3295
3296 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3297
3298         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3299         * ppc-sysv-tdep.c: #include "gdb_string.h".
3300         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3301         pacify GCC.
3302
3303 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3304
3305         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3306         "vrsave"'s register number.
3307
3308 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3309
3310         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3311         use frame_unwind_signed_register to obtain the PC.
3312         (mips_frame_chain): Handle a generic dummy frame.
3313         (mips_init_extra_frame_info): When a generic dummy frame, don't
3314         re-compute the frame base.
3315         (mips_pop_frame): Handle generic dummy frames.
3316         (mips_gdbarch_init): When generic dummy frames, set
3317         use_generic_dummy_frames, push_dummy_frame to
3318         generic_push_dummy_frame, pc_in_call_dummy to
3319         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3320         generic_save_dummy_frame_tos.
3321
3322 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3323
3324         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3325         against TOP when TOP was explictly set.
3326         (generic_push_dummy_frame): Set TOP to zero.
3327
3328 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3329
3330         * event-loop.c (start_event_loop): Rename variable 'result' to
3331         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3332
3333 2002-09-30  Keith Seitz  <keiths@redhat.com>
3334
3335         * gdb-events.sh (selected_thread_changed): New event.
3336         * gdb-events.c: Regenerated.
3337         * gdb-events.h: Regenerated.
3338
3339 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3340
3341         * MAINTAINERS: Add self to Write After Approval list.
3342
3343 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3344
3345         * disasm.c: New file.  
3346         * disasm.h: New file.  
3347         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3348         (compare_lines): Ditto.
3349         (dump_insns): Ditto.
3350         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3351         argument.
3352         (do_assembly_only): Ditto.
3353         (do_disassembly): Renamed to gdb_disassembly and moved to
3354         disasm.c.  Sdded uiout argument.
3355         * Makefile.in: Add new files.  Reorder SFILES list. Update
3356         dependencies.  Include libgdb.a later in the insight executable.
3357
3358 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3359
3360         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3361         bfd/elf64-alpha-fbsd.c.
3362
3363 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3364
3365         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3366         i386gnu-tdep.c.
3367
3368 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3369
3370         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3371         __FUNCTION__.
3372         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3373         function name.
3374         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3375         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3376         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3377         (S_msg_sig_post_reply): Ditto.
3378         
3379 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3380
3381         * sh-tdep.c (sh_use_struct_convention): Use definition according
3382         to ABI.
3383         (sh_push_arguments): Store in register with correct endianess.
3384         (sh_default_store_return_value): Ditto.
3385         (sh_gdbarch_init): Set sizeof long double to 8.
3386
3387 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3388
3389         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3390         Fix some whitespace problems.
3391
3392 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3393
3394         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3395         (mcore-tdep.o): Ditto.
3396         (ns32k-tdep.o): Ditto.
3397         (ns32knbsd-tdep.o): Ditto.
3398         (sh3-rom.o): Ditto.
3399         (vax-tdep.o): Ditto.
3400         * cris-tdep.c: #include "gdb_string.h"
3401         * mcore-tdep.c: Ditto.
3402         * ns32k-tdep.c: Ditto.
3403         * ns32knbsd-tdep.c: Ditto.
3404         * sh3-rom.c: Ditto.
3405         * vax-tdep.c: Ditto.
3406
3407 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3408
3409         * config/djgpp/fnchange.lst: Add entries for
3410         gdb/testsuite/gdb.c++/m-static files.
3411
3412 2002-09-27  Jim Wilson  <wilson@redhat.com>
3413
3414         * MAINTAINERS: Add myself to the Write After Approval list.
3415
3416 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3417
3418         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3419
3420
3421 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3422
3423         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3424         frame.
3425
3426 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3427
3428         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3429         (rs6000_struct_return_address): Delete variable.
3430         (rs6000_store_struct_return): Update.
3431         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3432         deprecated_extract_struct_value_address.
3433         (rs6000_frame_align): New function.
3434         (rs6000_gdbarch_init): Set frame_align.
3435
3436 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3437
3438         From Grace Sainsbury <graces@redhat.com>:
3439         * Makefile.in (gdbtk-main.o): New target.
3440         (gdb.o): New target.
3441         (main_h): Define.
3442         (main.o): Update dependencies.
3443         (gdb$(EXEEXT)): Add gdb.o.
3444         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3445         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3446         (SUBDIR_GDBTK_CLEAN): Set.
3447         (install-gdbtk): Install the insight binary.
3448         (uninstall-gdbtk): New target.
3449         (all-gdbtk, clean-gdbtk): New rule.
3450         * top.c (use_windows): Default to zero.
3451         * main.c: Include "main.h".
3452         (main): Delete.
3453         (struct captured_main_args): Delete.
3454         (gdb_main): New function.
3455         * main.h: New file.
3456         * gdb.c: New File.
3457
3458 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3459
3460         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3461         (frame_map_regnum_to_name): New function.
3462         (frame_map_name_to_regnum): New function.
3463         * frame.h (frame_map_name_to_regnum): Declare.
3464         (frame_map_regnum_to_name): Declare.
3465         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3466         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3467         * parse.c: Do not include "builtin-regs.h".
3468         (target_map_name_to_register): Delete function.
3469         (write_dollar_variable): Use frame_map_name_to_regnum.
3470         * parser-defs.h (target_map_name_to_register): Delete declaration.
3471         * expprint.c: Include "frame.h".
3472         (print_subexp): Use frame_map_regnum_to_name.
3473         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3474         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3475
3476 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3477
3478         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3479         wasn't saved, and the next innermost frame is a dummy, return the
3480         dummy frame's link register.
3481
3482 2002-09-24  Jim Blandy  <jimb@redhat.com>
3483
3484         Fix from Paul Breed:
3485         * main.c (captured_main): Add a `break' after the case for 'b'.
3486
3487 2002-09-24  Keith Seitz  <keiths@redhat.com>
3488
3489         * varobj.c (c_type_of_child): Use get_target_type instead
3490         of TYPE_TARGET_TYPE.
3491
3492 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3493
3494         * source.c (get_current_or_default_source_symtab_and_line): Remove
3495         function.
3496         (set_default_source_symtab_and_line): New function. Attempts to
3497         determine a source file to list lines from if one is not currently
3498         defined.
3499         (get_current_source_symtab_and_line): Initialize sal.pc and
3500         sal.end fields.
3501         (set_current_source_symtab_and_line): Mark argument as const.
3502         * source.h: Update declarations and comments.
3503         * linespec.c (decode_line_1): Replace call to removed routine above.
3504         * stack.c (print_frame_info_base): Ditto.
3505         * cli/cli-cmds.c (edit_command): Ditto.
3506         (list_command): Ditto.
3507
3508 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3509
3510         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3511         sal.pc and sal.end fields.
3512         (get_current_or_default_source_symtab_and_line): Ditto.
3513         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3514         so we do not cause a new source symtab to be searched for (reverting an
3515         unintentional change from the 2002-09-20 patch).
3516         * scm-lang.c (scm_unpac): Ditto.
3517
3518 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3519
3520         * complaints.c (symfile_explanations): Remove new-line from
3521         ``isolated_message''.
3522         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3523         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3524
3525 2002-09-20  Nick Clifton  <nickc@redhat.com>
3526         
3527         * NEWS: Announce that V850EA ISA is no longer supported.
3528         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3529
3530 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3531
3532         * Makefile.in (c-lang.o): Correct dependencies.
3533         (utils.o): Gather dependencies.
3534         (charset.o): Move.
3535         * c-lang.c: #include "gdb_string.h"
3536
3537 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3538
3539         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3540         * cli/cli-cmds.c (list_command): New function.  Implements the new
3541         cli edit command.
3542         (_init_cli_cmds): Add new command definition.
3543         * gdb.1: Document edit command.
3544         * doc/gdb.texinfo: Document edit command.
3545
3546 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3547
3548         * source.c: Make global variables current_source_symtab and
3549         current_source_line static.
3550         (list_command): Moved to cli/cli-cmds.c.
3551         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3552         (get_first_line_listed): New accessor function.
3553         (get_lines_to_list): New accessor function.
3554         (get_current_source_symtab_and_line): New function. Retrieves the
3555         position in the source code that we consider current.
3556         (get_current_or_default_source_symtab_and_line): New function.
3557         Like the above but attempts to determine a default position if one
3558         is not currently defined.
3559         (set_current_source_symtab_and_line): New function. Sets the source
3560         code position considered current and returns the previously set one.
3561         (clear_current_source_symtab_and_line): Reset stored information about
3562         a current source line.
3563         (_initialize_source): Remove registration for the "list" command and
3564         its alias.
3565         * source.h: Add declarations for the new functions above.
3566         * symtab.h: Remove declarations for the global variables mentioned
3567         above.
3568         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3569         obtain current source line.
3570         * linespec.c (decode_line_1): Ditto.
3571         * macroscope.c (default_macro_scope): Ditto.
3572         * scm-lang.c (scm_unpac): Ditto.
3573         * stack.c (print_frame_info_base): Ditto.
3574         * symfile.c (clear_symtab_users): Ditto.
3575         * symtab.c (decode_line_spec): Ditto.
3576         * cli/cli-cmds.c (list_command): Moved here from source.c.
3577         (ambiguous_line_spec): Moved here from source.c.
3578         (_init_cli_cmds): Add definition for "list" and its alias.
3579         * Makefile.in: Update dependencies.
3580
3581 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3582
3583         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3584         with what gcc thinks is correct.
3585
3586 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3587
3588         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3589         multiple register push instruction.
3590
3591 2002-09-19  Jim Blandy  <jimb@redhat.com>
3592
3593         Add support for distinct host and target character sets.
3594         * charset.c, charset.h: New files.
3595         * c-exp.y: #include "charset.h".
3596         (yylex): Convert character and string literals to the target
3597         character set, before returning them as the semantic value of the
3598         token.
3599         * c-lang.c: #include "charset.h".
3600         (c_emit_char): Use charset-specific methods to recognize
3601         characters with backslash escape forms, to decide which characters
3602         to print literally and which to print using numeric escape
3603         sequences, and to convert target characters to host characters
3604         before printing.
3605         * utils.c: #include "charset.h".
3606         (no_control_char_error): New function.
3607         (parse_escape): Use charset-specific methods to recognize
3608         backslash escapes, parse `control character' notation, and convert
3609         characters from the host character set to the target character set.
3610         * configure.in: Set the default host character set.
3611         Check where to find iconv, and what its argument types might be.
3612         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3613         * Makefile.in (SFILES): List charset.c.
3614         (COMMON_OBS): List charset.o.   
3615         (charset.o): New rule.
3616         (charset_h): New header dependency variable.
3617         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3618         (LIBICONV): New variable, set by configure.
3619         (CLIBS): Include $(LIBICONV) here.
3620         * aclocal.m4, config.in, configure: Regenerated.
3621
3622 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3623
3624         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3625         bison 1.35 warning.
3626
3627 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3628
3629         * gdb_mbuild.sh: New file.
3630
3631 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3632
3633         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3634
3635 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3636
3637         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3638         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3639         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3640         valops.c, value.h: Revert previous change.
3641         
3642 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3643
3644         Preliminary support for Objective-C:
3645         * defs.h (language_objc): New enum value.
3646         (puts_filtered_tabular): Declaration only, exported from utils.c.
3647         (skip_quoted): Delete, declared in completer.h.
3648         * c-exp.y: Include completer.h.
3649         * p-exp.y: Ditto.
3650         * jv-exp.y: Ditto.
3651         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3652         New operator enum values.
3653         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3654         * language.c (binop_result_type): Handle language_objc case.
3655         (integral_type, character_type, string_type, boolean_type,
3656         structured_type, binop_type_check): Ditto.
3657         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3658         (struct objc_specific): Add to general_symbol_info.
3659         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3660         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3661         * parser-defs.h (struct objc_class_str): New struct type.
3662         (start_msglist, end_msglist, add_msglist): Declaration only,
3663         exported from objc-lang.c.
3664         * value.h (value_of_local, value_nsstring, 
3665         call_function_by_hand_expecting_type): Exported from valops.c.
3666         * valops.c (find_function_addr): Export.
3667         (call_function_by_hand_expecting_type): New function.
3668         (value_of_local): New function.
3669         * symfile.c (init_filename_language_table): Add ".m" extension
3670         for Objective-C.
3671         * utils.c (puts_filtered_tabular): New function.
3672         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3673         (set/show demangle): Extend help-string to refer to ObjC.
3674         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3675         * stabsread.c (symbol_reference_defined): Objective-C symbols
3676         may contain colons: make allowances when scanning stabs strings
3677         for colons.
3678         (objc_find_colon): New function.
3679         * printcmd.c (address_info): If language == objc then print
3680         "self" instead of "this".
3681         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3682         OP_NSSTRING, and OP_SELF.
3683         (prefixify_subexp): Ditto.
3684         * source.c (print_source_lines): Mention objc in comment.
3685         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3686         method names.
3687
3688 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3689
3690         * complaints.h: Update copyright.
3691         (struct complaints): Declare.
3692         (struct complaint): Make `message' constant.
3693         (internal_complaint): Declare.
3694         (complaint): Declare.
3695         (complaint_root): Delete declaration.
3696         (symfile_complaints): Delete declaration.
3697         (struct complaints): Add opaque declaration.
3698         (clear_complaints): Add a complaints parameter.
3699         * complaints.c: Update copyright.
3700         (enum complaint_series): Define.
3701         (complaint_root): Delete.
3702         (struct complaints): Define.
3703         (complaint_sentinel, symfile_complaint_book): New variables.
3704         (symfile_explanations, symfile_complaints): New variables.
3705         New variables.
3706         (get_complaints): New function.
3707         (vcomplaint): New function.
3708         (complaint): New function.
3709         (internal_complaint): New function.
3710         (complain): Call vcomplain with symfile_complaint.
3711         (clear_complaints): Rewrite.
3712         (_initialize_complaints): Use add_setshow_command.
3713         * Makefile.in (complaints.o): Update dependencies.
3714         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3715         to call to clear_complaints.
3716         (new_symfile_objfile, reread_symbols): Ditto.
3717         (oldsyms_complaint): Delete.
3718         (empty_symtab_complaint, unknown_option_complaint): Delete.
3719         (free_named_symtabs): Use complaint instead of complain.
3720
3721 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3722
3723         Contributed by Apple Computer, Inc.  Merged with current sources
3724         by Adam Fedor <fedor@doc.com> [cagney].
3725         
3726         * objc-lang.c: First clean-up round: comments, indentation.
3727         * objc-lang.h: Ditto.
3728         * objc-lang.y: Ditto.
3729
3730 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3731
3732         * maint.c (maintenance_internal_error): Print the parameter as the
3733         error message.
3734         (maintenance_internal_warning): New function.
3735         (_initialize_maint_cmds): Add command `maint internal-warning'.
3736
3737         * defs.h (internal_warning, internal_vwarning): Declare.
3738         * utils.c (struct internal_problem): Define.
3739         (internal_vproblem): New function.
3740         (internal_warning): New function.
3741         (internal_vwarning): New function.
3742         (internal_warning_problem, internal_error_problem): New variables.
3743         (internal_verror): Just call internal_vproblem.
3744
3745 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3746
3747         * objc-lang.c: New file, support for Objective-C.
3748         Preliminary check-in, not yet integrated into gdb.
3749         * objc-lang.h: New file.
3750         * objc-exp.y:  New file.
3751
3752 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3753
3754         * infrun.c (signal_stop_update): Convert definition to ISO C.
3755         (signal_print_update): Ditto.
3756         (signal_pass_update): Ditto.
3757         * inflow.c (terminal_save_ours): Ditto.
3758
3759         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3760         comments.
3761         
3762         * config/djgpp/fnchange.lst: Handle name clashes between
3763         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3764         bfd/coff-tic80.c.
3765
3766         * i386-linux-tdep.h: Fix tipo.
3767
3768 2002-09-18  Adam Fedor  <fedor@gnu.org>
3769
3770         * MAINTAINERS: Add myself to the Write After Approval list.
3771
3772 2002-09-18  Jim Blandy  <jimb@redhat.com>
3773
3774         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3775         texthigh and textlow to reader-specific structs caused
3776         objfile_relocate to miss them.  This is fixable, but the work that
3777         the change was supposed to prepare GDB for never got done anyway.
3778
3779 2002-09-18  David Carlton  <carlton@math.stanford.edu>
3780
3781         * MAINTAINERS: Alphabetize Write After Approval list.
3782
3783 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
3784
3785         Fix PR gdb/709
3786         * values.c (value_static_field): Call read_var_value.
3787
3788 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3789
3790         * valops.c (hand_function_call): Align the initial stack pointer
3791         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
3792         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3793         return value.
3794         * mips-tdep.c (mips_frame_align): New function.
3795         (mips_gdbarch_init): Set frame_align.
3796         * gdbarch.sh (FRAME_ALIGN): New method.
3797         * gdbarch.h, gdbarch.c: Re-generate.
3798
3799 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
3800
3801         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3802         registers.
3803
3804 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3805
3806         * NEWS: Mention that MIPS $fp behavior changed.
3807         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3808         reference to FP_REGNUM.
3809         (mipsnbsd_cannot_store_register): Ditto.
3810         * mips-linux-nat.c: Update copyright.
3811         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3812         (mips_linux_cannot_store_register): Ditto.
3813         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
3814         * config/mips/tm-mips.h: Update copyright.
3815         (FP_REGNUM): Delete macro.
3816         (MIPS_REGISTER_NAMES): Replace "fp" with "".
3817         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3818         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3819         (mips_r3041_reg_names, mips_r3051_reg_names)
3820         (mips_r3081_reg_names): Replace "fp" with "".
3821         Fix PR gdb/480.
3822
3823 2002-09-17  Theodore A. Roth  <troth@verinet.com>
3824
3825         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
3826         generic_read_register_dummy() (PR gdb/703).
3827         (avr_push_return_address): #if 0 out unused vars.
3828         (avr_gdbarch_init): Enable use of avr_push_return_address().
3829
3830 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3831
3832         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3833         RTE will take care of it.
3834
3835 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3836
3837         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3838         invalid, return SP_REGNUM.
3839
3840 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3841
3842         * mips-tdep.c (mips_pop_frame): Read saved values of floating
3843         point registers without sign extension.
3844
3845 2002-09-17  Andrew Cagney  <cagney@redhat.com>
3846
3847         * blockframe.c (deprecated_read_register_dummy): Rename
3848         generic_read_register_dummy.
3849         * frame.c (frame_unwind_signed_register): New function.
3850         (frame_unwind_unsigned_register): New function.
3851         * frame.h (frame_unwind_signed_register): Declare.
3852         (frame_unwind_unsigned_register): Declare.
3853         (deprecated_read_register_dummy): Rename
3854         generic_read_register_dummy.
3855
3856         * h8300-tdep.c (h8300_frame_chain): Update.
3857         (h8300_frame_saved_pc): Update.
3858         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3859         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3860         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3861         (s390_frame_chain): Update.
3862         * v850-tdep.c (v850_find_callers_reg): Update.
3863         (v850_frame_saved_pc): Update.
3864         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3865         (m32r_find_callers_reg): Update.
3866         (m32r_frame_saved_pc): Update.
3867         * sh-tdep.c (sh_find_callers_reg): Update.
3868         (sh64_get_saved_pr): Update.
3869         (sh_init_extra_frame_info): Update.
3870         (sh_init_extra_frame_info): Update.
3871         (sh64_init_extra_frame_info): Update.
3872         (sh64_init_extra_frame_info): Update.
3873         * mcore-tdep.c (mcore_find_callers_reg): Update.
3874         (mcore_frame_saved_pc): Update.
3875         (mcore_init_extra_frame_info): Update.
3876         * i386-tdep.c (i386_frame_saved_pc): Update.
3877         * ia64-tdep.c (ia64_frame_saved_pc): Update.
3878         (ia64_init_extra_frame_info): Update.
3879         (ia64_init_extra_frame_info): Update.
3880         * d10v-tdep.c (d10v_frame_saved_pc): Update.
3881         * cris-tdep.c (cris_init_extra_frame_info): Update.
3882         * avr-tdep.c (avr_frame_chain): Update.
3883         (avr_init_extra_frame_info): Update.
3884         (avr_frame_saved_pc): Update.
3885         * arm-tdep.c (arm_find_callers_reg): Update.
3886         (arm_init_extra_frame_info): Update.
3887         (arm_frame_saved_pc): Update.
3888
3889 2002-09-17  Tom Tromey  <tromey@redhat.com>
3890
3891         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3892         is "'".
3893
3894 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
3895
3896         * MAINTAINERS: Remove "non multi-arched" text from h8300.
3897         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3898         NEXT_PROLOGUE_INSN.
3899         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3900         NEXT_PROLOGUE_INSN.
3901
3902 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
3903
3904         * osfsolib.c: Remove file, replaced by solib-osf.c.
3905         * Makefile.in: Remove compilation rules for osfsolib.c.
3906
3907 2002-09-16  David Carlton  <carlton@math.stanford.edu>
3908
3909         * cp-valprint.c (cp_print_class_method): Correct args to
3910         check_stub_method_group.
3911
3912 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
3913
3914         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
3915         `set architecture'.  Unify naming convention of functions.
3916         (h8300_skip_prologue): Improve prologue analysis.
3917         (h8300_push_arguments): Rewritten to more closely match GCC's
3918         bizarre argument-passing behavior, along with the comment describing
3919         said behavior.
3920         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3921         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
3922         sim, remote-e7000.c, remote-hms.c and remote.c
3923
3924 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
3925
3926         * i386-tdep.c (gdb_print_insn_i386): Removed.
3927         (i386_print_insn): New function.
3928         (i386_gdbarch_init): Set print_insn to i386_print_insns.
3929         (_initialize_i386_tdep): Don't initialize tm_print_insn and
3930         tm_print_insn_info.
3931
3932 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
3933
3934         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3935         zero.
3936
3937 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
3938
3939         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3940         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
3941         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3942
3943 2002-09-13  Christopher Faylor  <cgf@redhat.com>
3944
3945         * win32-nat.c (child_create_inferior): Honor 'tty' command.
3946
3947 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
3948
3949         * gdbtypes.c (check_stub_method): Make static.
3950         (check_stub_method_group): New function.
3951         * gdbtypes.h: Update prototypes.
3952         * cp-support.c: New file.
3953         * cp-support.h: New file.
3954
3955         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3956         (update_method_name_from_physname): New function.
3957         (read_member_functions): Correct method names for operators
3958         and v3 constructors/destructors.  Separate v2 constructors and
3959         destructors.
3960         * Makefile.in (stabsread.o): Update dependencies.
3961         (SFILES): Add cp-support.c.
3962         (COMMON_OBS): Add cp-support.o.
3963         (cp_support_h, cp-support.o): Add.
3964
3965         * cp-valprint.c (cp_print_class_method): Call
3966         check_stub_method_group instead of check_stub_method.  Remove
3967         extraneous QUITs.
3968         * p-valprint.c (pascal_object_print_class_method): Likewise.
3969         * valops.c (search_struct_method): Likewise.
3970         (find_method_list, value_struct_elt_for_reference): Likewise.
3971
3972 2002-09-13  Andrew Cagney  <cagney@redhat.com>
3973
3974         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3975         * gdbarch.h, gdbarch.c: Regenerate.
3976
3977 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
3978
3979         * frame.c (find_saved_register): Delete function.
3980         * frame.h (find_saved_register): Delete declaration.
3981         Fix PR gdb/631.
3982
3983 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
3984
3985         * mips-tdep.c (read_next_frame_reg): Re-hack using
3986         frame_register_unwind.
3987
3988 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
3989
3990         * mips-tdep.c (mips_get_saved_register): Re-hack using
3991         frame_register_unwind.
3992
3993 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
3994
3995         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3996         vector. Will be useful for Interix.  
3997         * gdbarch.h, gdbarch.c: Regenerate.
3998
3999         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4000         name of the malloc function by NAME_OF_MALLOC.
4001
4002 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4003
4004         * value.h (find_function_in_inferior): Add const keyword to
4005         one of the parameters. Allows us to invoke this function with
4006         a const char *.
4007         * valops.c (find_function_in_inferior): Likewise.
4008
4009 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4010
4011         * exec.c (xfer_memory): Fix compilation warning with old versions
4012         of GCC.
4013         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4014
4015 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4016
4017         * symtab.h: Run through gdb_indent.h.
4018         Add 2002 to Copyright year list.
4019
4020 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4021
4022         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4023         mach constants.
4024         * MAINTAINERS: Add myself to write after approval list.
4025
4026 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4027
4028         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4029
4030 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4031
4032         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4033         Interix.
4034
4035 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4036
4037         * procfs.c (do_detach): Clear current signal, not just fault.
4038         Corrects problem with breakpoint trap signal leaking to detached
4039         process on Tru64.
4040
4041 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4042
4043         * buildsym.c (finish_block): Protect against null pointer.
4044
4045 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4046
4047         * infcmd.c (default_print_registers_info): Send all output to
4048         ``file'' instead of ``gdb_stdout''.
4049
4050 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4051
4052         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4053         LONGEST, and use signed register read (addresses are sign-
4054         extended for mips).
4055
4056 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4057
4058         * event-loop.c (gdb_do_one_event): Make public.
4059         * event-loop.h (gdb_do_one_event): Declare.
4060
4061 2002-09-10  Jeff Law  <law@redhat.com>
4062
4063         * infttrace.c (child_resume): Simplify and rework to avoid
4064         TT_PROC_CONTINUE.
4065
4066 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4067
4068         * printcmd.c (print_scalar_formatted): "len" is the number of
4069         target bytes, NOT the number of target bits.
4070
4071 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4072
4073         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4074         * top.c (init_main): Set rl_terminal_name.
4075
4076 2002-09-08  Aidan Skinner <aidan@velvet.net>
4077
4078         * ada-lang.c (ada_array_bound, ada_type_match,
4079         _initialize_ada_language): Fix K&R definitions.
4080         * ada-tasks.c (get_current_task): Fix K&R definitions.
4081         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4082                         
4083 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4084
4085         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4086         Add XP.
4087
4088 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4089
4090         * i386-tdep.c (i386_register_virtual_type,
4091         i386_register_convertible, i386_register_convert_to_virtual,
4092         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4093         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4094         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4095         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4096         Don't set push_arguments twice.
4097
4098         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4099         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4100         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4101         sigtramp_end to NULL.
4102         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4103         defines.
4104         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4105
4106         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4107         whitespace.
4108
4109         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4110         * gdbarch.h, gdbarch.c: Re-generate.
4111         * blockframe.c (find_pc_sect_partial_function): Convert to use
4112         SIGTRAMP_START_P predicate.
4113
4114 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4115
4116         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4117         generic_dummy_frame method and old method.  Also distinguish
4118         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4119         (arm_extract_return_value): Use new regcache method.
4120
4121         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4122         adjustment that doesn't conform to the ABI.
4123         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4124         saved regcache, not from current regcache.
4125
4126 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4127
4128         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4129         * README: Update.
4130
4131 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4132
4133         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4134         if arm_apcs_32 is false.
4135
4136 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4137
4138         GDB 5.3 branch created.
4139
4140 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4141
4142         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4143         generic_unwind_get_saved_register.
4144
4145 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4146
4147         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4148         argument (PR gdb/653).  Update call to smash_to_method_type.
4149         (read_structure_scope): Update call to dwarf2_add_member_fn.
4150
4151 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4152
4153         * x86-64-linux-tdep.c: Include gdb_string.h
4154         * x86-64-linux-nat.c: Ditto.
4155
4156 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4157
4158         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4159         when YYDEBUG is set to 1.  
4160         * c-exp.y: Likewise.
4161         * f-exp.y: Likewise.
4162         * jv-exp.y: Likewise.
4163         * m2-exp.y: Likewise.
4164         * p-exp.y: Likewise.
4165
4166 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4167
4168         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4169         dependency list.
4170         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4171         solib_svr4_fetch_link_map_offsets to
4172         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4173         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4174         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4175         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4176         solib-svr4.o, and solib-legacy.o.
4177         * config/i386/tm-nbsd.h: Include solib.h.
4178
4179 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4180
4181         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4182         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4183         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4184         comment noting that this needs its own target configuration.
4185         * config/i386/nbsd.mt: New file.
4186         * config/i386/nbsdaout.mt: Remove.
4187         * config/i386/nbsdelf.mt: Ditto.
4188         * config/i386/tm-nbsdaout.h: Ditto. 
4189
4190 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4191
4192         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4193         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4194         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4195         tdep->sigtramp_end.
4196         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4197         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4198         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4199
4200 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4201
4202         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4203         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4204         * i386-tdep.h (i386bsd_init_abi): New prototype.
4205         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4206         function declaration.
4207         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4208         for NetBSD-a.out or NetBSD-ELF.
4209         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4210         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4211         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4212         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4213         and nbsd-tdep.h.
4214         (i386nbsd_pc_in_sigtramp): New function.
4215         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4216         i386nbsd_pc_in_sigtramp.
4217         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4218         and i386nbsdelf_init_abi OS ABI handlers.
4219         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4220         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4221
4222 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4223
4224         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4225         registers if the target really has them.
4226
4227 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4228
4229         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4230         than nbsd-tdep.h.
4231
4232 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4233
4234         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4235         list.
4236         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4237         (alphanbsd_skip_sigtramp_frame): New functions. 
4238         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4239         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4240         to alphanbsd_sigcontext_addr. 
4241
4242 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4243
4244         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4245         list.
4246         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4247         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4248         nbsd_pc_in_sigtramp. 
4249         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4250         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4251         * nbsd-tdep.c: Include gdb_string.h.
4252         (nbsd_pc_in_sigtramp): New function. 
4253         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4254         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4255         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4256         ppcnbsd_pc_in_sigtramp. 
4257         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4258         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4259         shnbsd_pc_in_sigtramp. 
4260         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4261         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4262         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4263
4264 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4265
4266         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4267         watchpoints to NULL.
4268         (insert_breakpoints): set val field of watchpoints if NULL.
4269
4270
4271 2002-08-29  Jim Blandy  <jimb@redhat.com>
4272
4273         * symtab.c (lookup_symbol_aux): In the cases where we find a
4274         minimal symbol of an appropriate name and use its address to
4275         select a symtab to read and search, use `name' (as passed to us)
4276         as the demangled name when searching the symtab's global and
4277         static blocks, not the minsym's name.
4278
4279 2002-08-29  Keith Seitz  <keiths@redhat.com>
4280
4281         * stack.c (print_frame_info_base): Always set current_source_symtab
4282         and current_source_line.
4283
4284 2002-08-29  Donn Terry  <donnte@microsoft.com>
4285
4286         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4287
4288 2002-08-28  Keith Seitz  <keiths@redhat.com>
4289
4290         * stack.c (select_frame): Add FIXME concerning selected-frame
4291         events.
4292         (select_frame_command): Send selected-frame-level-changed
4293         event notification, but only if the level actually changed.
4294         (up_silently_base): Add selected-frame-level-changed event
4295         notification.
4296         (down_silently_base): Likewise.
4297
4298 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4299
4300         * Makefile.in: Update dependencies for all gdb/*.c files.
4301
4302 2002-08-27  Tom Tromey  <tromey@redhat.com>
4303
4304         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4305         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4306         Update dependencies.
4307         * i387-tdep.c: Include gdb_string.h.
4308         * osabi.c: Likewise.
4309         * i386-linux-nat.c: Likewise.
4310         * lin-lwp.c: Likewise.
4311         * ax-gdb.c: Likewise.
4312         * signals/signals.c: Likewise.
4313         * jv-valprint.c: Likewise.
4314         * p-lang.c: Likewise.
4315         * c-valprint.c: Likewise.
4316         * cp-abi.c: Likewise.
4317
4318 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4319
4320         * cli/cli-script.h (copy_command_lines): Export.
4321         * breakpoint.c: Include cli/cli-script.h.
4322         * Makefile.in (breakpoint.o): Update dependencies.
4323
4324 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4325
4326         * breakpoint.c (insert_breakpoints): Protect all references
4327         to 'process_warning'.  Shorten long lines.
4328
4329 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4330
4331         * cli/cli-script.c (copy_command_lines): New function.
4332         * defs.h (copy_command_lines): Export.
4333         * testsuite/gdb.base/commands.exp: New tests for commands
4334         attached to a temporary breakpoint, and for commands that
4335         delete the breakpoint they are attached to.
4336         
4337 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4338
4339         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4340         pointer to the breakpoint commands struct, make a new copy
4341         of the struct and point to that.
4342         (bpstat_clear): Free the commands struct.
4343         (bpstat_clear_actions): Free the commands struct.
4344         (bpstat_do_actions): Free the command actions.  Also execute
4345         the local cleanups, instead of deleting them.
4346         (delete_breakpoint): Leave the commands field of the bpstat
4347         chain alone -- it will be freed later.
4348
4349 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4350
4351         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4352         deleted in 2002-08-20 commit.  This function is still used by
4353         ppc-linux-nat.c.
4354
4355 2002-08-26  Keith Seitz  <keiths@redhat.com>
4356
4357         * gdb-events.sh: Add selected-frame-level-changed event.
4358         * gdb-events.c: Regenerated.
4359         * gdb-events.h: Regenerated.
4360         
4361 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4362
4363         Fix PR gdb/393:
4364         * inflow.c (terminal_save_ours): New function to save terminal
4365         settings.
4366         * inferior.h (terminal_save_ours): Declare.
4367         * target.c (debug_to_terminal_save_ours): New function.
4368         (cleanup_target): Defaults to_terminal_save_ours.
4369         (update_current_target): Inherit to_terminal_save_ours.
4370         (setup_target_debug): Set to_terminal_save_ours.
4371         * target.h (target_terminal_save_ours): New to save terminal settings.
4372         (target_ops): New member to_terminal_save_ours.
4373         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4374         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4375         * inftarg.c (init_child_ops): Likewise.
4376         * m3-nat.c (init_m3_ops): Likewise.
4377         * procfs.c (init_procfs_ops): Likewise.
4378         * wince.c (init_child_ops): Likewise.
4379         * win32-nat.c (init_child_ops): Likewise.
4380         * sol-thread.c (init_sol_thread_ops): Likewise.
4381
4382 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4383
4384         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4385         use regcache_* functions.
4386         (i386_gdbarch_init): Set store_return_value instead of
4387         deprecated_store_return_value.
4388
4389         * regcache.c (regcache_raw_write_signed,
4390         regcache_raw_write_unsigned): New functions.
4391         * regcache.h (regcache_raw_write_signed,
4392         regcache_raw_write_unsigned): New prototypes.
4393
4394 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4395
4396         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4397         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4398         source file dependencies.  Cleanup corresponding generator rules.
4399
4400 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4401
4402         * regcache.h (register_offset_hack): Declare.
4403         (regcache_cooked_read_using_offset_hack): Declare.
4404         (regcache_cooked_write_using_offset_hack): Declare.
4405
4406         * regcache.c (register_offset_hack): New function.
4407         (regcache_cooked_read_using_offset_hack): New function.
4408         (regcache_cooked_write_using_offset_hack): New function.
4409         (regcache_dump): Check that the registers, according to their
4410         offset, are packed hard against each other.
4411         (cooked_xfer_using_offset_hack): New function.
4412
4413 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4414
4415         * regcache.c (struct regcache_descr): Add field register_type.
4416         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4417         in as a parameter
4418         (init_regcache_descr): Initialize register_type.  Pass the descr
4419         to init_legacy_regcache_descr.  Use register_type instead of
4420         REGISTER_VIRTUAL_TYPE.
4421         (register_type): New function.
4422         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4423         * regcache.h (register_type): Declare.
4424
4425 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4426
4427         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4428         instead of deprecated_store_return_value.  Fix fallout from
4429         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4430
4431 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4432
4433         * regcache.c (max_register_size): New function.
4434         (init_legacy_regcache_descr): Ensure that max_register_size is
4435         large enough for REGISTER_VIRTUAL_SIZE.
4436         * regcache.h (max_register_size): Declare.
4437
4438 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4439
4440         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4441         store_return_value.
4442         (e500_extract_return_value): Change type of valbuf pointer to
4443         void.
4444
4445 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4446
4447         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4448         workaround.
4449
4450         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4451         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4452         long long) to prevent compiler warning on 64-bit systems.
4453
4454 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4455
4456         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4457         (DEPRECATED_STORE_RETURN_VALUE): New method.
4458         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4459         * gdbarch.h, gdbarch.c: Re-generate.
4460
4461         * values.c (set_return_value): Pass current_regcache to
4462         STORE_RETURN_VALUE.
4463         * arch-utils.h (legacy_store_return_value): Declare.
4464         * arch-utils.c (legacy_store_return_value): New function.
4465         (legacy_extract_return_value): Update parameters.
4466
4467         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4468         STORE_RETURN_VALUE.
4469         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4470         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4471         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4472         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4473         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4474         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4475         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4476         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4477         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4478         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4479
4480         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4481         * i386-tdep.c (i386_extract_return_value): Update.
4482         * arch-utils.c (legacy_extract_return_value): Update.
4483         * frv-tdep.c (frv_gdbarch_init): Update.
4484         * cris-tdep.c (cris_gdbarch_init): Update.
4485         * d10v-tdep.c (d10v_gdbarch_init): Update.
4486         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4487         * m68k-tdep.c (m68k_gdbarch_init): Update.
4488         * mcore-tdep.c (mcore_gdbarch_init): Update.
4489         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4490         * s390-tdep.c (s390_gdbarch_init): Update.
4491         * sparc-tdep.c (sparc_gdbarch_init): Update.
4492         * sh-tdep.c (sh_gdbarch_init): Update.
4493         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4494         * v850-tdep.c (v850_gdbarch_init): Update.
4495         * avr-tdep.c (avr_gdbarch_init): Update.
4496         * ia64-tdep.c (ia64_gdbarch_init): Update.
4497         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4498         * vax-tdep.c (vax_gdbarch_init): Update.
4499         * alpha-tdep.c (alpha_gdbarch_init): Update.
4500         * arm-tdep.c (arm_gdbarch_init): Update.
4501         * mips-tdep.c (mips_gdbarch_init): Update.
4502         * i386-tdep.c (i386_gdbarch_init): Update.
4503
4504 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4505
4506         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4507         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4508
4509 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4510
4511         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4512         problems.
4513
4514 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4515
4516         * infrun.c (handle_inferior_event): Move a comment outside of a
4517         function call, in order to avoid indent reformatting this part
4518         of the code in an unreadable way.
4519
4520 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4521
4522         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4523         when breakpoints fail. Move general breakpoint error messages to
4524         insert_breakpoints.  
4525         * breakpoint.c (insert_breakpoints): Change warnings when
4526         breakpoints are nto inserted to specify the type. Remove call to
4527         memory_error when hardware breakpoints can't be inserted. Remove
4528         multiple calls to warning so all messages are sent to the user at
4529         once.
4530         (delete_breakpoints): Make insert error messsages more explicit.
4531
4532 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4533
4534         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4535         gdbserver/ChangeLog.
4536
4537 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4538
4539         * i386-tdep.c: Include "objfiles.h".
4540         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4541         skip_trampoline_code.
4542         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4543         (CPLUS_MARKER): Define to '.'.
4544
4545         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4546         member.
4547         (linux_corefile_thread_callback): Increase args->num_notes.
4548         (linux_make_note_section): Initialize thread_args.num_notes, and
4549         use it to determine whether notes for any threads were created.
4550
4551 2002-08-23  Donn Terry  <donnte@microsoft.com>
4552
4553         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4554         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4555         and PCUNKILL.
4556         (write_with_trace): Conditionalize out the switch branch handling
4557         PCSHOLD if the corresponding macro is not defined. Likewise for
4558         PRSABORT and PRSTOP.
4559         This change will be needed by the Interix port.
4560
4561 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4562
4563         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4564         write_register wherever possible instead of manipulating the
4565         register bytes directly.
4566         Assign VALUE_CONTENTS to a variable and use that.
4567         The GPR numbers are now dependent on the architecture.
4568         
4569 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4570
4571         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4572         ev_offset fields.
4573         (skip_prologue): Add support for BookE/e500 instructions.
4574         (e500_extract_return_value): New function.
4575         (frame_get_saved_regs): Add support for saving ev registers and
4576         pseudo gpr's.
4577         (e500_store_return_value): New function.
4578         (rs6000_gdbarch_init): Move up default intializations of
4579         deprecated_extract_return_value and store_return_value.  Overwrite
4580         init of store_return_value with e500 specific version.
4581         Set extract_return_value for e500.
4582         
4583 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4584
4585         * blockframe.c (generic_call_dummy_register_unwind): Use
4586         regcache_cooked_read to catch cases in which the variable is
4587         stored in a pseudo register.
4588
4589 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4590
4591         * NEWS: Mention that the i960 has been made obsolete.
4592         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4593         i960-tdep.c
4594         (remote-nrom.o): Obsolete target.
4595         (remote-nindy.o, i960-tdep.o): Ditto.
4596         * remote-nrom.c: Make file obsolete.
4597         * remote-nindy.c, remote-vx960.c: Ditto.
4598         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4599         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4600         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4601         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4602         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4603         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4604         i960-*-vxworks* obsolete.
4605         * MAINTAINERS: Note that the i960 is obsolete.
4606
4607 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4608
4609         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4610         detach to allow reinitialization.
4611
4612 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4613
4614         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4615         attempt).
4616
4617 2002-08-22  Jim Blandy  <jimb@redhat.com>
4618
4619         * coffread.c (coff_symfile_read): Don't try to read the line
4620         number table from disk if the image file doesn't have a symbol
4621         table; we'll never actually look at the info anyway, and Windows
4622         ships DLL's with bogus file offsets for the line number data.
4623
4624 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4625
4626         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4627         an e500 executable.
4628
4629 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4630
4631         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4632         (MSYMBOL_SIZE): Replace macro with function.
4633         (DEFAULT_MIPS_TYPE): Delete unused macro.
4634         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4635         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4636
4637 2002-08-21  Jim Blandy  <jimb@redhat.com>
4638
4639         * valops.c (value_cast): Simplify and correct logic for doing a
4640         static cast from a pointer to a base class to a pointer to a
4641         derived class.
4642
4643 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4644
4645         * infcmd.c (default_print_registers_info): Replace
4646         do_registers_info.
4647         (registers_info): Use gdbarch_print_registers_info instead of
4648         DO_REGISTERS_INFO.
4649         * inferior.h (default_print_registers_info): Replace
4650         do_registers_info.
4651         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4652         (DO_REGISTERS_INFO): Change to a predicate function.
4653         * gdbarch.h, gdbarch.c: Regenerate.
4654         
4655 2002-08-21  Keith Seitz  <keiths@redhat.com>
4656
4657         * gdb-events.sh: Add target-changed event.
4658         * gdb-events.c: Regenerated.
4659         * gdb-events.c: Regenerated.
4660         * valops.c (value_assign): Add target-changed event notification
4661         to inlval_register, lval_memory, and lval_reg_frame_relative.
4662
4663 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4664
4665         * NEWS: Add an entry regarding the improvement of the next/step
4666         operation on Alpha Tru64 multi-processor machines.
4667
4668 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4669
4670         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4671         directores.
4672         * Makefile.in: Update all _h macro definitions.
4673         * Makefile.in (install-gdbtk): Move to install section.
4674         (rdi-share/libangsd.a): Move to end of file.
4675
4676 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4677
4678         * frame.c (frame_register_unwind): When a register, set addrp to
4679         the register's byte.
4680
4681 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4682
4683         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4684         used locally, so move them from the target machine header to here.
4685         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4686         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4687         Make static.
4688         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4689
4690 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4691
4692         * NEWS: Mention that the Apollo line was made obsolete.
4693         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4694         m68*-hp-hpux* obsolete.
4695         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4696         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4697         * buildsym.c (make_blockvector): Make static.
4698         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4699         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4700         (ALLDEPFILES): Remove dstread.c.
4701         (dstread.o): Obsolete make rule.
4702         * dstread.c: Makefile obsolete.
4703         * dst.h: Ditto.
4704         * config/m68k/hp300hpux.mt: Ditto.
4705         * config/m68k/hp300hpux.mh: Ditto.
4706         * config/m68k/hp300bsd.mt: Ditto.
4707         * config/m68k/hp300bsd.mh: Ditto.
4708         * config/m68k/apollo68b.mt: Ditto.
4709         * config/m68k/apollo68v.mh: Ditto.
4710         * config/m68k/apollo68b.mh: Ditto.
4711
4712 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4713
4714         * mips-tdep.c (mips_in_return_stub): Make static.
4715         (mips_gdbarch_init): Set in_solib_return_trampoline.
4716         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4717
4718 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4719
4720         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4721         * gdbarch.c, gdbarch.h: Regenerate.
4722         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4723         Add.
4724         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4725
4726 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4727
4728         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4729         (mips_gdbarch_init): Set skip_trampoline_code, 
4730         in_solib_call_trampoline.
4731         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4732         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4733
4734 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4735
4736         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4737
4738         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4739         vector type for ev registers.
4740         (e500_pseudo_register_read): New function.
4741         (e500_pseudo_register_write): New function.
4742         (e500_dwarf2_reg_to_regnum): New function.
4743         (PPC_UISA_NOFP_SPRS): New macro.
4744         (PPC_EV_REGS): New macro.
4745         (PPC_GPRS_PSEUDO_REGS): New macro.
4746         (registers_e500): New register set for e500.
4747         (variants): Add e500 variant.
4748         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4749         before setting architectural dependent variations.  Initialize ev
4750         registers numbers.  Add case for e500 architecture.  Set the
4751         number of pseudo registers.
4752
4753 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4754
4755         * rs6000-tdep.c: Clean up comments.
4756
4757 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4758
4759         * h8300-tdep.c: Re-indent file.
4760
4761 2002-08-20  Jim Blandy  <jimb@redhat.com>
4762
4763         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4764         default for this.
4765
4766 2002-08-20  Keith Seitz  <keiths@redhat.com>
4767
4768         * breakpoints.c (watch_command_1): Use internal breakpoint
4769         when setting a watchpoint_scope breakpoint.
4770
4771 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4772
4773         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4774         (build_builtin_type_vec64i): Ditto.
4775         (build_builtin_type_vec128): Ditto.
4776         (build_builtin_type_vec128i): Ditto.
4777
4778 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4779
4780         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4781         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4782         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4783         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4784         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4785         CALL_DUMMY_ADDRESS): Delete.
4786         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4787         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4788         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
4789         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
4790         push_return_address.
4791         (mips_register_raw_size, mips_eabi_use_struct_convention, 
4792         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4793         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4794         mips_init_extra_frame_info, mips_eabi_push_arguments, 
4795         mips_n32n64_push_arguments, mips_push_return_address,
4796         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4797         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4798
4799 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4800
4801         * mips-tdep.c (mips_frame_num_args): New function.
4802         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4803         frame_saved_pc, frame_args_address, frame_locals_address, 
4804         frame_num_args, and frame_args_skip.
4805         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4806         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
4807         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4808         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4809
4810 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4811
4812         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4813         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4814         * mips-tdep.c (mips_store_struct_return): New function.
4815         (mips_extract_struct_value_address): New function.
4816         (mips_gdbarch_init): Set store_struct_return and
4817         extract_struct_value_address.
4818
4819 2002-08-20  David Carlton  <carlton@math.stanford.edu>
4820
4821         * dwarf2read.c (dwarf2_build_psymtabs): Check that
4822         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4823         (read_file_scope): Check that line_header is nonzero before
4824         decoding macro information.
4825
4826 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
4827
4828         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4829         flag the general-purpose registers as floating-point on targets
4830         that don't support the floating-point registers.
4831
4832 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4833
4834         * rs6000-tdep.c (altivec_register_p): Delete.
4835         (rs6000_do_altivec_registers): Delete.
4836         (rs6000_altivec_registers_info): Delete.
4837         (rs6000_do_registers_info): Delete.
4838         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4839         (rs6000_gdbarch_init): Remove setting of do_registers_info.
4840
4841 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4842
4843         * infcmd.c (do_registers_info): Print vector registers in hex
4844         format only.
4845         (print_vector_info): Check that printing registers
4846         makes sense.
4847         (print_float_info): Ditto.
4848
4849 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4850
4851         * mips-tdep.c (mips_gdbarch_init): Update.
4852         (mips_o32_extract_return_value): Rewrite.
4853         (mips_o32_store_return_value): Rewrite.
4854         (mips_o32_xfer_return_value): New function.
4855         (mips_xfer_register): Tweak debug print message.  Allow for
4856         buf_offset when dumping the value transfered.
4857
4858 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4859
4860         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4861         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4862         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4863         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4864         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4865
4866 2002-08-14  Michael Snyder  <msnyder@redhat.com>
4867
4868         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4869
4870 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4871
4872         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4873         register.
4874         (P): New macro to define a register as a pseudo register.
4875         (R, R4, R8, R16, FR32, R64, R0): Updated.
4876         (struct variant): Add new fields for number of pseudo registers
4877         and number of total registers.
4878         (tot_num_registers): New macro replacing....
4879         (num_registers): ...deleted macro.
4880         (num_registers): New function.
4881         (num_pseudo_registers): New function.
4882         (variants): Update all variants to intialize new fields correctly.
4883         Postpone initialization of number of pseudo regs and real regs.
4884         (init_variants): New function.
4885         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
4886         registers offsets.
4887
4888 2002-08-19  David Carlton  <carlton@math.stanford.edu>
4889
4890         * valops.c (search_struct_field): Change error message to treat
4891         return value of 0 from value_static_field as meaning that field is
4892         optimized out.
4893         (value_struct_elt_for_reference): Ditto.
4894         * values.c (value_static_field): Treat an unresolved location the
4895         same as a nonexistent symbol.  Fix PR gdb/635.
4896         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4897         enclosed.  Fix PR gdb/574.
4898         * MAINTAINERS: Add self to Write After Approval list.
4899
4900 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4901
4902         * mips-tdep.c (mips_xfer_register): New function.
4903         (mips_n32n64_extract_return_value): Rewrite.
4904         (mips_gdbarch_init): For N32 and N64, set extract_return_value
4905         instead of deprecated_extract_return_value.
4906
4907 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4908
4909         * rs6000-tdep.c (TDEP): Delete macro.
4910         (branch_dest): Replace use of TDEP macro with its body.
4911         (rs6000_pop_frame): Ditto.
4912         (rs6000_push_arguments): Ditto.
4913         (rs6000_skip_trampoline_code): Ditto.
4914         (rs6000_frame_saved_pc): Ditto.
4915         (rs6000_frame_chain): Ditto.
4916         (rs6000_register_name): Ditto.
4917         (rs6000_register_byte): Ditto.
4918         (rs6000_register_raw_size): Ditto.
4919         (rs6000_register_virtual_type): Ditto.
4920         (rs6000_register_convertible): Ditto.
4921         (rs6000_convert_from_func_ptr_addr): Ditto.
4922
4923 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
4924
4925         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4926         conditionally.
4927         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4928         MIPS_LINUX_JB_ELEMENT_SIZE.
4929         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4930         for MAX_REGISTER_RAW_SIZE arrays.
4931         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4932         MIPS_LINUX_JB_ELEMENT_SIZE.
4933
4934 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4935
4936         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4937
4938 2002-08-19  Aidan Skinner <aidan@velvet.net>
4939
4940         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4941         ada-valprint.c ada-tasks.c.
4942         (YYFILES): Add ada-exp.y.
4943         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4944         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4945         (ada-exp.tab.o): New target.
4946                 
4947 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
4948
4949         * regcache.c (regcache_xfer_part): New function.
4950         (regcache_raw_read_part): New function.
4951         (regcache_raw_write_part): New function.
4952         (regcache_cooked_read_part): New function.
4953         (regcache_cooked_write_part): New function.
4954         * regcache.h (regcache_raw_read_part): Declare.
4955         (regcache_raw_write_part): Declare.
4956         (regcache_cooked_read_part): Declare.
4957         (regcache_cooked_write_part): Declare.
4958
4959 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
4960
4961         * remote.c (remote_open_1): Add async_p.
4962         (remote_async_open_1): Delete.
4963         (open_remote_target): Delete.
4964         (remote_open, extended_remote_open): Update calls to remote_open_1.
4965         (remote_async_open, extended_remote_async_open): Call
4966         remote_open_1 instead of remote_async_open_1.
4967
4968 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
4969
4970         * blockframe.c: Fix a few coding standard violations.
4971
4972 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
4973
4974         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4975         here from ...
4976         * config/i386/tm-i386sco5.h: ... here.  File removed.
4977         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4978
4979         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4980         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4981         (TM_FILE): Set to tm-i386.h.
4982         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4983         * config/i386/tm-i386v.h: Remove file.
4984         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4985         instead of "i386/tm-i386v.h".
4986         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4987         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4988         "i386/tm-i386v.h".
4989         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4990         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4991         "i386/tm-i386.h".
4992
4993 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
4994
4995         * config/i386/nm-i386v.h: Add protection against
4996         multiple-inclusion.
4997         (i386_register_u_addr): Remove prototype.
4998         (register_u_addr): New prototype.
4999         (REGISTER_U_ADDR): Redefine accordingly.
5000         * i386v-nat.c: Improve several comments.
5001         (i386_register_u_addr): Change signature and rename to
5002         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5003         ubase variable.
5004
5005 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5006
5007         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5008         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5009         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5010         deprecated_extract_return_value.
5011         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5012         rename mips_o32o64_push_arguments.
5013         (mips_gdbarch_init): Update.
5014         (mips_extract_return_value): Delete.
5015         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5016         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5017         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5018         (mips_n32n64_extract_return_value): Clone
5019         mips_extract_return_value.
5020         (mips_store_return_value): Delete.
5021         (mips_o32_store_return_value): Clone mips_store_return_value.
5022         (mips_o64_store_return_value): Clone mips_store_return_value.
5023         (mips_eabi_store_return_value): Clone mips_store_return_value.
5024         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5025
5026 2002-08-18  Aidan Skinner <aidan@velvet.net>
5027
5028         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5029         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5030                 
5031 2002-08-18  Aidan Skinner <aidan@velvet.net>
5032
5033         * ada-lang.c: Run through gdb_indent.sh.
5034         * ada-lang.h: Run through gdb_indent.sh.
5035         * ada-tasks.c: Run through gdb_indent.sh.
5036         * ada-typeprint.c: Run through gdb_indent.sh.
5037         * ada-valprint.c: Run through gdb_indent.sh.
5038
5039 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5040
5041         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5042         ABI.
5043
5044 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5045
5046         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5047
5048         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5049         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5050
5051         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5052         write_register_gen instead of write_register_bytes.
5053
5054         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5055         i[3456]-*-osf1mk* configurations have been made obsolete.
5056         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5057         i[3456]86-*-osf1mk* hosts obsolete.
5058         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5059         targets obsolete.
5060         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5061         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5062         config/i386/i386m3.mt, config/i386/nm-m3.h,
5063         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5064         config/i386/i386mk.mh, config/i386/i386mk.mt,
5065         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5066         obsolete.
5067         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5068         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5069         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5070
5071 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5072
5073         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5074         (hppa_value_returned_from_stack): Declare.
5075         (hppa_extract_return_value): Declare.
5076         * config/pa/hppa.mt: New file.
5077         * configure.tgt: Recognize hppa*-*-*.
5078         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5079
5080 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5081
5082         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5083         comment.
5084
5085 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5086
5087         * top.c (gdb_rl_operate_and_get_next): Make sure
5088         operate-and-get-next functions correctly even when the history
5089         list is completely filled.
5090
5091 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5092
5093         * MAINTAINERS (Target Instruction Set Architectures): Rename
5094         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5095         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5096         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5097         already listed under Host/Native.
5098
5099         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5100         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5101         mips*-*-*.
5102
5103 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5104
5105         * config/ia64/ia64.mt: New file.
5106         * config/alpha/alpha.mt: New file.
5107         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5108         ia64-linux-gnu.  Mention that ia64-elf is broken.
5109         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5110
5111 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5112
5113         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5114         generic_func_frame_valid instead of func_frame_valid.
5115
5116 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5117
5118         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5119         procfs appears to be broken when debugging on multi-processor
5120         machines. So enable software single stepping in order to avoid
5121         using the procfs interface to do next/step operations, using
5122         internal breakpoints instead.
5123
5124         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5125         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5126         make this pc address equal to the value it would have if the
5127         system stepping capability was used. Also set a new flag used
5128         to ensure that we don't readjust the PC one more time later.
5129
5130         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5131         address by DECR_PC_AFTER_BREAK when software single step is
5132         in use for this architecture, as this has already been taken
5133         care of in handle_inferior_event().
5134
5135 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5136
5137         * infrun.c (handle_inferior_event): Minor reformatting, to make
5138         a rather long condition expression easier to read.
5139
5140 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5141
5142         * Makefile.in (gdbtk.o): Move to end of file.
5143         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5144         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5145         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5146         (gdbtk-wrapper.o, gdbres.o): Ditto.
5147
5148 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5149
5150         * Makefile.in (copying.o): Separate out compile rule.
5151         (hpux-thread.o, procfs.o, signals.o): Ditto.
5152         (v850ice.o, z8k-tdep.o): Ditto.
5153         (tui-file.o): Move to TUI section.
5154         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5155         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5156
5157 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5158
5159         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5160         skip_trampoline_code, for better namespace-proofing.   
5161
5162         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5163
5164 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5165
5166         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5167
5168 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5169
5170         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5171         signal, check whether we hit a breakpoint before checking for a
5172         single step breakpoint. Otherwise, GDB fails to notice that a
5173         breakpoint has been hit when stepping onto a breakpoint.
5174
5175 2002-08-16  Keith Seitz  <keiths@redhat.com>
5176
5177         * gdb-events.sh (clear_gdb_event_hooks): New function.
5178         * gdb-events.c: Regenerate.
5179         * gdb-events.h: Regenerate.
5180
5181 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5182
5183         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5184         not_a_sw_breakpoint.
5185         * breakpoint.h (bpstat_stop_status): Add parameter names.
5186
5187 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5188
5189         * remote.c (remote_insert_hw_breakpoint)
5190         (remote_remove_hw_breakpoint): Fix calculation of length field
5191         for Z-packet.
5192
5193 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5194
5195         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5196         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5197         (supply_fpregset): Ditto.
5198         
5199         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5200         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5201         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5202         (TARGET_READ_SP): Delete.
5203         (DO_REGISTERS_INFO): Delete.
5204         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5205         Delete.
5206         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5207         from macros to functions.
5208
5209         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5210         (mips_register_convertible, mips_register_convert_to_virtual,
5211         mips_register_convert_to_raw): Make static.
5212         (mips_read_sp): New function.
5213         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5214         (mips_do_registers_info): Make static.
5215         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5216         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5217         (mips_register_convert_from_type, mips_register_convert_to_type):
5218         New functions.
5219         (mips_gdbarch_init): Set up function_start_offset, 
5220         register_virtual_size, pc_in_sigtramp.
5221
5222 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5223
5224         * infcmd.c (vector_info): New function.
5225         (_initialize_infcmd): Add command "info vector".
5226         (print_vector_info): New function.
5227
5228         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5229         * gdbarch.h, gdbarch.c: Regenerate.
5230
5231 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5232
5233         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5234         ``print_all''.  Only print vector registers when ``print_all''.
5235
5236 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5237
5238         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5239         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5240
5241         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5242         Add `args' parameter.
5243         * gdbarch.h, gdbarch.c: Regenerate.
5244         
5245         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5246         
5247         * infcmd.c (float_info): Call print_float_info.
5248         (print_float_info): New function.  By default, print the
5249         floating-point registers.
5250
5251         * arch-utils.h (default_print_float_info): Delete declaration.
5252         * arch-utils.c (default_print_float_info): Delete function.
5253         
5254 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5255
5256         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5257         out define.
5258
5259         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5260         FRAME.
5261
5262         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5263         * configure.host: Make i[3456]86-*-aix host obsolete.
5264         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5265         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5266         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5267         config/i386/xm-i386aix.h: Make files obsolete.
5268         * i386aix-nat.c: Make file obsolete.
5269         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5270         (i386aix-nat.o): Make target obsolete.
5271
5272         * config/i386/nm-gnu.h: Removed.
5273         * config/i386/nm-i386gnu.h: New file.
5274         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5275         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5276         Moved here from ...
5277         * config/i386/tm-i386gnu.h: ... here.  Removed.
5278         * config/i386/xm-i386gnu.h: Removed.
5279         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5280         (NAT_FILE): Set to nm-i386gnu.h.
5281         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5282         * i386-tdep.c: New file.
5283         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5284         (i386gnu-tdep.o): Specify dependencies.
5285
5286 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5287
5288         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5289         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5290         Adjust a few comments to reflect reality a bit closer.
5291         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5292         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5293         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5294         target_insert_watchpoint, target_remove_watchpoint):
5295         Move defines to ...
5296         * config/i386/nm-i386sco5.h: ... here.
5297         (kernel_u_size): Add prototype.  Improve a few comments and add
5298         protection against multiple inclusion.
5299         
5300         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5301         out define.
5302
5303         * uw-thread.c (SP_ARG0): Define if not already defined.
5304         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5305
5306         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5307
5308         * config/i386/tm-i386.h: Don't include "regcache.h".
5309
5310         * i387-tdep.h (i387_print_float_info): New prototype.
5311         * i387-tdep.c (print_i387_value, print_i387_ext,
5312         print_i387_status_word, print_i387_control_word): Add `struct
5313         ui_file *' argument and use it for output.
5314         (i387_print_float_info): Renamed from i387_float_info.  Add
5315         `struct gdbarch *' and `struct ui_file *' arguments and use the
5316         latter for output.
5317         * i386-tdep.c: Include "i387-tdep.h".
5318         (i386_gdbarch_init): Set print_float_info.
5319         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5320         (FLOAT_INFO): Remove define.
5321
5322 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5323
5324         * mips-tdep.c (mips_push_arguments): Rename to
5325         mips_eabi_push_arguments, and tune for EABI.
5326         (MIPS_REGS_HAVE_HOME_P): Delete.
5327         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5328         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5329         Delete references to mips_regs_have_home_p.
5330
5331 2002-08-14  Keith Seitz  <keiths@redhat.com>
5332
5333         * Makefile.in (install-gdbtk): Create insight plugin directory.
5334         Install plugins.tcl file.
5335
5336 2002-08-14  Keith Seitz  <keiths@redhat.com>
5337
5338         * configure.in: Move SUBDIRS to near top of the file so that
5339         --enable options may add things to it.
5340         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5341         * configure: Regenerate.
5342
5343 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5344
5345         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5346         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5347         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5348
5349 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5350
5351         * vax-tdep.c (vax_get_saved_register): Delete function.
5352         (vax_gdbarch_init): Update.
5353         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5354         (ns32k_gdbarch_init): Update.
5355         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5356         (alpha_gdbarch_init): Update.
5357
5358 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5359
5360         * regcache.c (init_regcache_descr): Overallocate the
5361         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5362         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5363         nr_raw_registers.
5364         (set_register_cached): Add range checking assertions.  Use
5365         current_regcache.
5366
5367 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5368
5369         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5370         numbers for MMX registers.
5371
5372 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5373
5374         * i386-tdep.c (i386_gdbarch_init): Use
5375         generic_unwind_get_saved_register.
5376
5377 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5378
5379         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5380         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5381         target vector.
5382         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5383         Delete.  Add comment regarding this now-deleted target method.
5384
5385 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5386
5387         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5388         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5389         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5390         real PC and the page number (if it's within the memory bank window).
5391         (m68hc11_pseudo_register_write): Likewise when saving.
5392         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5393         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5394         (m68hc11_register_raw_size): And use 32-bit for it.
5395         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5396         16K memory bank is used by the prog; also use the virtual pc.
5397
5398 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5399
5400         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5401         (m68hc11_gdbarch_init): Install it in gdbarch.
5402         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5403         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5404         (MSYMBOL_SIZE): New for documentation.
5405         (insn_return_kind): Enum to specify how a function returns.
5406         (frame_extra_info): Cleanup and record the return mode.
5407         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5408         register in address computation.
5409         (m68hc11_get_return_insn): New to obtain the return instruction used
5410         by the function.
5411         (m68hc11_frame_init_saved_regs): Take into account the return
5412         instruction used by the function for far and interrupt functions.
5413         (m68hc11_init_extra_frame_info): Take into account page register.
5414         (m68hc11_frame_args_address): Adjust according to the return mode.
5415         (show_regs): Print page register only when it's used.
5416
5417 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5418
5419         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5420         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5421         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5422         registers.
5423         (m68hc11_register_raw_size): Likewise.
5424
5425 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5426
5427         * i386-tdep.c (i386_register_name): Handle mmx registers.
5428         (mmx_regnum_p): New function.
5429         (i386_mmx_names): New array.
5430         (mmx_num_regs): New variable.
5431         (i386_pseudo_register_read): New function.
5432         (i386_pseudo_register_write): New function.
5433         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5434
5435         * regcache.c (regcache_raw_read_unsigned): New function.
5436         (regcache_raw_read_signed): New function.
5437         * regcache.h (regcache_raw_read_unsigned): Declare.
5438         (regcache_raw_read_signed): Declare.
5439
5440 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5441
5442         * regcache.c (regcache_raw_read_as_address): Delete function.
5443         (regcache_cooked_read_signed): New function.
5444         (regcache_cooked_read_unsigned): New function.
5445         * regcache.h (regcache_cooked_read_signed): Declare.
5446         (regcache_cooked_read_unsigned): Declare.
5447         (regcache_raw_read_as_address): Delete declaration.
5448
5449         * blockframe.c (generic_read_register_dummy): Use
5450         regcache_cooked_read_unsigned.
5451         * i386-tdep.c (i386_extract_struct_value_address): Use
5452         regcache_cooked_read_unsigned.
5453
5454 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5455
5456         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5457         double sizes according to ELF ABI flags.
5458         (gdbarch_tdep): Record elf_flags.
5459
5460 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5461
5462         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5463         (m6812_prolog): They can appear in 68HC12 function prologue.
5464         (m68hc11_frame_chain): Cleanup.
5465
5466 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5467
5468         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5469         declarations.
5470         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5471         (i386_linux_register_raw_size): Delete function.
5472         (i386_linux_init_abi): Update.
5473         * i386-tdep.c (i386_register_raw_size): Delete function.
5474         (i386_register_byte): Delete function.
5475         (i386_gdbarch_init): Update.
5476         (i386_register_size): Delete array.
5477         (i386_register_offset): Delete array.
5478
5479         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5480         (REGISTER_RAW_SIZE): Delete macro.
5481         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5482         (REGISTER_BYTE): Delete macro.
5483
5484 2002-08-11  Aidan Skinner <aidan@velvet.net>
5485
5486         * ada-lang.c (ada_lookup_partial_symbol)
5487         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5488         prototype names so that grep ^func works properly.
5489
5490         * ada-lang.c (ada_array_element_type)
5491         (ada_lookup_partial_symbol): Fix typos in parameter list.
5492
5493         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5494         Fix prototype names so that grep ^func works properly.
5495         
5496 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5497             Elena Zannoni  <ezannoni@redhat.com>
5498             Martin M. Hunt  <hunt@redhat.com>
5499
5500         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5501         (build_builtin_type_vec128i): Set the vector bit.
5502         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5503         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5504         (build_builtin_type_vec64): New function.
5505         (build_builtin_type_vec64i): New function.
5506         (build_gdbtypes): Initialize builtin_type_vec64 and
5507         builtin_type_vec64i.
5508
5509 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5510
5511         * regcache.c (regcache_dump): Compare the register offset
5512         with REGISTER_BYTE.
5513         * arch-utils.c (generic_register_byte): New function.
5514         * arch-utils.h (generic_register_byte): Declare.
5515         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5516         * gdbarch.h, gdbarch.c: Regenerate.
5517
5518 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5519
5520         * regcache.c: Include "gdbcmd.h"
5521         (_initialize_regcache): Add commands "maintenance print
5522         registers", "maintenance print raw-registers" and "maintenance
5523         print cooked-registers".
5524         (enum regcache_dump_what): Define.
5525         (dump_endian_bytes): New function.
5526         (regcache_dump): New function.
5527         (regcache_print): New function.
5528         (maintenance_print_registers): New function.
5529         (maintenance_print_raw_registers): New function.
5530         (maintenance_print_cooked_registers): New function.
5531         * Makefile.in (regcache.o): Update dependencies.
5532
5533 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5534
5535         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5536         (mips_push_arguments): Correct some comments.  Use paddr_nz
5537         for printing addresses in debug output.  Replace static
5538         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5539         (mips_n32n64_push_arguments): New function, cloned from
5540         mips_push_arguments and tuned for the n32/n64 ABI.
5541         (mips_push_register): Buffer needs dynamic allocation.
5542         (mips_print_register): Ditto.
5543         (do_gp_register_row): Ditto.
5544         (mips_store_return_value): Ditto.
5545         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5546
5547 2002-08-09  Don Howard  <dhoward@redhat.com>
5548
5549         * memattr.c (mem_info_command): Print special case of upper bound
5550         as max CORE_ADDR + 1.
5551
5552 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5553
5554         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5555         returns structs by ref if they're too big to fit in two registers.
5556
5557 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5558
5559         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5560         saved regs value.
5561         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5562         mips_find_saved_regs().
5563         (mips_pop_frame): Likewise.
5564
5565 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5566
5567         * blockframe.c (frame_saved_regs_register_unwind): Revise
5568         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5569         frames are in use.
5570
5571 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5572         
5573         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5574         T-packets; the 'a' is not taken as a register number.
5575         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5576         (remote_stopped_data_address): New functions; add to target
5577         vector.
5578         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5579         prototypes to match other implementations of this
5580         function. replace integer argument with pointer -- the length
5581         field in the Z-packet is the length of what is pointed to or 1 if
5582         pointer is null. Add to target vector.
5583         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5584         target vector.
5585
5586         From Mark Salter:
5587         * remote.c (remote_wait): Add support to extract optional
5588         watchpoint information from T-packet. Ignore unrecognized
5589         optional info in T-packet.
5590         (remote_async_wait): Ditto.
5591
5592 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5593
5594         * cli/cli-dump.c: Change fopen modes to use binary open modes
5595         as defined in include/fopen-bin.h throughout.
5596
5597 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5598
5599         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5600
5601 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5602
5603         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5604         assertion failure by returning early after a warning.
5605
5606 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5607
5608         * mips-tdep.c (mips_find_saved_regs): Make static.
5609         (mips_frame_init_saved_regs): New function.
5610         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5611         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5612         (mips_find_saved_regs): Delete declaration.
5613
5614 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5615
5616         * remote.c (remote_wait, remote_async_wait): Change
5617         thread_num from int to ULONGEST.
5618         (unpack_varlen_hex): Change result parameter from
5619         int * to ULONGEST *.
5620
5621 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5622
5623         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5624         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5625         powerpc*-*-*.
5626         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5627
5628 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5629
5630         * gcore.c (override_derive_stack_segment): Delete variable.
5631         (preempt_derive_stack_segment): Delete function.
5632         (derive_stack_segment): Delete function.
5633         (default_derive_stack_segment): Renamed to derive_stack_segment.
5634         (override_derive_heap_segment): Delete variable.
5635         (preempt_derive_heap_segment): Delete function.
5636         (derive_heap_segment): Delete function.
5637         (default_derive_heap_segment): Rename to derive_heap_segment.
5638
5639 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5640
5641         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5642         * mips-tdep.c (mips_EABI_use_struct_convention, 
5643         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5644         New functions.  (mips_use_struct_convention): Delete.
5645         (mips_gdbarch_init): set use_gdbarch_convention.
5646
5647 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5648
5649         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5650         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5651         mips_o32_reg_struct_has_addr): New functions.
5652         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5653
5654 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5655
5656         * regcache.c (pseudo_register): Delete function.
5657         (fetch_register): Delete function.
5658         (store_register): Delete function.
5659         (regcache_raw_read, legacy_read_register_gen): Use
5660         target_fetch_registers instead of fetch_register.
5661         (legacy_write_register_gen, regcache_raw_write): Use
5662         target_store_register instead of store_register.
5663         (write_register_bytes): Ditto.
5664
5665         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5666         (STORE_PSEUDO_REGISTER): Delete.
5667         * gdbarch.h, gdbarch.c: Regenerate.
5668
5669 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5670
5671         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5672         write dump file binary.
5673
5674 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5675
5676         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5677         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5678         (mips_gdbarch_init): Set N32 target to be mips64.
5679
5680 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5681
5682         * frame.c (find_saved_register): Break out of loop once saved
5683         register address is found.  Don't mention sparc in loop comment
5684         anymore.
5685
5686 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5687
5688         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5689         mips_default_saved_regsize to 8.
5690
5691 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5692
5693         * gcore.c: Do not include <sys/procfs.h>.
5694         * Makefile.in (gcore.o): Update dependencies.
5695
5696 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5697
5698         * configure.tgt: Make arc-*-* obsolete.
5699         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5700         * MAINTAINERS: Make arc-elf obsolete.
5701         * arc-tdep.c: Make file obsolete.
5702         * config/arc/arc.mt: Ditto.
5703         * config/arc/tm-arc.h: Ditto.
5704
5705 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5706
5707         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5708
5709 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5710
5711         * mcore-tdep.c (mcore_gdbarch_init): Use
5712         generic_unwind_get_saved_register instead of
5713         generic_get_saved_register.
5714         * v850-tdep.c (v850_gdbarch_init): Ditto.
5715         * frv-tdep.c (frv_gdbarch_init): Ditto.
5716         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5717         * s390-tdep.c (s390_gdbarch_init): Ditto.
5718         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5719         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5720         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5721
5722 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5723
5724         * objfiles.h: Add missing #include "symfile.h"
5725
5726         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5727
5728 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5729
5730         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5731         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5732         of FIELD_BITSIZE.
5733
5734 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5735
5736         * NEWS: Cleanup and nitpick.
5737
5738 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5739
5740         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5741
5742 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5743
5744         * Makefile.in (gdbtk-bp.o): Update dependencies.
5745         (gdbtk-register.o): Ditto.
5746         (gdbtk-varobj.o): Ditto.
5747
5748 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5749
5750         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5751         m68hc11_fetch_pseudo_register.
5752         (m68hc11_pseudo_register_write): Replace
5753         m68hc11_store_pseudo_register.
5754         (m68hc11_gdbarch_init): Update.
5755
5756 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5757
5758         * gdbarch.sh: Include "gdb_string.h".
5759         * gdbarch.c: Regenerate.
5760
5761         * regcache.c: Include "gdb_string.h".
5762         * ax-general.c: Ditto.
5763         * varobj.c: Ditto.
5764         * std-regs.c: Ditto.
5765         * fbsd-proc.c: Ditto.
5766         * thread.c: Ditto.
5767
5768         * Makefile.in (regcache.o): Update dependencies.
5769         (thread.o, gdbarch.o): Ditto.
5770         (ax-general.o, gdbarch.o): Ditto.
5771         (varobj.o, std-regs.o): Ditto.
5772         (fbsd-proc.o): Specify dependencies.
5773
5774 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5775
5776         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5777         regnum.
5778         (regcache_cooked_write): Ditto.
5779
5780 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
5781
5782         * regcache.c (regcache_cooked_read): New function.
5783         (regcache_cooked_write): New function.
5784         (read_register_gen): Rewrite using regcache_cooked_read.
5785         (write_register_gen): Rewrite using regcache_cooked_write.
5786
5787         * regcache.h (regcache_cooked_read, regcache_cooked_write):
5788         Declare.
5789
5790 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5791
5792         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5793         Replace the architecture methods register_read and register_write.
5794         * gdbarch.h, gdbarch.c: Regenerate.
5795         * regcache.c (init_regcache_descr): Update.
5796         (read_register_gen): Update.
5797         (write_register_gen): Update.
5798         (supply_register): Update comment.
5799
5800         * sh-tdep.c (sh_gdbarch_init): Update.
5801         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5802         `regcache' and `gdbarch' parameters.  Make `buffer' a void
5803         pointer.  Update code.
5804         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5805         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
5806         void pointer.  Update code.
5807         (sh64_register_write): Delete.
5808         (sh4_register_read): Delete.
5809         (sh64_register_read): Delete.
5810         (sh4_register_write): Delete.
5811         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5812         void pointer, `to' parameter a void pointer.
5813         (sh_sh64_register_convert_to_raw): Ditto.
5814
5815 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5816
5817         * mips-tdep.c (mips_register_virtual_type): Use architecture
5818         invariant return values.
5819
5820 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5821
5822         * linux-proc.c: Include "gdb_string.h".
5823         * Makefile.in (linux-proc.o): Update dependency list.
5824
5825 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5826
5827         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
5828         comment.
5829
5830 2002-08-01  Grace Sainsbury  <graces@redhat.com>
5831
5832         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5833         to_insert_watchpoint, to_remove_watchpoint,
5834         to_stopped_by_watchpoint, to_stopped_data_address,
5835         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5836         target vecctor. Define their corresponding macros so they call
5837         them.
5838         
5839         * target.c: Add default and debug versions of for
5840         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5841         to_insert_watchpoint, to_remove_watchpoint,
5842         to_stopped_by_watchpoint, to_stopped_data_address,
5843         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5844
5845 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5846
5847         * mips-tdep.c (mips_register_virtual_type): New function.
5848         (mips_gdbarch_init): Register mips_register_virtual_type()
5849         with gdbarch machinery.
5850         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5851         this file instead of tm-bigmips.h.
5852         (MIPS_REGSIZE): Delete this macro.
5853         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
5854         multiarch version in mips-tdep.c will be found.
5855
5856 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5857
5858         * NEWS: Menion that CHILL has been made obsolete.
5859
5860         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5861         * stabsread.c (read_range_type): Ditto.
5862         * gdbtypes.h: Ditto.
5863         * language.c (binop_type_check): Ditto.
5864         (binop_result_type): Ditto.
5865         (integral_type): Ditto.
5866         (character_type): Ditto.
5867         (string_type): Ditto.
5868         (boolean_type): Ditto.
5869         (structured_type): Ditto.
5870         (lang_bool_type): Ditto.
5871         (binop_type_check): Ditto.
5872         * language.h (_LANG_chill): Ditto.
5873         * dwarfread.c (set_cu_language): Ditto.
5874         * dwarfread.c (CHILL_PRODUCER): Ditto.
5875         * dwarfread.c (handle_producer): Ditto.
5876         * expression.h (enum exp_opcode): Ditto.
5877         * eval.c: Ditto for comments.
5878         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5879         * expprint.c (print_subexp): Ditto.
5880         (print_subexp): Ditto.
5881         * valops.c (value_cast): Ditto.
5882         (search_struct_field): Ditto.
5883         * value.h (COERCE_VARYING_ARRAY): Ditto.
5884         * symfile.c (init_filename_language_table): Ditto.
5885         (add_psymbol_with_dem_name_to_list): Ditto.
5886         * valarith.c (value_binop): Ditto.
5887         (value_neg): Ditto.
5888         * valops.c (value_slice): Ditto.
5889         * symtab.h (union language_specific): Ditto.
5890         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5891         (SYMBOL_DEMANGLED_NAME): Ditto.
5892         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5893         * defs.h (enum language): Ditto.
5894         * symtab.c (got_symtab): Ditto.
5895         * utils.c (fprintf_symbol_filtered): Ditto.
5896
5897         * ch-typeprint.c: Make file obsolete.
5898         * ch-valprint.c: Make file obsolete.
5899         * ch-lang.h: Make file obsolete.
5900         * ch-exp.c: Make file obsolete.
5901         * ch-lang.c: Make file obsolete.
5902
5903         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5904         CHILL_LIB.
5905         (TARGET_FLAGS_TO_PASS): Ditto.
5906         (CHILLFLAGS): Obsolete.
5907         (CHILL): Obsolete.
5908         (CHILL_FOR_TARGET): Obsolete.
5909         (CHILL_LIB): Obsolete.
5910         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5911         ch-valprint.c.
5912         (HFILES_NO_SRCDIR): Remove ch-lang.h.
5913         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5914         ch-lang.o.
5915         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5916         targets.
5917
5918 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
5919
5920         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5921         This does not change anything at the moment, but will be helpful
5922         later when full Ada support is integrated.
5923
5924 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5925
5926         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5927         help message.
5928
5929 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5930
5931         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5932         and save it in a local variable.  Use variable in later test.
5933
5934 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5935
5936         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5937         test.  (Thanks to Daniel Jacobowitz.)
5938         
5939 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5940
5941         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5942         (mips_abi_strings): Add "n64".
5943         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
5944
5945 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5946
5947         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5948         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5949
5950 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5951
5952         * utils.c (host_pointer_to_address, address_to_host_pointer):
5953         Use gdb_assert() instead of explicit call to internal_error().
5954
5955 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
5956
5957         * Makefile.in (rs6000-nat.o): Update dependencies.
5958
5959         From Nicholas Duffek:
5960         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5961         (aix-thread.o): New rule.
5962         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5963         * config/powerpc/aix432.mh: New file.
5964
5965 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
5966
5967         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5968         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5969         (fetch_core_registers, ppc_linux_supply_gregset)
5970         (ppc_linux_supply_fpregset): New functions.
5971         (ppc_linux_regset_core_fns): New.
5972         (_initialize_ppc_linux_tdep): Call add_core_fns.
5973         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5974         and ppc_linux_supply_gregset.
5975         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5976         (supply_fpregset): Call ppc_linux_supply_fpregset.
5977         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5978         corelow.o.
5979         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5980
5981 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
5982
5983         * symtab.c (lookup_symbol): Demangle before lowercasing.
5984
5985 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
5986
5987         * symtab.h: Replace #include "gdb_obstack.h" with opaque
5988         declaration.
5989         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5990         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5991         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5992         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5993         "gdb_string.h".
5994         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5995         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5996         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5997         (avr-tdep.o, mon960-rom.o): Ditto.
5998         (aout_stabs_gnu_h): Define.
5999         (symtab_h): Remove $(gdb_obstack_h).
6000
6001 2002-07-30  Jim Blandy  <jimb@redhat.com>
6002
6003         Patch from David Carlton <carlton@math.stanford.edu>:
6004         * gdbinit.in: Move the `dir' commands that add GDB's own source
6005         directory to the search path to the end, so that the `gdb' source
6006         directory will be searched first.
6007
6008 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6009
6010         * gdb_obstack.h: New file.
6011         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6012         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6013         * objfiles.h: Include "gdb_obstack.h".
6014         * Makefile.in (gdb_obstack_h): Define.
6015         (symtab_h): Add $(gdb_obstack_h).
6016         (objfiles_h): Add $(gdb_obstack_h).
6017         
6018         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6019         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6020         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6021         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6022         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6023         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6024         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6025         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6026
6027         * Makefile.in (bcache.o): Update dependencies.
6028         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6029         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6030         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6031         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6032         (stabsread.o, symfile.o, symmisc.o): Ditto.
6033         (symtab.o, typeprint.o, macroexp.o): Ditto.
6034         (macrotab.o, mdebugread.o): Ditto.
6035         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6036         (coff_ecoff_h, aout_aout64_h): Define.
6037         (aout_stabs_gnu_h, libaout_h): Define.
6038
6039 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6040
6041         * regcache.c (struct regcache_descr): Rename nr_registers to
6042         nr_cooked_registers.  Revise comments describing the structure
6043         member fields.
6044         (init_regcache_descr): Update.
6045         (init_legacy_regcache_descr): Update.
6046         (read_register_gen, write_register_gen): When a cooked register in
6047         the raw register range, directly access the value from the raw
6048         register cache.
6049
6050 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6051
6052         * z8k-tdep.c: Do not include "obstack.h".
6053         * h8300-tdep.c, h8500-tdep.c: Ditto.
6054         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6055         * valprint.c, v850-tdep.c: Ditto.
6056         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6057         * mn10200-tdep.c: Ditto.
6058
6059         * Makefile.in (z8k-tdep.o): Update dependencies.
6060         (m68hc11-tdep.o, valprint.o): Ditto.
6061         (v850-tdep.o, d10v-tdep.o): Ditto.
6062         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6063         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6064         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6065         (sh_opc_h, gdb_sim_sh_h): Define.
6066         (elf_sh_h, elf_bfd_h): Define.
6067         (opcode_m68hc11_h): Define.
6068         (OPCODES_SRC, OPCODES_DIR): define.
6069         (OPCODES): Use $(OPCODES_DIR).
6070         (gdb_sim_d10v_h): Rename sim_d10v_h.
6071         (gdb_sim_arm_h): Rename sim_arm_h.
6072
6073 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6074
6075         * utils.c (host_pointer_to_address, address_to_host_pointer):
6076         Change internal_error() message to indicate function responsible
6077         for the error.
6078
6079 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6080
6081         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6082         calls to local_hex_string_custom().
6083
6084 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6085
6086         * irix5-nat.c: Move IRIX shared library support from here...
6087         * solib-irix.c: ...to here.  Revised substantially to work with
6088         generic solib framework.
6089
6090         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6091         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6092         * mips-irix-tdep.c: New file.
6093
6094         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6095         (mips-irix-tdep.o, solib-irix.o): New rules.
6096         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6097         solib-irix.o.
6098         * config/mips/irix6.mt (TDEPFILES): Likewise.
6099         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6100
6101 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6102
6103         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6104         disabled (via ``#if 0'') includes.
6105
6106 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6107
6108         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6109         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6110         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6111         Add support for the fpscr register.
6112         * rs6000-nat.c (regmap, fetch_inferior_registers)
6113         (store_inferior_registers, fetch_core_registers): Likewise.
6114
6115 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6116
6117         * rs6000-nat.c (language.h): Include.
6118         (special_regs): Delete this array.
6119         (regmap): New function.
6120         (fetch_register, store_register):  Use regmap() to map gdb
6121         register numbers to ptrace register numbers.  Also, use
6122         outputs from regmap() to make decisions regarding type of
6123         ptrace() call to make.  In particular, don't compare against
6124         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6125         (fetch_inferior_registers, store_inferior_registers): Where
6126         possible, obtain register numbers from tdep struct.  Don't
6127         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6128         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6129         (LAST_UISA_SP_REGNUM): Delete.
6130         
6131 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6132
6133         * rs6000-nat.c (ppc-tdep.h): Include.
6134         (fetch_registers, store_register, fetch_core_registers): Don't
6135         access registers[] directly.  Instead, use supply_register() or
6136         regcache_collect() as appropriate.
6137         (find_toc_address): Format hex address with local_hex_string().
6138
6139 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6140
6141         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6142         bfd/elf32-frv.c.
6143
6144 2002-07-24  Tom Tromey  <tromey@redhat.com>
6145
6146         * jv-exp.y: Marked all strings with _().
6147         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6148         internal_error.
6149         (MethodInvocation, CastExpression, parse_number, yyerror,
6150         java_type_from_name, push_expression_name, yylex): Typo fixes.
6151
6152 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6153
6154         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6155         (tee_file_flush, tee_file_write, tee_file_fputs)
6156         (tee_file_isatty): New.
6157         * ui-file.h (tee_file_new): Add prototype.
6158
6159 2002-07-24  Aidan Skinner <aidan@velvet.net>
6160
6161         * ada-lang.c: Change k&r style function definitions to prototyped
6162         form.
6163         * ada-typeprint.c: Change k&r style function definitions to prototyped
6164         form.
6165         * ada-valprint.c: Change k&r style function definitions to prototyped
6166         form.
6167         
6168 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6169
6170         * README: Remove reference to remote-bug.
6171         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6172         remote-bug.c.
6173         (m88k-nat.o): Delete rule.
6174         (m88k-tdep.o): Delete rule.
6175         (remote-bug.o): Delete rule.
6176         * MAINTAINERS: Mark as obsolete.
6177         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6178         * m88k-tdep.c: Make file obsolete.
6179         * config/m88k/m88k.mh: Ditto.
6180         * config/m88k/delta88v4.mh: Ditto.
6181         * config/m88k/delta88v4.mt: Ditto.
6182         * config/m88k/delta88.mt: Ditto.
6183         * config/m88k/delta88.mh: Ditto.
6184         * remote-bug.c: Ditto.
6185         * config/m88k/tm-delta88.h: Ditto.
6186         * config/m88k/nm-delta88v4.h: Ditto.
6187         * config/m88k/xm-delta88.h: Ditto.
6188         * config/m88k/xm-dgux.h: Ditto.
6189         * config/m88k/tm-m88k.h: Ditto.
6190         * config/m88k/nm-m88k.h: Ditto.
6191         * config/m88k/tm-delta88v4.h: Ditto.
6192         * m88k-nat.c: Ditto.
6193         * cxux-nat.c: Ditto.
6194         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6195         and m88*-*-* obsolete.
6196         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6197         m88*-*-* obsolete.
6198
6199 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6200
6201         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6202         constant.  Same for local pointer variables.
6203         (extract_signed_integer): Ditto.
6204         * defs.h (extract_unsigned_integer): Update.
6205         (extract_signed_integer): Update.
6206
6207 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6208
6209         * regcache.c (regcache_raw_write): Change buf parameter to a
6210         constant void pointer.
6211         (regcache_raw_read): Change buf parameter to a void pointer.
6212         (legacy_write_register_gen): Change myaddr parameter a constant
6213         void pointer.
6214         (supply_register): Change val parameter to a const void pointer.
6215         * regcache.h (regcache_raw_write): Update declaration.
6216         (regcache_raw_read): Update declaration.
6217         (supply_register): Update declaration.
6218
6219 2002-07-24  Tom Tromey  <tromey@redhat.com>
6220
6221         * defs.h (gdb_readline_wrapper): Declare.
6222         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6223         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6224         * top.c (gdb_readline_wrapper): New function.
6225         (command_line_input): Use it.
6226
6227 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6228
6229         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6230         regcache_read and regcache_write.
6231         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6232         * regcache.c: Update.
6233         * sh-tdep.c (sh64_push_arguments): Update comment.
6234         (sh_pseudo_register_read): Update.
6235         (sh_pseudo_register_write): Update.
6236         (sh4_register_read): Update.
6237         (sh4_register_write): Update.
6238         (sh64_pseudo_register_read): Update.
6239         (sh64_pseudo_register_write): Update.
6240         (sh64_register_read): Update.
6241         (sh64_register_write): Update.
6242         * i386-tdep.c (i386_extract_return_value): Update.
6243         (i386_extract_struct_value_address): Update.
6244         (i386_extract_return_value): Update.
6245         * blockframe.c (generic_read_register_dummy): Update.
6246         (generic_call_dummy_register_unwind): Update
6247         * infrun.c (write_inferior_status_register): Update.
6248
6249 2002-07-23  Jim Blandy  <jimb@redhat.com>
6250
6251         * parser-defs.h (expression_context_pc): Make this extern.
6252         (Thanks to Michael Snyder.)
6253
6254 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6255
6256         GDB 5.2.1 released from 5.2 branch.
6257         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6258         * README: Update to mention 5.2.1.
6259
6260 2002-07-23  Mark Salter  <msalter@redhat.com>
6261
6262         * remote.c (remote_read_bytes): Fix check for error.
6263
6264 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6265
6266         * aix-thread.c (language.h): Include.
6267         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6268         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6269         Print newlines at end of debug messages.
6270         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6271         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6272
6273 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6274
6275         * aix-thread.c (ppc-tdep.h): Include.
6276         (special_register_p): New function.
6277         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6278         (store_regs_user_thread): Use register number information from
6279         gdbarch_tdep struct instead of hardcoded offsets relative to
6280         FIRST_UISA_SP_REGNUM.
6281         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6282         special_register_p() instead of using FPLAST_REGNUM and
6283         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6284         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6285         will be MQ's register number.
6286
6287 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6288
6289         * aix-thread.c (ops): Rename to aix_thread_ops.
6290         (base_ops): Rename to base_target.
6291         (ops_attach): Rename to aix_thread_attach.
6292         (ops_detach): Rename to aix_thread_detach.
6293         (ops_resume): Rename to aix_thread_detach.
6294         (ops_wait):   Rename to aix_thread_wait.
6295         (ops_kill):   Rename to aix_thread_kill.
6296         (init_ops):   Rename to init_aix_thread_ops.
6297         (ops_fetch_register): Rename to aix_thread_fetch_register.
6298         (ops_store_register): Rename to aix_thread_store_register.
6299         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6300         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6301         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6302         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6303         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6304         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6305         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6306         (store_regs_lib):  Rename to store_regs_user_thread.
6307         (store_regs_kern): Rename to store_regs_kernel_thread.
6308
6309 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6310
6311         * aix-thread.c (ops_prepare_to_store): Eliminate.
6312         (init_ops): Don't initialize ops.prepare_to_store.
6313         (store_regs_kern): Pre-fetch register buffers from child, 
6314         because some registers may not be in the cache.  Copy
6315         regs from register cache only if they are cached.
6316         (store_regs_lib): Copy regs from register cache only
6317         if they are cached.
6318         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6319         fill_gprs64): Ditto.
6320
6321 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6322
6323         * aix-thread.c (gdb_assert.h): Include.
6324         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6325         register sizes (from register cache) match size of buffer holding
6326         register data.
6327         (fill_sprs32): Change parameter types to match those in the ptrace()
6328         buffer.
6329         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6330         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6331
6332 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6333
6334         * aix-thread.c (supply_sprs64): Cosmetic change.
6335         (supply_sprs32): Cosmetic change.
6336         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6337         (fill_sprs64): Use regcache_collect instead of read_register.
6338         (store_regs_lib): Use regcache_collect instead of 
6339         read_register.  Use fill_sprs32 instead of fill_sprs64,
6340         if debugging a 32-bit architecture.
6341         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6342         out of the register cache, instead of passing a pointer into
6343         the register cache directly to ptrace.  Use regcache_collect
6344         insteaad of read_register.
6345         (ops_prepare_to_store): Use target_read_registers instead
6346         of read_register_bytes.
6347
6348 2002-07-20  Aidan Skinner <aidan@velvet.net>
6349
6350         * MAINTAINERS: Add self under write after approval. 
6351                 
6352 2002-07-20  Aidan Skinner <aidan@velvet.net>
6353
6354         * ada-tasks.c: Change k&r style function definitions to prototyped
6355         form.
6356                 
6357 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6358
6359         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6360         * x86-64-tdep.c: Include "objfiles.h".
6361         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6362         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6363
6364 2002-07-17  Michal Ludvig  <michal@suse.cz>
6365
6366         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6367         (update_context): Initialise cfa variable.
6368
6369 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6370
6371         * aix-thread.c: Shorten some long lines.  
6372         Bring comments into line with code spec.
6373
6374 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6375
6376         * infrun.c: Re-indent using gdb_indent.sh.
6377
6378 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6379
6380         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6381         Leave the indentation temporarily untouched, to minimize the diffs.
6382
6383 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6384
6385         * stabsread.c: Make os9k sections of the code obsolete,
6386         for real this time.
6387         * stabsread.h: Make os9k sections of the code obsolete.
6388
6389 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6390
6391         * linux-low.c (regsets_store_inferior_registers): Add free()
6392         at the end of a loop to prevent memory leak.
6393         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6394         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6395         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6396         line a comment.
6397         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6398
6399 2002-07-17  Jim Blandy  <jimb@redhat.com>
6400
6401         * macrocmd.c (info_macro_command): Remove newline from error
6402         message.
6403
6404 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6405
6406         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6407         (sh_gdbarch_init): Use it for sh-dsp.
6408
6409 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6410
6411         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6412         64-bit DWARF2 format.
6413
6414 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6415
6416         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6417         <sys/proc.h> when not available.
6418
6419 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6420
6421         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6422         * stabsread.c: Make os9k sections of the code obsolete.
6423         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6424         * config/i386/i386os9k.mt: Make file obsolete.
6425         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6426         (COMMON_OBS): Remove os9kread.o
6427         (SFILES): Remove os9kread.c.
6428         (os9kread.o, remote-os9k.o): Make target obsolete.
6429         * remote-os9k.c: Make file obsolete.
6430         * os9kread.c: Make file obsolete.
6431         * Makefile.in
6432
6433 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6434
6435         * NEWS: Mention that the FR30 has been made obsolete.
6436         * fr30-tdep.c: Make file obsolete.
6437         * config/fr30/tm-fr30.h: Ditto.
6438         * config/fr30/fr30.mt: Ditto.
6439         * configure.tgt: Make fr30-*-elf obsolete.
6440         * MAINTAINERS: Make fr30-elf obsolete.
6441
6442 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6443
6444         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6445         found is not inside a section.
6446
6447 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6448
6449         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6450         strerror().
6451         (pdc_realloc): Use xrealloc() instead of realloc().
6452
6453 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6454
6455         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6456         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6457         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6458         macros.
6459
6460 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6461
6462         * aix-thread.c (ptrace_check): Eliminate goto.
6463         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6464         problem.
6465
6466 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6467
6468         * aix-thread.c (gdbcmd.h): Include.
6469         (DEBUG, DBG, DBG2, dbg): Eliminate.
6470         (debug_aix_thread): New static global.
6471         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6472         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6473         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6474         invocations to DBG and DBG2 macros to test against
6475         ``debug_aix_thread'' and call fprintf_unfiltered().
6476         (_initialize_aix_thread): Add new command "set debug aix-thread".
6477
6478 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6479
6480         From Gerhard Tonn <TON@de.ibm.com>:
6481         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6482         instead of supply_register.
6483
6484 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6485
6486         * dwarf2cfi.c: Include "gdb_assert.h".
6487         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6488         non-NULL.
6489         (update_context): Do not use __func__.  Add missing ``break''.
6490         (update_context): Do not use __func__.
6491
6492 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6493
6494         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6495         and its setting.  Set gdbarch instruction printing functions
6496         directly.  For non-rs6000 case use new function
6497         gdb_print_insn_powerpc.
6498         (gdb_print_insn_powerpc): New function.
6499
6500 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6501
6502         * NEWS: Mention that the d30v has been marked obsolete.
6503         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6504         * configure.tgt: Mark d30v-*-* as obsolete.
6505         * d30v-tdep.c: Mark file as obsolete.
6506         * config/d30v/d30v.mt: Ditto.
6507         * config/d30v/tm-d30v.h: Ditto.
6508
6509 2002-07-13  Aidan Skinner <aidan@velvet.net>
6510
6511         * ada-tasks.c (add_task_entry): replace calls to
6512         malloc() with xmalloc
6513         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6514         
6515         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6516         ada_finish_decode_line_1, all_sals_for_line
6517         ada_breakpoint_rewrite): replace calls to free() with xfree()
6518                 
6519 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6520
6521         From Nicholas Duffek (with minor changes by Martin Hunt, 
6522         Louis Hamilton, and Kevin Buettner):
6523         * aix-thread.c: New file.
6524
6525 2002-07-12  Petr Sorfa <petrs@caldera.com>
6526
6527         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6528         complaint for invalid attribute class or form.
6529         (read_func_scope): DW_AT_frame_base
6530         better handling of DW_AT_block*.
6531         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6532         better handling of DW_AT_block*.
6533         (read_common_block): DW_AT_location
6534         better handling of DW_AT_block*.
6535         (read_partial_die): DW_AT_location better handling
6536         of DW_AT_block*.
6537         (new_symbol): DW_AT_external better handling of
6538         DW_AT_block*. Proper initialization of variable
6539         "addr".
6540         (attr_form_is_block): New function that returns true
6541         if the attribute's form is of DW_FORM_block*.
6542
6543 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6544
6545         * valops.c (find_method_list): Remove comment about
6546         removed STATIC_MEMFUNCP argument.
6547         (value_find_oload_method_list): Likewise.
6548
6549 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6550
6551         From Nicholas Duffek:
6552         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6553         target_new_objfile_hook.
6554
6555 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6556
6557         From Nicholas Duffek:
6558         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6559         csect.
6560
6561 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6562
6563         * MAINTAINERS: Mention --enable-sim-build-warnings.
6564         (m68hc11-elf): Disable sim build warnings.
6565         (m32r-elf): Mark as broken obsolete candidate.
6566         (x86_64-linux-gnu): Mark as buildable with -Werror.
6567         (arm-elf): Change -w to ``,'' which enables warnings but not
6568         -Werror.
6569
6570 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6571
6572         * bcache.h: Update copyright.
6573         (struct bstring, struct bcache): Move definition to "bcache.c".
6574         Replaced by opaque declaration.
6575         (bcache_xfree): Replace free_bcache.
6576         (bcache_xmalloc, bcache_memory_used): Declare.
6577         
6578         * bcache.c: Update copyright.
6579         (struct bstring, struct bcache): Moved to here from "bcache.h".
6580         Update comments.
6581         (bcache_xmalloc, bcache_memory_used): New functions.
6582         (bcache_xfree): Replace function free_bcache.
6583         
6584         * Makefile.in (objfiles.o): Add $(bcache_h).
6585         (objfiles_h): Remove $(bcache_h).
6586         (symfile.o): Add $(bcache_h).
6587
6588         * symmisc.c: Update copyright.
6589         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6590         (print_objfile_statistics): Use bcache_memory_used.
6591
6592         * symfile.c: Include "bcache.h".
6593         (reread_symbols): Use bcache_xfree.
6594         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6595         (add_psymbol_to_list): Pass psymbol_cache by value.
6596         (add_psymbol_with_dem_name_to_list): Ditto.
6597
6598         * objfiles.h: Update copyright.
6599         (struct bcache): Declare opaque.  Do not include "bcache.h".
6600         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6601         bcache'' pointers.
6602         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6603
6604         * objfiles.c: Include "bcache.h".  Update copyright.
6605         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6606         macro_cache.
6607         (free_objfile): Use bcache_xfree.
6608
6609 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6610
6611         * monitor.c (monitor_fetch_register): Make name a constant.
6612         (monitor_store_register): Same.
6613
6614 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6615
6616         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6617         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6618         (finish_block) For non-function blocks, hash the symbol table.  For
6619         function blocks, mark the symbol table as unhashed.
6620         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6621         (msymbol_hash_iw): Likewise.
6622         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6623         value.
6624         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6625         (lookup_minimal_symbol): Likewise for both.
6626         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6627         hashtable.
6628         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6629         (ALL_BLOCK_SYMBOLS): Update.
6630         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6631         (struct symbol): Add `hash_next' pointer.
6632         * symtab.c (lookup_block_symbol): Search using the hash table when
6633         possible.
6634         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6635         (search_symbols, find_addr_symbol): Likewise.
6636
6637         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6638         (read_dst_symtab): Likewise.
6639         * jv-lang.c (get_java_class_symtab): Likewise.
6640         * mdebugread.c: Include "gdb_assert.h".
6641         (shrink_block): Assert that the block being modified is not hashed.
6642         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6643         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6644         symbols.
6645         (dump_symtab): Recognize hashed blocks.
6646         * printcmd.c (print_frame_args):  Assert that function blocks do not
6647         have hashed symbol tables.
6648         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6649         (fill_in_ada_prototype, debug_print_block): Likewise.
6650         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6651
6652 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6653
6654         * stack.c (print_frame): Use result of frame_address_in_block()
6655         instead of fi->pc when evaluating symbols.
6656         (backtrace_command_1): Ditto.
6657
6658 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6659
6660         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6661         Make static.
6662
6663         * arm-tdep.c (arm_register_name): Make return type constant.
6664
6665 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6666
6667         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6668         prototype.
6669         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6670         * s390-tdep.c (s390_fp_regnum): Ditto.
6671         (s390_read_fp): Ditto.
6672         (s390_pop_frame): Ditto.
6673         (_initialize_s390_tdep): Ditto.
6674         * remote.c (get_remote_state): Ditto.
6675         * procfs.c (mappingflags): Ditto.
6676         * memattr.c (_initialize_mem): Ditto.
6677         * mcore-tdep.c (mcore_pop_frame): Ditto.
6678         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6679         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6680         * language.c (set_case_str): Ditto.
6681         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6682         * frv-tdep.c (new_variant): Ditto.
6683         (frv_stopped_data_address): Ditto.
6684         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6685         (context_alloc): Ditto.
6686         (frame_state_alloc): Ditto.
6687         (unwind_tmp_obstack_init): Ditto.
6688         (unwind_tmp_obstack_free): Ditto.
6689         (cfi_read_fp): Ditto.
6690         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6691         (cris_pop_frame): Ditto.
6692         * c-lang.c (scanning_macro_expansion): Ditto.
6693         (finished_macro_expansion): Ditto.
6694         (c_preprocess_and_parse): Ditto.
6695         * gdbarch.sh: Ditto.
6696         * gdbarch.h, gdbarch.c: Regenerate.
6697         * config/mn10200/tm-mn10200.h: Adjust indentation.
6698         * target.c: Adjust indentation.
6699         * symtab.h: Adjust indentation.
6700         * stabsread.h: Adjust indentation.
6701         * remote-es.c: Adjust indentation.
6702         * os9kread.c: Adjust indentation.
6703
6704 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6705         
6706         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6707         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6708
6709 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6710         
6711         * NEWS: Mention m68k, mcore multi-arching.  
6712         * MAINTAINERS: Change status of m68k, mcore to reflect
6713         multi-arching.
6714
6715 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6716
6717         * valops.c (find_overload_match): Free oload_syms.
6718
6719 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6720
6721         Define HAVE_SYS_PROC_H if sys/proc.h exists
6722         * configure.in: Add check for sys/proc.h
6723         * config.in: Regenerate.
6724         * configure: Regenerate.
6725
6726 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6727
6728         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6729         #if !GDB_MULTI_ARCH. 
6730
6731 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6732
6733         * config.in, configure: Regenerate.
6734
6735 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6736
6737         * dwarf2cfi.c: Include "gcore.h".
6738         (execute_stack_op): Fix implementation of the
6739         DW_OP_deref and DW_OP_deref_size operators by letting do their
6740         lookup in the target.
6741
6742 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6743
6744         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6745         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6746         tdep->sc_sp_offset.
6747
6748 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6749
6750         Fix PR gdb/595, gdb/602
6751         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6752         Don't call value_cast, just read the vtable pointer; update comments
6753         to match.
6754
6755 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6756
6757         * config/mcore/tm-mcore.h: Remove file.
6758         * config/mcore/mcore.mt: Remove definition of TM_FILE
6759         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6760
6761 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6762
6763         * i386bsd-tdep.c: Include "gdb_string.h".
6764
6765 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6766
6767         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6768         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6769         mcore-tdep.
6770         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6771         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6772         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6773         (RETVAL_REGNUM): Move macros from tm-mcore.h
6774         (mcore_reg_struct_has_addr): New function.
6775         (mcore_gdbarch_init): Added initializations for the macros removed
6776         from tm-mcore.h.
6777
6778 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6779
6780         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6781         traditonal string branding within the ELF header.
6782
6783 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6784
6785         * symtab.c (remove_params): New function.
6786         (make_symbol_overload_list): Use it instead of cplus_demangle.
6787         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
6788
6789 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6790
6791         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6792
6793         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6794         New variables.
6795         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6796         and tdep->sigtramp_end.
6797         * i386obsd-nat.c: New file.
6798         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6799
6800         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6801         Don't call get_current_frame().
6802
6803 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6804
6805         * i386-nat.c (child_post_startup_inferior): New function
6806         calling i386_cleanup_dregs if
6807         I386_USE_GENERIC_WATCHPOINTS is defined.
6808         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6809         conditional to acknowledge that i386-nat.c has its
6810         own child_post_startup_inferior function.
6811
6812 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6813
6814         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6815         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6816         instead of MAX_REGISTER_RAW_SIZE.
6817         (i386_extract_return_value, i386_extract_struct_value_address):
6818         Convert to use regcache.
6819         (i386_gdbarch_init): Set max_register_raw_size and
6820         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6821         Set extract_return_value and extract_struct_value_address instead
6822         of their deprecated variants.
6823
6824         Convert i386 target to generic dummy frames.
6825         * i386-tdep.c: Include "symfile.h".
6826         (i386_frameless_signal_p): Consider a function to be frameless if
6827         the pc points at the first instruction of the function.
6828         (i386_frame_chain): Handle (generic) call dummies.
6829         (i386_frame_saved_pc): Likewise.
6830         (i386_frame_init_saved_regs): Remove code dealing with call
6831         dummies on the stack.
6832         (i386_push_dummy_frame): Removed.
6833         (i386_call_dummy_words): Removed.
6834         (i386_fix_call_dummy): Removed.
6835         (i386_push_return_address): New function.
6836         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
6837         parameter, and don't call get_current_frame.
6838         (i386_pop_frame): New function.
6839         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6840         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6841         entry_point_address, set call_dummy_breakpoint_offset to 0, set
6842         call_dummy_length to 0, set call_dummy_words to NULL, set
6843         sizeof_call_dummy_words to 0, set fix_call_dummy to
6844         generic_fix_call_dummy, set pc_in_call_dummy to
6845         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6846         generic_push_dummy_frame, set push_return_address to
6847         i386_push_return_address and set frame_chain_valid to
6848         generic_file_frame_chain_valid.
6849
6850 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6851
6852         * gdbarch.sh (struct regcache): Add opaque declaration.
6853         (EXTRACT_RETURN_VALUE): New architecture method.
6854         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6855         * gdbarch.h, gdbarch.c: Regenerate.
6856         * arch-utils.c (legacy_extract_return_value): New function.
6857         * arch-utils.h (legacy_extract_return_value): Declare.
6858         * values.c (value_being_returned): Re-enable code handling
6859         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
6860         deprecated_grub_regcache_for_registers call to block handling
6861         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6862         (EXTRACT_RETURN_VALUE): Do not define.
6863
6864 2002-07-03  Grace Sainsbury  <graces@redhat.com>
6865
6866         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6867         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6868         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6869         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6870         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6871         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6872         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6873         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6874         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6875         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6876         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6877         argument so the function fits the prototype in the architecture
6878         vector.
6879         (mcore_pop_frame): Remove argument so the function fits the
6880         prototype. Use get_current_frame instead of the argument.
6881         (mcore_push_arguments): Change type of struct_return so the
6882         function can be used in the architecture vector.
6883         (mcore_store_struct_return): Add.
6884         (mcore_frame_init_saved_regs): Add.
6885         (mcore_gdbarch_init): Add function calls to replace the macros
6886         removed from tm-mcore.h
6887
6888 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6889
6890         * infcmd.c (print_return_value): Remove compatibility code calling
6891         deprecated_grub_regcache_for_registers.
6892         
6893         * values.c: Include "regcache.h".
6894         (value_being_returned): Update.  Use
6895         deprecated_grub_regcache_for_registers to extract the register
6896         buffer address.  
6897         * value.h (value_being_returned): Change ``retbuf'' parameter to a
6898         ``struct regcache''.
6899         * Makefile.in (values.o): Add dependency on $(regcache_h).
6900
6901         * inferior.h (run_stack_dummy): Change type of second parameter to
6902         a ``struct regcache''.
6903         * valops.c (hand_function_call): Change type of retbuf to ``struct
6904         regcache''.  Allocate using regcache_xmalloc, clean using
6905         make_cleanup_regcache_xfree.
6906         * infcmd.c (run_stack_dummy): Update.  Use
6907         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6908
6909         * regcache.c (do_regcache_xfree): New function.
6910         (make_cleanup_regcache_xfree): New function.
6911         * regcache.h (make_cleanup_regcache_xfree): Declare.
6912
6913 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6914
6915         * event-top.c (command_line_handler): Don't read past
6916         beginning of buffer.
6917
6918 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6919         
6920         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
6921         struct frame_id. 
6922         (varobj_create): Store frame_id for root.
6923         (varobj_gen_name): Use xasprintf.
6924         (varobj_update): Save and restore frame using get_frame_id() and
6925         frame_find_by_id().
6926         (create_child): Use xasprintf.
6927         (new_root_variable): Initialize frame_id.
6928         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6929         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6930         to prevent memory leak.
6931
6932 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6933
6934         * valops.c (hand_function_call): Move declaration of retbuf to
6935         start of function, allocate using malloc, add a cleanup but before
6936         the inf_status cleanup, cleanup the buffer.  Rename local variable
6937         old_chain to inf_status_cleanup.
6938
6939 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6940
6941         * top.c (execute_command): Use cmd_func() and cmd_func_p().
6942
6943         * cli/cli-decode.c (cmd_func_p): New function.
6944         (cmd_func): New function.
6945
6946         * command.h: Add cmd_func() and cmd_func_p().   
6947         
6948 2002-07-03  Grace Sainsbury  <graces@redhat.com>
6949
6950         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6951         (REGISTER_SIZE): Remove.
6952         (MAX_REGISTER_RAW_SIZE): Remove.
6953         (REGISTER_VIRTUAL_TYPE): Remove.
6954         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6955         (REGISTER_NAME): Remove.
6956         (USE_GENERIC_DUMMY_FRAMES): Remove.
6957         (CALL_DUMMY): Remove.
6958         (CALL_DUMMY_START_OFFSET): Remove.
6959         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6960         (CALL_DUMMY_LOCATION): Remove.
6961         (FIX_CALL_DUMMY): Remove.
6962         (CALL_DUMMY_ADDRESS): Remove.
6963         (SIZEOF_CALL_DUMMY_WORDS): Remove.
6964         (SAVE_DUMMY_FRAME_TOS): Remove.
6965         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6966         (mcore_register_virtual_type): New function.
6967         (mcore_register_byte): New function.
6968         (mcore_register_size): New function.
6969         (mcore_register_name): New function.
6970         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6971         macros removed from tm-mcore.h.
6972         (mcore_dump_tdep): Add.
6973         (_initialize_mcore_tdep): Add gdbarch_register call.
6974
6975 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
6976
6977         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6978         frameless_look_for_prologue, such that we actually call this
6979         function.
6980
6981 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
6982
6983         * frame.h (frame_address_in_block): New function.
6984
6985         * blockframe.c (frame_address_in_block): New function extracted
6986         from get_frame_block().
6987         (get_frame_block): Use frame_address_in_block().
6988         (block_innermost_frame): Use frame_address_in_block() to match
6989         the frame pc address against the block boundaries rather than
6990         the frame pc directly. This prevents a failure when a frame pc
6991         is actually a return-address pointing immediately after the end
6992         of the given block. 
6993
6994 2002-07-02  Grace Sainsbury  <graces@redhat.com>
6995
6996         * MAINTAINERS: Add self under write after approval. 
6997
6998 2002-07-02  Grace Sainsbury  <graces@redhat.com>
6999
7000         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7001         used in architecture vector. The default is
7002         m68k_local_breakpoint_from_pc.
7003         (m68k_local_breakpoint_from_pc): Add.
7004         (enum): Add register numbers from tm-m68k.h.
7005         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7006         vector.  
7007         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7008         GDB_MULTI_ARCH_PARTIAL.
7009         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7010         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7011         m68k-tdep.c.
7012         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7013         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7014         to enum in m68k-tdep.c
7015
7016 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7017
7018         * solib-osf.c (open_map): Compute the list of shared libraries
7019         loaded by the inferior, rather than the list of libraries loaded
7020         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7021         the wrong shared libraries...
7022
7023 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7024
7025         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7026         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7027         macros.
7028         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7029         Remove functions.
7030         (FRAMELESS_SIGNAL): Remove function.
7031         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7032         i386_linux_saved_pc_after_call): Removed.
7033         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7034         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7035         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7036
7037         * i386-tdep.c (i386_frameless_signal_p): New function.
7038         (i386_frame_chain): Deal with frameless signals.
7039         (i386_sigtramp_saved_sp): New function.
7040         (i386_frame_saved_pc): Deal with frameless signals.
7041         (i386_saved_pc_after_call): Make sure the correct value is
7042         returned just after entry into a sigtramp.
7043         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7044         i386fbsd4_sc_sp_offset): New variables.
7045         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7046         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7047         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7048         similiar to what we already did for sc_pc_offset.
7049         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7050         tdep->sc_sp_offset.
7051
7052         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7053
7054 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7055
7056         * config/i386/tm-x86-64linux.h: New.
7057         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7058         definitions.
7059         * config/i386/nm-x86-64.h: Rename to ...
7060         * config/i386/nm-x86-64linux.h: ... this one.
7061         * config/i386/x86-64linux.mh: Reflect the above change.
7062         
7063 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7064
7065         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7066         with sigcontext_addr.  Add sc_sp_offset.
7067         (i386bsd_sigtramp_saved_pc): Remove prototype.
7068         (i386bsd_sicontext_addr): Add prototype.
7069         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7070         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7071         (i386_svr4_sigtramp_saved_pc): Removed.
7072         (i386_svr4_sigcontext_addr): New function.
7073         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7074         Initialize tdep->sigcontext_addr instead.  Initialize
7075         tdep->sc_pc_offset and tdep->sc_sp_offset.
7076         (i386_gdbarch_init): Likewise.
7077         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7078         any more.
7079         (i386bsd_sigtramp_saved_pc): Remove function.
7080         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7081         Initialize tdep->sigcontext_addr instead.  Initialize
7082         tdep->sc_pc_offset.
7083         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7084         of tdep->sigtramp_saved_pc.
7085         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7086         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7087         instead.
7088
7089         * i386-tdep.c (i386_frameless_function_invocation,
7090         i386_frame_num_args, i386_frame_init_saved_regs,
7091         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7092         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7093         i386_extract_return_value, i386_store_return_value,
7094         i386_extract_struct_value_address, i386_register_virtual_type,
7095         i386_register_convertible, i386_register_convert_to_virtual,
7096         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7097         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7098         static.
7099
7100 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7101
7102         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7103
7104         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7105         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7106         this macro.  Include "value.h".
7107
7108 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7109
7110         * ada-exp.tab.c: remove as it's a generated file
7111         * ada-lex.c: remove as it's a generated file
7112                 
7113 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7114
7115         * config/i386/tm-i386.h (struct frame_info, struct
7116         frame_saved_regs, struct value, struct type): Remove forward
7117         declarations.
7118
7119         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7120         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7121         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7122         (FILL_FPXREGSET): Define.
7123
7124         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7125
7126         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7127         i[3456]86-*-netbsd* case.
7128         * config/i386/tm-obsd.h: Removed.
7129         * config/i386/obsd.mt: Removed.
7130         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7131         core-aout.o.
7132         (MH_CFLAGS): Add -DYYDEBUG=0.
7133
7134         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7135         i386nbsd_sc_pc_offset on OpenBSD too.
7136
7137         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7138         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7139         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7140         define.
7141         * i386bsd-tdep.c: Include "arch-utils.h".
7142         (i386bsd_aout_in_solib_call_trampoline): New function.
7143         (i386bsd_init_abi): Set in_solib_call_trampoline to
7144         i386bsd_aout_in_solib_call_trampoline.
7145         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7146         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7147
7148 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7149
7150         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7151         (struct obstack, struct bcache): Add opaque declarations.
7152         * Makefile.in (macrotab_h): Update
7153
7154 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7155
7156         * blockframe.c (generic_find_dummy_frame): Change return type to
7157         ``struct regcache''.
7158         (struct dummy_frame): Replace field ``registers'' with regcache, a
7159         struct regcache object.
7160         (generic_find_dummy_frame): Update.
7161         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7162         regcache_xmalloc and regcache_cpy.
7163         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7164         regcache_xfree.
7165         (deprecated_generic_find_dummy_frame): Update.
7166         (generic_read_register_dummy): Update.  Use
7167         regcache_read_as_address.
7168         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7169         (generic_get_saved_register): Update.  Use regcache_read.
7170
7171 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7172
7173         * Makefile.in (objfiles_h): Add $(bcache_h).
7174         * objfiles.h: Include "bcache.h".
7175
7176         * Makefile.in (symtab_h): Remove $(bcache_h).
7177         * symtab.h: Do not include "bcache.h".
7178
7179 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7180
7181         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7182         generic_func_frame_chain_valid.
7183
7184 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7185
7186         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7187         * config/i386/tm-fbsd.h: Likewise.
7188
7189 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7190
7191         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7192         generic_unwind_get_saved_register.
7193
7194 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7195
7196         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7197         * regcache.c (supply_register): Add missing argument to
7198         register_buffer call.
7199
7200 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7201
7202         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7203         Solaris /bin/grep does not not like it.  From Peter Schauer.
7204
7205 2002-06-26  Tom Tromey  <tromey@redhat.com>
7206
7207         * command.h (add_setshow_cmd): Declare.
7208         (add_setshow_cmd_full): Declare.
7209         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7210         returns void.  Use add_setshow_cmd_full.
7211         (add_setshow_cmd_full): New function.
7212         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7213         (add_setshow_boolean_cmd): Likewise.
7214
7215 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7216
7217         * config/vax/tm-vax.h: Protect from multiple inclusion.
7218         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7219         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7220         * config/vax/tm-vaxbsd.h: ...here.  New file.
7221         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7222
7223 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7224
7225         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7226         (BELIEVE_PCC_PROMOTION): Remove.
7227         (AP_REGNUM): Move to...
7228         * config/vax/nm-vax.h: ...here.
7229         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7230         (vax_breakpoint_from_pc): New function.
7231         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7232         and gdbarch_believe_pcc_promotion.
7233
7234 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7235
7236         * Makefile.in (vax_tdep_h): Define.  
7237         (vax-tdep.o): Use $(vax_tdep_h).
7238         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7239         (vax_dump_tdep): New function. 
7240         (_initialize_vax_tdep): Register vax_dump_tdep.
7241         * vax-tdep.h: Include osabi.h.     
7242         (struct gdbarch_tdep): New. 
7243
7244 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7245
7246         * frame.h (deprecated_generic_find_dummy_frame): Rename
7247         generic_find_dummy_frame.
7248         * blockframe.c (generic_find_dummy_frame): Make static.
7249         (deprecated_generic_find_dummy_frame): New function.
7250         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7251         generic_find_dummy_frame with deprecated_find_dummy_frame.
7252         (sh64_nofp_frame_init_saved_regs): Ditto.
7253         (sh_fp_frame_init_saved_regs): Ditto.
7254         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7255         (s390_frame_chain): Ditto.
7256         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7257
7258 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7259
7260         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7261         gdbarch vector are at the top.
7262         (NUM_REGS): Remove.
7263         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7264         (FRAME_ARGS_ADDRESS): Remove.
7265         (FRAME_LOCALS_ADDRESS): Remove.
7266         (FRAME_NUM_ARGS): Remove.
7267         (FRAME_ARGS_SKIP): Remove.  
7268         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7269         (m68k_gdbarch_init): Add gdbarch initializations for macros
7270         undefined in tm-m68k.h
7271
7272 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7273
7274         * monitor.h: Add the function regname to monitor_ops
7275         structure. This way NUM_REGS does not have to be a constant.
7276         * monitor.c (monitor_fetch_register): Added support for regname
7277         function. The function is called if the array regnames is NULL.
7278         (monitor_store_register): Same.
7279         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7280         regnames array.
7281         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7282         cpu32bug_cmds.regname to point to new function.
7283         * abug-rom.c (abug_regname): Same as above.
7284         (init_abug_cmds): Same.
7285         * dbug-rom.c (dbug_regname): Same as above.
7286         (init_dbug_cmds): Same.
7287         * remote-est.c (est_regname): Same. 
7288         (init_est_cmds): Same.
7289         * rom68k-rom.c (rom68k_regname): Same. 
7290         (init_rom68k_cmds): Same.
7291
7292 2002-06-25  Tom Tromey  <tromey@redhat.com>
7293
7294         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7295
7296 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7297
7298         * infrun.c (stop_registers): Change variable's type to ``struct
7299         regcache'''.
7300         (xmalloc_inferior_status): Delete function.
7301         (free_inferior_status): Delete function.
7302         (normal_stop): Use regcache_cpy.
7303         (struct inferior_status): Change type of fields ``stop_registers''
7304         and ``registers'' to ``struct regcache''.
7305         (write_inferior_status_register): Use regcache_write.
7306         (save_inferior_status): Instead of calling
7307         xmalloc_inferior_status, allocate the inf_status buffer directly.
7308         Use regcache_dup_no_passthrough and regcache_dup to save the
7309         buffers.
7310         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7311         Replace the stop_registers regcache instead of overriding it.  Use
7312         regcache_xfree.  Instead of calling free_inferior_status, xfree
7313         the buffer directly.
7314         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7315         free_inferior_status, xfree the buffer directly.
7316         (build_infrun): Use regcache_xmalloc.
7317         (_initialize_infrun): Delete redundant call to build_infrun.
7318
7319         * Makefile.in (infcmd.o): Add $(regcache_h).
7320
7321         * infcmd.c: Include "regcache.h".
7322         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7323         obtain the address of `stop_registers' register buffer.
7324         (print_return_value): Ditto.
7325
7326         * inferior.h (struct regcache): Add opaque declaration.
7327         (stop_registers): Change variable's declared type to ``struct
7328         regcache''.
7329
7330 2002-06-24  Tom Tromey  <tromey@redhat.com>
7331
7332         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7333         * target.c (initialize_targets): Fixed typo in
7334         trust-readonly-sections `show' documentation.
7335
7336         * main.c: Marked all strings with _().
7337
7338 2002-06-24  Don Howard  <dhoward@redhat.com>
7339
7340         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7341         that means max CORE_ADDR+1.
7342         (lookup_mem_region): Ditto.
7343         (mem_info_command): Ditto.
7344
7345 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7346
7347         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7348         (REGISTER_BYTES_OK): Remove.
7349         (REGISTER_BYTES): Remove.
7350         (STORE_STRUCT_RETURN): Remove.
7351         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7352         (STORE_RETURN_VALUE): Remove.
7353         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7354         (FRAME_CHAIN): Remove.
7355         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7356         (FRAME_SAVED_PC): Remove.  
7357         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7358         (m68k_store_struct_return): Add.
7359         (m68k_deprecated_extract_return_value): Add.
7360         (m68k_deprecated_extract_struct_value_address): Add.
7361         (m68k_store_return_value): Add.
7362         (m68k_frame_chain): Add.
7363         (m68k_frameless_function_invocation): Add.
7364         (m68k_frame_saved_pc): Add.
7365         (m68k_gdbarch_init): added set_gdbarch calls for new 
7366         functions and deleted macros.
7367
7368 2002-06-23  Tom Tromey  <tromey@redhat.com>
7369
7370         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7371         (ALLDEPFILES): Likewise.
7372         (udiheaders): Removed.
7373         (udip2soc.o): Likewise.
7374         (udi2go32.o): Likewise.
7375         (udr.o): Likewise.
7376         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7377
7378 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7379
7380         * infrun.c (_initialize_infrun): Delete unnecessary call to
7381         build_infrun.
7382
7383         * regcache.h: Update comments describing the regcache_cpy family
7384         of functions.
7385         (regcache_save, regcache_restore): Delete declaration.
7386         (regcache_save_no_passthrough): Delete declaration.
7387         (regcache_restore_no_passthrough): Delete declaration.
7388         * regcache.c (regcache_save): Delete function.
7389         (regcache_save_no_passthrough): Delete function.
7390         (regcache_restore): Delete function.
7391         (regcache_restore_no_passthrough): Delete function.
7392
7393 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7394
7395         * config/m68k/tm-m68k.h: Fix typo.
7396         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7397         (m68k_frame_init_saved_regs): Declare.
7398
7399 2002-06-21  Jim Blandy  <jimb@redhat.com>
7400
7401         Remove some vestiges of Harris 88k support.
7402         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7403         register numbering quirk.
7404         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7405         odd symbols occurring in Harris 88k ELF targets.
7406
7407 2002-06-21  Tom Tromey  <tromey@redhat.com>
7408
7409         * gdb_locale.h: New file.
7410         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7411         (defs_h): Added gdb_locale.h.
7412         * configure, config.in: Rebuilt.
7413         * configure.in (PACKAGE): Define.
7414         * defs.h: Include gdb_locale.h.
7415         * main.c (captured_main): Call setlocale, bindtextdomain,
7416         textdomain.
7417
7418 2002-06-21  Dave Brolley  <brolley@redhat.com>
7419
7420         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7421         * config/frv/frv.mt: New file.
7422         * config/frv/tm-frv.h: New file.
7423         * configure.tgt: Support frv-*-*.
7424         * Makefile.in (frv-tdep.o): New target.
7425         * frv-tdep.c: New file.
7426         * NEWS: Mention frv.
7427
7428 2002-06-21  Dave Brolley  <brolley@redhat.com>
7429
7430         * MAINTAINERS: Add self to "Write After Approval" list.
7431
7432 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7433
7434         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7435         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7436         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7437         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7438         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7439
7440         * m68k-tdep.c: Include arch-utils.h
7441         (m68k_register_raw_size): Add.
7442         (m68k_register_virtual_size): Add.
7443         (m68k_register_virtual_type): Add.
7444         (m68k_register_name): Add.
7445         (m68k_stack_align): Add.
7446         (m68k_register_byte): Add.
7447         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7448         tm-m68k.h.
7449
7450 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7451
7452         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7453         m68k_find_saved_regs.
7454         (m68k_pop_frame): Removed saved_regs structure, and replaced
7455         references to it with frame->saved_regs.
7456         (m68k_gdbarch_init): Added function calls to initialize the
7457         gdbarch structure.
7458         (m68k_fix_call_dummy): Add. 
7459         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7460         (CALL_DUMMY): Remove.
7461         (CALL_DUMMY_LENGTH): Remove.
7462         (CALL_DUMMY_START_OFFSET): Remove.
7463         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7464         (FIX_CALL_DUMMY): Remove.
7465         (PUSH_DUMMY_FRAME): Remove.
7466         (POP_FRAME): Remove.
7467
7468 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7469
7470         * parse.c (parse_fprintf): New function used to avoid calls to
7471         fprintf in bison parser generated debug code.
7472         * parser-defs.h: Declaration of new parse_fprintf function.
7473         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7474         Set YYDEBUG to 1 by default.
7475         Set YYFPRINTF as parse_fprintf.
7476
7477 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7478
7479         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7480         encoding anymore.
7481         (pointer_encoding, enum ptr_encoding): New.
7482         (execute_cfa_program): Take care about pointer encoding.        
7483         (dwarf2_build_frame_info): Only call parse_frame_info for 
7484         .debug_frame and .eh_frame.
7485         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7486         fixed augmentation handling, added relative addressing, 
7487         ignore duplicate FDEs. Added comments.
7488         * dwarf2cfi.c: Reindented.
7489         
7490 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7491
7492         * event-top.c (command_handler): Don't use space_at_cmd_start
7493         unless there is sbrk() on the host. Assign time and space data
7494         to union fields of the appropriate length.
7495
7496 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7497
7498         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7499         x86_64_register_name. Return type changed to 'const char *'.
7500         (x86_64_register_name2nr): Rename to x86_64_register_number.
7501         (x86_64_gdbarch_init): Update to reflect the change.
7502         * x86-64-tdep.h: Ditto.
7503         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7504         (supply_fpregset): Ditto.
7505
7506 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7507
7508         * regcache.h: Update copyright.
7509         (struct regcache, struct gdbarch): Add opaque declarations.
7510         (current_regcache): Declare global variable.
7511         (regcache_read, regcache_write): Add gdbarch parameter.
7512         (regcache_save, regcache_save_no_passthrough)
7513         (regcache_restore, regcache_restore_no_passthrough)
7514         (regcache_dup, regcache_dup_no_passthrough)
7515         (regcache_cpy, regcache_cpy_no_passthrough)
7516         (deprecated_grub_regcache_for_registers)
7517         (deprecated_grub_regcache_for_register_valid)
7518         (regcache_valid_p): Add function declarations.
7519         
7520         * regcache.c: Update copyright.
7521         (regcache_descr_handle): New global variable.
7522         (struct regcache_descr): Define.
7523         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7524         (regcache_descr, xfree_regcache_descr): New functions.
7525         (struct regcache): Define.
7526         (regcache_xmalloc, regcache_xfree): New functions.
7527         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7528         (regcache_dup, regcache_dup_no_passthrough): New functions.
7529         (regcache_valid_p, regcache_read_as_address): New functions.
7530         (deprecated_grub_regcache_for_registers): New function.
7531         (deprecated_grub_regcache_for_register_valid): New function.
7532         (current_regcache): New global variable.
7533         (register_buffer): Add regcache parameter.  Update calls.
7534         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7535         (read_register_gen, write_register_gen): Update register_buffer
7536         call.  Test for legacy_p instead of gdbarch_register_read_p or
7537         gdbarch_register_write_p.
7538         (regcache_collect): Update register_buffer call.
7539         (build_regcache): Rewrite.  Use deprecated grub functions.
7540         (regcache_save, regcache_save_no_passthrough): New functions.
7541         (regcache_restore, regcache_restore_no_passthrough): New
7542         functions.
7543         (_initialize_regcache): Create the regcache_data_handle. Swap
7544         current_regcache global variable.
7545         
7546         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7547         parameter to regcache_read and regcache_write calls.
7548         (sh4_register_read): Ditto.
7549         (sh64_pseudo_register_read): Ditto.
7550         (sh64_register_read): Ditto.
7551         (sh_pseudo_register_write): Ditto.
7552         (sh4_register_write): Ditto.
7553         (sh64_pseudo_register_write): Ditto.
7554         (sh64_register_write): Ditto.
7555
7556         * defs.h (XCALLOC): Define.
7557
7558 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7559
7560         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7561         * m68k-tdep.c (m68k_gdbarch_init): Added.
7562         (m68k_dump_tdep): Added.
7563
7564 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7565
7566         * ada-lang.c (fill_in_ada_prototype): Update comment.
7567
7568 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7569
7570         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7571         MIPS_ABI_LAST.
7572         (mips_abi_string, mips_abi_strings): New.
7573         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7574         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7575         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7576         O32 if no ABI is found.
7577         (mips_dump_tdep): Use mips_abi_strings.
7578         (mips_abi_update): New function.
7579         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7580         ``set mips abi'' and ``show mips abi''.  Check the size of
7581         mips_abi_strings.
7582
7583 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7584
7585         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7586         constant.
7587
7588 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7589
7590         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7591         current frame using only the first stack size adjustment. All
7592         subsequent size adjustments are not considered to be part of
7593         the "static" part of the current frame.
7594         Compute the address of the saved registers relative to the
7595         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7596         in use in this frame.
7597
7598 2002-06-18  Don Howard  <dhoward@redhat.com>
7599  
7600         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7601         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7602         suggesting this solution.
7603
7604 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7605
7606         * config/romp/xm-rtbsd.h: Delete file.
7607         * config/romp/rtbsd.mh: Delete file.
7608
7609 2002-06-18  Keith Seitz  <keiths@redhat.com>
7610
7611         * breakpoint.c (condition_command): Post breakpoint_modify
7612         when a condition is added to an existing breakpoint.
7613         (commands_command): Likewise for commands.
7614         (set_ignore_count): Likewise for ignore counts.
7615         If no tty, do not simply return, still need to send event
7616         notification.
7617         (ignore_command): Only print a newline if the command came
7618         from a tty.
7619         Don't call breakpoints_changed, since this is now properly
7620         handled by set_ignore_count.
7621
7622 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7623
7624         * MAINTAINERS: Note that cris-elf target can be compiled with
7625         -Werror.
7626         * cris-tdep.c (cris_register_name): Make return type constant.
7627         (cris_breakpoint_from_pc): Ditto.
7628
7629 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7630
7631         * frame.h (struct frame_info): Change type of context to 
7632         'struct context'.
7633
7634 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7635
7636         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7637         pointer.
7638         * gdbarch.h, gdbarch.c: Regenerate.
7639         * config/mips/tm-mips.h (mips_register_name): Update.
7640         * i386-tdep.h (i386_register_name): Update.
7641         * mips-tdep.c (mips_register_name): Update
7642         * alpha-tdep.c (alpha_register_name): Update.
7643         * arch-utils.c (legacy_register_name): Update.
7644         * arch-utils.h (legacy_register_name): Update.
7645         * avr-tdep.c (avr_register_name): Update.
7646         * ia64-tdep.c (ia64_register_name): Update.
7647         * i386-tdep.c (i386_register_name): Update.
7648         * sparc-tdep.c (sparc32_register_name): Update.
7649         (sparc64_register_name): Update.
7650         (sparclite_register_name): Update.
7651         (sparclet_register_name): Update.
7652         * sh-tdep.c (sh_generic_register_name): Update.
7653         (sh_sh_register_name): Update.
7654         (sh_sh3_register_name): Update.
7655         (sh_sh3e_register_name): Update.
7656         (sh_sh_dsp_register_name): Update.
7657         (sh_sh3_dsp_register_name): Update.
7658         (sh_sh4_register_name): Update.
7659         (sh_sh64_register_name): Update.
7660         * s390-tdep.c (s390_register_name): Update.
7661         * rs6000-tdep.c (rs6000_register_name): Update.
7662         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7663         (ns32k_register_name_32382): Update.
7664         * d10v-tdep.c (d10v_ts2_register_name): Update.
7665         (d10v_ts3_register_name): Update.
7666         * xstormy16-tdep.c (xstormy16_register_name): Update.
7667         * vax-tdep.c (vax_register_name): Update.
7668         * v850-tdep.c (v850_register_name): Update.
7669         * m68hc11-tdep.c (m68hc11_register_name): Update.
7670         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7671         (am33_register_name): Update.
7672
7673 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7674
7675         * m68k-tdep.c: Reindented.
7676
7677 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7678
7679         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7680         list of predefined types.
7681
7682 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7683
7684         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7685         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7686         REGISTER_CONVERT_TO_RAW): Remove defines.
7687         (i386_register_virtual_type, i386_register_convertible,
7688         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7689         Remove prototypes.
7690         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7691         macros mentioned above.
7692
7693         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7694         (i386lynx_saved_pc_after_call): Remove prototype.
7695         * i386ly-tdep.c: Include "i386-tdep.h".
7696         (i386lynx_saved_pc_after_call): Make static.  Use
7697         read_memory_nobpt instead of read_memory.  Use
7698         read_memory_unsigned_integer instead of read_memory_integer.
7699         (i386lynx_init_abi): New function.
7700         (i386lynx_coff_osabi_sniffer): New function.
7701         (_initialize_i386bsd_tdep): New function.
7702
7703         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7704         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7705         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7706         (i386_fix_call_dummy): Remove prototype.
7707         * i386-tdep.c (i386_call_dummy_words): New variable.
7708         (i386_gdbarch_init): Adjust for removal of the
7709         macros mentioned above.
7710
7711 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7712
7713         * command.h (add_setshow_auto_boolean_cmd): Replace
7714         add_set_auto_boolean_cmd.
7715         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7716         add_set_auto_boolean_cmd.
7717         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7718         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7719         mask-address'' command.
7720         (show_mask_address): Add cmd parameter.
7721         * remote.c (add_packet_config_cmd): Update.  Change type of
7722         set_func and show_func to cmd_sfunc_ftype.
7723         (_initialize_remote): Update `set remote Z-packet'
7724         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7725         (show_remote_protocol_e_packet_cmd): Ditto.
7726         (show_remote_protocol_E_packet_cmd): Ditto.
7727         (show_remote_protocol_P_packet_cmd): Ditto.
7728         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7729         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7730         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7731         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7732         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7733         (show_remote_protocol_Z_packet_cmd): Ditto.
7734         (show_remote_protocol_binary_download_cmd): Ditto.
7735         (show_remote_cmd): Pass NULL to all of above.
7736
7737 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7738
7739         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7740         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7741         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7742         POP_FRAME): Remove defines.
7743         (i386_push_arguments, i386_store_struct_return,
7744         i386_extract_return_value, i386_store_return_value,
7745         i386_extract_struct_value_address, i386_push_dummy_frame,
7746         i386_pop_frame): Renove prototypes.
7747         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7748         macros mentioned above.
7749
7750 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7751
7752         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7753         add_set_boolean_cmd.
7754         (add_setshow_cmd): New function.
7755         * command.h (add_setshow_boolean_cmd): Replace
7756         add_set_boolean_cmd.
7757         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7758         and ``set rdiromatzero''.
7759         * maint.c (_initialize_maint_cmds): Update commented out code.
7760         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7761         * target.c (initialize_targets): Update `set
7762         trust-readonly-sections'.
7763         * remote.c (_initialize_remote): Update `set remotebreak'.
7764
7765 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7766
7767         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7768         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7769         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7770         fit into multi-arch framework.
7771         (i386_breakpoint_from_pc): New function.
7772         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7773         above.
7774
7775         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7776         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7777         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7778         (i386_frameless_function_invocation, i386_frame_num_args,
7779         i386_frame_init_saved_regs): Remove prototypes.
7780         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7781         macros mentioned above.
7782
7783 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7784
7785         * cli/cli-decode.c (set_cmd_cfunc): Update.
7786         (set_cmd_sfunc): Update.
7787         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7788         (set_cmd_sfunc, set_cmd_cfunc): Update.
7789         * cli/cli-decode.h: Update.
7790
7791 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7792
7793         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7794         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7795
7796 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7797
7798         * defs.h (auto_boolean): Declare enum.
7799         * command.h (cmd_auto_boolean): Delete enum.
7800         * mips-tdep.c (mask_address_var): Update.
7801         (mips_mask_address_p): Update.
7802         (show_mask_address): Update.
7803         * remote.c (struct packet_config): Update.
7804         (update_packet_config): Update.
7805         (show_packet_config_cmd): Update.
7806         (packet_ok): Update.
7807         (add_packet_config_cmd): Update.
7808         (_initialize_remote): 
7809         * command.h: Update.
7810         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7811         (do_setshow_command): Update.
7812         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7813         * cli/cli-decode.h: Update.
7814
7815 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7816
7817         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7818         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7819         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7820         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7821         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7822         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7823
7824         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7825         list of DJGPP COFF targets.
7826
7827         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7828         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7829         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7830         (FP0_REGNUM): Remove define.
7831         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7832         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7833         (i386_register_virtual_size): Remove protoype.
7834         * i386-tdep.c (i386_register_virtual_size): Removed.
7835         (i386_extract_return_value, i386_store_return_value): Use
7836         FP0_REGNUM instead of NUM_FREGS to determine whether the
7837         floating-point registers are available.
7838         (i386_gdbarch_init): Tweak FIXME about FPU registers.
7839         Adjust for removal of macros mentioned above.
7840
7841 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7842
7843         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
7844         comments.
7845         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7846         Remove prototypes.
7847         (supply_gregset, fill_gregset): Remove use of register keyword and
7848         remove declaration for regmap.  Use I386_NUM_GREGS instead of
7849         NUM_REGS and NUM_FREGS.
7850         (FPREGSET_FSAVE_OFFSET): Remove.
7851         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7852         NUM_FREGS to determine whether the floating-point registers are
7853         available.
7854
7855         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7856         gnu_store_registers): Replace usage of NUM_GREGS with
7857         I386_NUM_GREGS.
7858
7859         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7860         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7861         usage of NUM_GREGS with I386_NUM_GREGS.
7862
7863         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7864
7865         * i386bsd-nat.c: Include "i386-tdep.h".
7866         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7867         I386_NUM_GREGS.
7868
7869         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7870         and associated comment.  They no longer make any sense, since we
7871         don't use this file anymore on Linux.
7872
7873         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7874         * i386-tdep.c (i386_register_offset, i386_register_size): Use
7875         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7876         elements in these arrays.
7877         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7878         MAX_NUM_REGS.
7879
7880 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7881
7882         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7883         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7884
7885 2002-06-14  Andrew Cagney  <cagney@redhat.com>
7886
7887         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7888         EXTRACT_RETURN_VALUE.
7889         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7890         EXTRACT_STRUCT_VALUE_ADDRESS.
7891         * gdbarch.h, gdbarch.c: Regenerate.
7892         
7893         * values.c (value_being_returned): Handle
7894         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7895         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7896
7897         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
7898         * arm-tdep.c (arm_gdbarch_init): Update.
7899         * avr-tdep.c (avr_gdbarch_init): Update.
7900         * cris-tdep.c (cris_gdbarch_init): Update.
7901         * d10v-tdep.c (d10v_gdbarch_init): Update.
7902         * ia64-tdep.c (ia64_gdbarch_init): Update.
7903         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7904         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7905         * s390-tdep.c (s390_gdbarch_init): Update.
7906         * sh-tdep.c (sh_gdbarch_init): Update.
7907         * s390-tdep.c (s390_gdbarch_init): Update.
7908         * sparc-tdep.c (sparc_gdbarch_init): Update.
7909         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7910         * v850-tdep.c (v850_gdbarch_init): Update.
7911         * vax-tdep.c (vax_gdbarch_init): Update.
7912         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7913         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7914
7915         * config/arc/tm-arc.h: Update.
7916         * config/d30v/tm-d30v.h: Update.
7917         * config/fr30/tm-fr30.h: Update.
7918         * config/h8300/tm-h8300.h: Update.
7919         * config/h8500/tm-h8500.h: Update.
7920         * config/i386/tm-i386.h: Update.
7921         * config/i386/tm-ptx.h: Update.
7922         * config/i386/tm-symmetry.h: Update.
7923         * config/i960/tm-i960.h: Update.
7924         * config/m32r/tm-m32r.h: Update.
7925         * config/m68k/tm-delta68.h: Update.
7926         * config/m68k/tm-linux.h: Update.
7927         * config/m68k/tm-m68k.h: Update.
7928         * config/m88k/tm-m88k.h: Update.
7929         * config/mcore/tm-mcore.h: Update.
7930         * config/mips/tm-mips.h: Update.
7931         * config/mn10200/tm-mn10200.h: Update.
7932         * config/pa/tm-hppa.h: Update.
7933         * config/pa/tm-hppa64.h: Update.
7934         * config/sparc/tm-sp64.h: Update.
7935         * config/sparc/tm-sparc.h: Update.
7936         * config/sparc/tm-sparclet.h: Update.
7937         * config/z8k/tm-z8k.h: Update.
7938
7939 2002-06-14  Andrew Cagney  <cagney@redhat.com>
7940
7941         * Makefile.in (i386_linux_tdep_h): Define.
7942         (i386_tdep_h, i387_tdep_h): Define.
7943         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7944         $(i386_tdep_h) and $(i387_tdep_h).
7945         * i386-linux-nat.c: Include "i386-linux-tdep.h".
7946
7947 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
7948
7949         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7950         Already covered by the default.
7951
7952         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7953         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
7954         (i386_gdbarch_init): Initialize long_double_format and long_double
7955         bit.
7956
7957         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7958         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
7959         Move these to ...
7960         * config/i386/i386sol2.mh: ... here.
7961         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7962         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7963         (SIGCONTEXT_PC_OFFSET): Remove define.
7964         (IN_SIGTRAMP): Remove define.
7965         * i386-sol2-tdep.c: New file.
7966         
7967         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7968         * config/i386/tm-i386nw.h: Removed.
7969
7970         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7971         USE_STRUCT_CONVENTION): Remove defines.
7972         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7973         (get_longjmp_target): Remove prototype.
7974         (IN_SIGTRAMP): Remove define.
7975         (i386bsd_in_sigtramp): Remove prototype.
7976         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7977         function.  Update comment accordingly
7978         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7979         (FRAME_SAVED_PC): Remove define.
7980         (i386bsd_frame_saved_pc): Remove prototype.
7981         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7982         GET_LONGJMP_TARGET): Remove defines.
7983         (get_longjmp_target): Remove prototype.
7984         (IN_SIGTRAMP): Remove define.
7985         (i386bsd_in_sigtramp): Remove prototype.
7986         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7987         function.  Update comment accordingly
7988         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7989         (FRAME_SAVED_PC): Remove define.
7990         (i386bsd_frame_saved_pc): Remove prototype.
7991         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7992         Remove prototype.
7993         (USE_STRUCT_CONVENTION): Remove prototype.
7994         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7995         declaration.
7996         (_initialize_i386bsd_nat): Revise logic to determine some
7997         constants at compile time when compiling a native GDB.  Warn if
7998         things don't match up with what we expect.
7999         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8000         Remove variables.
8001         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8002         to use date stored in `struct gdbarch_tdep'.
8003         (i386bsd_sigcontext_offset): Remove varaible.
8004         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8005         stored in `struct gdbarch_tdep'.
8006         (i386bsd_frame_saved_pc): Make static.
8007         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8008         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8009         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8010         i386fbsd4_sc_pc_offset): New variables.
8011         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8012         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8013         functions.
8014         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8015         functions.
8016         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8017         Modify the value of i386fbsd_sigtramp_start and
8018         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8019         i386fbsd_sigtramp_end.
8020         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8021         function.
8022
8023         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8024         define to i386-linux-tdep.h.
8025         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8026         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8027         defines.
8028         (i386_linux_register_name, i386_linux_register_byte,
8029         i386_linux_register_raw_size): Remove prototypes.
8030         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8031         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8032         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8033         TARGET_WRITE_PC): Remove defines.
8034         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8035         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8036         i386_linux_write_pc): Remove prototypes.
8037         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8038         (get_longjmp_target): Remove prototype.
8039         * i386-linux-tdep.h: New file.
8040         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8041         * i386-linux-tdep.c: Include "i386-tdep.h" and
8042         "i386-linux-tdep.h".
8043         (i386_linux_register_name, i386_linux_register_byte,
8044         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8045         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8046         Make static.
8047         (i386_linux_init_abi): New function.
8048         (_initialize_i386_linux_tdep): New function.
8049
8050         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8051         (i386_saved_pc_after_call): Remove prototype.
8052         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8053         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8054         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8055         (i386_register_name, i386_stab_reg_to_regnum,
8056         i386_dwarf_reg_to_regnum): Remove prototypes.
8057         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8058         SIZEOF_SSE_REGS): Remove defines.
8059         (REGISTER_BYTES): Remove define.
8060         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8061         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8062         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8063         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8064         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8065         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8066         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8067         (get_longjmp_target): Remove prototype.
8068         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8069         (sigtramp_saved_pc): Remove define.
8070         (i386v4_sigtramp_saved_pc): Remove prototype.
8071         * config/i386/tm-go32.h (FRAME_CHAIN,
8072         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8073         (i386go32_frame_saved_pc): Remove prototype.
8074         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8075         (get_longjmp_target): Remove prototype.
8076         * i386-tdep.h: Include "osabi.h".
8077         (enum i386_abi): Removed.
8078         (enum struct_return): New enum.
8079         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8080         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8081         sc_pc_offset members.
8082         (i386_gdbarch_register_os_abi): Remove prototype.
8083         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8084         I386_SSE_NUM_REGS): New defines.
8085         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8086         I386_SSE_SIZEOF_REGS): New defines.
8087         (i386_register_name, i386_register_byte, i386_register_raw_size):
8088         New prototypes.
8089         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8090         (i386bsd_sigtramp_saved_pc): New prototype.
8091         * i386-tdep.c: Don't include "elf-bfd.h".
8092         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8093         i386_frame_chain, i386_saved_pc_after_call): Make static.
8094         (i386_frame_saved_pc): Rewrite to call architecture dependent
8095         function to deal with signal handlers.  Make static.
8096         (i386go32_frame_saved_pc): Removed.
8097         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8098         Removed.
8099         (i386_get_longjmp_target): New function.
8100         (default_struct_convention, pcc_struct_convention,
8101         reg_struct_convention, valid_conventions, struct_convention): New
8102         variables.
8103         (i386_use_struct_convention): New function.
8104         (i386v4_sigtramp_saved_pc): Renamed to
8105         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8106         (i386_pc_in_sigtramp): New function.
8107         (i386_abi_names): Removed.
8108         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8109         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8110         Removed.
8111         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8112         i386_gdbarch_register_os_abi): Removed.
8113         (struct i386_abi_handler): Removed.
8114         (i386_abi_handler_list): Removed.
8115         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8116         functions.
8117         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8118         i386_nw_init_abi): New functions.
8119         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8120         Use set_gdbarch_xxx() calls instead of relying on macros for a
8121         number of calls.
8122         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8123         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8124         Register the various architecture variants defined in this file.
8125
8126 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8127
8128         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8129         (struct main_type): Remove arg_types member.  Update comments for
8130         struct field.
8131         (TYPE_ARG_TYPES): Remove.
8132         (TYPE_FN_FIELD_ARGS): Update.
8133         (smash_to_method_type): Update prototype.
8134
8135         * c-typeprint.c (cp_type_print_method_args): Take method type
8136         instead of argument list.  Use new argument layout.  Simplify.
8137         (c_type_print_args): Use new argument layout.  Simplify.
8138         (c_type_print_base): Update call to cp_type_print_method_args.
8139         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8140         argument; use die->type instead.  Update call to
8141         smash_to_method_type.
8142         (read_structure_scope): Update call to dwarf2_add_member_fn.
8143         * gdbtypes.c (allocate_stub_method): Update comment.
8144         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8145         Use new argument layout.
8146         (check_stub_method): Use new argument layout.  Don't count
8147         void as an argument.
8148         (print_arg_types): Update comments.  Use new argument layout.
8149         (recursive_dump_type): Don't print arg_types member.
8150         * hpread.c (hpread_read_struct_type): Use new argument layout.
8151         (fixup_class_method_type): Likewise.
8152         (hpread_type_lookup): Likewise.
8153         * stabsread.c (read_type): Update calls to read_args and
8154         smash_to_method_type.
8155         (read_args): Use new argument layout.  Simplify.
8156         * valops.c (typecmp): Use new argument layout.  Update parameters
8157         and comments.  Simplify.
8158         (hand_function_call): Use new argument layout.
8159         (search_struct_method): Update call to typecmp.
8160         (find_overload_match): Use new argument layout.
8161
8162 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8163
8164         * NEWS: Mention multithreaded debug support for gdbserver.
8165
8166 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8167
8168         * MAINTAINERS: Mention NEWS.
8169
8170 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8171
8172         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8173         (struct mips_objfile_private, compare_pdr_entries): New.
8174         (non_heuristic_proc_desc): Read the ".pdr" section if it
8175         is present.
8176
8177 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8178
8179         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8180         (arm_debug): New static variable.
8181         (_initialize_arm_tdep): Add ``set debug arm'' command.
8182
8183 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8184
8185         * Makefile.in (sim_arm_h): Define.
8186         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8187         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8188         (arm_register_sim_regno): New function, map an internal REGNUM
8189         onto a simulator register number.
8190         (arm_gdbarch_init): Set register_sim_regno.
8191
8192 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8193
8194         * MAINTAINERS: Add self.
8195
8196 2002-06-11  Jim Blandy  <jimb@redhat.com>
8197
8198         * source.c (source_info): Mention whether the symtab has
8199         information about preprocessor macros.
8200
8201         Call the command `info macro', not `show macro'.
8202         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8203         Fix error message.
8204         (_initialize_macrocmd): Register `info_macro_command' in
8205         `infolist', not `showlist'.
8206
8207 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8208
8209         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8210         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8211         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8212         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8213         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8214         unconditionally.
8215         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8216         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8217         (_initialize_mips_tdep): Remove dead code.
8218         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8219         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8220         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8221         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8222         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8223         MIPS_LAST_FP_ARG_REGNUM): Remove.
8224
8225 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8226
8227         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8228         (unwind_tmp_obstack_free, parse_frame_info)
8229         (update_context, cfi_read_fp, cfi_write_fp)
8230         (cfi_frame_chain, cfi_init_extra_frame_info)
8231         (cfi_virtual_frame_pointer): Use the above function.
8232         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8233
8234 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8235
8236         * v850-tdep.c (v850_type_is_scalar): New function.
8237         (v850_use_struct_convention): Match current gcc implementation
8238         as close as possible.
8239         (v850_push_arguments): Fix stack_offset handling.  Don't write
8240         struct_addr into register.  This is done by v850_store_struct_return.
8241         (v850_extract_return_value): Care for structs.
8242         (v850_store_return_value): Ditto.
8243         (v850_store_struct_return): Actually write address.
8244
8245 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8246
8247         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8248         without debug information too.
8249
8250 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8251
8252         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8253         Make multi-arch pure.
8254         * gdbarch.h, gdbarch.c: Re-generate.
8255         * arm-tdep.c (arm_print_float_info): Update.
8256         * arch-utils.h (default_print_float_info): Update.
8257         * arch-utils.c (default_print_float_info): Update.
8258         * infcmd.c (float_info): Update call.
8259
8260 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8261
8262         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8263         the front of the initialize list.
8264
8265 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8266
8267         * infrun.c (struct inferior_status): Replace fields
8268         selected_frame_address and selected_level with field
8269         selected_frame_id.
8270         (save_inferior_status): Update.  Use get_frame_id.
8271         (struct restore_selected_frame_args): Delete.
8272         (restore_selected_frame): Update.  Use frame_find_by_id.
8273         (restore_inferior_status): Update.
8274
8275         * breakpoint.h (struct breakpoint): Change type of
8276         watchpoint_frame to frame_id.
8277         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8278         call to get_current_frame.
8279         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8280         get_current_frame.
8281         (watchpoint_check): Use frame_find_by_id.
8282
8283         * frame.h (record_selected_frame): Delete declaration.
8284         * stack.c (record_selected_frame): Delete function.
8285         
8286         * frame.h (struct frame_id): Define.
8287         (get_frame_id): Declare.
8288         (frame_find_by_id): Declare.
8289         * frame.c (frame_find_by_id): New function.
8290         (get_frame_id): New function.
8291
8292 2002-06-10  Andrey Volkov <avolkov@transas.com>
8293
8294         * ser-e7kpc.c: Fix duplicated define and call of 
8295         _initialize_ser_e7000pc
8296             
8297 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8298
8299         * signals/signals.c (target_signal_from_host): Fix #ifdef
8300         SIGRTMIN case.
8301         (do_target_signal_to_host): Likewise.
8302
8303 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8304
8305         * mips-tdep.c (mips_find_abi_section): New function.
8306         (mips_gdbarch_init): Call it.
8307
8308 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8309
8310         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8311         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8312         after Andrew's 2002-06-08 gdbarch change.
8313
8314 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8315
8316         * i386-linux-nat.c (suppy_gregset): Don't supply
8317         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8318         register cache.
8319         (fill_gregset): Don't fetch it under the same circumstances.
8320
8321 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8322
8323         * Makefile.in (callback_h): Define.
8324         (remote_sim_h): Update path to remote-sim.h.
8325         (remote-rdp.o): Add $(callback_h).
8326         (remote-sim.o): Use $(callback_h).
8327         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8328         * remote-rdp.c: Include "gdb/callback.h".
8329
8330 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8331
8332         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8333         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8334
8335 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8336
8337         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8338         * rdi-share/serpardr.c: Ditto.
8339         * rdi-share/unixcomm.c: Ditto.
8340         * rdi-share/serdrv.c: Ditto.
8341         * rdi-share/hostchan.h: Ditto.
8342         * rdi-share/hostchan.c: Ditto.
8343         * rdi-share/host.h: Ditto.
8344         * rdi-share/devsw.c: Ditto.
8345
8346         * objfiles.h: Change type of obj_private to void pointer.
8347         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8348         strcmp instead of STREQ, use LONGEST, do not use PTR
8349         * somsolib.c: Ditto.
8350
8351         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8352         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8353         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8354
8355 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8356
8357         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8358         (default_get_saved_register): Delete function.
8359         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8360         generic_unwind_get_saved_register.
8361         * gdbarch.h, gdbarch.c: Re-generate.
8362         
8363 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8364
8365         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8366         generic_func_frame_chain_valid.
8367         * gdbarch.h, gdbarch.c: Re-generate.
8368         * blockframe.c (generic_func_frame_chain_valid): Only check
8369         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8370         passing FP to PC_IN_CALL_DUMMY.
8371         Fix PR gdb/360.
8372
8373 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8374
8375         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8376         (register_gdbarch_data): Initialize init_p.
8377         (gdbarch_data): Initialize data pointer using the init function.
8378         (init_gdbarch_data): Delete function.
8379         (gdbarch_update_p): Update.
8380         (initialize_non_multiarch): Update.
8381         (struct gdbarch): Add field initialized_p.
8382         * gdbarch.h, gdbarch.c: Re-generate.
8383
8384 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8385
8386         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8387         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8388         better do the things actually here.
8389         * x86-64-tdep.c (x86_64_register_name2nr): New.
8390         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8391         (x86_64_gdbarch_init): Respect the above change.
8392         * x86-64-tdep.h (x86_64_register_name2nr)
8393         (x86_64_register_nr2name): Add prototypes.
8394         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8395
8396 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8397
8398         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8399         Delete extra braces and re-indent.
8400         (d10v_store_return_value): Char return values
8401         must be shifted over by one byte in R0.
8402         (d10v_extract_return_value): Delete extra braces, re-indent.
8403
8404 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8405
8406         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8407         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8408         (d10v_integer_to_address): Rewrite.
8409         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8410         the d10v specific functions which take care of converting to the
8411         correct space.
8412
8413 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8414
8415         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8416         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8417
8418 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8419
8420         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8421         includes.
8422         * config/tm-linux.h: Ditto.
8423         * config/alpha/tm-alphalinux.h: Ditto.
8424         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8425         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8426         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8427         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8428         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8429         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8430         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8431         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8432         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8433         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8434         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8435         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8436         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8437         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8438         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8439         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8440         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8441         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8442         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8443         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8444         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8445         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8446         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8447         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8448         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8449         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8450         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8451         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8452         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8453         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8454         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8455         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8456         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8457         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8458         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8459         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8460         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8461
8462 2002-05-04  Aidan Skinner <aidan@velvet.net>
8463
8464         * ada-exp.tab.c: New file
8465         * ada-exp.y: New file
8466         * ada-lang.c: New file
8467         * ada-lang.h: New file
8468         * ada-lex.c: New file
8469         * ada-lex.l: New file
8470         * ada-tasks.c: New file
8471         * ada-typeprint.c: New file
8472         * ada-valprint.c: New file
8473         
8474 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8475
8476         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8477         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8478
8479 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8480
8481         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8482         insetead of ppc-linux-tdep.o.
8483         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8484         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8485
8486 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8487
8488         2002-05-07 Christian Groessler <chris@groessler.org>
8489         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8490         bit register contents for little endian hosts.
8491
8492 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8493
8494         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8495         any maintainer.
8496
8497 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8498
8499         * gdbarch.h: Regenerate.
8500
8501 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8502
8503         * MAINTAINERS: Add everyone to write-after-approval list.
8504
8505 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8506
8507         * stack.c (frame_info): Use frame_register_unwind instead of
8508         saved_regs.  Mention when the SP is on the stack or in a register.
8509
8510         * frame.h (frame_register_unwind_ftype): Define.  Document.
8511         (struct frame_info): Add field register_unwind and
8512         register_unwind_cache.
8513         (frame_register_unwind): Declare.
8514         (generic_unwind_get_saved_register): Declare.
8515
8516         * frame.c (frame_register_unwind): New function.
8517         (generic_unwind_get_saved_register): New function.
8518
8519         * blockframe.c (generic_call_dummy_register_unwind): New function.
8520         (frame_saved_regs_register_unwind): New function.
8521         (set_unwind_by_pc): New function.
8522         (create_new_frame): New function.
8523         (get_prev_frame): New function.
8524
8525 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8526
8527         * a29k-share/: Delete directory.
8528         * remote-vx29k.c: Delete file.
8529
8530 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8531
8532         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8533         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8534
8535 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8536
8537         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8538         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8539         (sparc64nbsd-nat.o)
8540         (sparcnbsd-nat.o)
8541         (sparcnbsd-tdep.o): New dependency lists.
8542         * NEWS: Note new UltraSPARC NetBSD native configuration.
8543         * configure.host (sparc64-*-netbsd*): New host.
8544         * configure.tgt (sparc-*-netbsdelf*)
8545         (sparc-*-netbsd*): Set gdb_target to nbsd.
8546         (sparc64-*-netbsd*): New target.
8547         * sparc64nbsd-nat.c: New file.
8548         * sparcnbsd-nat.c: New file.
8549         * sparcnbsd-tdep.c: New file.
8550         * sparcnbsd-tdep.h: New file.
8551         * config/sparc/nbsd.mt: New file.
8552         * config/sparc/nbsd64.mh: New file.
8553         * config/sparc/nbsd64.mt: New file.
8554         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8555         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8556         (HOST_IPC): Remove.
8557         * config/sparc/nbsdaout.mt: Remove.
8558         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8559         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8560         (HOST_IPC): Remove.
8561         * config/sparc/nbsdelf.mt: Remove.
8562         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8563         sparc-nat.c compatiblity defines.
8564         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8565         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8566         * config/sparc/tm-nbsd64.h: New file.
8567         * config/sparc/tm-nbsdaout.h: Remove.
8568         * config/sparc/xm-nbsd.h: Remove.
8569
8570 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8571
8572         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8573         * sparc-tdep.c: Include osabi.h.
8574         (gdbarch_tdep): Add osabi member.
8575         (_initialize_sparc_tdep): Use gdbarch_register.
8576         (sparc_gdbarch_init): Use generic OS ABI framework.
8577         (sparc_dump_tdep): New function.
8578
8579 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8580
8581         * corefile.c (do_captured_read_memory_integer): Return non-zero
8582         result.
8583         (safe_read_memory_integer): Copy result of memory read when
8584         status is non-zero.  Also, add comments.
8585
8586 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8587
8588         * Makefile.in (ppc_tdep_h): Define.
8589         (ppc-linux-nat.o)
8590         (ppc-linux-tdep.o)
8591         (rs6000-tdep.o): Use $(ppc_tdep_h).
8592         (ppc-sysv-tdep.o)
8593         (ppcnbsd-nat.o)
8594         (ppcnbsd-tdep.o): New dependency lists.
8595         * ppc-tdep.h: Use generic OS ABI framework.
8596         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8597         (ppc_linux_init_abi): New functions.
8598         (ppc_sysv_abi_broken_use_struct_convention)
8599         (ppc_sysv_abi_use_struct_convention)
8600         (ppc_sysv_abi_push_arguments): Move to...
8601         * ppc-sysv-tdep.c: ...here.
8602         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8603         * rs6000-tdep.c (process_note_abi_tag_sections)
8604         (get_elfosabi): Remove.
8605         (rs6000_gdbarch_init): Use generic OS ABI framework.
8606         (rs6000_dump_tdep): New function.
8607         (_initialize_rs6000_tdep): Use gdbarch_register.
8608         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8609         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8610         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8611         of ppc-linux-tdep.o.
8612         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8613         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8614         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8615         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8616         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8617         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8618
8619 2002-05-29  Jim Blandy  <jimb@redhat.com>
8620
8621         * macroscope.c (default_macro_scope): Put `void' in empty argument
8622         list.
8623
8624 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8625
8626         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8627         * arch-utils.c: Include "sim-regno.h".
8628         * gdbarch.sh: Don't include "sim-regno.h".
8629         * gdbarch.h, gdbarch.c: Regenerate.
8630         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8631         here.
8632         * arch-utils.h (legacy_register_sim_regno): To here.
8633         * remote-sim.c (legacy_register_sim_regno): Move function from
8634         here.
8635         * arch-utils.c (legacy_register_sim_regno): To here.
8636
8637 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8638
8639         * sim-regno.h: New file.
8640         * Makefile.in (sim_regno_h): Define.
8641         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8642         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8643         (legacy_register_sim_regno): New function.
8644         (one2one_register_sim_regno): New function.
8645         (gdbsim_fetch_register): Rewrite.
8646         (gdbsim_store_register): Only store a register when
8647         REGISTER_SIM_REGNO is valid.
8648         * d10v-tdep.c: Include "sim-regno.h".
8649         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8650         (d10v_ts3_register_sim_regno): Ditto.
8651         * gdbarch.sh: Include "sim-regno.h".
8652         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8653         * gdbarch.h, gdbarch.c: Regenerate.
8654         * arch-utils.h (default_register_sim_regno): Delete declaration.
8655         * arch-utils.c (default_register_sim_regno): Delete function.
8656
8657 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8658
8659         * ppcnbsd-nat.c: Rewrite.
8660         * ppcnbsd-tdep.c: New file.
8661         * ppcnbsd-tdep.h: New file.
8662         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8663         solib.o, and solib-svr4.o.
8664         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8665         nbsd-tdep.o, and corelow.o.
8666
8667 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8668
8669         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8670         `tr' and `sed'.  Mention that `broken' targets are not expected to
8671         build.
8672
8673 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8674
8675         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8676         Let PC point right after the prologue before looking up symbols.
8677         
8678 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8679
8680         * i386-tdep.c (i386_register_virtual_type): Return 
8681         builtin_type_vec128i for SSE registers.
8682
8683         * gdbtypes.h (builtin_type_vec128i): Declare.
8684
8685         * gdbtypes.c (build_builtin_type_vec128i): New function.
8686         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8687         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8688         (build_gdbtypes): Initialize new builtin vector types.
8689         (_initialize_gdbtypes): Register new vector types with gdbarch.
8690
8691 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8692
8693         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8694         since it has been multi-arch'd.
8695         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8696         Move Alpha and VAX multi-arch news entries to same section
8697         as other multi-arch news.
8698
8699 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8700
8701         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8702         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8703         static.  Rename some register numbers to put them in ns32k-tdep
8704         private namespace.
8705         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8706         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8707         functions.
8708         (_initialize_ns32k_tdep): Use gdbarch_register.
8709         * ns32k-tdep.h: New file.
8710         * ns32knbsd-tdep.c: New file.
8711         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8712         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8713         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8714         REGISTER_BYTES, REGISTER_BYTE): Remove.
8715         * config/ns32k/tm-ns32k.h: New file.
8716         * config/ns32k/tm-umax.h: Remove.
8717
8718 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8719
8720         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8721         ns32k_store_struct_return, ns32k_extract_return_value,
8722         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8723         functions.
8724         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8725         ns32k_saved_pc_after_call.
8726         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8727         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8728         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8729         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8730         ns32k_extract_struct_value_address.
8731
8732 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8733
8734         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8735         ns32k_fix_call_dummy): New.
8736         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8737         ns32k_call_dummy_words.
8738         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8739         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8740         CALL_DUMMY_NARGS): Remove.
8741         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8742
8743 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8744
8745         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8746         ns32k_frame_saved_pc, ns32k_frame_args_address,
8747         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8748         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8749         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8750         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8751         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8752         (BREAKPOINT): Remove..
8753         (FRAME_CHAIN): Define as ns32k_frame_chain.
8754         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8755         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8756         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8757         (FRAME_FIND_SAVED_REGS): Remove.
8758         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8759         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8760         (POP_FRAME): Define as ns32k_pop_frame.
8761
8762 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8763
8764         * ns32k-tdep.c (ns32k_register_byte_32082,
8765         ns32k_register_byte_32382, ns32k_register_raw_size,
8766         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8767         functions.
8768         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8769         ns32k_register_byte_32382.
8770         * config/ns32k/tm-umax.h: Update copyright years.
8771         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8772         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8773         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8774         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8775         (ns32k_get_enter_addr): Fix prototype.
8776
8777 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8778
8779         * ns32k-tdep.c: Update copyright years.
8780         (ns32k_register_name_32082): New function.
8781         (ns32k_register_name_32382): Ditto.
8782         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8783         (REGISTER_NAME): Define as ns32k_register_name_32382.
8784         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8785         (REGISTER_NAME): Define as ns32k_register_name_32082.
8786
8787 2002-05-24  Jim Blandy  <jimb@redhat.com>
8788
8789         * dwarf2read.c (free_line_header): Use xfree, not free.
8790
8791 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
8792
8793         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8794         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8795
8796 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8797
8798         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8799
8800 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8801
8802         From Ross Alexander at NEC Europe:
8803         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8804
8805 2002-05-23  Michael Snyder  <msnyder@redhat.com>
8806
8807         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8808         for input, rather than parse_and_eval_address.  
8809
8810 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8811
8812         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8813         * Makefile.in (sim_d10v_h): Update definition.
8814
8815 2002-05-24  Andrew Cagney  <cagney@redhat.com>
8816
8817         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8818         change `2002-05-22 Michael Snyder' below.
8819         (d10v_push_arguments): Ditto.
8820         (d10v_extract_return_value): Ditto.
8821
8822 2002-05-23  Jim Blandy  <jimb@redhat.com>
8823
8824         * macrotab.c (check_for_redefinition): Don't complain if the new
8825         definition is the same as the previous one.  Take more arguments
8826         to allow the comparison.
8827         (macro_define_object, macro_define_function): Pass more arguments
8828         to check_for_redefinition.
8829
8830 2002-05-22  Michael Snyder  <msnyder@redhat.com>
8831
8832         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8833         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8834         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8835         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8836         Don't bail if return_pc is PC_IN_CALL_DUMMY.
8837         Add a temp variable to save a call (and a memory read).
8838         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8839         if possible (so that PC_IN_CALL_DUMMY will work).
8840
8841 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
8842
8843         * MAINTAINERS: Remove status `OBSOLETE' from v850.
8844
8845 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
8846
8847         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8848         fde->cie_ptr.
8849         (dwarf2_build_frame_info): Corrected handling of eh_frame.
8850         (dwarf2_build_frame_info): Add offset to fde->initial_location 
8851         so that frames of shared libraries are mapped correctly.
8852         (execute_stack_op): Change type of 'result' from ULONGEST to
8853         CORE_ADDR.
8854         
8855 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8856
8857         * config/alpha/tm-nbsd.h: Include solib.h.
8858
8859 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8860
8861         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8862         assumptions about the host's byte order.
8863
8864 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8865
8866         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8867         to dependency list.
8868         * alphanbsd-tdep.c: Include solib-svr4.h.
8869         * shnbsd-tdep.c: Ditto.
8870
8871 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8872
8873         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8874         nbsd-tdep.h to dependency list.
8875         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8876         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8877         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8878         nbsdaout.mh and nbsdelf.mh consistently.
8879         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8880         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8881         nbsdaout.mt and nbsdelf.mh consistently.
8882         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
8883         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8884         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8885         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
8886         a.out shared library stuff from here...
8887         * config/nm-nbsdaout.h: ...to here.
8888         * config/tm-nbsd.h: Remove.
8889         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8890         * config/arm/nbsd.mh: Remove.
8891         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8892         nbsd-tdep.o.
8893         * config/arm/nbsdaout.mh: New file. 
8894         * config/arm/nbsdelf.mh: New file.
8895         * config/arm/nm-nbsdaout.h: New file.
8896         * config/i386/nbsd.mh: Remove.
8897         * config/i386/nbsd.mt: Remove.
8898         * config/i386/nbsdaout.mh: New file.
8899         * config/i386/nbsdaout.mt: New file.
8900         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8901         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8902         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
8903         i386_register_u_addr): Remove.
8904         * config/i386/nm-nbsdaout.h: New file.
8905         * config/i386/nm-nbsdelf.h: Remove.
8906         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8907         (USE_STRUCT_CONVENTION): Remove.
8908         * config/i386/tm-nbsdaout.h: New file.
8909         * config/i386/tm-nbsdelf.h: Remove.
8910         * config/m68k/nbsd.mh: Remove.
8911         * config/m68k/nbsd.mt: Remove.
8912         * config/m68k/nbsdaout.mh: New file.
8913         * config/m68k/nbsdaout.mt: New file. 
8914         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8915         * config/m68k/nm-nbsdaout.h: New file.
8916         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8917         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8918         * config/ns32k/nbsd.mh: Remove.
8919         * config/ns32k/nbsd.mt: Remove. 
8920         * config/ns32k/nbsdaout.mh: New file.
8921         * config/ns32k/nbsdaout.mt: New file.
8922         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
8923         * config/ns32k/nm-nbsdaout.h: New file.
8924         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
8925         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8926         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8927         (SVR4_SHARED_LIBS): Remove.
8928         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8929         * config/sparc/nbsd.mh: Remove.
8930         * config/sparc/nbsd.mt: Remove.
8931         * config/sparc/nbsdaout.mh: New file.
8932         * config/sparc/nbsdaout.mt: New file.
8933         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8934         * config/sparc/nbsdelf.mt: New file.
8935         * config/sparc/nm-nbsdaout.h: New file.   
8936         * config/sparc/nm-nbsdelf.h: Remove.
8937         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8938         * config/sparc/tm-nbsdaout.h: New file.
8939
8940 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8941
8942         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8943         mipsnbsd-tdep.c
8944         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8945
8946 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8947
8948         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8949         shnbsd-nat.c.
8950         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8951
8952 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8953
8954         * NEWS: Note new MIPS NetBSD native configuration. 
8955         * configure.host (mips*-*-netbsd*): New host. 
8956         * configure.tgt (mips*-*-netbsd*): New target. 
8957         * mipsnbsd-nat.c: New file.
8958         * mipsnbsd-tdep.c: New file.
8959         * mipsnbsd-tdep.h: New file.
8960         * config/mips/nbsd.mh: New file.
8961         * config/mips/nbsd.mt: New file.
8962         * config/mips/nm-nbsd.h: New file.
8963         * config/mips/tm-nbsd.h: New file.
8964
8965 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8966
8967         * Makefile.in (SFILES): Add osabi.c.
8968         (COMMON_OBS): Add osabi.o.
8969         (osabi.o): New dependency list.
8970         * osabi.c: New file.
8971         * osabi.h: New file.
8972         * doc/gdbint.texinfo: Document new generic OS ABI framework.
8973
8974         * Makefile.in (alpha_tdep_h): Define and use instead of
8975         alpha-tdep.h.
8976         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8977         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8978         Remove.
8979         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8980         * alpha-tdep.h: Include osabi.h.
8981         (alpha_abi): Remove.
8982         (gdbarch_tdep): Use generic OS ABI framework.
8983         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8984         gdbarch_register_osabi.
8985         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8986         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8987         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8988
8989         * Makefile.in (sh_tdep_h): Add osabi.h.
8990         * sh-tdep.h (sh_osabi): Remove.
8991         (gdbarch_tdep): Use generic OS ABI framework.
8992         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8993         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8994         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8995         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8996
8997         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8998         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8999         gdbarch_register_osabi.
9000         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9001         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9002         (get_elfosabi): Rename to...
9003         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9004         ABI framework support routines.
9005         (arm_gdbarch_init): Use generic OS ABI framework.
9006         (arm_dump_tdep): Likewise.
9007         (_initialize_arm_tdep): Likewise.
9008         * arm-tdep.h: Include osabi.h.
9009         (arm_abi): Remove.
9010         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9011         osabi member.
9012         (arm_gdbarch_register_os_abi): Remove prototype.
9013         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9014         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9015
9016         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9017         * mips-tdep.c: Include osabi.h.
9018         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9019         OS ABI framework.
9020
9021 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9022
9023         * h8300-tdep.c: Fix formatting.
9024
9025 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9026
9027         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9028         printing vector registers.
9029
9030 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9031
9032         From Fernando Nasser:
9033         * remote.c (remote_async_open_1): Re-throw the exception when the
9034         connection fails.
9035         (remote_cisco_open): Ditto.
9036         (remote_open_1): Ditto.
9037
9038 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9039
9040         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9041         (remote_start_remote): Add uiout parameter.  Pass through to
9042         remote_start_remote_dummy.
9043         (remote_open_1): Use catch_exception instead of catch_errors.
9044         (remote_async_open_1): Ditto.
9045         (remote_cisco_open): Ditto.
9046
9047 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9048
9049         * remote.c (remote_start_remote): Replace PTR with void pointer.
9050         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9051         static.
9052
9053 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9054
9055         * gdb_indent.sh: Allow the script to be run in the sim directory.
9056
9057 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9058
9059         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9060         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9061
9062         * corelow.c (core_open): Only call set_gdbarch_from_file if
9063         exec_bfd is NULL.
9064
9065 2002-05-17  Andrey Volkov <avolkov@transas.com>
9066
9067         * h8300-tdep.c: Add support of EXR register
9068         * config/h8300/tm-h8300.h: Ditto. 
9069         
9070 2002-05-17  Andrey Volkov <avolkov@transas.com>
9071
9072         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9073         
9074 2002-05-17  Andrey Volkov <avolkov@transas.com>
9075
9076         * h8300-tdep.c: Change literal regnums to REGNO.
9077         
9078 2002-05-17  Jim Blandy  <jimb@redhat.com>
9079
9080         * NEWS: Note addition of macro support.
9081
9082         Expand preprocessor macros in C expressions.
9083         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9084         (scan_macro_expansion, scanning_macro_expansion,
9085         finished_macro_expansion): New function declarations.
9086         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9087         variable declarations.
9088         * parser-defs.h (expression_context_pc): New declaration.
9089         * parse.c (expression_context_pc): New variable.
9090         (parse_exp_1): Set expression_context_pc, as well as
9091         expression_context_block.
9092         * c-exp.y (yylex): If we're not already reading the result of a
9093         macro expansion, try to macro-expand the next token.  When we're
9094         done scanning a macro expansion, switch back to the mainline text.
9095         Commas and `if's in a macro's expansion don't terminate the input.
9096         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9097         (macro_original_text, macro_expanded_text,
9098         expression_macro_lookup_func, expression_macro_lookup_baton): New
9099         variables.
9100         (scan_macro_expansion, scanning_macro_expansion,
9101         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9102         c_preprocess_and_parse): New functions.
9103         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9104         c_preprocess_and_parse, instead of c_parse.
9105         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9106         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9107
9108 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9109
9110         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9111         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9112         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9113
9114 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9115
9116         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9117
9118 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9119
9120         * Makefile.in (sh_tdep_h): Define and use.
9121         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9122         register enum): Move to...
9123         * * sh-tdep.h: ...here.
9124         * sh-tdep.c: Include sh-tdep.h.
9125         * sh3-rom.c: Likewise.
9126         * shnbsd-tdep.c: Likewise.
9127
9128 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9129
9130         * arm-tdep.c: Spelling fix in comment.
9131
9132 2002-05-16  Jim Blandy  <jimb@redhat.com>
9133
9134         Add commands for manually expanding macros and showing their
9135         definitions.
9136         * macrocmd.c, macroscope.c, macroscope.h: New files.
9137         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9138         (macroscope_h): New variable.
9139         (HFILES_NO_SRCDIR): Add macroscope.h.
9140         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9141         (macroscope.o, macrocmd.o): New rules.
9142
9143         Teach the Dwarf 2 reader to read macro information.
9144         * dwarf2read.c: #include "macrotab.h".
9145         (dwarf_macinfo_buffer): New variable.
9146         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9147         dwarf_macinfo_size.
9148         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9149         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9150         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9151         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9152         dwarf2_macro_spaces_in_definition): New complaints.
9153         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9154         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9155         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9156         the partial symbol table.
9157         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9158         from what's recorded in the partial symbol table.
9159         (read_file_scope): If the compilation unit has a
9160         `DW_AT_macro_info' attribute, read its macro information.
9161         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9162
9163 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9164
9165         Fix PR gdb/546
9166         * ser-tcp.c: Don't include <netinet/udp.h>.
9167
9168 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9169
9170         * MAINTAINERS: Update my email address.
9171
9172 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9173
9174         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9175         include file of the same name.
9176
9177 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9178
9179         * configure.tgt: Mark v850 as multi-arched.
9180         * config/v850/tm-v850.h: Remove file.
9181         * config/v850/v850.mt: Eliminate TM_FILE.
9182
9183 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9184
9185         * v850-tdep.c: Full multi-arch.
9186         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9187         Define GDB_MULTI_ARCH to 2.
9188
9189 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9190
9191         * p-exp.y (current_type): New static variable.
9192         Carries the type of the expression at the position that is parsed.
9193         (push_current_type, pop_current_type): Two new functions. Used
9194         to store/restore current_type in expression on specific tokens.
9195         (search_field): New static variable. Set to one after parsing a point
9196         as at that point only a FIELDNAME token should be searched.
9197         (FIELDNAME): New token. After a point only a token belonging to 
9198         current_type type definition is allowed.
9199         (all over token rules): reset and change current_type according
9200         to rules.
9201         (exp '[' rule): insert implicit array index field if
9202         exp is a pascal string type.
9203
9204 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9205
9206         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9207         frame info.  Use frame_info's saved_regs instead of matching member
9208         in extra_frame_info throughout.
9209         (v850_frame_init_saved_regs): New function.
9210         (v850_init_extra_frame_info): Move most functionality into
9211         v850_frame_init_saved_regs().
9212         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9213         (v850_frame_find_saved_regs): Remove declaration.
9214         (FRAME_FIND_SAVED_REGS): Remove definition.
9215         (v850_frame_init_saved_regs): Add declaration.
9216         (FRAME_INIT_SAVED_REGS): Add definition.
9217
9218 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9219
9220         * v850-tdep.c: Begin multi-arch'ing v850.
9221         (v850_target_architecture_hook): Remove function.
9222         (v850_gdbarch_init): New function.  Add code previously in
9223         v850_target_architecture_hook().
9224         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9225         Call register_gdbarch_init() instead.
9226
9227 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9228
9229         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9230         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9231         (fixup_class_method_type): Likewise.
9232
9233 2002-05-15  Jim Blandy  <jimb@redhat.com>
9234
9235         Add macro structures to GDB's symbol tables.  Nobody puts anything
9236         in them yet.
9237         * symtab.h (struct symtab): New member: `macro_table'.
9238         * buildsym.h (pending_macros): New global variable.
9239         * buildsym.c: #include "macrotab.h".
9240         (buildsym_init): Initialize `pending_macros'.
9241         (end_symtab): If we found macro information while reading a CU's
9242         debugging info, do build a symtab structure for it.  Make the
9243         symtab point to the macro information, and clear the
9244         `pending_macros' pointer which held it while we were reading the
9245         debug info.
9246         (really_free_pendings): Free any pending macro table.
9247         * objfiles.h (struct objfile): New member: `macro_cache'.
9248         * objfiles.c (allocate_objfile): Set allocate and free functions
9249         for the macro cache's objstack.
9250         (free_objfile): Empty the macro cache's obstack.
9251         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9252         set new allocate and free functions for it.
9253         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9254         free functions for the macro cache's objstack.  (Why is this
9255         function building its own objfile?)
9256         * symmisc.c (print_objfile_statistics): Print statistics on the
9257         macro bcache.
9258         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9259
9260 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9261
9262         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9263         (REGISTER_U_ADDR): Delete definition.
9264         (arm_register_u_addr): Delete declaration.
9265
9266 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9267
9268         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9269         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9270
9271 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9272
9273         * regcache.c (register_valid): Revise comments refering to "Not
9274         available" and "unavailable".
9275         * frame.c (frame_register_read): Ditto.
9276         * findvar.c (value_of_register): Ditto.
9277
9278 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9279
9280         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9281         (remote-sim.o): Update dependencies.
9282         (d10v-tdep.o): Specify dependencies.
9283         (sim_d10v_h): Define.
9284
9285 2002-05-14  Jim Blandy  <jimb@redhat.com>
9286
9287         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9288         * macrotab.c (macro_lookup_inclusion, find_definition,
9289         new_macro_table): Same.
9290         
9291         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9292         not `! strcmp ()'.  This is a dubious improvement.
9293         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9294
9295         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9296         although it's not necessary, to avoid a warning.
9297
9298 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9299
9300         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9301         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9302         TYPE_INSTANCE_FLAGS.
9303         (struct main_type): New.
9304         (struct type): Move most members to struct main_type.  Change
9305         cv_type and as_type to new type_chain member.  Add instance_flags.
9306         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9307         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9308         (finish_cv_type): Remove prototype.
9309         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9310         Set TYPE_CHAIN.
9311         (alloc_type_instance): New function.
9312         (smash_type): New function.
9313         (make_pointer_type, make_reference_type, make_function_type)
9314         (smash_to_member_type, smash_to_method_type): Call smash_type.
9315         (make_qualified_type): New function.
9316         (make_type_with_address_space): Call make_qualified_type.
9317         (make_cv_type): Likewise.
9318         (finish_cv_type): Remove unnecessary function.
9319         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9320         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9321         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9322         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9323         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9324         * hpread.c (hpread_read_struct_type): Likewise.
9325         * stabsread.c (read_struct_type): Likewise.
9326
9327 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9328
9329         * configure.tgt: Add a catch all sh* target, for cases like
9330         sh[2,3,4]-elf and sh-hms.
9331
9332 2002-05-14  Keith Seitz  <keiths@redhat.com>
9333
9334         * event-loop.c (create_file_handler): Don't do anything but
9335         update data when we are given a fd which we are already
9336         monitoring.
9337
9338 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9339
9340         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9341         (update_context): Use __func__ in warnings.
9342         
9343 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9344
9345         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9346         and tcp_close to net_open and net_close.
9347         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9348         using UDP if requested.  Don't try to disable Nagle on UDP
9349         sockets.
9350         * remote.c (remote_serial_open): New function.  Warn about UDP.
9351         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9352
9353 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9354
9355         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9356
9357 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9358
9359         * configure.tgt: Remove sh-hms target.
9360         * MAINTAINERS: Don't list sh-hms as a separate target.
9361
9362 2002-05-13  Jim Blandy  <jimb@redhat.com>
9363
9364         Add first preprocessor macro-expansion files.
9365         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9366         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9367         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9368         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9369         (COMMON_OBS): Add macrotab.o, macroexp.o.
9370         (macroexp.o, macrotab.o): New rules.
9371
9372 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9373
9374         * config/m88k/tm-m88k.h: Update copyright.
9375         (m88k_target_write_pc): Declare
9376         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9377         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9378         (SHIFT_INST_REGS): Update definition.
9379         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9380         using old definition of TARGET_WRITE_PC.
9381         * regcache.c (generic_target_write_pc): Delete code handling
9382         NNPC_REGNUM.
9383         * gdbarch.sh (NNPC_REGNUM): Delete.
9384         * gdbarch.h, gdbarch.c: Regenerate.
9385
9386 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9387
9388         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9389         builtin reg number.
9390
9391 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9392
9393         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9394         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9395         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9396         access macros.
9397         * c-typeprint.c (cp_type_print_method_args): Likewise.
9398         (c_type_print_args): Likewise.
9399         * d10v-tdep.c (d10v_push_arguments): Likewise.
9400         (d10v_extract_return_value): Likewise.
9401         * expprint.c (print_subexp): Likewise.
9402         * gdbtypes.c (lookup_primitive_typename): Likewise.
9403         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9404         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9405         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9406         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9407         (TYPE_VECTOR): Likewise.
9408         * hpread.c (hpread_read_struct_type)
9409         (fix_static_member_physnames, fixup_class_method_type)
9410         (hpread_type_lookup): Likewise.
9411         * mdebugread.c (parse_symbol, parse_type): Likewise.
9412         * p-lang.c (is_pascal_string_type): Likewise.
9413         * valops.c (hand_function_call): Likewise.
9414         * x86-64-tdep.c (classify_argument): Likewise.
9415
9416         * hpread.c (hpread_read_function_type)
9417         (hpread_read_doc_function_type): Call replace_type.
9418         * dstread.c (create_new_type): Delete.
9419         (decode_dst_structure, process_dst_function): Call alloc_type.
9420         Use type access macros.
9421
9422 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9423
9424         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9425         the're not supported by the current architecture.
9426         (i387_fill_fxsave): Likewise.
9427
9428 2002-05-12  Fred Fish  <fnf@redhat.com>
9429
9430         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9431         sect_index_xxx members to index the first slot in section_offsets
9432         if all of the section_offsets are zero.
9433
9434 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9435
9436         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9437         checked in with last change.
9438
9439 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9440
9441         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9442         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9443         config.sub.
9444
9445 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9446
9447         * Makefile.in: Update dependencies.
9448
9449 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9450
9451         * language.c (local_hex_string_custom): Simplify.  Do not depend
9452         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9453
9454         * memattr.c (mem_info_command): Replace calls to
9455         longest_local_hex_string and longest_local_hex_string_custom.
9456         * buildsym.c (make_blockvector): Ditto.
9457         * solib.c (info_sharedlibrary_command): Ditto.
9458         * tracepoint.c (tracepoints_info): Ditto.
9459         * symtab.c (print_msymbol_info): Ditto.
9460
9461         * language.c (local_hex_string): Delete.
9462         (local_hex_string_custom): Delete.
9463         (longest_local_hex_string): Rename to local_hex_string.
9464         (longest_local_hex_string_custom): Rename to
9465         local_hex_string_custom.
9466         * language.h (local_hex_string): Change parameter type to LONGEST.
9467         (local_hex_string_custom): Ditto.
9468         (longest_local_hex_string): Delete declaration.
9469         (longest_local_hex_string_custom): Ditto.
9470
9471         * solib.c: Update copyright.
9472         * memattr.c: Update copyright.
9473         
9474 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9475
9476         * arch-utils.h (legacy_register_to_value): Declare.
9477         (legacy_value_to_register): Declare.
9478         (legacy_convert_register_p): Declare.
9479         * arch-utils.c (legacy_register_to_value): New function.
9480         (legacy_value_to_register): New function.
9481         (legacy_convert_register_p): New function.
9482
9483         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9484         (VALUE_TO_REGISTER): Define.
9485         (CONVERT_REGISTER_P): Define.
9486         * gdbarch.h, gdbarch.c: Regenerate.
9487
9488         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9489         VALUE_TO_REGISTER.
9490         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9491         CONVERT_REGISTER_P.
9492
9493 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9494             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9495
9496         * Makefile.in: Update dependencies for valops.c.
9497         * valops.c: Include "gdb_assert.h".
9498         (typecmp): Skip THIS parameter to methods.
9499         (find_method_list): Remove static_memfuncp argument,
9500         update callers.  Check for stub methods.
9501         (find_value_oload_method_list): Don't set *static_memfuncp.
9502         (find_overload_match): Don't check for stub methods.  Assert
9503         that methods are not stubbed.  Handle static methods.
9504         (value_find_oload_method_list): Remove static_memfuncp argument.
9505         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9506         to the argument list for static stub methods.
9507         * value.h (value_find_oload_method_list): Update prototype.
9508
9509 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9510
9511         * arch-utils.h (generic_register_size): Declare.
9512         (generic_register_raw_size, generic_register_virtual_size): Delete
9513         declarations.
9514         * arch-utils.c (generic_register_raw_size): Delete.
9515         (generic_register_size): New function.
9516         (generic_register_virtual_size): Delete.
9517
9518         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9519         default generic_register_size.
9520         * gdbarch.h, gdbarch.c: Re-generate.
9521         
9522         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9523         register_virtual_size.
9524         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9525         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9526
9527 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9528
9529         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9530         * gdbarch.h, gdbarch.c: Regenerate.
9531         * gnu-v3-abi.c: Update copyright.
9532         (vtable_address_point_offset): Update.
9533         (gnuv3_rtti_type): Update.
9534         (gnuv3_baseclass_offset): Update.
9535         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9536         (init_fetch_link_map_offsets): Update.
9537         * remote.c (get_remote_state): Update.
9538         
9539 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9540
9541         * TODO: Remove value_headof/value_from_vtable_info comment.
9542         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9543         * values.c (value_headof, value_from_vtable_info): Delete.
9544         * value.h (value_from_vtable_info): Delete prototype.
9545
9546 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9547
9548         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9549         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9550         $(gdb_regex_h).
9551         (gdb_assert_h): Define.
9552         (gdb_wait_h): Define.
9553         (gdb_regex_h): Define.
9554
9555 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9556
9557         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9558         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9559
9560 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9561
9562         * nbsd-tdep.c: Fix comment.
9563
9564 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9565
9566         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9567         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9568         (nbsd-tdep.o): New dependency list.
9569         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9570         nbsd-tdep.h.
9571         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9572         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9573         * nbsd-tdep.c: New file.
9574         * nbsd-tdep.h: New file.
9575         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9576         nbsd-tdep.h.
9577         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9578         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9579         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9580         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9581
9582 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9583
9584         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9585         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9586         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9587         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9588         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9589         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9590
9591 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9592
9593         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9594         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9595         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9596         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9597         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9598         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9599         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9600
9601 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9602
9603         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9604         fetch_elfcore_registers to...
9605         * i386nbsd-tdep.c: ...here.
9606         (i386nbsd_use_struct_convention): Rename to...
9607         (i386nbsd_aout_use_struct_convention): ...this.
9608         (i386nbsd_supply_reg): New function.
9609         (i386nbsd_fill_reg): New function.
9610         (fetch_core_registers): Use i386nbsd_supply_reg.
9611         (fetch_elfcore_registers): Likewise.
9612         (_initialize_i386nbsd_tdep): New function.
9613         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9614         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9615         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9616         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9617         (i386nbsd_aout_use_struct_convention): ...this.
9618
9619 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9620
9621         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9622         (store_inferior_registers): Use shnbsd_fill_reg.
9623         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9624         sh_nbsd_supply_register): Collapse into...
9625         (shnbsd_supply_reg): ...this.
9626         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9627         (shnbsd_fill_reg): ...this.
9628         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9629         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9630         (fetch_core_registers): Use shnbsd_supply_reg.
9631         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9632         (sh_nbsd_core_fns): Rename to...
9633         (shnbsd_core_fns): ...this.
9634         (sh_nbsd_elfcore_fns): Rename to...
9635         (shnbsd_elfcore_fns): ...this.
9636         (sh_nbsd_init_abi): Rename to...
9637         (shnbsd_init_abi): ...this.
9638         (_initialize_sh_nbsd_tdep): Rename to...
9639         (_initialize_shnbsd_tdep): ...this.
9640         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9641         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9642         sh_nbsd_fill_register): Remove prototypes.
9643         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9644
9645 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9646
9647         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9648         (i387-nat.o): Delete dependency list.
9649         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9650         (x86-64-linux-nat.o): Likewise.
9651         * i387-nat.c: Delete file, moving contents to...
9652         * i387-tdep.c: ...here.
9653         * i387-nat.h: Rename...
9654         * i387-tdep.h: ...to this.
9655         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9656         * i386-linux-nat.c: Likewise.
9657         * i386bsd-nat.c: Likewise.
9658         * i386gnu-nat.c: Likewise.
9659         * i386nbsd-nat.c: Likewise.
9660         * i386v4-nat.c: Likewise.
9661         * x86-64-linux-nat.c: Likewise.
9662         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9663         * config/i386/go32.mh (NATDEPFILES): Likewise.
9664         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9665         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9666         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9667         * config/i386/linux.mh (NATDEPFILES): Likewise.
9668         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9669         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9670         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9671         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9672
9673 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9674
9675         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9676         (alphanbsd-nat.o): Remove dependency list.
9677         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9678         * alphanbsd-nat.c: Delete.  Contents moved to...
9679         * alphanbsd-tdep.c: ...here.
9680         (_initialize_alphanbsd_tdep): Register core functions.
9681         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9682
9683 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9684
9685         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9686         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9687         (alphanbsd-nat.o): Likewise.
9688         (alphabsd-tdep.o): New dependency list.
9689         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9690         (fill_gregset): Use alphabsd_fill_reg.
9691         (supply_fpregset): Use alphabsd_supply_fpreg.
9692         (fill_fpregset): Use alphabsd_fill_fpreg.
9693         (fetch_inferior_registers): Use struct reg and struct fpreg
9694         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9695         and alphabsd_supply_fpreg.
9696         (store_inferior_registers): Use struct reg and struct fpreg
9697         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9698         and alphabsd_fill_fpreg.
9699         * alphabsd-tdep.c: New file.
9700         * alphabsd-tdep.h: New file.
9701         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9702         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9703         alphabsd_supply_fpreg.
9704         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9705         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9706
9707 2002-05-11  Eric Christopher  <echristo@redhat.com>
9708
9709         * mips-tdep.c (mips_double_register_type): Fix thinko.
9710         (mips_single_register_type): Ditto.
9711         * MAINTAINERS: Add self.
9712
9713 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9714
9715         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9716         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9717         right thing on architectures with different endianness and/or
9718         integer sizes.
9719
9720 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9721
9722         From Christian Limpach <chris@Pin.LU>
9723         * configure.in: Change sed expression which comments out
9724         NATDEPFILES to also comment out continuation lines.
9725         * configure: Regenerate.
9726
9727 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9728
9729         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9730         big patch.
9731
9732 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9733
9734         * sh-tdep.c: Include correct file.
9735
9736 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9737
9738         New support for sh64-elf (sh5) target.
9739
9740         * configure.tgt: For sh64-elf target, default to sh-elf.
9741
9742         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9743         (struct gdbarch_tdep): Add new fields for new registers and ABI
9744         info.
9745
9746         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9747         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9748         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9749         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9750         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9751         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9752         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9753         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9754         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9755         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9756         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9757         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9758         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9759         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9760         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9761         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9762         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9763         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9764         sign_extend, sh64_nofp_frame_init_saved_regs,
9765         sh64_init_extra_frame_info, sh64_get_saved_register,
9766         sh64_extract_struct_value_address, sh64_pop_frame,
9767         sh64_push_arguments, sh64_extract_return_value,
9768         sh64_store_return_value, sh64_show_media_regs,
9769         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9770         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9771         sh_sh64_register_virtual_type,
9772         sh_sh64_register_convert_to_virtual,
9773         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9774         sh64_register_read, sh64_pseudo_register_write,
9775         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9776         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9777         sh64_do_pseudo_register, sh_compact_do_registers_info,
9778         sh64_do_registers_info, sh_gdbarch_init): New functions.
9779
9780 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9781
9782         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9783
9784 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
9785
9786         * linespec.c (decode_line_1): Check for a double quote after
9787         a filename correctly.
9788
9789 2002-05-10  Jim Blandy  <jimb@redhat.com>
9790
9791         Properly track the size of the current objfile's .debug_line section.
9792         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9793         (DWARF_LINE_SIZE): New macro.
9794         (dwarf2_build_psymtabs_hard): Record the line section's size in
9795         the partial symbol table.
9796         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9797         symbol table.
9798
9799 2002-05-10  Petr Sorfa  <petrs@caldera.com>
9800
9801         * ia64-tdep.c: Handle breakpoints on L instruction type
9802         in MLX instruction bundle by moving the breakpoint to
9803         the third slot (X instruction type) as L holds only data.
9804
9805 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
9806
9807         * dbxread.c (discarding_local_symbols_complaint): New complaint.
9808         (process_one_symbol): Complain about discarding local symbols
9809         due to a misplaced N_LBRAC entry.
9810
9811 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
9812
9813         From Daniel Berlin <dan@cgsoftware.com>
9814         * linespec.c (find_toplevel_char): '<' and '>' also increase and
9815         decrease the depth we are at, in the case of templates.
9816
9817 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9818
9819         * mips-tdep.c (mips_float_register_type): New function.
9820         (mips_double_register_type): New function.
9821         (mips_print_register): Use them.
9822         (do_fp_register_row): Likewise.
9823
9824 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9825
9826         * signals/signals.c (signals): Remove conditional compilation around
9827         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
9828         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9829
9830 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9831
9832         * remote-rdp.c (remote_rdp_can_run): Remove.
9833
9834 2002-05-09  Tom Tromey  <tromey@redhat.com>
9835
9836         * jv-valprint.c (java_val_print): Handle `char' as a special case
9837         of TYPE_CODE_INT.
9838
9839 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9840
9841         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9842         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9843         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9844         str r(0123),[sp,#nn].
9845         (arm_skip_prologue): Ditto.  Also make disassembly
9846         order-independent by placing it in a loop.
9847
9848 2002-05-06  Michael Snyder  <msnyder@redhat.com>
9849
9850         * stabsread.c (read_type): Add recognition for new attribute:
9851         "@V;" means that an array type is actually a vector.
9852         This is analogous to the vector flag that's been added to dwarf2.
9853
9854 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
9855
9856         * i386-tdep.h (i386_abi): New enum.
9857         (struct gdbarch_tdep): Replace os_ident member with abi.
9858         (i386_gdbarch_register_os_abi): New prototype.
9859         * i386-tdep.c (i386_abi_names): New array.
9860         (process_note_abi_tag_sections): Removed.
9861         (process_note_sections): New function.
9862         (i386_elf_abi_from_note, i386_elf_abi): New functions.
9863         (struct i386_abi_handler): New struct.
9864         (i386_abi_handler_list): New variable.
9865         (i386_gdbarch_register_os_abi): New function.
9866         (i386_gdbarch_init): Adapt for the changes given above.
9867
9868 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
9869
9870         * gregset.h: Say "GNU/Linux".
9871
9872 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
9873
9874         * gdbtypes.c : Add new builtin type for 64 bit vectors.
9875         (build_gdbtypes): Build builtin_type_v2_float.
9876         (_initialize_gdbtypes): Register new builtin type.
9877
9878 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
9879
9880         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9881         (clear_gdbarch_swap): New function.
9882         (initialize_non_multiarch): Call.
9883         (gdbarch_update_p): Before calling init(), swap out and clear the
9884         existing architecture.
9885         * gdbarch.c: Regenerate.
9886
9887 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9888
9889         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9890         alphanbsd-tdep.c.
9891
9892 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9893
9894         * sh-nbsd-nat.c: Rename to...
9895         * shnbsd-nat.c: ...this.
9896         * sh-nbsd-tdep.c: Rename to...
9897         * shnbsd-tdep.c: ...this.
9898         * sh-nbsd-tdep.h: Rename to...
9899         * shnbsd-tdep.h: ...this.
9900         * config/sh/nbsd.mh: Use shnbsd-nat.o.
9901         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9902
9903 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
9904
9905         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9906         concatenation for command help messages.
9907
9908 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9909
9910         * NEWS: Note new sh*-*-netbsdelf* configuration.
9911         * configure.host: Set gdb_host_cpu to sh for all sh*.
9912         (sh*-*-netbsdelf*): New host.
9913         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9914         (sh*-*-netbsdelf*): New target.
9915         * sh-nbsd-nat.c: New file.
9916         * sh-nbsd-tdep.c: New file.
9917         * sh-nbsd-tdep.h: New file.
9918         * config/sh/nbsd.mh: New file.
9919         * config/sh/nbsd.mt: New file.
9920         * config/sh/nm-nbsd.h: New file.
9921         * config/sh/tm-nbsd.h: New file.
9922
9923 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9924
9925         * sh-tdep.c (sh_osabi_names): Declare.
9926         (process_note_abi_tag_sections): New function.
9927         (get_elfosabi): Ditto.
9928         (sh_gdbarch_register_os_abi): Ditto.
9929         (sh_dump_tdep): Ditto.
9930         _initialize_sh_tdep): Use gdbarch_register to register
9931         sh_gdbarch_init and sh_dump_tdep.
9932         * config/sh/tm-sh.h (sh_osabi): Declare.
9933         (gdbarch_tdep): Add sh_osabi and osabi_name members.
9934
9935 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
9936
9937         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9938         (thumb_scan_prologue): Ditto.
9939         (arm_find_callers_reg): Ditto.
9940         (arm_frame_chain): Ditto.
9941         (arm_init_extra_frame_info): Ditto.
9942         (arm_frame_saved_pc): Ditto.
9943         (arm_pop_frame): Ditto.
9944         (arm_push_return_address): New function.
9945         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9946         call_dummy_location, call_dummy_breakpoint_offset_p,
9947         call_dummy_breakpoint_offset, call_dummy_p,
9948         call_dummy_stack_adjust_p, call_dummy_words,
9949         sizeof_call_dummy_words, call_dummy_start_offset,
9950         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9951         call_dummy_address, push_return_address and push_dummy_frame for
9952         generic dummy frames.
9953
9954 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
9955
9956         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9957         size computation for alloca.
9958         (sh_fp_frame_init_saved_regs): Likewise.
9959
9960 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
9961
9962         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9963         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9964         * arm-tdep.c (arm_store_return_value): Use them.
9965         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9966         * remote-rdp.c (remote_rdp_fetch_register): Use
9967         ARM_MAX_REGISTER_RAW_SIZE.
9968         (remote_rdp_store_register): Likewise.
9969
9970 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
9971
9972         * dwarf2cfi.c: Code cleanup, removed unused variables,
9973         added default labels to switch {} statements.
9974         * x86-64-tdep.c: Ditto.
9975         * x86-64-linux-nat.c: Ditto.
9976
9977 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
9978
9979         * solib.h: Protect against multiple inclusion.
9980
9981 2002-05-06  Jim Blandy  <jimb@redhat.com>
9982
9983         Add first preprocessor macro-expansion files.
9984         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9985         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9986         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9987         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9988         (COMMON_OBS): Add macrotab.o, macroexp.o.
9989         (macroexp.o, macrotab.o): New rules.
9990
9991         Separate the job of reading the line number info statement program
9992         header (...expialidocious) out into its own function.
9993         * dwarf2read.c (struct line_head, struct filenames, struct
9994         directories): Replace with...
9995         (struct line_header): New structure, containing the full
9996         contents of the statement program header, including the
9997         include directory and file name tables.
9998         (read_file_scope): If we have line number info, instead of just
9999         calling dwarf_decode_lines to do all the work, call
10000         dwarf_decode_line_header first to get a `struct line_header'
10001         containing the data in the statement program header, and then
10002         pass that to dwarf_decode_lines, which will pick up where that
10003         left off.  Be sure to clean up the `struct line_header' object.
10004         (dwarf_decode_line_header, free_line_header, add_include_dir,
10005         add_file_name): New functions.
10006         (dwarf_decode_lines): Move all the code to read the statement
10007         program header into dwarf_decode_line_header.  Take the line
10008         header it built as the first argument, instead of the offset to
10009         the compilation unit's line number info.  Use the new `struct
10010         line_header' type instead of the old structures.  No need to do
10011         cleanups here now, since we don't allocate anything.
10012         (dwarf2_statement_list_fits_in_line_number_section,
10013         dwarf2_line_header_too_long): New complaints.
10014
10015 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10016
10017         * gdbtypes.c (init_vector_type): New function.
10018         (build_builtin_type_vec128): Simplify the representation of SIMD
10019         registers.
10020         (build_gdbtypes): Initialize new builtin vector types.
10021         (_initialize_gdbtypes): Register new vector types with gdbarch.
10022         (builtin_type_v4_float, builtin_type_v4_int32,
10023         builtin_type_v8_int16, builtin_type_v16_int8,
10024         builtin_type_v2_int32, builtin_type_v4_int16,
10025         builtin_type_v8_int8): New (renamed) SIMD types.
10026
10027 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10028
10029         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10030         (i387_fill_fxsave): Likewise.
10031
10032 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10033
10034         * alpha-tdep.c (alpha_extract_return_value): Don't use
10035         non-constant array size in prototype.
10036
10037 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10038
10039         From Brian Taylor <briant at model dot com>:
10040         * ui-out.c (ui_out_field_core_addr): Use the function
10041         longest_local_hex_string_custom'to format addresses > 32 bits
10042         wide.
10043
10044         * ui-out.c (ui_out_field_core_addr): Update comment.
10045
10046 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10047
10048         * stack.c (select_and_print_frame): Make static.  Delete the
10049         parameter `level'.
10050         (func_command): Update call.
10051         (select_frame_command): Delete code computing the frame level.
10052         * frame.h (select_and_print_frame): Delete declaration.
10053
10054 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10055
10056         * sparc-tdep.c (sparc_get_saved_register): Comment why
10057         get_prev_frame call is safe.
10058
10059 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10060
10061         * frame.h (select_frame): Delete level parameter.
10062         * stack.c (select_frame): Update.  Use frame_relative_level to
10063         obtain the frame's level.
10064         (select_and_print_frame): Update call.
10065         (select_frame_command): Ditto.
10066         (up_silently_base): Ditto.
10067         (down_silently_base): Ditto.
10068         * ocd.c (ocd_start_remote): Ditto.
10069         * remote-rdp.c (remote_rdp_open): Ditto.
10070         * remote-mips.c (mips_initialize): Ditto.
10071         (common_open): Ditto.
10072         * remote-e7000.c (e7000_start_remote): Ditto.
10073         * m3-nat.c (select_thread): Ditto.
10074         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10075         (child_get_current_exception_event): Ditto.
10076         * varobj.c (varobj_create): Ditto.
10077         (varobj_update): Ditto.
10078         (c_value_of_root): Ditto.
10079         * tracepoint.c (finish_tfind_command): Ditto.
10080         * corelow.c (core_open): Ditto.
10081         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10082         * thread.c (info_threads_command): Ditto.
10083         (switch_to_thread): Ditto.
10084         * infrun.c (normal_stop): Ditto.
10085         (restore_selected_frame): Ditto.
10086         (restore_inferior_status): Ditto.
10087         * breakpoint.c (insert_breakpoints): Ditto.
10088         (watchpoint_check): Ditto.
10089         (bpstat_stop_status): Ditto.
10090         (do_enable_breakpoint): Ditto.
10091         * blockframe.c (flush_cached_frames): Ditto.
10092         (reinit_frame_cache): Ditto.
10093
10094 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10095
10096         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10097         maintainer.
10098
10099 2002-05-04  Jim Blandy  <jimb@redhat.com>
10100
10101         * gdbtypes.c (replace_type): Doc fix.
10102
10103 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10104
10105         * valprint.c (strcat_longest): Delete commented out function.
10106         Update copyright.
10107
10108 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10109
10110         * MAINTAINERS: Mark a29k as deleted.
10111         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10112         Move new configurations to the top.
10113         * configure.tgt: Remove a29k.
10114         * config/a29k/tm-vx29k.h: Delete.
10115         * config/a29k/vx29k.mt: Delete.
10116         * config/a29k/tm-a29k.h: Delete.
10117         * config/a29k/a29k-udi.mt: Delete.
10118         * config/a29k/a29k.mt: Delete.
10119         * a29k-tdep.c: Delete.
10120         * remote-udi.c: Delete.
10121         * remote-mm.c: Delete.
10122         * remote-eb.c: Delete.
10123         * remote-adapt.c: Delete.
10124         * Makefile.in: Remove obsolete code.
10125         * config/s390/s390x.mt: Ditto.
10126         * config/s390/s390.mt: Ditto.
10127         * config/sparc/sparclynx.mh: Ditto.
10128         * config/sparc/linux.mh: Ditto.
10129         * config/pa/hppaosf.mh: Ditto.
10130         * config/pa/hppabsd.mh: Ditto.
10131         * config/ns32k/nbsd.mt: Ditto.
10132         * config/mips/vr5000.mt: Ditto.
10133         * config/m68k/sun3os4.mh: Ditto.
10134         * config/m68k/nbsd.mt: Ditto.
10135         * config/m68k/m68klynx.mh: Ditto.
10136         * config/m32r/m32r.mt: Ditto.
10137         * config/i386/x86-64linux.mt: Ditto.
10138         * config/i386/nbsdelf.mt: Ditto.
10139         * config/i386/nbsd.mt: Ditto.
10140         * config/i386/i386lynx.mh: Ditto.
10141
10142 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10143
10144         * target.c (debug_print_register): New function.  Handle oversize
10145         registers.
10146         (debug_to_fetch_registers): Call.
10147         (debug_to_store_registers): Call.
10148
10149 2002-05-03  Jim Blandy  <jimb@redhat.com>
10150
10151         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10152         (read_type): Doc fix.
10153         * gdbtypes.c (replace_type): Doc fix.
10154
10155         * stabsread.c (multiply_defined_struct): New complaint.
10156         (read_struct_type): If the type we were passed isn't empty, or
10157         incomplete, don't read the new struct type into it; complain,
10158         and return the original type unchanged.  Take a new `type_code'
10159         argument, which is the type code for the new type.
10160         (read_type): Rather than storing the type's type code here, pass
10161         it as an argument to read_struct_type, and let that take care of
10162         storing it.  That way, we don't overwrite the original type code,
10163         so read_struct_type can use it to decide whether we're overwriting
10164         something we shouldn't.
10165         (complain_about_struct_wipeout): New function.
10166
10167 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10168
10169         * gdbarch.sh: Assert that gdbarch is non-NULL.
10170         * gdbarch.c: Regenerate.
10171
10172 2002-05-03  Jason Merrill  <jason@redhat.com>
10173
10174         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10175         and return NULL.
10176
10177 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10178
10179         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10180         (x86_64_dwarf2gdb_regno_map_length),
10181         (x86_64_dwarf2_reg_to_regnum): Added.
10182         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10183         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10184         (_initialize_x86_64_tdep): Synced with the change above.
10185         (x86_64_skip_prologue): Reformulated message.
10186
10187 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10188
10189         * f-exp.y: Also use new prev_lexptr variable
10190         to improve error reporting. Based on Michael Snyder
10191         2002-04-24 dated patch to c-exp.y.
10192         * jv-exp.y: Likewise.
10193         * m2-exp.y: Likewise.
10194
10195 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10196
10197         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10198         we are dealing with vectors.
10199
10200 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10201
10202         * config/m68k/tm-nbsd.h: Obvious fix,
10203         correct machine name.
10204
10205 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10206
10207         * p-typeprint.c (pascal_type_print_base): Add support
10208         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10209
10210 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10211
10212         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10213         for fondamental pascal 'char' type.
10214
10215 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10216
10217         * p-lang.h (is_pascal_string_type): Declaration changed,
10218         new sixth argument of type char ** added.
10219         * p-lang.c (is_pascal_string_type): Implementation
10220         changed. Args length_pos, length_size, string_pos, char_size
10221         can now be NULL. New argument arrayname set to the field
10222         name of the char array. Return value set to char array
10223         field index plus one.
10224         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10225         is_pascal_string_type function.
10226
10227 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10228
10229         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10230         <cagney@redhat.com> change.
10231         * gdbarch.c: Regenerate.
10232
10233 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10234
10235         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10236         before probing for a new one.  Detect errorenous gdbarch_init
10237         functions.
10238         * gdbarch.c: Regenerate.
10239
10240 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10241
10242         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10243         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10244         * config/v850/tm-v850.h: Ditto.  Update copyright.
10245
10246 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10247
10248         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10249         current_gdbarch.
10250
10251 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10252
10253         * arm-tdep.c: Whitespace clean-ups.
10254         (arm_skip_prologue): Fix thinko; two lines
10255         should have been removed as part of 4/24 change.
10256
10257 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10258
10259         * rs6000-tdep.c: Added comment describing how fpscr register
10260         numbers were chosen.
10261
10262 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10263
10264         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10265
10266 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10267
10268         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10269         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10270         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10271
10272 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10273
10274         From Louis Hamilton <hamilton@redhat.com>:
10275         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10276         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10277         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10278         not bfd-private xcoff data, to determine wordsize.
10279         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10280
10281 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10282
10283         GDB 5.2 released from 5.2 branch.
10284
10285 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10286
10287         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10288         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10289         (x86_64_register_info_table): Added comments with register numbers.
10290
10291 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10292
10293         * rs6000-tdep.c (rs6000_extract_return_value,
10294         rs6000_store_return_value): Handle returning vectors.
10295         (rs6000_gdbarch_init): Use
10296         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10297         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10298         New function.
10299         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10300         vectors.
10301         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10302         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10303
10304 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10305
10306         * hpread.c (hpread_psymtab_to_symtab_1,
10307         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10308         with fprintf_unfiltered (gdb_stderr,...).
10309
10310 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10311
10312         * remote-array.c (printf_monitor, write_monitor,
10313         array_insert_breakpoint, array_remove_breakpoint ):
10314         Replace fprintf (stderr,...
10315         with fprintf_unfiltered (gdb_stderr,....
10316         * remote-es.c: Likewise.
10317         * remote-os9k.c: Likewise.
10318         * remote-st.c: Likewise.
10319
10320 2002-04-28  Andreas Schwab  <schwab@suse.de>
10321
10322         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10323         linux-proc.o and gcore.o.
10324
10325 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10326
10327         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10328         code without frame pointers.
10329
10330 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10331
10332         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10333         ON_STACK is needed.
10334
10335 2002-04-26  Ben Elliston  <bje@redhat.com>
10336
10337         * target.c (do_xfer_memory): Correct reference to the new option
10338         "trust-readonly-sections".
10339
10340 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10341
10342         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10343         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10344         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10345         vectors.
10346         (read_array_type): Record the fact that this array type is really a
10347         vector (i.e. are passed in by value).
10348
10349 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10350
10351         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10352         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10353         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10354         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10355         * alpha-linux-tdep.c: Include frame.h.
10356         (alpha_linux_sigcontext_addr): New function.
10357         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10358         alpha_linux_sigcontext_addr.
10359         * alpha-osf1-tdep.c: Include gdbcore.h.
10360         (alpha_osf1_sigcontext_addr): New function.
10361         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10362         alpha_osf1_sigcontext_addr.
10363         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10364         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10365
10366 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10367
10368         * stack.c (selected_frame_level):
10369         (select_frame): Do not set selected_frame_level.
10370         * frame.h (selected_frame_level): Delete declaration.
10371
10372 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10373
10374         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10375         convert_from_func_ptr-addr when AIX / PowerOpen.
10376
10377 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10378
10379         * valops.c (hand_function_call): Call
10380         generic_save_call_dummy_addr.
10381         * frame.h (generic_save_call_dummy_addr): Declare.
10382         * blockframe.c (struct dummy_frame): Add fields call_lo and
10383         call_hi.
10384         (generic_find_dummy_frame): Check for PC in range call_lo to
10385         call_hi instead of entry_point_address.
10386         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10387         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10388         (generic_save_call_dummy_addr): New function.
10389
10390 2002-04-24  David S. Miller  <davem@redhat.com>
10391
10392         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10393         sparc_skip_prologue.
10394         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10395         information to find prologue when possible.
10396         (sparc_prologue_frameless_p): Call examine_prologue directly.
10397         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10398         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10399         second argument.
10400         (SKIP_PROLOGUE): Likewise.
10401
10402 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10403
10404         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10405         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10406         indicate that the condition it was testing is always true.
10407         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10408         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10409         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10410
10411 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10412
10413         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10414         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10415         tdep->jb_pc and tdep->jb_elt_size.
10416         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10417         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10418         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10419         * alpha-nat.c (get_longjmp_target): Remove.
10420         (JB_ELEMENT_SIZE): Ditto.
10421         (JB_PC): Ditto.
10422         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10423         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10424         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10425         to alpha_get_longjmp_target.
10426         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10427         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10428         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10429
10430 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10431
10432         * README: Update to GDB 5.2.
10433
10434 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10435
10436         * gdbarch.sh (LC_ALL): Set to `c'.
10437
10438 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10439
10440         * avr-tdep.c: Ran through gdb_indent.sh.
10441
10442 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10443
10444         * MAINTAINERS: Add myself as AVR maintainer.
10445         * NEWS: Note new target avr.
10446
10447 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10448
10449         * Makefile.in: Add support for AVR target.
10450         * configure.tgt: Add support for AVR target.
10451         * avr-tdep.c: New file
10452         * config/avr/avr.mt: New file.
10453
10454 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10455
10456         * MAINTAINERS: Add myself to write-after-approval.
10457
10458 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10459
10460         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10461         with fprintf_unfiltered (gdb_stderr,....
10462
10463 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10464
10465         Fix PR gdb/508.
10466         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10467
10468 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10469
10470         * p-exp.y: Also use new prev_lexptr variable
10471         to improve error reporting. Based on Michael Snyder
10472         2002-04-24 dated patch to c-exp.y.
10473
10474 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10475
10476         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10477         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10478         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10479         to 0.
10480         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10481         and struct value.
10482         (FUNCTION_START_OFFSET): Remove.
10483         (BREAKPOINT): Ditto.
10484
10485 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10486
10487         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10488         * NEWS: Ditto.
10489
10490 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10491
10492         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10493         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10494         alpha_linux_pc_in_sigtramp.
10495         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10496         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10497         alpha_osf1_pc_in_sigtramp.
10498         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10499         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10500         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10501         alphafbsd_pc_in_sigtramp.
10502         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10503         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10504         alphanbsd_pc_in_sigtramp.
10505         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10506         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10507
10508 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10509
10510         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10511
10512 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10513
10514         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10515         alphanbsd-tdep.c.
10516         (alphanbsd-nat.o): New dependency list.
10517         (alphanbsd-tdep.o): Ditto.
10518         * NEWS: Note new native NetBSD/alpha configuration.
10519         * alphanbsd-nat.c: New file.
10520         * alphanbsd-tdep.c: Ditto.
10521         * configure.host (alpha*-*-netbsd*): New host.
10522         * configure.tgt (alpha*-*-netbsd*): New target.
10523         * config/alpha/nbsd.mh: New file.
10524         * config/alpha/nbsd.mt: Ditto.
10525         * config/alpha/nm-nbsd.h: Ditto.
10526         * config/alpha/tm-nbsd.h: Ditto.
10527
10528 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10529
10530         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10531         (alpha-osf1-tdep.o): New dependency list.
10532         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10533         and skip_sigtramp_frame members.
10534         * alpha-linux-tdep.c: Include gdbcore.h.
10535         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10536         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10537         * alpha-osf1-tdep.c: New file.
10538         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10539         alpha-osf1-dep.c.
10540         (alpha_frame_past_sigtramp_frame): New function.
10541         (alpha_dynamic_sigtramp_offset): Ditto.
10542         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10543         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10544         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10545         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10546         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10547         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10548         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10549         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10550         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10551         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10552         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10553         to find_solib_trampoline_target.
10554         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10555         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10556         (SKIP_TRAMPOLINE_CODE): Remove.
10557         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10558         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10559         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10560         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10561         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10562         (PROC_SIGTRAMP_MAGIC): Ditto.
10563         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10564         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10565         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10566         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10567         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10568
10569 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10570
10571         * NEWS: Note that Alpha targets are now multi-arch.
10572
10573 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10574
10575         * parser-defs.h (prev_lexptr): New external variable.
10576         * parse.c (parse_exp_1): Set prev_lexptr to null before
10577         calling the language-specific parser.
10578         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10579         (yyerror): Use prev_lexptr in error reporting.
10580
10581 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10582
10583         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10584         * gregset.h: If FILL_FPXREGSET is defined, provide
10585         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10586         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10587         is defined, call fill_fpxregset.
10588
10589 2002-04-24  Roland McGrath  <roland@frob.com>
10590
10591         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10592         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10593         (supply_gregset, supply_fpregset): New functions.
10594
10595         * gnu-nat.c (gnu_find_memory_regions): New function.
10596         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10597         (gnu_xfer_memory): Add a cast.
10598
10599 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10600
10601         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10602         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10603         of argument regs ("str r(0123), [r11, #-nn"]).
10604         (arm_skip_prologue): Better handling for frameless functions.
10605         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10606         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10607
10608 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10609
10610         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10611         NUM_PSEUDO_REGS can be used.
10612
10613 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10614
10615         * arch-utils.h: Update copyright.
10616
10617         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10618         * gdbarch.h, gdbarch.c: Re-generate.
10619
10620         * inferior.h (IN_SIGTRAMP): Delete definition.
10621         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10622         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10623
10624         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10625         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10626         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10627         (find_proc_framesize): Ditto.
10628         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10629         (alpha_init_extra_frame_info): Ditto.
10630         * infrun.c (handle_inferior_event): Ditto.
10631         (handle_inferior_event): Ditto.
10632         (check_sigtramp2): Ditto.
10633         * blockframe.c (create_new_frame): Ditto.
10634         (get_prev_frame): Ditto.
10635         * ppc-linux-tdep.c: Update comments.
10636         * i386-linux-tdep.c: Update comments.
10637         * breakpoint.c (bpstat_what): Update comment.
10638
10639 2002-04-24  David S. Miller  <davem@redhat.com>
10640
10641         * i960-tdep.c (register_in_window_p): New function.
10642         (i960_find_saved_register): Use it instead of
10643         REGISTER_IN_WINDOW_P.
10644         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10645
10646         * symtab.h (find_stab_function_addr): Kill extern.
10647         * minsyms.c (find_stab_function_addr): Remove from here...
10648         * dbxread.c: ... to here, and mark it static.
10649
10650 2002-04-20  David S. Miller  <davem@redhat.com>
10651
10652         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10653         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10654
10655 2002-04-21  David S. Miller  <davem@redhat.com>
10656
10657         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10658         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10659         (vx_write_register): Likewise.
10660
10661 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10662
10663         * source.c (is_regular_file): New function.
10664         (openp): Check wether file to open is a regular file
10665         to avoid opening directories.
10666
10667 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10668
10669         * findvar.c (extract_signed_integer): Cast printf argument
10670         to suppress format warning.
10671         (extract_unsigned_integer): Likewise.
10672         * infcmd.c (registers_info): Likewise.
10673         * top.c (get_prompt_1): Likewise.
10674         * valops.c (value_assign): Likewise.
10675         * valprint.c (print_decimal): Likewise.
10676
10677 2002-04-22  H.J. Lu  (hjl@gnu.org)
10678
10679         * c-exp.y (typebase): Support
10680
10681         [long|long long|short] [signed|unsigned] [int|]
10682
10683         and
10684
10685         signed [long|long long|short] int
10686
10687 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10688
10689         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10690         and vax-tdep.h.
10691         * vax-tdep.h: New file.
10692         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10693         Make several routines static.
10694         (vax_get_saved_register): New function.
10695         (vax_gdbarch_init): New function.
10696         (_initialize_vax_tdep): Register vax_gdbarch_init.
10697         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10698         Remove macros now under the control of gdbarch.
10699
10700 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10701
10702         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10703         Some whitespace and coding standards tweaks.
10704
10705 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10706
10707         * vax-tdep.c: Include regcache.h.
10708         (vax_call_dummy_words): New.
10709         (sizeof_vax_call_dummy_words): New.
10710         (vax_fix_call_dummy): New function.
10711         (vax_saved_pc_after_call): Ditto.
10712         * config/vax/tm-vax.h: Don't include regcache.h.
10713         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10714         (CALL_DUMMY): Remove.
10715         (CALL_DUMMY_WORDS): Define.
10716         (SIZEOF_CALL_DUMMY_WORDS): Define.
10717         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10718
10719 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10720
10721         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10722
10723 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10724
10725         * vax-tdep.c (vax_frame_chain): New function.
10726         (vax_push_dummy_frame): Ditto.
10727         (vax_pop_frame): Ditto.
10728         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10729         (FRAMELESS_FUNCTION_INVOCATION): Use
10730         generic_frameless_function_invocation_not.
10731         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10732         (POP_FRAME): Use vax_pop_frame.
10733
10734 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10735
10736         * vax-tdep.c (vax_store_struct_return): New function.
10737         (vax_extract_return_value): Ditto.
10738         (vax_store_return_value): Ditto.
10739         (vax_extract_struct_value_address): Ditto.
10740         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10741         vax_store_struct_return.
10742         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10743         (STORE_RETURN_VALUE): Use vax_store_return_value.
10744         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10745
10746 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10747
10748         * vax-tdep.c (vax_frame_saved_pc): New function.
10749         (vax_frame_args_address_correct): Ditto.
10750         (vax_frame_args_address): Ditto.
10751         (vax_frame_locals_address): Ditto.
10752         (vax_frame_num_args): Move code to be in proximity to
10753         other frame-related functions.
10754         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10755         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10756         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10757         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10758         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10759
10760 2002-04-22  H.J. Lu  (hjl@gnu.org)
10761
10762         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10763         includedir.
10764
10765 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10766
10767         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10768         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10769         (FRAME_INIT_SAVED_REGS): New macro.
10770
10771 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10772
10773         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10774
10775 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10776
10777         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10778         where needed.
10779         (fetch_osf_core_registers): Likewise.
10780         (supply_gregset): Likewise.
10781
10782 2002-04-22  J. Brobecker  <brobecker@gnat.com>
10783
10784         * symfile.h (get_section_index): Define.
10785         * symfile.c (get_section_index): New function.
10786         * mdebugread.c (SC_IS_SBSS): New macro.
10787         (SC_IS_BSS): Return true for the scBss storage class only, as
10788         the scSBss storage class refers to the .sbss section.
10789         (parse_partial_symbols): Discard the symbols which associated
10790         section does not exist.
10791         Make sure to use the .sbss section index for symbols which
10792         storage class is scBss, rather than using the .bss section index.
10793
10794 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10795
10796         * vax-tdep.c: Update copyright years.
10797         (vax_register_name): New function.
10798         (vax_register_byte): Ditto.
10799         (vax_register_raw_size): Ditto.
10800         (vax_register_virtual_size): Ditto.
10801         (vax_register_virtual_type): Ditto.
10802         * config/vax/tm-vax.h: Update copyright years.
10803         (REGISTER_NAMES): Remove.
10804         (REGISTER_NAME): Define.
10805         (REGISTER_BYTE): Use vax_register_byte.
10806         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10807         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10808         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10809
10810 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10811
10812         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10813         declaration
10814         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10815
10816 2002-04-21  David S. Miller  <davem@redhat.com>
10817
10818         * arch-utils.c (generic_prologue_frameless_p): Kill
10819         SKIP_PROLOGUE_FRAMELESS_P code.
10820         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10821         references.
10822         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10823         * arc-tdep.c (arc_prologue_frameless_p): Implement.
10824         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10825         references.
10826         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10827         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10828         (sparc_gdbarch_init): Pass it to
10829         set_gdbarch_prologue_frameless_p.
10830
10831 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10832
10833         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10834         (alphabsd-nat.o): New dependency list.
10835
10836 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10837
10838         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10839         alphafbsd-tdep.c.
10840         (alpha-linux-tdep.o): New dependency list.
10841         (alphafbsd-tdep.o): Likewise.
10842
10843 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10844
10845         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
10846         to here...
10847         * alpha-tdep.c: ...from here.
10848         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10849
10850 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10851
10852         * config/alpha/tm-alpha.h: Move alpha_software_single_step
10853         prototype from here...
10854         * alpha-tdep.h: ...to here.
10855
10856 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10857
10858         * frame.h (selected_frame_level): Document as deprecated.
10859         (frame_relative_level): Declare.
10860         * stack.c (frame_relative_level): New function.
10861         (selected_frame_level): Document as deprecated.
10862         (select_frame): Do not set the selected_frame_level.
10863
10864         * stack.c (frame_info, record_selected_frame): Update.
10865         (frame_command, current_frame_command): Update.
10866         (up_silently_base, up_command, down_silently_base): Update.
10867         (down_command): Update.
10868         * inflow.c (kill_command): Update.
10869         * tracepoint.c (finish_tfind_command): Update.
10870         * corelow.c (core_open): Update.
10871         * thread.c (info_threads_command): Update.
10872         (do_captured_thread_select): Update.
10873         * infcmd.c (finish_command): Update.
10874         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10875
10876 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10877
10878         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10879
10880 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10881
10882         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
10883         type const.
10884
10885 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10886
10887         * alphafbsd-tdep.c: Update copyright years.  Include
10888         alpha-tdep.h.
10889         (alphafbsd_use_struct_convention): Make static.
10890         (alphafbsd_init_abi): New function.
10891         (_initialize_alphafbsd_tdep): New function.
10892         * config/alpha/tm-fbsd.h: Update copyright years.
10893         (USE_STRUCT_CONVENTION): Remove.
10894
10895 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10896
10897         * alpha-tdep.c (alpha_abi_handler): New structure to describe
10898         an Alpha ABI variant.
10899         (alpha_abi_handler_list): Declare.
10900         (alpha_gdbarch_register_os_abi): New function.
10901         (alpha_gdbarch_init): Give registered ABI variant handlers a
10902         chance to tweak the gdbarch once we have set up defaults.
10903         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10904
10905 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10906
10907         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10908         to standard_coerce_float_to_double.
10909         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10910
10911 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10912
10913         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10914         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10915         from gdbarch_tdep rather than a constant.
10916         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10917         the default text address for all Alpha Unix ABIs.
10918         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10919         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10920
10921 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10922
10923         * alpha-tdep.h: New file.  Includes several Alpha target constants
10924         taken from...
10925         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
10926         let gdbarch deal with.
10927         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10928         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10929         to dependency list.
10930         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
10931         Alpha target register names.
10932         * alphabsd-nat.c: Likewise.
10933         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
10934         Alpha target register names.  Make serveral routines static.
10935         (alpha_get_saved_register): New function.
10936         (alpha_abi_names): New.
10937         (process_note_abi_tag_sections): New function.
10938         (get_elfosabi): New function.
10939         (alpha_gdbarch_init): New function.
10940         (alpha_dump_tdep): New function.
10941         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10942
10943 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10944
10945         * frame.c (find_saved_register): Delete #ifdef
10946         HAVE_REGISTER_WINDOWS code.
10947         * config/sparc/tm-sparc.h: Update comments.
10948         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10949
10950 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10951
10952         * i960-tdep.c (i960_find_saved_register): New function.
10953         (i960_get_saved_register): New function.
10954         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10955         (i960_get_saved_register): Declare.
10956         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10957
10958 2002-04-20  David S. Miller  <davem@redhat.com>
10959
10960         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10961
10962 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
10963
10964         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10965         instead of NUM_PSEUDO_REGS.
10966
10967 2002-04-20  David S. Miller  <davem@redhat.com>
10968
10969         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10970         GDB_MULTI_ARCH_PARTIAL
10971         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10972         define, let tm-sp64.h do it.
10973
10974 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
10975
10976         * frame.c (find_saved_register): Avoid a NULL pointer
10977         dereference and actually walk the frame list.
10978
10979 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
10980
10981         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10982         sorted in most most-recent-used order.  Document.
10983         * gdbarch.h, gdbarch.c: Regenerate.
10984
10985 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
10986
10987         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10988         instead of ->prev.
10989         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10990         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10991         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10992         instead of ->prev.
10993
10994 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
10995
10996         Fix PR gdb/471.
10997         * gdbtypes.c (init_simd_type): Rewrite using new functions.
10998         (build_builtin_type_vec128): Ditto.
10999         (append_composite_type_field): Fix calculation of type length in
11000         union case.
11001
11002 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11003
11004         * config/djgpp/README: Update.
11005
11006         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11007         compiler warnings.
11008
11009 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11010
11011         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11012         (alpha_setup_arbitrary_frame): ...to this.
11013         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11014         for alpha_setup_arbitrary_frame.
11015
11016 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11017
11018         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11019         * gdbarch.h, gdbarch.c: Regenerate.
11020
11021         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11022         * target.h (memory_breakpoint_from_pc): Update declaration.
11023         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11024
11025         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11026         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11027         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11028         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11029         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11030         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11031         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11032         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11033         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11034         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11035         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11036         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11037
11038         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11039         const pointer.
11040         * monitor.c (monitor_insert_breakpoint): Ditto.
11041         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11042
11043         * config/mcore/tm-mcore.h: Update copyright.
11044         * mem-break.c: Ditto.
11045         * xstormy16-tdep.c: Ditto.
11046
11047 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11048
11049         * p-exp.y: Add precedence rule for '^' token.
11050         This removes the shift/reduce conflicts.
11051         Remove the comment concerning these shift/reduce conflicts.
11052
11053 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11054
11055         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11056         (registers_powerpc_nofp): New register set for processors
11057         without floating point unit.
11058
11059 2002-04-18  David S. Miller  <davem@redhat.com>
11060
11061         * MAINTAINERS: Add myself to write-after-approval.
11062
11063 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11064
11065         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11066
11067 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11068
11069         * rs6000-tdep.c (frame_initial_stack_address): Use
11070         frame_register_read to read the alloca_reg.
11071
11072 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11073
11074         * frame.c (find_saved_register): Find saved registers in the next
11075         not prev frame.
11076         Fix PR gdb/365.
11077
11078 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11079
11080         * gdbarch.sh (LANG): Set to ``c''.
11081
11082 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11083
11084         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11085
11086 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11087
11088         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11089         Update copyright.
11090
11091         * hpread.c (hpread_get_lntt): Add declaration.
11092         Also fix PR gdb/391.
11093
11094 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11095
11096         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11097         * aclocal.m4, configure: Re-generate.
11098         Fix PR gdb/391.
11099
11100 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11101
11102         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11103         instead of tm_print_insn.
11104
11105 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11106
11107         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11108
11109 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11110
11111         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11112         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11113         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11114
11115 2002-04-12  Don Howard  <dhoward@redhat.com>
11116
11117         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11118         max_user_call_depth.
11119         (init_cmd_lists): Initialize the new value;
11120         * cli/cli-script.c (execute_user_command): Limit the call depth of
11121         user defined commands.  This avoids a core-dump when user commands
11122         are infinitly recursive.
11123
11124 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11125
11126         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11127         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11128         from tdep struct instead of DEFAULT_LR_SAVE.
11129         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11130         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11131         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11132
11133 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11134
11135         * Remote.c: Spelling fix.
11136         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11137         If no symbol found for "sbrk", try "_sbrk".
11138         (make_output_phdrs): Use bfd_section_name.
11139         (gcore_copy_callback): Use bfd_section_name.
11140         * eval.c: Indentation fix-ups.
11141         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11142         in case it gets applied to an address that is already
11143         in the instruction space.
11144         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11145         * symfile.c: Fix indentation, long lines.
11146         * source.c: White space fix-up.
11147
11148 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11149
11150         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11151         * frame.c (frame_register_read): New function.  Return non-zero on
11152         success.
11153         (read_relative_register_raw_bytes_for_frame): Delete.
11154         (read_relative_register_raw_bytes): Delete.
11155         * frame.h (frame_register_read): Declare.
11156         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11157         * sh-tdep.c: Ditto.
11158         * infcmd.c (do_registers_info): Ditto.
11159         * hppa-tdep.c: Ditto.
11160         * rs6000-tdep.c: Ditto.
11161         * h8500-tdep.c: Ditto.
11162         * mips-tdep.c: Ditto.
11163         * h8300-tdep.c: Ditto.
11164         * z8k-tdep.c: Ditto.
11165
11166 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11167
11168         From Jimi X <jimix@watson.ibm.com>:
11169         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11170         64-bit SysV ABI.
11171
11172 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11173
11174         From Jimi X <jimix@watson.ibm.com>:
11175         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11176         bfd info.
11177
11178 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11179
11180         From Jimi X <jimix@watson.ibm.com>:
11181         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11182         register sets for these processor variants.
11183
11184 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11185
11186         * regformats/reg-ppc.dat: Support FPSCR.
11187
11188 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11189
11190         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11191         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11192         Add fpscr as an invalid/unfetchable register.
11193         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11194         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11195         (fill_fpregset): Add support for register fpscr.
11196         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11197         (fill_gregset): Account for the fact that register ``mq'' might
11198         not exist.
11199         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11200         (registers_power): Add fpscr to register set at slot 71.
11201         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11202         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11203
11204 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11205
11206         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11207         * configure: Regenerate.
11208         * config.in: Regenerate.
11209         * acconfig.h: Add define for _SYSCALL32.
11210         * core-sol2.c: Remove #define _SYSCALL32.
11211         * solib-legacy.c: Remove #define _SYSCALL32.
11212
11213 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11214
11215         * stack.c (select_frame): Cleanup internal error message, do not
11216         use %p.
11217
11218 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11219
11220         * stack.c (select_frame): Check that selected_frame and the
11221         specified level are as expected.
11222         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11223         Update copyright.
11224         * frame.h (struct frame_info): Add field `level'.  Update
11225         copyright.
11226         Work-in-progress PR gdb/464.
11227
11228 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11229
11230         * maint.c (maint_print_section_info): Rename print_section_info.
11231         (print_bfd_section_info, print_objfile_section_info): Update.
11232         * inferior.h (struct gdbarch): Add opaque declaration.
11233         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11234         * gdbarch.h: Regenerate.
11235
11236 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11237
11238         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11239         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11240         (kernel_u_size): Added.
11241         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11242         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11243
11244 2002-04-04  Jim Ingham  <jingham@apple.com>
11245
11246        * valarith.c (find_size_for_pointer_math): New function, either returns
11247        the size for a pointer's target, returns 1 for void *, or errors for
11248        incomplete types.
11249        (value_add, value_sub): use find_size_for_pointer_math.
11250
11251 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11252
11253         * linux-low.c (linux_look_up_symbols): New hook.
11254         (linux_target_ops): Add linux_look_up_symbols.
11255         * remote-utils.c (decode_address): New function.
11256         (look_up_one_symbol): New function.
11257         * server.c (handle_query): Call target look_up_symbols hook.
11258         * server.h (look_up_one_symbol): Add prototype.
11259         * target.h (struct target_ops): Add look_up_symbols hook.
11260
11261 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11262
11263         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11264         override FP_REGNUM with frame->fp.  Update copyright.
11265         * parse.c (num_std_regs, std_regs): Delete.
11266         (target_map_name_to_register): Do not search std_regs.  Update
11267         function description.
11268         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11269         declarations.  Update copyright.
11270         Fix PR gdb/251.
11271
11272 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11273
11274         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11275         after the last symbol in a block.
11276
11277 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11278
11279         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11280         is non zero as a found symbol.
11281
11282 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11283
11284         * findvar.c: Include "builtin-regs.h".
11285         (value_of_register): Call value_of_builtin_reg when applicable.
11286         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11287         (target_map_name_to_register): Call
11288         builtin_reg_map_name_to_regnum.
11289         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11290         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11291         (builtin_regs_h): Define.
11292         (builtin-regs.o): New target.
11293         (findvar.o): Add $(builtin_regs_h).
11294         * builtin-regs.c, builtin-regs.h: New files.
11295         * std-regs.c: New file.
11296         Partial fix for PR gdb/251.
11297
11298 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11299
11300         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11301         it's no longer required.
11302
11303 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11304
11305         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11306
11307 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11308
11309         From Jimi X <jimix@watson.ibm.com>:
11310         * rs6000-tdep.c (rs6000_software_single_step): Use
11311         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11312         and size.  Use target_insert_breakpoint() and
11313         target_remove_breakpoint() to insert and remove breakpoints
11314         instead of explicit memory reads and writes.
11315
11316 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11317
11318         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11319         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11320         ELF_OBJECT_FORMAT ifdef.
11321
11322 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11323
11324         From Jimi X <jimix@watson.ibm.com>:
11325         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11326
11327 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11328
11329         From Jimi X <jimix@watson.ibm.com>:
11330         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11331         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11332
11333 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11334
11335         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11336         s/asprintf/xasprintf/.
11337         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11338
11339 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11340
11341         I believe Jeff Law denies responsability for this one:
11342         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11343         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11344         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11345         Work-around for PR gdb/366.
11346
11347 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11348
11349         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11350         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11351         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11352
11353 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11354
11355         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11356         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11357         information.
11358
11359 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11360
11361         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11362         maintainer.
11363
11364 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11365
11366         * README (Reporting Bugs in GDB): Document the bug web page as the
11367         prefered way of submitting bugs.
11368         Fix PR gdb/402.
11369
11370 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11371
11372         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11373         -1.  Update comment.
11374         * gdbarch.h, gdbarch.c: Re-generate.
11375
11376 2002-04-07  Andreas Schwab  <schwab@suse.de>
11377
11378         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11379         buffer to regcache_collect.
11380
11381 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11382
11383         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11384         * gdbarch.c, gdbarch.h: Re-generate.
11385
11386 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11387
11388         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11389         declaration.  Fix -Werror.
11390
11391 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11392
11393         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11394         * gdbarch.c: Regenerate.
11395
11396 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11397
11398         * breakpoint.c (clear_command): Rewrite middle section to
11399         combine two loops with identical control conditions.
11400         Add a cleanup to eliminate a memory leak.
11401         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11402
11403 2002-04-05  H.J. Lu  (hjl@gnu.org)
11404
11405         * solib-svr4.c (bkpt_names): Add "__start".
11406
11407 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11408
11409         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11410         as test for 64 bit target.
11411
11412 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11413
11414         * h8500-tdep.c (h8500_write_fp): Delete function.
11415         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11416         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11417         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11418         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11419         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11420         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11421         (s390_write_fp):
11422         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11423         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11424         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11425         (d10v_write_fp): Delete function.
11426         * inferior.h (write_fp, generic_target_write_fp): Delete
11427         declarations.
11428         * regcache.c (generic_target_write_fp): Delete function.
11429         (write_fp): Delete function.
11430         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11431         * gdbarch.h, gdbarch.c: Regenerate.
11432         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11433         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11434         (sparc64_write_fp): Delete declaration.
11435         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11436         (h8500_write_fp): Delete declaration.
11437
11438 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11439
11440         * sparc-tdep.c (sparc64_write_fp): Delete.
11441         (sparc_push_dummy_frame): Replace write_fp call with code to store
11442         the FP directly.
11443         (sparc_gdbarch_init): Do not initialize write_fp.
11444
11445 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11446
11447         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11448         clause.
11449
11450 2002-03-29  Jim Blandy  <jimb@redhat.com>
11451
11452         * stack.c (get_selected_block): Add new argument `addr_in_block',
11453         used to return the exact code address we used to select the block,
11454         not just the block.
11455         * blockframe.c (get_frame_block, get_current_block): Same.
11456         * frame.h (get_frame_block, get_current_block,
11457         get_selected_block): Update declarations.
11458         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11459         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11460
11461 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11462
11463         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11464         warning message.
11465
11466 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11467
11468         * utils.c (xfullpath): New function.
11469         * defs.h (xfullpath): Add declaration.
11470         * source.c (openp): Use xfullpath in place of gdb_realpath to
11471         avoid resolving the basename part of filenames when the
11472         associated file is a symbolic link. This fixes a potential
11473         inconsistency between the filenames known to GDB and the
11474         filenames it prints in the annotations.
11475         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11476         to be able to match a filename with either the real filename, or
11477         the name of any symbolic link to this file.
11478         (lookup_partial_symtab): Ditto.
11479
11480 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11481
11482         * breakpoint.c: Add support for hardware breakpoints in overlays.
11483         (overlay_events_enabled): New state variable.
11484         (insert_breakpoints): Use overlay_events_enabled to decide
11485         whether to attempt to set a breakpoint at the overlay load addr.
11486         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11487         (remove_breakpoint): Use overlay_events_enabled to decide
11488         whether breakpoints need to be removed from overlay load addr.
11489         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11490         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11491         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11492         disable_overlay_breakpoints): Update overlay_events_enabled.
11493
11494 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11495
11496         * dwarf2read.c (struct function_range): New.
11497         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11498         (check_cu_functions): New.
11499         (read_file_scope): Initialize global function lists.
11500         Call dwarf_decode_line after processing children.
11501         (read_func_scope): Add to global function list.
11502         (dwarf_decode_lines): Call check_cu_functions everywhere
11503         record_line is called.  Call record_line with a linenumber
11504         of 0 to mark sequence ends.
11505
11506 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11507
11508         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11509         change sync with glibc.
11510
11511 2002-04-03  Jim Blandy  <jimb@redhat.com>
11512
11513         * configure.in: Call AC_C_INLINE.
11514         * configure: Regenerated.
11515
11516 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11517
11518         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11519         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11520
11521 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11522
11523         * NEWS: Mention gcore support on FreeBSD/i386.
11524
11525         * fbsd-proc.c: New file.
11526         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11527         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11528
11529         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11530         while statement.
11531
11532 2002-03-29  Jim Blandy  <jimb@redhat.com>
11533
11534         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11535         unescaped newlines in string literals, but newer ones don't.  So
11536         escape them.
11537
11538 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11539             Andrew Cagney <cagney@redhat.com>
11540
11541         * cli/cli-dump.c: New file.  Dump memory to file,
11542         restore file to memory.
11543         * cli/cli-dump.h: New file.
11544         * Makefile.in: Add rules, dependencies for cli-dump.o.
11545         * NEWS: Mention new commands.
11546
11547 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11548
11549         * symfile.c (symbol_file_add): Move test for null symbols to later.
11550
11551 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11552
11553         From veksler at il.ibm.com:
11554         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11555         the xstrduped original path.
11556         Fix PR gdb/417.
11557
11558 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11559
11560         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11561         * infcmd.c (_initialize_infcmd): Ditto.
11562         * language.c (_initialize_language): Ditto.
11563         * symfile.c (_initialize_symfile): Ditto.
11564         * top.c (_init_main): Ditto.
11565         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11566
11567 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11568
11569         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11570         vector registers handling.
11571         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11572         fields of frame data.
11573         (frame_get_saved_regs): Fill in information for AltiVec registers.
11574
11575 2002-03-27  Jim Blandy  <jimb@redhat.com>
11576
11577         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11578         a function; leave this macro here to invoke that function.
11579         (symbol_init_mangled_name): Declaration for that function.
11580         * symtab.c (symbol_init_mangled_name): New function.
11581
11582 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11583
11584         * valarith.c: Replace strerror with safe_strerror.
11585         * tracepoint.c: Ditto.
11586         * lin-lwp.c: Ditto.
11587         * go32-nat.c: Ditto.
11588         * inflow.c: Ditto.
11589         * gnu-nat.c: Ditto.
11590
11591 2002-03-27  Andreas Schwab  <schwab@suse.de>
11592
11593         * event-top.c (command_line_handler): Remove useless if.
11594
11595 2002-03-27  Andreas Jaeger  <aj@suse.de>
11596
11597         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11598         comment.
11599
11600 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11601
11602         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11603         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11604         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11605         (x86_64_linux_dr_get_status, supply_gregset),
11606         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11607         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11608         (x86_64_register_info_table): Add.
11609         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11610         (x86_64_register_raw_size, x86_64_register_virtual_type),
11611         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11612         general x86_64_register_info_table.
11613         (i386_gdbarch_init): gdbarch_register_bytes is now set
11614         dynamicaly during initialization.
11615         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11616         * gdbserver/linux-x86-64-low.c: Ditto.
11617
11618 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11619
11620         * gdbserver/server.c (main): Call target_signal_to_host_p
11621         and target_signal_to_host on signals received from the remote.
11622         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11623         target_signal_from_host on signals sent to the remote.
11624         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11625         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11626
11627 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11628
11629         * signals/signals.c: Include "server.h" in gdbserver build.
11630         (target_signal_from_name): Don't use STREQ.
11631         (_initialize_signals): Likewise.  Don't include function in
11632         gdbserver build.
11633
11634 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11635
11636         * signals.c: Moved to...
11637         * signals/signals.c: Here.
11638         * Makefile (signals.o): Update.
11639
11640 2002-03-26  Jeff Law (law@redhat.com)
11641
11642         * somread.c (som_symtab_read): Remove some commented out code and
11643         updated related comments.  Do not set the minimal symbol table to
11644         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11645         in a dynamic executable.
11646         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11647         where we are unable to find the minimal symbol for the given
11648         PC value.
11649
11650 2002-03-25  Jeff Law (law@redhat.com)
11651
11652         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11653
11654 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11655
11656         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11657
11658 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11659
11660         * command.h: Update copyright.
11661         (struct cmd_list_element): Replace definition with opaque
11662         declaration.
11663         (enum cmd_types): Document that it will eventually be moved to
11664         cli/cli-decode.h
11665         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11666         (MALLOCED_REPLACEMENT): Delete macro.
11667         * Makefile.in (cli_decode_h): Add $(command_h).
11668         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11669         * top.c: Include "cli/cli-decode.h".
11670         * completer.c: Include "cli/cli-decode.h".
11671         * maint.c: Include "cli/cli-decode.h".
11672         * cli/cli-decode.h: Include "command.h".
11673         (enum command_class): Delete.
11674         (enum cmd_types): Comment out.
11675         (enum cmd_auto_boolean): Delete.
11676         (enum var_types): Delete.
11677
11678 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11679
11680         * cli/cli-decode.c: Include "gdb_assert.h".
11681         (add_set_or_show_cmd): New static function.
11682         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11683         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11684         all fields, such as func, from the set command.
11685
11686 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11687
11688         * MAINTAINERS (sh-elf): Change warning flag to -w.
11689
11690 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11691
11692         * defs.h (error): Add printf format attribute.
11693         * thread-db.c (thread_from_lwp): Fix error format string.
11694         * stack.c (parse_frame_specification): Ditto.
11695         * cli/cli-decode.c (undef_cmd_error): Ditto.
11696         * scm-lang.c (scm_lookup_name): Ditto.
11697         * tracepoint.c (trace_error): Ditto.
11698         * remote-utils.c (usage): Ditto.
11699         * remote.c (compare_sections_command): Ditto.
11700         Fix PR gdb/328.
11701
11702 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11703
11704         * gdbtypes.c (append_composite_type_field): New function.
11705         (init_composite_type): New function.
11706         * gdbtypes.h (append_composite_type_field): Declare.
11707         (init_composite_type): Ditto.
11708
11709 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11710
11711         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11712         function.
11713         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11714         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11715         structure returning convention for SYSV ABI case, but not
11716         for GNU/Linux, FreeBSD, or NetBSD.
11717
11718 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11719
11720         * symtab.h (lookup_block_symbol): Add mangled_name argument
11721         to prototype.
11722
11723         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11724         with new mangled_name argument.
11725         * linespec.c (decode_line_1): Likewise.
11726         * valops (value_of_this): Likewise.
11727         * symtab.c (lookup_transparent_type): Likewise.
11728         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11729         (lookup_symbol): If we are given a mangled name, pass it down
11730         to lookup_symbol_aux.
11731         (lookup_block_symbol): If we are given a mangled name to check
11732         against, only return symbols which match it.
11733
11734 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11735
11736         * win32-nat.c (child_create_inferior): Check for proper shell to use
11737         here, in case the user changes it on the fly.
11738         (_initialize_inftarg): Remove shell path considerations.
11739
11740 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11741
11742         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11743         for gdbarch_max_register_raw_size and max_register_virtual_size.
11744         Adjust copyright year.
11745
11746 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11747
11748          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11749          in a function to cover the entire beginning of the function
11750          as well if it does not already.
11751
11752 2002-03-21  Tom Rix  <trix@redhat.com>
11753
11754         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11755         (rs6000_ptrace64): Renamed from ptrace64.
11756
11757 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11758
11759         * gdbserver/remote-utils.c (remote_open): Don't call
11760         getprotobyname, we're all using TCP here so just use
11761         IPPROTO_TCP.
11762         * gdbserver/gdbreplay.c (remote_open): Ditto.
11763
11764 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11765
11766         * regcache.c (_initialize_regcache): No need to call
11767         build_regcache() at this time; it gets called whenever
11768         the gdbarch changes.
11769
11770 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11771
11772         * sparc-nat.c:  Include sys/param.h where possible.
11773
11774 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11775
11776         Fix PR gdb/422.
11777         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11778         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11779         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11780         complex types.
11781         * stabsread.c (rs6000_builtin_type): Likewise.
11782         (read_sun_floating_type): Likewise.
11783
11784 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11785
11786         * stabsread.c (read_member_functions): Remove skip code for duplicate
11787         constructor/destructor methods.  Use standard parsing for these
11788         methods and just do not chain them to the list of methods after
11789         parsing.
11790
11791 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
11792
11793         * coffread.c: Remove redundant static declarations.  Replace
11794         occurrences of `PTR' with `void *'.
11795         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11796         * top.h (quit_cover): Likewise.
11797         * defs.h (catch_errors): Likewise.
11798
11799 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11800
11801         * defs.h (XMALLOC): Define.
11802         * gdb-events.sh (XMALLOC): Delete macro.
11803         * gdb-events.c, gdb-events.h: Regenerate.
11804         * gdbarch.sh (XMALLOC): Delete macro.
11805         * gdbarch.c: Regenerate.
11806         * serial.c (XMALLOC): Delete macro.
11807         * ui-file.c (XMALLOC): Ditto.
11808         * ser-unix.h (XMALLOC): Ditto.
11809         * sh-tdep.c (XMALLOC): Ditto.
11810         * ui-out.c (XMALLOC): Ditto.
11811         * utils.c (XMALLOC): Ditto.
11812         * i386-tdep.c (XMALLOC): Ditto.
11813         * gdb-events.c (XMALLOC): Ditto.
11814         * d10v-tdep.c (XMALLOC): Ditto.
11815         * cli-out.c (XMALLOC): Ditto.
11816
11817         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11818         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11819         * ui-file.c, ui-out.c: Ditto.
11820
11821 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11822
11823         * command.h (struct cmd_list_element): Add field context.
11824         (set_cmd_context, get_cmd_context): Declare.
11825         * cli/cli-decode.h: Ditto.
11826         * cli/cli-decode.c (get_cmd_context): New function.
11827         (set_cmd_context): New function.
11828         (add_cmd): Initialize context.
11829         Part of fixing PR gdb/145 and PR gdb/146.
11830
11831 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11832
11833         * cli/cli-decode.c (cmd_type): New function.
11834         * command.h (cmd_type): Declare.
11835         * infrun.c (set_schedlock_func): Call function cmd_type.
11836         * kod.c (kod_set_os): Call cmd_type.
11837         * cris-tdep.c (cris_version_update): Use function cmd_type.
11838         (cris_mode_update, cris_abi_update): Ditto.
11839
11840         * command.h: (execute_cmd_post_hook): Declare.
11841         (execute_cmd_pre_hook): Declare.
11842         * cli/cli-script.c (clear_hook_in_cleanup): New function.
11843         (execute_cmd_post_hook, execute_cmd_pre_hook): New
11844         functions. Execute pre/post hook while ensuring that afterwords
11845         hook_in is cleared.
11846         * top.c (execute_command): Use execute_cmd_post_hook, and
11847         execute_cmd_pre_hook to execute pre/post commands.
11848         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11849         hook_stop_stub.
11850         (hook_stop_stub): Call execute_cmd_pre_hook.
11851
11852 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11853
11854         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
11855         set'' and this leads to a core dump.  Move xstrdup of
11856         operating_system to after check that it is not NULL.
11857
11858 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11859
11860         * kod.c (kod_set_os): Remove unnecessary check that
11861         ``command->type'' is set_cmd.
11862
11863         * valprint.c (set_input_radix): Use input_radix.
11864         (set_output_radix): Use output_radix.
11865         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11866         isn't reverted.
11867
11868 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
11869
11870         * value.h (struct value): Delete field ``substring_addr''.  Change
11871         aligner fields to force_doublest_align, force_longest_align,
11872         force_core_addr_align and force_pointer_aligh.
11873
11874         * value.h (struct value): Fix typo in above change.
11875
11876 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11877
11878         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11879         to fix internal_error from ``maintenance print architecture''.
11880
11881 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11882
11883         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11884         for gcc versions after gcc-2.8.1.
11885
11886 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11887
11888         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11889         for method resolution.  Restore adjustment of ``this'' pointer after
11890         calling value_struct_elt, which was accidentally removed during the
11891         HP merge.
11892
11893 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
11894
11895         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11896         value_of_register.
11897         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
11898         get_saved_register.
11899         * value.h (value_of_register): Update.
11900
11901 2002-03-14  Richard Henderson  <rth@redhat.com>
11902
11903         * configure.in: Detect declaration for canonicalize_file_name.
11904         * utils.c (canonicalize_file_name): Declare, if needed.
11905         (gdb_realpath): Prefer realpath if available and usable.
11906         * config.in, configure: Rebuild.
11907
11908 2002-03-14  Richard Henderson  <rth@redhat.com>
11909
11910         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11911         a constant array bound.
11912
11913         * MAINTAINERS: Add myself to write-after-approval.
11914
11915 2002-03-14  Michael Snyder  <msnyder@redhat.com>
11916
11917         * symfile.c (syms_from_objfile): Return immediately if no syms.
11918         (symbol_file_add): Return immediately if no syms.
11919         (find_sym_fns): Return immediately if no syms.
11920
11921 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
11922
11923         * gdbserver/remote-util.c (remote_open): Print remote-side's
11924         IP address when remote debugging over the network.
11925
11926 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
11927
11928         * config/sparc/fbsd.mh: Fix copyright.
11929         * config/sparc/fbsd.mt: Likewise.
11930
11931 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
11932
11933         * MAINTAINERS: Fix typo in name of gdb warnings option.
11934         (x86-64): Fix formating so that this can be parsed by awk.
11935
11936 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
11937
11938         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11939         * defs.h: Include "gdb/signals.h".
11940         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11941
11942 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
11943
11944         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11945         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11946         from x86-64-tdep.h
11947
11948 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
11949             Don Howard <dhoward@redhat.com>
11950
11951         * mips-tdep.c (ST0_FR): Define.
11952         (mips2_fp_compat): New function, temporarily disabled.
11953         (mips_read_fp_register_single): New function.
11954         (mips_read_fp_register_double): New function.
11955         (mips_print_register): Use them.
11956         (do_fp_register_row): Likewise.
11957
11958 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
11959
11960         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11961         approval''.
11962
11963 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11964
11965         * stabsread.c (read_member_functions): Fix is_stub test for
11966         static member functions, improve comment.
11967
11968 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
11969
11970         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11971         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11972         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11973         commands that set boolean values.
11974         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11975         (arm_rdi_resume): Always initialize PC.
11976         (arm_rdi_open): Don't use rslt as a boolean.
11977         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11978         (arm_rdi_fetch_registers, arm_rdi_store_registers)
11979         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11980         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11981
11982 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
11983
11984         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11985         * configure: Rebuilt.
11986
11987 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11988
11989         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11990         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11991
11992 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
11993
11994         * cli/cli-decode.c (set_cmd_completer): New function.
11995         * command.h (set_cmd_completer): Declare.
11996         * cli/cli-decode.h (set_cmd_completer): Ditto.
11997
11998         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11999         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12000         * win32-nat.c (_initialize_inftarg): Ditto.
12001         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12002         * proc-api.c (_initialize_proc_api): Ditto.
12003         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12004         * source.c (_initialize_source): Ditto.
12005         * exec.c (_initialize_exec): Ditto.
12006         * solib.c (_initialize_solib): Ditto.
12007         * top.c (init_main): Ditto.
12008         * tracepoint.c (_initialize_tracepoint): Ditto.
12009         * symfile.c (_initialize_symfile): Ditto.
12010         * printcmd.c (_initialize_printcmd): Ditto.
12011         * infcmd.c (_initialize_infcmd): Ditto.
12012         * corefile.c (_initialize_core): Ditto.
12013
12014 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12015
12016         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12017
12018 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12019
12020         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12021
12022 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12023
12024         * NEWS: Update headings, 5.2 has branched.
12025
12026 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12027
12028         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12029         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12030         (register_addr, REGISTER_RAW_SIZE): Likewise.
12031         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12032         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12033
12034 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12035
12036         * MAINTAINERS (x86-64): Add myself.
12037         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12038         changed value_ptr -> struct value *
12039
12040 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12041
12042         * configure.host (sparc64-*-freebsd): Add.
12043         * configure.tgt: Likewise.
12044         * config/sparc/fbsd.mh: New file.
12045         * config/sparc/fbsd.mt: Likewise.
12046         * config/sparc/nm-fbsd.h: Likewise.
12047         * config/sparc/tm-fbsd.h: Likewise.
12048
12049 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12050
12051         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12052         regformats/reg-s390x.dat.
12053
12054 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12055
12056         * utils.c: Add FIXME explaining true/false problem.
12057
12058 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12059
12060         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12061
12062 2002-02-28  Michael Chastain  <mec@shout.net>
12063
12064         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12065
12066 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12067
12068         * gdbserver/linux-s390-low.c: New file.
12069         * regformats/reg-s390.dat: New file.
12070         * regformats/reg-s390x.dat: New file.
12071         * gdbserver/configure.srv: Add S/390.
12072         * gdbserver/Makefile.in: Add S/390.
12073         * configure.tgt: Enable gdbserver for S/390.
12074
12075 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12076
12077         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12078         first line of the doc string for "info dos", except at the end of
12079         the sentence, since the short help stops at the first period.
12080
12081 2002-02-28  Jason Merrill  <jason@redhat.com>
12082
12083         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12084
12085 2002-02-27  Fred Fish  <fnf@redhat.com>
12086
12087         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12088         comment (dumy -> dummy).
12089
12090 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12091
12092         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12093
12094 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12095
12096       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12097
12098 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12099
12100         * gdbserver/acconfig.h: New file.
12101         * gdbserver/i387-fp.c: New file.
12102         * gdbserver/i387-fp.h: New file.
12103         * gdbserver/linux-x86-64.c: New file.
12104         * regformats/reg-x86-64.dat: New file.
12105         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12106         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12107         * gdbserver/configure.in: Add support for regsets.
12108         * gdbserver/config.in: Regenerate.
12109         * gdbserver/configure: Regenerate.
12110         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12111         * gdbserver/linux-low.h: New file.
12112         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12113         for regsets.
12114         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12115         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12116         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12117         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12118         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12119         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12120         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12121         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12122         * gdbserver/regcache.c (supply_register): New function.
12123         (supply_register_by_name): New function.
12124         (collect_register): New function.
12125         (collect_register_by_name): New function.
12126
12127 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12128
12129         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12130         (config.status): Add configure.srv dependency.
12131         (server_h): Add config.h dependency.
12132
12133 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12134
12135         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12136         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12137         * gdbserver/configure.srv: Change i386-*-linux* to use
12138         reg-i386-linux.o.
12139
12140 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12141
12142         * x86-64-tdep.c: Re-indent.  Update copyright date.
12143
12144 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12145
12146         From Michal Ludvig <mludvig@suse.cz>:
12147         * x86-64-tdep.c (value.h): Delete.
12148         (gdb_assert.h): Include.
12149         (x86_64_register_convert_to_virtual,
12150         x86_64_register_convert_to_raw ): Add check which lets only
12151         floating-point values to be converted.
12152         (value_push): Delete.
12153         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12154         (i386_gdbarch_init): Number of register_bytes fixed.
12155
12156 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12157
12158         * MAINTAINERS: Add x86-64 target.
12159
12160 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12161
12162         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12163         * osfsolib.c (solib_map_sections): Ditto.
12164         * irix5-nat.c (solib_map_sections): Ditto.
12165         * corelow.c (gdb_check_format): Ditto.
12166         * symfile.c (symfile_bfd_open): Ditto.
12167         * solib.c (solib_map_sections): Ditto.
12168         Fix PR gdb/354.
12169
12170 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12171
12172         * remote.c (_initialize_remote): By default, disable ``e'' and
12173         ``E'' step out-of-range packets.
12174
12175 2002-02-26  Andreas Schwab  <schwab@suse.de>
12176
12177         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12178         m68k_linux_frame_saved_pc.
12179         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12180         in_sigtramp.
12181         (SIGCONTEXT_PC_OFFSET): Remove.
12182         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12183         m68k_linux_sigtramp_saved_pc): New functions.
12184         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12185         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12186         (UCONTEXT_PC_OFFSET): Define.
12187         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12188         non-RT and RT signal trampolines.
12189
12190 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12191
12192         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12193         (TARGET_NBPG, STACK_END_ADDR): Delete
12194         (VARIABLES_INSIDE_BLOCK): Delete.
12195
12196 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12197
12198         * utils.c (perror_with_name): Make string parameter constant.
12199         (print_sys_errmsg): Ditto.
12200         (query): Ditto.
12201         * defs.h (perror_with_name): Update.
12202         (print_sys_errmsg): Update.
12203         (query): Update.
12204
12205 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12206
12207         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12208         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12209
12210 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12211
12212         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12213         if it already matches the current architecture from the exec file.
12214         Include arch-utils.h for gdbarch_info_init prototype.
12215         * Makefile.in (rs6000-nat.o): Update dependencies.
12216
12217 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12218
12219         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12220          list of exported variables.
12221
12222 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12223
12224         * gdbserver/configure.srv: New file.
12225         * gdbserver/configure.in: Use configure.srv instead
12226         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12227         from it.
12228         * gdbserver/configure: Regenerated.
12229         * gdbserver/terminal.h: New file.
12230         * gdbserver/Makefile.in: Update for configure changes.  Remove
12231         more unneeded include paths.
12232
12233 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12234
12235         From wiz at danbala:
12236         * config/sparc/tm-sp64.h: Fix grammar and typos.
12237         Fix PR gdb/287.
12238
12239 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12240
12241         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12242         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12243         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12244         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12245         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12246         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12247         * s390-tdep.c: Ditto.
12248         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12249         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12250         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12251         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12252         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12253         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12254         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12255         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12256         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12257         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12258         Fix PR gdb/378.
12259
12260 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12261
12262         * lin-thread.c: Delete file.
12263         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12264         to gdb_proc_service.h.
12265         * configure: Re-generate.
12266
12267         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12268         * serial.c (serial_open): Delete check for "ocd".
12269         Fix PR gdb/349.
12270
12271         * Makefile.in (linux-thread.o): Delete target.
12272         * linux-thread.c: Delete file.
12273
12274         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12275         renamed SH files to be consistent.
12276
12277         * symtab.c (sort_search_symbols): Use xfree.
12278
12279 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12280
12281         * arm-linux-tdep.c (arm_linux_init_abi): Register
12282         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12283         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12284         definition with undef, since we don't want the sysvr4 definition.
12285         (SKIP_TRAMPOLINE_CODE): Likewise.
12286
12287 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12288
12289         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12290
12291         * configure.in: (AC_CHECK_FUNCS) Added test for
12292         canonicalize_file_name Regenerated.
12293         * config.in, configure: Regenerated.
12294         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12295         defined use canonicalize_file_name.
12296
12297 2002-02-23  Michael Chastain  <mec@shout.net>
12298
12299         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12300
12301 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12302
12303         * README: Remove references to cygnus.com.
12304         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12305         dot com'' form.  Remove references to cygnus.com and sourceware.
12306
12307 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12308
12309         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12310         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12311         1003.1-2001 no longer allows "head -1".
12312         * gdb/Makefile.in (version.c): Likewise.
12313         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12314         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12315         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12316
12317 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12318
12319         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12320         * command.h (cmd_cfunc_eq): Declare.
12321         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12322
12323         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12324         ``struct cmd_list_element *''.
12325         * cli/cli-cmds.c (is_complete_command): Update.  Use
12326         cmd_cfunc_eq.
12327         * top.c (execute_command): Pass the command to
12328         is_complete_command.
12329         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12330
12331 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12332
12333         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12334         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12335         architecture defines.
12336         * s390-tdep.c (s390_gdbarch_init): Likewise.
12337
12338 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12339
12340         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12341         (arm_linux_push_arguments): Likewise.
12342         (arm_linux_init_abi): Register them.  Also register linux-specific
12343         call_dummy_words.
12344         (find_minsym_and_objfile): Use strcmp, not STREQ.
12345         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12346         (arm_linux_call_dummy_words): Delete declaration.
12347         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12348         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12349         declarations.
12350         (LOWEST_PC): Delete.
12351
12352 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12353
12354         * maint.c (print_section_info): Do not prepend `0x' to filepos
12355         output, it will be handled by local_hex_string_custom.
12356
12357 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12358
12359         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12360         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12361         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12362
12363 2002-02-22  Jim Blandy  <jimb@redhat.com>
12364
12365         Indicate that the bcache functions don't change the strings
12366         they're passed.
12367         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12368         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12369
12370 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12371
12372         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12373
12374 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12375
12376         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12377         find the complete path to a loaded DLL.
12378
12379 2002-02-21  Fred Fish  <fnf@redhat.com>
12380
12381         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12382         that marks the end of the range of a function, enter a line number
12383         entry that has a line number of zero and a PC offset that matches
12384         the end of the function.  This starts a range of PC's for which no
12385         line number information is known.
12386         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12387         PC's for which no line number info is found (line number is zero)
12388         then we didn't find any valid line information.
12389         * symtab.h: Document use of zero line number entry.
12390
12391 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12392
12393         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12394         (have_ptrace_getvrregs): Define for run time checks.
12395         (gdb_vrregset_t): New type for Altivec register handling.
12396         (fetch_register, store_register): Fetch/store altivec register
12397         when needed.
12398         (fetch_altivec_register, store_altivec_register): New functions.
12399         (supply_vrregset, fill_vrregset): New functions.
12400         (fetch_altivec_registers, store_altivec_registers): New functions.
12401         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12402         registers as well.
12403
12404 2002-02-21  Jiri Smid  <smid@suse.cz>
12405
12406         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12407
12408 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12409
12410         * Makefile.in (armnbsd-nat.o): Update dependencies.
12411         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12412         supply the integer register set.
12413         (supply_fparegset): New function.  Similar for FPA registers.
12414         (fetch_regs, fetch_fp_regs): Use them.
12415         (fetch_core_registers): Likewise.
12416         (fetch_elfcore_registers): New function.
12417         (arm_netbsd_elfcore_fns): New core-file type specification.
12418         (_initialize_arm_netbsd_nat): Register it.
12419
12420 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12421
12422         * armnbsd-nat.c: Include gdbcore.h.
12423         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12424         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12425         'void' to declaration, to shut up ARI.
12426         (fetch_core_registers): Make static.  Rewrite using supply_register.
12427         (arm_netbsd_core_fns): New core-file type specification.
12428         (_initialize_arm_netbsd_nat): New function.
12429
12430 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12431
12432         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12433         value.
12434
12435 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12436
12437         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12438         fails.
12439
12440 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12441
12442         * jv-exp.y (parse_number): Change type of implicit longs
12443         to builtin_type_uint64.
12444
12445 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12446
12447         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12448         to be an integer instead of a `union wait'.
12449
12450 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12451
12452         * mips-linux-nat.c: Call the operating system GNU/Linux.
12453         * mips-linux-tdep.c: Likewise.
12454         * mips-tdep.c: Likewise.
12455
12456 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12457
12458         Fix PR gdb/265.
12459         * jv-exp.y (parse_number): Handle 64-bit integers.
12460
12461 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12462
12463         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12464         AC_STDC_HEADERS to AC_HEADER_STDC.
12465         * gdbserver/configure: Regenerated.
12466
12467 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12468
12469         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12470         is defined.
12471         * sparc-tdep.c (get_longjmp_target): Likewise.
12472
12473 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12474
12475         * News: Add news about ARM and Multi-arch.  Mention the new target
12476         arm*-*-netbsd*.
12477
12478 2002-02-19  Jim Blandy  <jimb@redhat.com>
12479
12480         * stabsread.c (error_type_complaint): Improve error message.
12481
12482 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12483
12484         * gdbserver/README: Update documentation.
12485         * gdbserver/configure.in: Update configury to match documentation.
12486         * gdbserver/Makefile.in: Likewise.
12487         * gdbserver/configure: Regenerated.
12488         * gdbserver/aclocal.m4: New file, generated by aclocal.
12489         * gdbserver/config.in: New file, generated by autoheader.
12490
12491 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12492
12493         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12494         armnbsd-nat.c.
12495
12496 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12497
12498         * arm-tdep.h (enum arm_float_model): New enum.
12499         (struct gdbarch_tdep): Add fp_model.
12500         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12501         up floating-point conversions until we know the floating-point model
12502         in use by the inferior.  Don't complain about being unable to
12503         determine the ABI of the inferior when we don't have one.
12504         (arm_extract_return_value): Support different floating-point models.
12505         (arm_store_return_value): Likewise.
12506         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12507         ARM_FLOAT_SOFT.
12508         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12509
12510 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12511
12512         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12513         of ``current_gdbarch''.
12514
12515 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12516
12517         * armnbsd-nat.c : ANSIfy all function declarations.
12518         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12519         (fetch_inferior_registers): Re-implement in terms of above.
12520         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12521         (store_inferior_registers): Re-implement in terms of above.
12522
12523 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12524
12525         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12526         kernel.
12527         * arm-linux-tdep.c: Likewise.
12528         * config/arm/tm-linux.h: Likewise.
12529
12530 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12531
12532         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12533         * config/arm/nbsd.mt (TM_FILE): Delete.
12534         * config/arm/tm-nbsd.h: Delete.
12535
12536 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12537
12538         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12539         Initialize CALL_DUMMY_LENGTH.
12540
12541 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12542
12543         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12544         function.
12545         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12546         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12547         defines one thing and that is incorrect for this port.
12548         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12549
12550 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12551
12552         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12553
12554 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12555
12556         * win32-nat.c (display_selector): New function. Displays information
12557         about the information returned by GetThreadSelectorEntry API function.
12558         (display_selectors): New function. Displays the infomation of
12559         the selector given as argument, or of CS, DS ans FS selectors
12560         if no argument is given.
12561         ( _initialize_inftarg): Add "w32" as info prefix command.
12562         Add "info w32 selector" as command calling display_selectors.
12563
12564 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12565
12566         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12567         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12568         if not defined.
12569
12570 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12571
12572         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12573
12574 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12575
12576         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12577         (arm_fix_call_dummy): Call it.
12578         (arm_call_dummy_breakpoint_offset): Delete.
12579         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12580         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12581
12582 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12583
12584         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12585         Default to func_frame_chain_valid.
12586         * gdbarch.h, gdbarch.c: Re-generate.
12587         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12588
12589 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12590
12591         * ppc-linux-nat.c: Update copyright.
12592         (fetch_register, store_register): Add tid parameter, don't compute
12593         tid here.
12594         (fetch_ppc_registers, store_ppc_registers): Add tid
12595         parameter. Pass it along to callees.
12596         (fetch_inferior_registers, store_inferior_registers): Compute tid
12597         here, and pass it to calleed functions.
12598         (fill_gregset, supply_fpregset): Clean up formatting.
12599
12600 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12601
12602         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12603         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12604
12605 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12606
12607         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12608         * gdbarch.c gdbarch.h: Regenerate.
12609         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12610         function.
12611         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12612         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12613         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12614
12615         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12616         * arm-tdep.c (arm_get_longjmp_target): New function.
12617         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12618         this to a positive value register arm_get_longjmp_target as the
12619         longjmp handler.
12620         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12621         (arm_linux_init_abi): Set up longjmp description in tdep.
12622         * armnbsd-nat.c (get_longjmp_target): Delete.
12623         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12624         description in tdep.
12625         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12626         (get_longjmp_target): Delete declaration.
12627         (GET_LONGJMP_TARGET): Delete.
12628         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12629         (GET_LONGJMP_TARGET): Delete.
12630
12631 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12632
12633         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12634         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12635         of ``current_gdbarch''.
12636
12637 2002-02-17  Tom Tromey  <tromey@redhat.com>
12638
12639         * cli/cli-cmds.c (compare_strings): New function.
12640         (complete_command): Only print each unique item once.
12641         * completer.h (complete_line): Declare.
12642         * completer.c (complete_line): New function.
12643         (line_completion_function): Use it.
12644
12645 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12646
12647         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12648         * gdbarch.h, gdbarch.c: Re-generate.
12649
12650 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12651
12652         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12653
12654 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12655
12656         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12657         * valops.c (value_arg_coerce): Don't take the address of a reference
12658         to convert an argument to a reference.
12659
12660 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12661
12662         * win32-nat.c (get_image_name): New function.
12663         (handle_load_dll): Use get_image_name function.
12664         (get_child_debug_event): Avoid registering debug events until possibly
12665         execed process is started.
12666         (child_create_inferior): Allow invocation via shell so that command
12667         line redirection, etc.  works ok.
12668         (_initialize_inftarg): Add new command: "set shell" to control whether
12669         a shell is used to start a process.
12670
12671 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12672
12673         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12674         instead of find_register_by_number.
12675         (cannot_store_register): Likewise.
12676
12677 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12678
12679         * dwarf2read.c: Replace fprintf (stderr, ...) by
12680         fprintf_unfiltered (gdb_stderr, ...).
12681
12682 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12683
12684         * gdbserver/gdbserver.1: Document --attach.
12685
12686 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12687
12688         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12689         descriptions.
12690         * arm-tdep.c (arm_default_arm_le_breakpoint)
12691         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12692         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12693         traditional breakpoint defines.
12694         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12695         (arm_gdbarch_init): Initialize new breakpoint variables.
12696         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12697         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12698         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12699         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12700         code out to ...
12701         (arm_netbsd_init_abi_common): ... here; new function.
12702         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12703         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12704         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12705         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12706
12707 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12708
12709         * arm-tdep.h (enum arm_abi): New enum.
12710         (struct gdbarch_tdep): New structure.
12711         (LOWEST_PC): Provide a default.
12712         (arm_gdbarch_register_os_abi): Declare new function.
12713         * arm-tdep.c (arm_abi_names): New array.
12714         (process_note_abi_tag_sections): New function.
12715         (get_elfosabi): New function.
12716         (arm_gdbarch_register_os_abi): New function.
12717         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12718         support for that ABI has been built in, then call the appropriate
12719         configuration routine.  Use gdbarch_num_regs() to get the number
12720         of registers.
12721         (arm_dump_tdep): New function.
12722         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12723         place-holder functions.
12724         (_initialize_arm_tdep): Register them.
12725         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12726
12727         * armnbsd-tdep.c: New file.
12728         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12729         * config/arm/nbsd.mt (TDEPFILES): Add it.
12730         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12731
12732         * armnbsd-nat.c: Include regcache.h.
12733         * Makefile.in (armnbsd-nat.o): Update dependency list.
12734
12735         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12736
12737 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12738
12739         * gdbserver/Makefile.in: Fix typos in target rules.
12740
12741 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12742
12743         Fix part of PR gdb/267.
12744         * linespec.c (find_methods): Handle constructors specially for now.
12745
12746 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12747
12748         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12749         handling.
12750         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12751         standard_coerce_float_to_double().
12752
12753 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12754
12755         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12756         GDBINIT_FILENAME.
12757
12758 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12759
12760         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12761         find_variant_by_name, because it confuses the multiarch
12762         framework. Return NULL if there isn't an architecture with the
12763         user supplied name, instead of forcing a different one without
12764         recording the change with the multiarch machinery.
12765         (find_variant_by_name): Delete.
12766
12767 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12768
12769         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12770         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12771
12772 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12773
12774         * stack.c (print_frame_info_base): When calling
12775         print_frame_info_listing_hook, set current_source_symtab.
12776
12777 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12778
12779         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12780         and remove unused $(INCLUDE_DIR).
12781         Add regcache.c to OBS.
12782         Add generated register protocol files to clean target.
12783         Update dependencies for new objects, obsolete old target code.
12784
12785         * gdbserver/linux-low.c: Remove all platform-specific code to
12786         new files.  Remove various dead code.  Update to use regcache
12787         functionality.
12788         * gdbserver/remote-utils.c (fromhex): Add return statement
12789         to quiet warning.
12790         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12791         constant.
12792         (input_interrupt): Add integer parameter to match prototype
12793         of a signal handler.
12794         (outreg): Use register_data ().
12795         (prepare_resume_reply): Use gdbserver_expedite_regs.
12796         * gdbserver/server.c (main): Dynamically allocate own_buf because
12797         PBUFSIZ is no longer constant.  Use registers_to_string () and
12798         registers_from_string ().
12799         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
12800         for error (), fatal (), and warning ().  Update definition of
12801         PBUFSIZ to use regcache functionality.  Add include guard.
12802         * gdbserver/utils.c (fatal): Add missing ``const''.
12803         (warning): New function.
12804
12805         * regformats/regdat.sh: Include "regcache.h" in generated files.
12806         Provide init_registers () function.
12807         * regformats/regdef.h: Add prototype for set_register_cache ().
12808         Add include guard.
12809
12810         * gdbserver/linux-arm-low.c: New file.
12811         * gdbserver/linux-i386-low.c: New file.
12812         * gdbserver/linux-ia64-low.c: New file.
12813         * gdbserver/linux-m68k-low.c: New file.
12814         * gdbserver/linux-mips-low.c: New file.
12815         * gdbserver/linux-ppc-low.c: New file.
12816         * gdbserver/linux-sh-low.c: New file.
12817
12818         * gdbserver/regcache.c: New file.
12819         * gdbserver/regcache.h: New file.
12820
12821         * gdbserver/low-linux.c: Removed obsolete file.
12822
12823 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12824
12825         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12826         * config/i386/linux.mt: Likewise.
12827         * config/ia64/linux.mt: Likewise.
12828         * config/m68k/linux.mh: Likewise.
12829         * config/powerpc/linux.mh: Likewise.
12830         * config/mips/linux.mt: Likewise.
12831
12832         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12833
12834         * config/i386/i386lynx.mh: Mark gdbserver variables
12835         as (currently) obsolete for this target.
12836         * config/i386/nbsd.mt: Likewise.
12837         * config/i386/nbsdelf.mt: Likewise.
12838         * config/m32r/m32r.mt: Likewise.
12839         * config/m68k/m68klynx.mh: Likewise.
12840         * config/m68k/nbsd.mt: Likewise.
12841         * config/m68k/sun3os4.mh: Likewise.
12842         * config/mips/vr5000.mt: Likewise.
12843         * config/ns32k/nbsd.mt: Likewise.
12844         * config/pa/hppabsd.mh: Likewise.
12845         * config/pa/hppaosf.mh: Likewise.
12846         * config/powerpc/nbsd.mt: Likewise.
12847         * config/rs6000/rs6000lynx.mh: Likewise.
12848         * config/s390/s390.mt: Likewise.
12849         * config/s390/s390x.mt: Likewise.
12850         * config/sparc/sparclynx.mh: Likewise.
12851         * config/sparc/sun4os4.mh: Likewise.
12852         * config/i386/x86-64linux.mt: Likewise.
12853         * config/sparc/linux.mh: Likewise.
12854
12855 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12856
12857         * configure.tgt: Configure gdbserver only for known working
12858         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
12859         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
12860         SUBDIRS if it is configured.  Update comment for ${nativefile}.
12861         * configure: Regenerated.
12862
12863 2002-02-13  Michael Snyder  <msnyder@redhat.com>
12864
12865         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12866
12867         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12868         (default_gcore_mach): Just return 0, work around a problem in bfd.
12869         (default_gcore_target): OK to return NULL if exec_bfd is null.
12870         (make_mem_sec): Use a cast, avoid a warning.
12871
12872         * procfs.c (find_memory_regions_callback): Use a cast instead of
12873         calling host_pointer_to_address (which complains if
12874         sizeof (host pointer) != sizeof (target pointer)).
12875         (procfs_make_note_section): Avoid overflow in psargs string.
12876
12877         * procfs.c (procfs_make_note_section): Make the default
12878         implementation return an error.
12879
12880 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
12881
12882         * procfs.c (procfs_make_note_section): Provide a default definition
12883         (for alpha-dec-osf4.0f). Fix typos.
12884
12885 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
12886
12887         * linux-proc.c: Add include of regcache.h.
12888         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12889
12890 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
12891
12892         From 2002-01-18 Greg McGary <greg@mcgary.org>:
12893         * memattr.c (create_mem_region): Disallow useless empty region.
12894         Regions are half-open intervals, so allow [A..B) [B..C) as
12895         non-overlapping.
12896
12897 2002-02-13  Michael Chastain <mec@shout.net>
12898
12899         * defs.h: Kill CONST_PTR.
12900         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12901         * c-lang.c (c_builtin_types): Likewise.
12902         * ch-lang.c (ch_builtin_types): Likewise.
12903         * f-lang.c (f_builtin_types): Likewise.
12904         * language.c (unknown_builtin_types): Likewise.
12905         * m2-lang.c (m2_builtin_types): Likewise.
12906         * p-lang.c (pascal_builtin_types): Likewise.
12907         * scm-lang.c (c_builtin_types): Likewise.
12908
12909 2002-02-13  Keith Seitz  <keiths@redhat.com>
12910
12911         * arm-tdep.h (arm_get_next_pc): Add declaration.
12912
12913 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
12914
12915         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
12916         with other related struct-returning functions.
12917         (arm_extract_struct_value_address): New function.
12918         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
12919         initialize float_format, double_format and long_double_format as
12920         appropriate to the endianness of the target.
12921         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12922         (arm_use_struct_convention): Delete declaration.
12923         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12924
12925 2002-02-13  Keith Seitz  <keiths@redhat.com>
12926
12927         * defs.h (core_addr_to_string_nz): New function.
12928
12929 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
12930
12931         Apply missing bits of 2002-01-15 patch.
12932         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12933         (fill_fpregset): Use i387_fill_fsave.
12934
12935 2002-02-12  Keith Seitz  <keiths@redhat.com>
12936
12937         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12938         (core_addr_to_string_nz): New function.
12939
12940 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
12941
12942         * arm-linux-nat.c: Really include arm-tdep.h.
12943         * config/arm/tm-linux.h (struct type, struct value): Declare.
12944
12945 2002-02-11  Michael Snyder  <msnyder@redhat.com>
12946
12947         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12948         (gcore section): Ifdef for Solaris and Unixware only.
12949         (procfs_do_thread_registers): Unixware needs one lwpstatus
12950         per thread (not one prstatus or pstatus).
12951         (procfs_make_note_section): Iterate only over kernel threads (lwps),
12952         not over all gdb threads.  For unixware, call elfcore_write_pstatus
12953         once before iterating over threads.
12954
12955 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
12956
12957         * arm-tdep.h: New file.
12958         * arm-tdep.c: Include arm-tdep.h.
12959         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12960         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12961         (arm_print_float_info, arm_register_type, convert_to_extended)
12962         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12963         (arm_extract_return_value, arm_register_name): Make static.
12964         (arm_software_single_step): Similarly.  Fix types in declaration.
12965         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12966         (arm_store_return_value, arm_store_struct_return): New functions.
12967         (arm_gdbarch_init): Register the above functions.  Also register
12968         call_dummy_start_offset, sizeof_call_dummy_words,
12969         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12970         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12971         max_register_virtual_size, register_size.  Set up
12972         prologue_cache.saved_regs here, rather than ...
12973         (_initialize_arm_tdep): ... here.
12974         * config/arm/tm-arm.h (struct type, struct value): Delete forward
12975         declarations.
12976         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12977         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12978         (arm_print_float_info, arm_register_type, convert_to_extended)
12979         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12980         (arm_extract_return_value, arm_register_name): Delete declarations.
12981         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12982         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12983         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12984         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12985         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12986         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12987         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12988         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12989         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12990         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12991         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12992         (arm_get_next_pc): No-longer static -- these are needed by the RDI
12993         interface.
12994         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12995         * remote-rdi.c remote-rdp.c: Likewise.
12996         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12997         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12998         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12999         definition.
13000
13001         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13002         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13003         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13004         from non-ARM_ prefixed definitions.
13005         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13006         all uses of above.
13007         * remote-rdi.c remote-rdp.c: Likewise.
13008         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13009
13010 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13011
13012         * arm-tdep.c (arm_frameless_function_invocation)
13013         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13014         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13015         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13016         (arm_pop_frame, arm_get_next_pc): Make static.
13017         (arm_gdbarch_init): Register above in gdbarch structure.
13018         (arm_read_fp): Renamed from arm_target_read_fp.
13019         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13020         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13021         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13022         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13023         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13024         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13025         (arm_pc_is_thumb_dummy): Delete declarations.
13026         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13027         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13028         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13029         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13030
13031 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13032
13033         * symtab.c (compare_search_syms): New function.
13034         (sort_search_symbols): New function.
13035         (search_symbols): Sort symbols after searching rather than
13036         before.
13037
13038 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13039
13040         * NEWS: Linux -> GNU/Linux.
13041
13042 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13043
13044         * gdbarch.sh: For for level one methods, disallow a definition
13045         when partially multi-arched.  Add comments explaining rationale.
13046         * gdbarch.h: Re-generate.
13047
13048 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13049
13050         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13051         multi-arch partial.
13052
13053 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13054
13055         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13056         field.  Use diff -u.
13057         * gdbarch.c: Re-generate.
13058
13059 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13060
13061         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13062         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13063         partial.
13064
13065 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13066
13067         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13068         multi-arch partial.
13069         (PUSH_ARGUMENTS): Switch to using predefault.
13070         * gdbarch.c: Regenerate.
13071
13072 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13073
13074         * valops.c (PUSH_ARGUMENTS): Delete definition.
13075         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13076         partial.  Default to default_push_arguments.
13077         * gdbarch.h, gdbarch.c: Regenerate.
13078
13079 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13080
13081         * defs.h (throw_exception): Rename return_to_top_level.  Update
13082         comments.
13083         * utils.c (error_stream, internal_verror, quit): Ditto.
13084         * top.c (throw_exception, catcher): Ditto.
13085         * sparclet-rom.c (sparclet_load): Ditto.
13086         * remote.c (interrupt_query, minitelnet): Ditto.
13087         * remote-sds.c (interrupt_query): Ditto.
13088         * remote-mips.c (mips_error, mips_kill): Ditto.
13089         * ocd.c (interrupt_query): Ditto.
13090         * monitor.c (monitor_interrupt_query): Ditto.
13091         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13092         * target.h: Update comment.
13093
13094         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13095
13096 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13097
13098         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13099         default_double_format.
13100         * gdbarch.h, gdbarch.c: Re-generate.
13101         * findvar.c (floatformat_unknown): Delete variable definition.
13102         * doublest.h (floatformat_unknown): Delete variable declaration.
13103
13104 2002-02-09  Jim Blandy  <jimb@redhat.com>
13105
13106         * stabsread.c (read_type): Add code to parse Sun's syntax for
13107         prototyped function types.
13108
13109 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13110
13111         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13112         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13113
13114 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13115
13116         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13117         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13118         now _initialize_xcoffsolib gets called again and overrides the
13119         commands from solib.c in a native configuration.
13120
13121 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13122
13123         * doublest.c (store_typed_floating): Don't try to return a value.
13124         Fixes PR gdb/290.
13125
13126 2002-02-08  Jim Blandy  <jimb@redhat.com>
13127
13128         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13129         is prototyped and has no arguments, print its argument list as
13130         `(void)'.
13131
13132 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13133
13134         * MAINTAINERS (write-after-approval): Add myself.
13135         (paper-trail): I've escaped!
13136
13137 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13138
13139         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13140         changes.
13141         (_initialize_check_for_gdb_ini): Ditto.
13142
13143 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13144
13145         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13146         xaprintf -> xasprintf.
13147
13148 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13149
13150         * win32-nat.c: Remove use of printf and sprintf functions.
13151
13152 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13153
13154         * arm-tdep.c (arm_frame_chain_valid): Make static.
13155         (arm_push_arguments): Likewise.
13156         (arm_gdbarch_init): New function.
13157         (_initialize_arm_tdep): Call it.
13158         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13159         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13160         (FRAME_CHAIN_VALID): Delete.
13161         (arm_frame_chain_valid): Delete declaration.
13162         (PUSH_ARGUMENTS): Delete.
13163         (arm_push_arguments): Delete declaration.
13164         (CALL_DUMMY_P): Delete.
13165
13166 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13167             Corinna Vinschen  <vinschen@redhat.com>
13168
13169         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13170         on builtin float types.
13171
13172 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13173
13174         * utils.c: Include <curses.h> before "bfd.h".
13175         * tui/tui-hooks.c: Likewise.
13176         * tui/tui.c: Likewise.
13177         * tui/tuiCommand.c: Likewise.
13178         * tui/tuiData.c: Likewise.
13179         * tui/tuiDataWin.c: Likewise.
13180         * tui/tuiDisassem.c: Likewise.
13181         * tui/tuiGeneralWin.c: Likewise.
13182         * tui/tuiIO.c: Likewise.
13183         * tui/tuiLayout.c: Likewise.
13184         * tui/tuiRegs.c: Likewise.
13185         * tui/tuiSource.c: Likewise.
13186         * tui/tuiSourceWin.c: Likewise.
13187         * tui/tuiStack.c: Likewise.
13188         * tui/tuiWin.c: Likewise.
13189
13190 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13191
13192         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13193         to include space for pseudoregs as well. Update loops accordingly.
13194         (sh_fp_frame_init_saved_regs): Ditto.
13195         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13196
13197 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13198
13199         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13200         Add Richard Earnshaw to Arm maintainers.
13201
13202 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13203
13204         * defs.h (warning_begin): Delete declaration.
13205
13206         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13207         Delete macro.
13208
13209 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13210
13211         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13212         Logic bug, remove misplaced else.
13213
13214 2002-02-07  Klee Dienes  <klee@apple.com>
13215
13216         * fork-inferior.c (fork_inferior): Add '!' to the list of
13217         characters that need to be quoted when building a string for the
13218         shell.  Quote '!' specifically with a backslash, since CSH chokes
13219         when trying to evaluate "str!str".
13220
13221 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13222
13223         * rdi-share/host.h: Only provide a typedef for bool if it is not
13224         defined.
13225
13226 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13227
13228         * breakpoint.h (enum bptype): Add new overlay event bp type.
13229         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13230
13231         * breakpoint.c (create_internal_breakpoint): New function.
13232         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13233         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13234         (create_thread_event_breakpoint): Ditto.
13235         (create_solib_event_breakpoint): Ditto.
13236         (create_overlay_event_breakpoint): New function.
13237         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13238         (update_breakpoints_after_exec): Delete and re-initialize
13239         overlay event breakpoints after an exec.  Add FIXME comment
13240         about longjmp breakpoint.
13241         (print_it_typical): Ignore overlay event breakpoints.
13242         (print_one_breakpoint): Ditto.
13243         (mention): Ditto.
13244         (bpstat_what): Do not stop for overlay event breakpoints.
13245         (delete_breakpoint): Don't delete overlay event breakpoints.
13246         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13247         (breakpoint_re_set): Re-create overlay event breakpoint.
13248
13249         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13250         (overlay_manual_command): Disable overlay breakpoints.
13251         (overlay_off_command): Disable overlay breakpoints.
13252
13253 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13254
13255         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13256         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13257         to here from config/tm-arm.h.
13258         (coff_sym_is_thumb): Make static.
13259         (arm_elf_make_msymbol_special): New function.
13260         (arm_coff_make_msymbol_special): New function.
13261         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13262         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13263         (coff_sym_is_thumb): Delete declaration.
13264         (arm_elf_make_msymbol_special): Declare.
13265         (arm_coff_make_msymbol_special): Declare.
13266         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13267         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13268
13269 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13270
13271         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13272
13273 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13274
13275         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13276         * gdbarch.c gdbarch.h: Regenerate.
13277         * arch-utils.c (default_print_float_info): New function.
13278         * arch-utils.h (default_print_float_info): Prototype it.
13279         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13280         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13281         (PRINT_FLOAT_INFO): Document it.
13282
13283         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13284         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13285         (PRINT_FLOAT_INFO): Define.
13286
13287 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13288
13289         * win32-nat.c (_initialize_check_for_gdb_ini):
13290         Add typecast to sprintf argument to suppress a warning.
13291
13292 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13293
13294         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13295         to allow easier handling of pass state.
13296         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13297         that gives exception name and address.
13298         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13299         and set last_sig value to ourstatus->value.sig. Some missing
13300         exceptions added.
13301         (child_continue): Correctly report continue_status.
13302         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13303         TARGET_SIGNAL_0 (new default value).
13304         (child_resume): consider sig argument passed to decide if
13305         the exception should be passed to debuggee or not.
13306
13307 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13308
13309         * regcache.c (fetch_register): Call target_fetch_register
13310         only if we don't call FETCH_PSEUDO_REGISTER.
13311         (store_register): Call target_store_register only if we
13312         don't call STORE_PSEUDO_REGISTER.
13313
13314 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13315
13316         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13317         ELF_MAKE_MSYMBOL_SPECIAL.
13318         * gdbarch.c, gdbarch.h: Regenerate.
13319         * arch-utils.c (default_make_msymbol_special): New function.
13320         * arch-utils.h (default_make_msymbol_special): Export.
13321         * elfread.c (elf_symtab_read): Compile use of
13322         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13323         multiarched.
13324         * coffread.c (coff_symtab_read): Ditto, for
13325         COFF_MAKE_MSYMBOL_SPECIAL.
13326
13327 2002-02-05  Jim Blandy  <jimb@redhat.com>
13328
13329         * solib-svr4.c (svr4_truncate_ptr): New function.
13330         (svr4_relocate_section_addresses): Do the address arithmetic with
13331         the appropriate truncation for target addresses, even when
13332         CORE_ADDR is larger than a target address.
13333
13334 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13335
13336         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13337         to (int *).
13338
13339 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13340
13341         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13342         code.
13343
13344 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13345
13346         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13347
13348 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13349
13350         * gdbserver/linux-low.c: Remove unused include files.
13351
13352 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13353
13354         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13355         (read_inferior_memory): Use it.
13356         (write_inferior_memory): Likewise.
13357
13358 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13359
13360         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13361         grubbing through sys_errlist.
13362
13363 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13364
13365         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13366
13367 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13368         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13369
13370 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13371
13372         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13373         (do_sfunc, set_cmd_sfunc): New functions.
13374
13375         * command.h (struct cmd_list_element): Add field func.
13376         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13377         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13378         * cli/cli-decode.h: Ditto.
13379
13380         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13381         (help_all, help_cmd_list): Ditto.
13382         (find_cmd, complete_on_cmdlist): Ditto.
13383         * top.c (execute_command): Ditto.
13384
13385         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13386         function.sfunc.
13387
13388         * infcmd.c (notice_args_read): Fix function signature.
13389
13390         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13391         * cli/cli-decode.c (add_set_cmd): Ditto.
13392         * utils.c (initialize_utils): Ditto.
13393         * maint.c (_initialize_maint_cmds): Ditto.
13394         * infrun.c (_initialize_infrun): Ditto.
13395         * demangle.c (_initialize_demangler): Ditto.
13396         * remote.c (add_packet_config_cmd): Ditto.
13397         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13398         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13399         * proc-api.c (_initialize_proc_api): Ditto.
13400         * kod.c (_initialize_kod): Ditto.
13401         * valprint.c (_initialize_valprint): Ditto.
13402         * top.c (init_main): Ditto.
13403         * infcmd.c (_initialize_infcmd): Ditto.
13404         * corefile.c (_initialize_core): Ditto.
13405         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13406         * arch-utils.c (initialize_current_architecture): Ditto.
13407         (_initialize_gdbarch_utils): Ditto.
13408         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13409
13410         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13411         * wince.c (_initialize_inftarg): Ditto.
13412         * symfile.c (_initialize_symfile): Ditto.
13413         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13414         * language.c (_initialize_language): Ditto.
13415         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13416
13417 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13418
13419         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13420
13421 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13422
13423         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13424         Add rules for building the register data files.
13425
13426 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13427
13428         * regformats/regdat.sh: Add braces to the definition of
13429         expedite_regs_${arch}.
13430
13431 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13432
13433         * regformats/regdef.h (struct reg): Add comment describing the
13434         requirements for offset and size fields.
13435
13436 2002-02-04  Andreas Schwab  <schwab@suse.de>
13437
13438         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13439         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13440
13441 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13442
13443         * gdbarch.sh (copyright): Update years in generated header.
13444         (SMASH_TEXT_ADDRESS): Add rule.
13445         * gdbarch.h, gdbarch.c: Re-generate.
13446         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13447         * dbxread.c: Likewise.
13448         * dwarfread.c: Likewise.
13449         * elfread.c: Likewise.
13450         * somread.c: Likewise.
13451
13452         * arm-tdep.c (arm_smash_text_address): New function.
13453         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13454
13455 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13456
13457         Add support for hardware watchpoints on win32 native.
13458         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13459         CONTEXT_DEBUG_REGISTERS.
13460         (dr variable): New variable. Static array containing a local copy
13461         of debug registers.
13462         (debug_registers_changed): New variable.  Reflects when debug registers
13463         are changed and need to be written to inferior.
13464         (debug_registers_used): New variable. Reflects when any debug register
13465         was set, used when new threads are created.
13466         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13467         i386-nat code.
13468         (thread_rec): Set dr array if id is the thread of current_event .
13469         (child_continue, child_resume): Change the debug registers for all
13470         threads if debug_registers_changed.
13471         (child_add_thread): Change the debug registers if debug_registers_used.
13472         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13473         Link nm.h to new nm-cygwin.h file.
13474         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13475         of hardware registers.
13476
13477 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13478
13479         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13480         Restore behavour broken by 2002-01-20 Andrew Cagney
13481         <ac131313@redhat.com> IEEE_FLOAT removal.
13482
13483 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13484
13485         * c-valprint.c (c_val_print): Pass a proper valaddr to
13486         cp_print_class_method.
13487         * valops.c (search_struct_method): If there is only one method
13488         and args is NULL, return that method.
13489
13490 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13491
13492         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13493         accessing tag_name directly.
13494
13495 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13496
13497         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13498         of accessing tag_name directly.
13499
13500 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13501
13502         PR gdb/280
13503         * gdbtypes.c (replace_type): New function.
13504         * gdbtypes.h (replace_type): Add prototype.
13505         * stabsread.c (read_type): Use replace_type.
13506
13507 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13508
13509         * Makefile.in (memattr.o): Add missing dependencies rule.
13510
13511 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13512
13513         * breakpoint.c (break_at_finish_command): Really export.
13514         (break_at_finish_at_depth_command): Ditto.
13515         (tbreak_at_finish_command): Ditto.
13516         * hppa-tdep.c: Include completer.h.
13517         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13518         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13519
13520 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13521
13522         * utils.c (do_write): New function.
13523         (error_stream): Rewrite combining the code from error_begin and
13524         verror.
13525         (verror): Rewrite using error_stream.
13526         (error_begin): Delete function.
13527
13528 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13529
13530         * utils.c (error_begin): Make static.
13531         * defs.h (error_begin): Delete declaration.
13532
13533         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13534         (decode_line_1): Use cplusplus_error instead of error_begin,
13535         cplusplus_hint and return_to_top_level.
13536         * coffread.c (coff_symfile_read): Use error instead of error_begin
13537         and return_to_top_level.
13538         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13539
13540 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13541
13542         * language.h (type_error, range_error): Make string parameter
13543         constant.
13544         * language.c (warning_pre_print): Delete extern declaration.
13545         * dwarfread.c (warning_pre_print): Ditto.
13546         * language.c (type_error, range_error): Rewrite to use verror and
13547         vwarning instead of warning_begin.
13548
13549 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13550
13551         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13552         (set_ignore_count): Move misplaced comment back where it belongs.
13553
13554 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13555
13556         * command.h (NO_FUNCTION): Delete macro.
13557         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13558         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13559         * tracepoint.c (_initialize_tracepoint): Ditto.
13560         * cli/cli-decode.c (add_set_cmd): Ditto.
13561         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13562
13563 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13564
13565         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13566         Update ``this'' pointer when calling virtual functions.
13567
13568 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13569
13570         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13571         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13572
13573 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13574
13575         * regformats/reg-arm.dat: New file.
13576         * regformats/reg-i386.dat: New file.
13577         * regformats/reg-ia64.dat: New file.
13578         * regformats/reg-m68k.dat: New file.
13579         * regformats/reg-mips.dat: New file.
13580         * regformats/reg-ppc.dat: New file.
13581         * regformats/reg-sh.dat: New file.
13582         * regformats/regdef.h: New file.
13583         * regformats/regdat.sh: New file.
13584
13585 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13586
13587         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13588         (arm_frame_args_address, arm_frame_locals_address): New functions.
13589         (arm_frame_num_args): New function.
13590         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13591         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13592         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13593
13594 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13595
13596         * breakpoint.c (break_at_finish_command): Export.
13597         (break_at_finish_at_depth_command): Export.
13598         (tbreak_at_finish_command): Export.
13599         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13600         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13601         "txbreak" commands, which are HPPA specific.
13602
13603         * printcmd.c (disassemble_command): Remove an ancient
13604         artifact of an old merge.
13605
13606         * symfile.h (enum overlay_debugging_state):
13607         Define enum constant values for overlay mode.
13608         * symfile.c (overlay_debugging): Use enums instead of literals.
13609         (overlay_is_mapped, overlay_auto_command,
13610         overlay_manual_command): Ditto.
13611
13612         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13613         breakpoint_here_p, breakpoint_inserted_here_p,
13614         breakpoint_thread_match, bpstat_stop_status,
13615         describe_other_breakpoints, check_duplicates, clear_command):
13616         Coding standard fixes.
13617
13618         * target.c (target_xfer_memory): Add spaces, coding standard.
13619         (do_xfer_memory): Add missing line to trust-readonly
13620         code: check bfd SEC_READONLY flag for section.
13621
13622 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13623
13624         * PROBLEMS: Fix typo, 5.1->5.1.1.
13625
13626 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13627
13628         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13629         data symbols, since we search based on textlow and texthigh.
13630         (find_pc_sect_symtab): Likewise.
13631
13632 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13633
13634         * defs.h (vwarning): Declare.
13635         * utils.c (vwarning): New function.
13636         (warning): Call vwarning.
13637         (warning_begin): Delete function.
13638
13639         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13640         the warning message.
13641         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13642         warning_begin.
13643
13644 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13645
13646         * NEWS: Mention "set trust-readonly-sections" command.
13647         Mention generate-core-file command.
13648
13649 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13650
13651         * target.c: New command, "set trust-readonly-sections on".
13652         (do_xfer_memory): Honor the suggestion to trust readonly sections
13653         by reading them from the object file instead of from the target.
13654         (initialize_targets): Register command "set trust-readonly-sections".
13655
13656 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13657
13658         * parse.c (target_map_name_to_register): Simplify, search regs and
13659         pseudo-regs using a single loop.
13660
13661 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13662
13663         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13664
13665 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13666
13667         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13668         * config/i386/i386v42mp.mh: Add i387-nat.o .
13669         * i386v4-nat.c: Include i387-nat.h.
13670         (supply_fpregset): Use i387_supply_fsave.
13671         (fill_fpregset): Use i387_fill_fsave.
13672
13673 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13674
13675         * arm-tdep.c (arm_call_dummy_words): Define.
13676         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13677         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13678         (CALL_DUMMY_WORDS): Define.
13679         (arm_call_dummy_words): Declare.
13680         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13681         (arm_linux_call_dummy_words): Declare.
13682
13683 2002-01-30  Andreas Schwab  <schwab@suse.de>
13684
13685         * m68klinux-nat.c: Fix last change to use regcache_collect
13686         instead of referencing registers[] directly.
13687
13688 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13689
13690         * parse.c (target_map_name_to_register): Delete code wrapped in
13691         #ifdef REGISTER_NAME_ALIAS_HOOK.
13692
13693 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13694
13695         * regcache.c (legacy_read_register_gen): Need to be able to
13696         read pseudo-register as well as real register.
13697         (legacy_write_register_gen): Ditto.
13698
13699 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13700
13701         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13702         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13703         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13704         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13705         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13706         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13707         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13708         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13709         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13710         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13711         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13712         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13713         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13714         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13715         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13716         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13717         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13718         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13719         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13720         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13721
13722 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13723
13724         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13725         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13726         (initialize_current_architecture): Update target_byte_order using
13727         information from BFD.
13728         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13729         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13730
13731 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13732
13733         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13734         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13735
13736         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13737         #ifdef INVALID_FLOAT.
13738         * infcmd.c (do_registers_info): Ditto.
13739         * values.c (unpack_double): Ditto.  Add comment.
13740
13741         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13742         already commented out.
13743
13744 2002-01-26  Andreas Schwab  <schwab@suse.de>
13745
13746         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13747         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13748         registers and add support for PTRACE_GETREGS.
13749
13750 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13751
13752         GDB 5.1.1 released from 5.1 branch.
13753         * NEWS: Add 5.1.1 news.
13754         * README: Sync with 5.1 branch.
13755
13756 2002-01-23  Fred Fish  <fnf@redhat.com>
13757
13758         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13759         stabstring on initial malloc.  Reallocing will copy it for us,
13760         if necessary.
13761
13762 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13763
13764         * Makefile.in (hpread_h): Delete.
13765         (HFILES_NO_SRCDIR): Remove hpread.h.
13766         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13767         (hpread.o): Update dependencies.
13768         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13769
13770         * hp-psymtab-read.c: Remove file.
13771         * hp-symtab-read.c: Remove file.
13772         * hpread.h: Remove file.
13773
13774         * hpread.c: Merge all contents of hp-psymtab-read.c,
13775         hp-symtab-read.c and hpread.h into this file, as it was prior to
13776         January 1999.
13777
13778         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13779         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13780         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13781         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13782
13783 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13784
13785         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13786         fill_gregset): Call gdbarch_tdep() just once, assign result to
13787         variable and use that, instead of calling the function several
13788         times.
13789
13790 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
13791
13792         * configure.host: Accept sparcv9 as alias for sparc64.
13793         * configure.tgt: Likewise.
13794
13795 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
13796
13797         * solib-aix5.c (build_so_list_from_mapfile)
13798         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13799         arguments is not reversed.
13800         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13801         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13802
13803 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
13804
13805         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13806         modified version of obsolete sh_fetch_pseudo_register.
13807         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13808         (sh4_register_read): New function.
13809         (sh_pseudo_register_write): New function. Renamed and modified
13810         version of obsolete sh_store_pseudo_register.
13811         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13812         (sh4_register_write): New function.
13813         (sh_gdbarch_init): Remove setting of gdbarch function
13814         fetch_pseudo_register and store_pseudo_register. Remove setting of
13815         register_convert_to_raw, register_convert_to_virtual,
13816         register_convertible.
13817         (sh_sh4_register_convertible): Delete. No longer needed. All is
13818         taken care by architecture specific functions
13819         register_read/register_write.
13820         (sh_sh4_register_convert_to_virtual): Make static.
13821         (sh_sh4_register_convert_to_raw): Ditto.
13822
13823 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
13824
13825         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13826         (floatformat_is_nan, floatformat_mantissa): Ditto.
13827
13828         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13829         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13830         builtin_type_ieee_double_little,
13831         builtin_type_ieee_double_littlebyte_bigword,
13832         builtin_type_m68881_ext, builtin_type_i960_ext,
13833         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13834         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13835         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13836         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13837
13838 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
13839
13840         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13841         parameter.  Set frameless flag if it exists and depended of
13842         whether the scanned function is frameless or not.
13843         (xstormy16_skip_prologue): If function is frameless, return
13844         result of xstormy16_scan_prologue().
13845         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13846         call.
13847
13848 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
13849
13850         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13851         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13852         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13853         sh_sh4_register_byte, sh_sh4_register_raw_size,
13854         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13855         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13856         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13857         sh_store_pseudo_register, sh_do_pseudo_register): Call
13858         gdbarch_tdep() just once, assign result to variable and use that,
13859         instead of calling the function several times.
13860
13861 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
13862
13863         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13864         macros instead of LAST_FPU_CTRL_REGNUM.
13865         (store_register): Likewise.
13866
13867 2002-01-21  Jim Blandy  <jimb@redhat.com>
13868
13869         * infcmd.c (run_command): Check that the `exec' target layer's BFD
13870         is up-to-date before running the program, not just when a program
13871         exits.
13872
13873 2002-01-21  Fred Fish  <fnf@redhat.com>
13874
13875         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13876         when we have found all instructions we are looking for.
13877
13878 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13879
13880         * arm-tdep.c (arm_register_name): New function.
13881         (arm_registers_names): Make static.
13882         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13883         (arm_register_name): Declare.
13884         (REGISTER_NAME): Use it.
13885
13886 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13887             Kevin Buettner  <kevinb@redhat.com>
13888
13889         Convert arm targets to new FRAME interface.
13890         * arm-tdep.c (struct frame_extra_info): Remove fsr.
13891         (arm_frame_find_save_regs): Delete.
13892         (arm_frame_init_saved_regs): New.
13893         (arm_init_extra_frame_info): Alloacte saved_regs as required.
13894         Allocate extra_info as required.  Convert all uses of fsr.regs
13895         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13896         to use extra_info.
13897         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13898         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13899         (check_prologue_cache, save_prologue_cache): Likewise.
13900         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13901         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13902         (FRAME_FIND_SAVED_REGS): Delete.
13903         (arm_frame_find_saved_regs): Delete prototype.
13904         (arm_frame_init_saved_regs): New prototype.
13905         (FRAME_INIT_SAVED_REGS): Define.
13906
13907 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13908
13909         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13910
13911 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13912
13913         From Jeff Law <law@redhat.com>:
13914         * infttrace.c: Include <sys/pstat.h>.
13915         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
13916         exec file if the ttrace equivalent fails.
13917
13918 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13919
13920         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13921         (closeLogFile): Ditto.
13922
13923 2002-01-20  Michael Chastain  <mec@shout.net>
13924
13925         * top.c (print_gdb_version): Bump copyright year to 2002.
13926
13927 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13928
13929         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13930         Zannoni and Eli Zaretskii.
13931
13932 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13933
13934         * buildsym.c: Update copyright years.
13935         * c-typeprint.c: Likewise.
13936         * dwarf2read.c: Likewise.
13937         * f-typeprint.c: Likewise.
13938         * gdbtypes.c: Likewise.
13939         * gdbtypes.h: Likewise.
13940         * hp-symtab-read.c: Likewise.
13941         * hpread.c: Likewise.
13942         * mdebugread.c: Likewise.
13943         * p-typeprint.c: Likewise.
13944
13945 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13946
13947         * remote-sim.c (gdbsim_open): Simplify code testing the macro
13948         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
13949         byte-order selectable.
13950         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13951         * arch-utils.c: Ditto.
13952         (set_endian): Ditto.
13953         (set_endian_from_file): Ditto.
13954         * gdbserver/low-sim.c (create_inferior): Ditto.
13955         * gdbarch.sh: Ditto.
13956         * gdbarch.h: Re-generate.
13957         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13958         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13959         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13960         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13961         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13962         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13963         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13964         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13965         macro definition.
13966         * config/mips/tm-wince.h: Remove #undef of macro
13967         TARGET_BYTE_ORDER_SELECTABLE.
13968         * config/sh/tm-wince.h: Ditto.
13969
13970 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13971
13972         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13973         member function fields.  Add accessor macro
13974         TYPE_FN_FIELD_ARTIFICIAL.
13975         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13976         * c-typeprint.c (c_type_print_base): Skip artificial member
13977         functions.
13978
13979 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13980
13981         * f-typeprint.c: Delete unused function f_type_print_args.
13982         * p-typeprint.c: Delete unused function pascal_type_print_args.
13983
13984 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13985
13986         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
13987         comment.  Add ``artificial'' to ``union field_location''.
13988
13989         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13990
13991         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13992         * mdebugread.c (parse_symbol): Likewise.
13993         * stabsread.c (define_symbol): Likewise.
13994         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13995         initializing TYPE_FIELD_BITPOS to n (obsolete).
13996         (hpread_doc_function_type): Likewise.
13997         * hpread.c (hpread_function_type): Likewise.
13998
13999 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14000
14001         * configure.in (host_makefile_frag): Only require a host makefile
14002         fragment when a native build.
14003         * configure: Re-generate.
14004
14005 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14006
14007         * doublest.h (floatformat_from_type): Declare.
14008         * doublest.c (floatformat_from_type): New function.
14009         (convert_typed_floating): Use.
14010
14011         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14012         call to function floatformat_from_type.
14013
14014         * gdbarch.sh (IEEE_FLOAT): Delete.
14015         * gdbarch.h, gdbarch.c: Re-generate.
14016         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14017         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14018         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14019         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14020         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14021         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14022         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14023         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14024         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14025         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14026         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14027         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14028
14029         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14030         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14031         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14032         * sh-tdep.c (sh_gdbarch_init): Ditto.
14033         * mips-tdep.c (mips_gdbarch_init): Ditto.
14034         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14035         * cris-tdep.c (cris_gdbarch_init): Ditto.
14036
14037 2002-01-20  Jiri Smid  <smid@suse.cz>
14038
14039         * configure.host, configure.tgt: Support x86-64.
14040         * NEWS: Note new target x86-64.
14041
14042         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14043         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14044         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14045         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14046         x86-64-linux-nat.o): Fix dependencies.
14047
14048 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14049
14050         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14051         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14052         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14053         * config/sparc/xm-sun4os4.h: Delete file.
14054         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14055
14056 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14057
14058         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14059         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14060         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14061         * config/i386/i386lynx.mh (XM_FILE): Delete.
14062         * config/rs6000/xm-rs6000ly.h: Delete file.
14063         * config/sparc/xm-sparclynx.h: Delete file.
14064         * config/m68k/xm-m68klynx.h: Delete file.
14065         * config/i386/xm-i386lynx.h: Delete file.
14066         * config/xm-lynx.h: Delete file.
14067         * config/djgpp/fnchange.lst: Update.
14068
14069 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14070
14071         * alpha-tdep.c (alpha_register_byte): New function.
14072         (alpha_register_raw_size): Ditto.
14073         (alpha_register_virtual_size): Ditto.
14074         (alpha_skip_prologue_internal): Renamed from
14075         alpha_skip_prologue.
14076         (alpha_skip_prologue): New version that calls
14077         alpha_skip_prologue_internal.
14078         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14079         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14080         second argument from alpha_skip_prologue.
14081         (REGISTER_BYTE): Use alpha_register_byte.
14082         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14083         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14084         (FRAMELESS_FUNCTION_INVOCATION): Use
14085         generic_frameless_function_invocation_not.
14086         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14087         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14088
14089 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14090
14091         * config/mips/xm-news-mips.h: Delete file.
14092         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14093
14094         * config/m88k/xm-m88k.h: Delete file.
14095         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14096         * config/m88k/xm-delta88v4.h: Ditto.
14097         * config/m88k/xm-delta88.h: Ditto.
14098
14099         * config/alpha/xm-fbsd.h: Delete file.
14100         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14101
14102         * config/sparc/xm-sparc.h: Delete file.
14103         * Makefile.in (xm-sun4os4.h): Delete dependency.
14104         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14105         * config/sparc/xm-sun4os4.h: Ditto.
14106         * config/sparc/xm-linux.h: Ditto.
14107
14108         * config/i386/xm-windows.h: Delete file.
14109
14110 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14111
14112         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14113         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14114
14115 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14116
14117         * alpha-tdep.c (alpha_call_dummy_words): New.
14118         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14119         (CALL_DUMMY_P): Define.
14120         (CALL_DUMMY_WORDS): Define.
14121         (SIZEOF_CALL_DUMMY_WORDS): Define.
14122
14123 2002-01-19  Per Bothner  <per@bothner.com>
14124
14125         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14126         isn't NULL, which can happen with some gcj-3.x-produced code.
14127
14128 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14129
14130         * alpha-tdep.c (alpha_register_virtual_type): New function.
14131         (alpha_init_frame_pc_first): Ditto.
14132         (alpha_fix_call_dummy): Ditto.
14133         (alpha_store_struct_return): Ditto.
14134         (alpha_extract_struct_value_address): Ditto.
14135         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14136         alpha_register_virtual_type.
14137         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14138         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14139         alpha_extract_struct_value_address.
14140         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14141         (INIT_FRAME_PC): Use init_frame_pc_noop.
14142         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14143
14144 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14145
14146         * i386gnu-nat.c: Include "i386-tdep.h".
14147         (fetch_fpregs): Simplify code dealing with uninitialized floating
14148         point states such that it doesn't require FP7_REGNUM.
14149
14150 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14151
14152         * alpha-tdep.c (frame_extra_info): New.
14153         (alpha_find_saved_regs): Make static.  Use
14154         frame->extra_info.
14155         (alpha_frame_init_saved_regs): New function.
14156         (alpha_frame_saved_pc): Use frame->extra_info.
14157         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14158         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14159         (init_extra_frame_info): Rename to...
14160         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14161         (alpha_print_extra_frame_info): New function.
14162         (alpha_frame_locals_address): Ditto.
14163         (alpha_frame_args_address): Ditto.
14164         (alpha_pop_frame): Use frame->extra_info.
14165         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14166         alpha_frame_args_address.
14167         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14168         (alpha_find_saved_regs): Remove prototype.
14169         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14170         (EXTRA_FRAME_INFO): Remove.
14171         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14172         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14173
14174 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14175
14176         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14177         (alpha_cannot_fetch_register): Ditto.
14178         (alpha_cannot_store_register): Ditto.
14179         (alpha_register_convertible): Ditto.
14180         (alpha_use_struct_convention): Ditto.
14181         * config/alpha/tm-alpha.h: Update copyright years.
14182         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14183         (INNER_THAN): Use core_addr_lessthan.
14184         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14185         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14186         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14187         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14188         (FRAME_CHAIN): Remove unnecessary cast.
14189
14190 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14191
14192         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14193         obsolete.
14194
14195 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14196
14197         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14198         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14199         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14200         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14201         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14202         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14203         * x86-64-linux-nat.c: Ditto.
14204
14205 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14206
14207         * alpha-tdep.c (alpha_register_name): New function.
14208         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14209         (REGISTER_NAME): Define.
14210
14211 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14212
14213         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14214
14215 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14216
14217         * alpha-tdep.c: Update copyright years.
14218         (alpha_next_pc): New function.
14219         (alpha_software_single_step): Ditto.
14220         * config/alpha/tm-alpha.h: Add prototype for
14221         alpha_software_single_step.
14222
14223 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14224
14225         * alphabsd-nat.c: Update copyright years.
14226         (fill_gregset): Use regcache_collect.
14227         (fill_fpregset): Likewise.
14228         (fetch_inferior_registers): Only fetch integer registers
14229         if requested to do so.
14230         (store_inferior_registers): Only store integer registers
14231         if requested to do so.
14232
14233 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14234
14235         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14236         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14237         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14238         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14239         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14240         * config/arm/linux.mh (XDEPFILES): Delete.
14241         * config/arm/nbsd.mh (XDEPFILES): Delete.
14242         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14243         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14244         * config/i386/i386m3.mh (XDEPFILES): Delete.
14245         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14246         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14247         * config/i386/fbsd.mh (XDEPFILES): Delete.
14248         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14249         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14250         * config/i386/i386v4.mh (XDEPFILES): Delete.
14251         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14252         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14253         * config/i386/i386aix.mh (XDEPFILES): Delete.
14254         * config/i386/go32.mh (XDEPFILES): Delete.
14255         * config/i386/cygwin.mh (XDEPFILES): Delete.
14256         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14257         * config/i386/i386mach.mh (XDEPFILES): Delete.
14258         * config/i386/i386v32.mh (XDEPFILES): Delete.
14259         * config/i386/linux.mh (XDEPFILES): Delete.
14260         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14261         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14262         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14263         * config/i386/i386sco.mh (XDEPFILES): Delete.
14264         * config/i386/i386v.mh (XDEPFILES): Delete.
14265         * config/i386/nbsd.mh (XDEPFILES): Delete.
14266         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14267         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14268         * config/i386/symmetry.mh (XDEPFILES): Delete.
14269         * config/i386/obsd.mh (XDEPFILES): Delete.
14270         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14271         * config/ia64/linux.mh (XDEPFILES): Delete.
14272         * config/ia64/aix.mh (XDEPFILES): Delete.
14273         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14274         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14275         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14276         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14277         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14278         * config/m68k/linux.mh (XDEPFILES): Delete.
14279         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14280         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14281         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14282         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14283         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14284         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14285         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14286         * config/m88k/delta88.mh (XDEPFILES): Delete.
14287         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14288         * config/m88k/m88k.mh (XDEPFILES): Delete.
14289         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14290         * config/mips/linux.mh (XDEPFILES): Delete.
14291         * config/mips/irix6.mh (XDEPFILES): Delete.
14292         * config/mips/irix5.mh (XDEPFILES): Delete.
14293         * config/mips/irix4.mh (XDEPFILES): Delete.
14294         * config/mips/irix3.mh (XDEPFILES): Delete.
14295         * config/mips/decstation.mh (XDEPFILES): Delete.
14296         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14297         (NATDEPFILES): Move core-aout.o to here.
14298         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14299         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14300         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14301         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14302         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14303         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14304         * config/pa/hpux11.mh (XDEPFILES): Delete.
14305         * config/powerpc/aix.mh (XDEPFILES): Delete.
14306         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14307         * config/powerpc/linux.mh (XDEPFILES): Delete.
14308         * config/romp/rtbsd.mh: Rename XDEPFILES.
14309         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14310         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14311         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14312         * config/s390/s390.mh (XDEPFILES): Delete.
14313         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14314         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14315         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14316         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14317         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14318         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14319         * config/sparc/linux.mh (XDEPFILES): Delete.
14320         * config/vax/vaxult.mh (XDEPFILES): Delete.
14321         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14322         * Makefile.in (DEPFILES): Remove XDEPFILES.
14323
14324 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14325
14326         * utils.c (internal_verror): Fix comments, default is yes not no.
14327         Update queries to match.  Default to quit and dump core.
14328
14329 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14330
14331         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14332         copyright.
14333         * defs.h, event-top.c, gdbcmd.h: Ditto.
14334         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14335         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14336         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14337         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14338         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14339         * mi/mi-main.c:Ditto.
14340
14341         * stack.c, symfile.c: Update copyright.
14342
14343 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14344
14345         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14346         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14347         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14348         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14349
14350 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14351
14352         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14353         * gdbserver/low-lynx.c (myattach): Likewise.
14354         * gdbserver/low-nbsd.c (myattach): Likewise.
14355         * gdbserver/low-sim.c (myattach): Likewise.
14356         * gdbserver/low-sparc.c (myattach): Likewise.
14357         * gdbserver/low-sun3.c (myattach): Likewise.
14358
14359         * gdbserver/low-linux.c (myattach): New function.
14360
14361         * gdbserver/server.c (attach_inferior): New function.
14362         (main): Handle "--attach".
14363
14364 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14365
14366         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14367         maintainer.
14368
14369 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14370
14371         * c-typeprint.c (is_type_conversion_operator): Add additional
14372         check for non-conversion operators.
14373
14374 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14375
14376         * linux-proc.c: Add "info proc" command, a la procfs.c.
14377         (read_mapping): New function, abstract and re-use code.
14378         (linux_find_memory_regions): Use new func read_mapping.
14379         (linux_info_proc_cmd): New function, implement "info proc".
14380         (_initialize_linux_proc): Add new command "info proc".
14381
14382 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14383
14384         * symfile.c (generic_load): Use bfd_map_over_sections method
14385         instead of manipulating bfd structure members directly.
14386         (add_section_size_callback): New function, bfd sections callback
14387         used by generic_load.
14388         (load_sections_callback): New function, bfd sections callback
14389         used by generic_load.
14390
14391 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14392
14393         [Based on work by Jim Blandy]
14394         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14395         (builtin_type_vec128): Export.
14396         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14397         types.
14398         (builtin_type_vec128): New builtin type for 128 bit vector
14399         registers.
14400         (build_gdbtypes): Initialize builtin_type_v16qi and
14401         builtin_type_v8hi. Create the vec128 register builtin type
14402         structure.
14403         (build_builtin_type_vec128): New function.
14404         (_initialize_gdbtypes): Register builtin_type_v16qi and
14405         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14406         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14407         AltiVec register to new builtin type.
14408
14409 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14410
14411         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14412         to make_cv_type.
14413
14414 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14415
14416         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14417         CLEAN_UP_REGISTER_VALUE.
14418         * regcache.c (supply_register): Update only call.
14419
14420 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14421
14422         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14423         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14424         a29k-*-vxworks* targets as obsolete.
14425
14426 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14427
14428         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14429         until we can resolve portability issues.
14430         * gregset.h: Remove references to fpxregs.
14431         * gcore.c (gcore_command): Initialize note_sec to NULL.
14432
14433 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14434
14435         * signals.c (target_signal_to_name): Rewrite.  Only use
14436         signals[].name when in bounds and non-NULL.
14437
14438 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14439
14440         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14441         * signals.c (target_signal_to_name): Verify that SIG is within the
14442         bounds of the signals array.
14443
14444 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14445
14446         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14447
14448 2002-01-13  Keith Seitz  <keiths@redhat.com>
14449
14450         * stack.c (print_frame_info_base): Print the frame's pc
14451         only if when print_frame_info_listing_hook is not defined.
14452
14453 2002-01-13  Keith Seitz  <keiths@redhat.com>
14454
14455         * varobj.c (varobj_set_value): Make sure that there were no
14456         errors evaluating the object before attempting to set its
14457         value.
14458         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14459         so this offset adjustment is no longer necessary.
14460         (create_child): Don't set the error flag if the child is
14461         a CPLUS_FAKE_CHILD.
14462         (value_of_child): If value_fetch_lazy fails, return NULL
14463         so that callers will be notified that an error occurred.
14464         (c_value_of_variable): Delay check of variable's validity
14465         until later. We actually want all structs and unions to have
14466         the value "{...}".
14467         Do not return "???" for variables which could not be evaluated.
14468         This error condition must be returned to the caller so that it
14469         can get the error condition from gdb.
14470         (cplus_name_of_child): Adjust index for vptr before figuring
14471         out the name of the child.
14472         (cplus_value_of_child): If a child's (real) parent is not valid,
14473         don't even bother trying to give a value for it. Just return
14474         an error. Change all instances in this function.
14475         (cplus_type_of_child): If our parent is one of the "fake"
14476         parents, we need to get at the type of the real parent, and
14477         derive the child's true type using this information.
14478
14479 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14480
14481         From 2002-01-09 John Marshall <johnm@falch.net>:
14482         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14483         sources.redhat.com, and tweak some related URLs which had
14484         suffered from linkrot.
14485
14486 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14487
14488         From Jeff law:
14489         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14490         structures passed in registers.
14491
14492 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14493
14494         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14495         white space which prevented compilation.  Reported by DSK
14496         <dsk@student.unsw.edu.au>.
14497
14498 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14499
14500         * symfile.c (build_section_addr_info_from_section_tab):
14501         Use bfd access method instead of manipulating bfd directly.
14502         (syms_from_objfile): Ditto.
14503         (simple_overlay_update_1): Ditto.
14504         (simple_overlay_update): Ditto.
14505         (generic_load): Ditto.
14506         (overlay_unmapped_address): FIXME comment, bfd access methods.
14507         (sections_overlap): FIXME comment, bfd access methods.
14508         (pc_in_mapped_range): FIXME comment, bfd access methods.
14509         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14510         (section_is_mapped): FIXME comment, bfd access methods.
14511         (section_is_overlay): FIXME comment, bfd access methods.
14512
14513         * symfile.c (generic_load): Whitespace and long line cleanups.
14514         Remove duplicate variable, change several local variables to
14515         more appropriate data types.
14516         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14517
14518 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14519
14520         From Peter Schauer:
14521         * language.c (longest_local_hex_string_custom): Use phex_nz to
14522         convert NUM to a hex string.
14523
14524 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14525
14526         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14527         the function.
14528         Update Copyright year.
14529
14530 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14531
14532         * language.c (longest_raw_hex_string): Delete unused function.
14533
14534 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14535
14536         * MAINTAINERS (write-after-approval): Add myself.
14537         * dwarf2read.c (read_tag_string_type): Handling of
14538         DW_AT_byte_size.
14539         (read_tag_string_type): FORTRAN fix to prevent propagation of
14540         first string size.
14541         (set_cu_language): Handling of DW_LANG_Fortran95
14542
14543 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14544
14545         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14546         GETPID(inferior_ptid).
14547         (store_inferior_registers): Likewise.
14548
14549 2002-01-10  Jason Merrill  <jason@redhat.com>
14550
14551         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14552         Fix DW_OP_minus.
14553
14554 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14555
14556         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14557         and bfd/elf32-sh-nbsd.c.
14558
14559 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14560
14561         * NEWS: Mention --pid and corefile/proc-id behavior change.
14562
14563         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14564         * gcore.c: Include cli/cli-decode.h instead of command.h.
14565
14566         * main.c (captured_main): Add new command line option "--pid".
14567         If the second command line argument (following the symbol-file)
14568         begins with a digit, try to attach to it before trying to open
14569         it as a corefile.
14570         (print_gdb_help): Document the "--pid" argument.
14571
14572 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14573
14574         * completer.c (command_completer): New function.
14575
14576         * completer.h <command_completer>: Add prototype.
14577
14578         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14579         completer for the "help" command.
14580
14581 2002-01-09  Jason Merrill  <jason@redhat.com>
14582
14583         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14584
14585 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14586
14587         * i386-linux-nat.c (fill_fpxregset): Make global.
14588         (store_fpxregset): Ditto.
14589
14590         * gregset.h (gdb_fpxregset_t): Define.
14591         (supply_fpxregset): Prototype.
14592         (fill_fpxregset): Prototype.
14593
14594         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14595
14596 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14597
14598         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14599         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14600         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14601
14602 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14603
14604         * MAINTAINERS: Update target maintainer rules so that any
14605         Maintainer can approve a tested patch for a maintenance-only
14606         target.
14607
14608 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14609
14610         * MAINTAINERS (write-after-approval): Add myself.
14611
14612         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14613         IN_SIGTRAMP.
14614
14615 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14616
14617         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14618         real name of the executable, rather than the /proc name.
14619
14620 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14621
14622         Implement a "generate-core-file" command in gdb, save target state.
14623         * gcore.c: New file.  Implement new command 'generate-core-file'.
14624         Save a corefile image of the current state of the inferior.
14625         * linux-proc.c: Add linux-specific code for saving corefiles.
14626         * target.h (struct target_ops): Add new target vectors for saving
14627         corefiles; to_find_memory_regions and to_make_corefile_notes.
14628         (target_find_memory_regions): New macro.
14629         (target_make_corefile_notes): New macro.
14630         * target.c (update_current_target): Inherit new target methods.
14631         (dummy_find_memory_regions): New place-holder method.
14632         (dummy_make_corefile_notes): New place-holder method.
14633         (init_dummy_target): Initialize new dummy target vectors.
14634         * exec.c (exec_set_find_memory_regions): New function.
14635         Allow the exec_ops vector for memory regions to be taken over.
14636         (exec_make_note_section): New function, target vector method.
14637         * defs.h (exec_set_find_memory_regions): Export prototype.
14638         * procfs.c (proc_find_memory_regions): New function, corefile method.
14639         (procfs_make_note_section): New function, corefile method.
14640         (init_procfs_ops): Set new target vector pointers.
14641         (find_memory_regions_callback): New function.
14642         (procfs_do_thread_registers): New function.
14643         (procfs_corefile_thread_callback): New function.
14644         * sol-thread.c (sol_find_memory_regions): New function.
14645         (sol_make_note_section): New function.
14646         (init_sol_thread_ops): Initialize new target vectors.
14647         * inftarg.c (inftarg_set_find_memory_regions): New function.
14648         Allow to_find_memory_regions vector to be taken over.
14649         (inftarg_set_make_corefile_notes): New function.
14650         Allow to_make_corefile_notes vector to be taken over.
14651         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14652         interface layer if not target_has_execution (may be a corefile).
14653         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14654         * config/sparc/sun4sol2.mh: Ditto.
14655         * config/alpha/alpha-linux.mh: Ditto.
14656         * config/arm/linux.mh: Ditto.
14657         * config/i386/x86-64linux.mh: Ditto.
14658         * config/ia64/linux.mh: Ditto.
14659         * config/m68k/linux.mh: Ditto.
14660         * config/mips/linux.mh: Ditto.
14661         * config/powerpc/linux.mh: Ditto.
14662         * config/sparc/linux.mh: Ditto.
14663
14664 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14665
14666         * arm-linux-nat.c: Remove references to regcache.c internal data
14667         (registers[] and register_valid[]).
14668
14669 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14670
14671         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14672         so that attaching to a pid will automatically read the process's
14673         symbol file and shlibs.
14674         * Makefile.in: Add rule for linux-proc.o.
14675         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14676         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14677         * config/arm/linux.mh: Ditto.
14678         * config/i386/linux.mh: Ditto.
14679         * config/i386/x86-64linux.mh: Ditto.
14680         * config/ia64/linux.mh: Ditto.
14681         * config/m68k/linux.mh: Ditto.
14682         * config/mips/linux.mh: Ditto.
14683         * config/powerpc/linux.mh: Ditto.
14684         * config/sparc/linux.mh: Ditto.
14685
14686 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14687
14688         * win32-nat.c: Add i386-tdep.h dependency.
14689
14690 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14691
14692         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14693         instead of bfd_get_arch_size.  Don't bail out just because
14694         there's no exec_bfd.
14695
14696         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14697         * p-valprint.c (pascal_object_print_value): Ditto.
14698         * somread.c (som_symtab_read): Ditto.
14699         * symfile.c (simple_free_overlay_region_table): Ditto.
14700         * valops.c (value_assign): Ditto.
14701
14702         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14703         use tilde_expand and strerror for opening save-tracepoints file.
14704
14705         * thread-db.c (thread_db_new_objfile): Indendation fix.
14706
14707         * infptrace.c (GDB_MAX_ALLOCA): New define.
14708         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14709         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14710         can be overridden with whatever value is appropriate to the host).
14711         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14712         alloca to allocate potentially large buffer.
14713         * rs6000-nat.c (child_xfer_memory): Ditto.
14714         * symm-nat.c (child_xfer_memory): Ditto.
14715         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14716
14717 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14718
14719         From Nick Clifton  <nickc@redhat.com>
14720         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14721
14722 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14723
14724         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14725         Don't use exec_bfd if it's NULL.
14726
14727 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14728
14729         * valops.c (value_arg_coerce): Fix formatting.
14730
14731 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14732
14733         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14734         * gnu-nat.c: Ditto.
14735
14736 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14737
14738         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14739         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14740         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14741         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14742         z8k-coff have not been multi-arched.  Update z8k-coff build
14743         status.
14744
14745 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14746
14747         * MAINTAINERS: Mark a29k target as obsolete.
14748         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14749         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14750         comments.
14751         * NEWS: Note that a29k targets are obsolete.
14752         * a29k-tdep.c: Mark as obsolete.
14753         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14754         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14755         a29k-*-vxworks* targets as obsolete.
14756         * remote-adapt.c: Obsolete.
14757         * remote-eb.c: Obsolete.
14758         * remote-mm.c: Obsolete.
14759         * remote-udi.c: Obsolete.
14760         * config/a29k/a29k-udi.mt: Obsolete.
14761         * config/a29k/a29k.mt: Obsolete.
14762         * config/a29k/tm-a29k.h: Obsolete.
14763         * config/a29k/tm-vx29k.h: Obsolete.
14764         * config/a29k/vx29k.mt: Obsolete.
14765
14766 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14767
14768         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14769         with BFD_ENDIAN_BIG.
14770
14771 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14772
14773         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14774         * configure, config.in: Re-generate.
14775         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14776         * defs.h: Do not include <endian.h>.
14777
14778 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
14779
14780         * acconfig.h (HAVE_PT_GETXMMREGS): New.
14781         * config.in: Regenerate.
14782         * configure.in: Update copyright years.
14783         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14784         * configure: Regenerate.
14785         * i386bsd-nat.c: Update copyright years.
14786         (fill_gregset): Use regcache_collect.
14787         (fetch_inferior_registers): Only fetch integer registers
14788         if requested to do so.  Add support for XMM registers
14789         using PT_GETXMMREGS.
14790         (store_inferior_registers): Only store integer registers
14791         if requested to do so.  Add support for XMM registers
14792         using PT_SETXMMREGS.
14793         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14794         (store_inferior_registers): Remove.
14795         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14796         (fetch_elfcore_registers): New function.
14797         (i386nbsd_elfcore_fns): New.
14798         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14799         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14800         i386bsd-nat.o.
14801         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14802         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14803         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14804         * config/i386/tm-nbsd.h: Update copyright years.
14805         (HAVE_SSE_REGS): Define.
14806         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14807         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14808         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14809         (SIGCONTEXT_PC_OFFSET): Remove.
14810         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14811
14812 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14813
14814         * configure.tgt: Remove powerpc-*-macos* target.
14815         * config/m68k/xm-mpw.h: Delete file.
14816         * config/xm-mpw.h: Delete file.
14817         * ser-mac.c: Delete file.
14818         * mpw-make.sed: Delete file.
14819         * mpw-config.in: Delete file.
14820         * mac-xdep.c: Delete file.
14821         * mac-gdb.r: Delete file.
14822         * mac-defs.h: Delete file.
14823         * mac-nat.c: Delete file.
14824         * config/powerpc/macos.mh: Delete file.
14825         * config/powerpc/macos.mt: Delete file.
14826         * config/powerpc/nm-macos.h: Delete file.
14827         * config/powerpc/tm-macos.h: Delete file.
14828         * source.c (openp, open_source_file): Remove obsolete code.
14829         * top.c (gdb_readline): Ditto.
14830         * utils.c (query): Ditto.
14831         * event-top.c (display_gdb_prompt): Ditto.
14832         * Makefile.in (ser-mac.o): Delete obsolete target.
14833         * NEWS: Update.
14834
14835 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14836
14837         * defs.h (BIG_ENDIAN): Delete macro definition.
14838         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14839         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14840         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14841         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14842         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14843         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14844         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14845         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14846         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14847         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14848         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14849         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14850         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14851         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14852         * gdbarch.c: Re-generate.
14853
14854 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14855
14856         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14857         for core files.
14858
14859 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14860
14861         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14862
14863 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14864
14865         * value.h (value_ptr): Delete typedef.
14866
14867 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14868
14869         * i386nbsd-nat.c: Update copyright years.
14870         Include i386-tdep.h.
14871
14872 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
14873
14874         * stabsread.c: Update copyright years.
14875
14876         From Debashis Mahata <debashis.mahata@wipro.com>:
14877         (read_struct_fields): Deal with Sun C compiler erroneous stab
14878         output for structs and unions.
14879         Fix PR gdb/269.
14880
14881 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14882
14883         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14884         prototype.
14885
14886 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14887
14888         * cp-abi.c: Fix whitespace.
14889         (baseclass_offset): New wrapper function.
14890         * cp-abi.h (baseclass_offset): Add prototype.
14891         (struct cp_abi_ops): Add baseclass_offset pointer.
14892
14893         * valops.c (vb_match): Move to...
14894         * gnu-v2-abi.c (vb_match): here.
14895         * valops.c (baseclass_offset): Move to...
14896         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14897
14898         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14899
14900         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14901         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14902         * hpacc-abi.c (init_hpacc_ops): Likewise.
14903
14904 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14905
14906         * valops.c (find_overload_match): Accept obj as a
14907         reference parameter.  Update it before returning.
14908         * value.h (find_overload_match): Update prototype.
14909         * eval.c (evaluate_subexp_standard): Pass object to
14910         find_overload_match by reference.
14911
14912 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
14913
14914         * valarith.c: Replace value_ptr with struct value pointer.  Remove
14915         register attribute from value declarations.
14916         * valops.c: Ditto.
14917         * value.h: Ditto.
14918         * scm-lang.c (scm_lookup_name): Ditto.
14919
14920 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14921
14922         Abstract the functionality of iterating over mapped memory
14923         regions into a general purpose iterator function.
14924         * procfs.c (iterate_over_mappings): New function, general purpose
14925         iterator for memory sections.
14926         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14927         (solib_mappings_callback): New function, callback for above.
14928         (info_proc_mappings): Reimpliment using iterate_over_mappings.
14929         (info_mappings_callback): New function, callback for above.
14930
14931         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14932
14933 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
14934
14935         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14936         * i386-tdep.c: Include "elf-bfd.h".
14937         (process_note_abi_tag_sections): New function.
14938         (i386_gdbarch_init): Add code to recognize various OS/ABI
14939         combinations.
14940
14941         * maint.c (_initialize_maint_cmds): Add missing \ in
14942         string-literal.
14943
14944 For older changes see ChangeLog-2001
14945 \f
14946 Local Variables:
14947 mode: change-log
14948 left-margin: 8
14949 fill-column: 74
14950 version-control: never
14951 End: