* exec.c (print_section_info): Add FIXME comments regarding format
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
2
3         * exec.c (print_section_info): Add FIXME comments regarding format
4         string choices.
5
6 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
7
8         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
9         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
10
11 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
12
13         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
14
15 2002-12-23  David Carlton  <carlton@math.stanford.edu>
16
17         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
18         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
19         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
20         information associated to a minsym, not lookup_symbol.
21
22 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
23
24         * x86-64-tdep.h (x86_64_init_abi): New prototype.
25         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
26         (x86_64_init_abi): Make non-static.  Set number of pseudo
27         registers to 0.
28         (x86_64_gdbarch_init): Remove function.
29         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
30         Remove code dealing with dissambly.
31         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
32         (_initialize_x86_64_linux_tdep): New function.
33         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
34         i386-tdep.o.
35
36 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
37
38         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
39         (struct gdb_osabi_handler): Remove member `arch'.  Add member
40         `arch_info'.
41         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
42         construct a `struct bfd_arch_info' and store it in the `struct
43         gdb_osabi_handler' that is created.
44         (gdbarch_init_osabi): Check for compatibility based on machine
45         type and architecture.
46         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
47         comment.
48         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
49         second argument in call to gdbarch_register_osabi.
50         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
51         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
52         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
53         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
54         * arm-tdep.c (_initialize_arm_tdep): Likewise.
55         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
56         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
57         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
58         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
59         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
60         * i386-tdep.c (_initialize_i386_tdep): Likewise.
61         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
62         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
63         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
64         _initialize_i386bsd_tdep and updated likewise.
65         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
66         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
67         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
68         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
69         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
70         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
71         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
72         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
73         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
74         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
75
76 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
77
78         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
79         DT_MIPS_RLD_MAP case for 64-bit targets.
80
81 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
82
83         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
84         ``temp_saved_regs'', not the pointer or other storage contiguous
85         to this pointer.
86
87 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
88
89         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
90         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
91         (mips_linux_get_longjmp_target): Delete declarations.
92         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
93         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
94         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
95         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
96         (mips_linux_get_longjmp_target)
97         (mips_linux_svr4_fetch_link_map_offsets): Make static.
98         (mips_linux_init_abi): New function.
99         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
100
101 2002-12-19  Keith Seitz  <keiths@redhat.com>
102
103         patch committed by Elena Zannoni  <ezannoni@redhat.com>
104         * thread.c (do_captured_list_thread_ids): Call prune_threads and
105         target_find_new_threads. Fix for PR mi/669.
106
107 2002-12-19  David Carlton  <carlton@math.stanford.edu>
108
109         * linespec.c (decode_line_1): Move code into decode_all_digits.
110         (decode_all_digits): New function.
111
112 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
113
114         * exec.c (print_section_info): Select a format string to use with
115         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
116
117 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
118
119         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
120         deprecated_update_current_frame_pc_hack.
121         (deprecated_update_frame_base_hack): New function.
122         * frame.h (deprecated_update_frame_pc_hack): Replace
123         (deprecated_update_frame_base_hack): Declare.
124         * infrun.c (normal_stop): Update.
125
126 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
127
128         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
129         frame_extra_info_zalloc.
130         (rs6000_frame_args_address): Use get_frame_extra_info.
131         (frame_get_saved_regs): Use get_frame_saved_regs.
132         (frame_initial_stack_address): Use get_frame_saved_regs and
133         get_frame_extra_info.
134         (frame_initial_stack_address): Use get_frame_extra_info.
135
136 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
137
138         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
139         array size.
140         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
141         checks for r3900_regnames[].
142
143 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
144
145         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
146         All uses changed
147         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
148
149 2002-12-17  David Carlton  <carlton@math.stanford.edu>
150
151         * symtab.c (lookup_partial_symbol): Don't search past the end of
152         the partial symbols.
153
154 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
155
156         * stack.c (frame_info): Use get_frame_saved_regs.
157         * breakpoint.c (until_break_command): Use get_frame_pc.
158
159 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
160
161         * buildsym.c (block_end_complaint, anon_block_end_complaint)
162         (innerblock_complaint, innerblock_anon_complaint)
163         (blockvector_complaint): Delete deprecated complaint structs.
164         (finish_block, make_blockvector, end_symtab): Replace calls
165         to complain() with calls to complaint().
166         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
167         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
168         (unexpected_type_complaint, bad_sclass_complaint)
169         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
170         Delete deprecated complaint structs.
171         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
172         Replace calls to complain() with calls to complaint().
173         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
174         (unknown_symtype_complaint, unknown_symchar_complaint)
175         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
176         (lbrac_mismatch_complaint, repeated_header_complaint)
177         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
178         Delete deprecated complaint structs.
179         (unknown_symtype_complaint, lbrac_mismatch_complaint)
180         (repeated_header_complaint)
181         (function_outside_compiliation_unit_complaint): New functions.
182         (add_old_header_file, find_corresponding_bincl_psymtab)
183         (set_namestring, find_stab_function_addr, read_dbx_symtab)
184         (process_one_symbol): Replace calls to complain() with, possibly
185         indirect, calls to complaint().
186         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
187         (unknown_attribute_form, unknown_attribute_length)
188         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
189         (const_ignored, botched_modified_type, op_deref2, op_deref4)
190         (basereg_not_handled, dup_user_type_allocation)
191         (dup_user_type_definition, missing_tag, bad_array_element_type)
192         (subscript_data_items, unhandled_array_subscript_format)
193         (unknown_array_subscript_format, not_row_major)
194         (missing_at_name): Delete deprecated complaint structs.
195         (bad_die_ref_complaint, unknown_attribute_form_complaint)
196         (dup_user_type_definition_complaint)
197         (bad_array_element_type_complaint): New functions.
198         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
199         (decode_subscript_data_item, dwarf_read_array_type)
200         (read_tag_string_type, read_subroutine_type, read_func_scope)
201         (locval, scan_partial_symbols, decode_modified_type)
202         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
203         (attribute_size): Replace calls to complain() with, possibly
204         indirect, calls to complaint().
205         * elfread.c (section_info_complaint, section_info_dup_complaint)
206         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
207         Delete deprecated complaint structs.
208         (elf_symtab_read, elfstab_offset_sections): Replace calls to
209         complain() with calls to complaint().
210         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
211         struct.
212         (stub_noname_complaint): New function.
213         (check_typedef, add_mangled_type): Replace calls to complain()
214         with calls to complaint().
215         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
216         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
217         (hpread_unhandled_type_complaint, hpread_struct_complaint)
218         (hpread_array_complaint, hpread_type_lookup_complaint)
219         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
220         (hpread_unhandled_common_complaint)
221         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
222         struct definitions and declarations.
223         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
224         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
225         Replace calls to complain() with, possibly indirect, calls to
226         complaint().
227         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
228         Likewise.
229         * mdebugread.c (bad_file_number_complaint, index_complaint)
230         (aux_index_complaint, block_index_complaint)
231         (unknown_ext_complaint, unknown_sym_complaint)
232         (unknown_st_complaint, block_overflow_complaint)
233         (basic_type_complaint, unknown_type_qual_complaint)
234         (array_index_type_complaint, bad_tag_guess_complaint)
235         (block_member_complaint, stEnd_complaint)
236         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
237         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
238         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
239         (bad_continued_complaint, bad_rfd_entry_complaint)
240         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
241         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
242         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
243         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
244         complaint structs.
245         (index_complaint, unknown_ext_complaint, basic_type_complaint)
246         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
247         (unexpected_type_code_complaint)
248         (function_outside_compilation_unit_complaint): New functions.
249         (parse_symbol, parse_type, upgrade_type, parse_procedure)
250         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
251         Replace calls to complain() with, possibly indirect calls to
252         complaint().
253         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
254         Delete deprecated complaint structs.
255         (lookup__objc_class, lookup_child_selector): Replace complain()
256         with complaint().
257         * remote-vx.c (cant_contact_target): Delete deprecated complaint
258         struct.
259         (vx_lookup_symbol): Replace complain() with complaint().
260         * stabsread.c (invalid_cpp_abbrev_complaint)
261         (invalid_cpp_type_complaint, member_fn_complaint)
262         (const_vol_complaint, error_type_complaint)
263         (invalid_member_complaint, range_type_base_complaint)
264         (reg_value_complaint, vtbl_notfound_complaint)
265         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
266         (unresolved_sym_chain_complaint, stabs_general_complaint)
267         (lrs_general_complaint, multiply_defined_struct): Delete
268         deprecated complaint structs.
269         (invalid_cpp_abbrev_complaint, ref_value_complaint)
270         (stabs_general_complaint, lrs_general_complaint)
271         (msg_unknown_complaint): New functions.
272         (dbx_lookup_type, read_cfront_baseclasses)
273         (read_cfront_member_functions, resolve_symbol_reference)
274         (define_symbol, resolve_live_range, add_live_range, read_type)
275         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
276         (read_one_struct_field, read_baseclasses, read_tilde_fields)
277         (read_cfront_static_fields, attach_fields_to_type)
278         (complain_about_struct_wipeout, read_range_type)
279         (common_block_start, common_block_end, cleanup_undefined_types)
280         (scan_file_globals): Replace complain() with complaint().
281         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
282         Delete deprecated complaint struct declarations.
283         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
284         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
285         (bf_not_found_complaint, ef_complaint, eb_complaint)
286         (function_outside_compilation_unit_complaint): New functions.
287         (record_include_begin, record_include_end, enter_line_range)
288         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
289         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
290         complain() with complaint().
291
292 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
293
294         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
295         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
296         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
297         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
298         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
299         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
300         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
301         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
302         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
303         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
304         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
305         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
306         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
307         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
308         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
309         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
310         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
311         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
312         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
313         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
314         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
315         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
316         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
317         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
318         * config/m88k/xm-dgux.h: Delete.
319         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
320         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
321         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
322         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
323         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
324         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
325         * ch-valprint.c: Delete.
326         
327 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
328
329         * infrun.c (handle_inferior_event): Rearrange code to resume if
330         no catchpoint triggers for an event.
331
332 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
333
334         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
335         and TARGET_WAITKIND_VFORKED cases.
336
337 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
338
339         * infrun.c (handle_inferior_event): Assume that catchpoints
340         are not affected by DECR_PC_AFTER_BREAK.
341
342 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
343
344         * target.c (update_current_target): Don't inherit DONT_USE.
345         * target.h (struct target_ops): Remove DONT_USE.
346         (target_next): Remove macro.
347
348 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
349
350         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
351
352 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
353
354         * arm-tdep.c (convert_from_extended): New argument to hold the
355         type of floating point result we want to convert to.  Make input 
356         argument const.  Fix all callers.
357         (convert_to_extended): Similarly.
358         (arm_extract_return_value): Now takes a regcache argument.  Change
359         code to use regcache accessor functions.  Correctly extract 
360         smaller-than-word results on big-endian machines.
361         (arm_store_return_value): Now takes a regcache argument.  Change
362         code to use regcache accessor functions.  Correctly zero/sign extend
363         smaller than word results before storing into r0.
364         (arm_gdbarch_init): Register new-style extract_return_value and
365         store_return_value functions.
366
367 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
368
369         * thread-db.c (thread_from_lwp): Uniquify error msg.
370         (lwp_from_thread): Ditto.
371         (check_event): Ditto.
372         (find_new_threads_callback): Ditto.
373         (thread_db_pid_to_str): Ditto.
374
375 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
376
377         * frame.h (get_frame_saved_regs): Declare.
378         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
379         pointer.
380         * frame.c (get_frame_saved_regs): New function.
381         (frame_saved_regs_zalloc): Return the allocated saved_regs.
382
383 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
384
385         * frame.c (deprecated_update_current_frame_pc_hack): New
386         function.
387         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
388         * infrun.c (normal_stop): Use said function instead of directly
389         modifying the frame's PC.
390         
391 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
392
393         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
394
395 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
396
397         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
398         config/mips/tm-irix6.h (NUM_REGS): Delete.
399         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
400         (temp_saved_regs): Declare as a pointer rather than an array.
401         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
402         that ``temp_saved_regs'' has storage allocated to it and that
403         it's the correct size.
404
405 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
406
407         * defs.h (init_last_source_visited): New prototype.
408         (add_path): Ditto.
409         * source.c (add_path): New function that adds to a specified path.
410         (mod_path): Change to call add_path.
411         (init_last_source_visited): New function to allow interfaces to
412         initialize static variable: last_source_visited.  Part of fix
413         for PR gdb/741.
414         * Makefile.in: Add support for mi/mi-cmd-env.c.
415
416 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
417
418         * frame.h (frame_id_unwind): Declare.
419         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
420         id_unwind_cache.
421         (frame_id_unwind_ftype): Declare.
422         * frame.c (frame_id_unwind): New function.
423         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
424         (create_new_frame, get_prev_frame): Pass id_unwind to
425         set_unwind_by_pc.
426         (frame_saved_regs_id_unwind): New function.
427         (frame_saved_regs_id_unwind): New function.
428         * dummy-frame.c (dummy_frame_id_unwind): New function.
429         (struct dummy_frame): Add field id.
430         (generic_push_dummy_frame): Initialize `id'.
431         * dummy-frame.h (dummy_frame_id_unwind): Declare.
432
433 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
434
435         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
436         pass that to set_momentary_breakpoint.  Move comments to where they
437         belong.
438         * frame.h (set_current_frame): Delete declaration.
439         * frame.c (set_current_frame): Delete function.
440
441 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
442
443         * frame.c (frame_extra_info_zalloc): New function.
444         * frame.h (frame_extra_info_zalloc): Declare.
445
446 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
447
448         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
449         in the previous prototype change to set_momentary_breakpoint.
450
451 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
452
453         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
454         and saw_child_exec.
455         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
456         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
457         (stop_stepping): Remove outdated check for child vfork events.
458
459 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
460
461         * GDB 5.3 released from gdb_5_3-branch.
462
463 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
464
465         * corelow.c (init_core_ops): Delete references to to_require_attach
466         and to_require_detach.
467         * exec.c (init_exec_ops): Likewise.
468         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
469         hppa_require_detach directly.
470         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
471         * inftarg.c (child_detach): Remove.
472         (child_detach_from_process): Rename to child_detach, remove
473         after_fork argument.
474         (child_attach): Remove.
475         (child_attach_to_process): Rename to child_attach, remove after_fork
476         argument.
477         (init_child_ops): Delete references to to_require_attach
478         and to_require_detach.
479         * infttrace.c (hppa_require_attach): Update comment.
480         * target.c (cleanup_target, update_current_target)
481         (init_dummy_target, setup_target_debug): Delete references to
482         to_require_attach and to_require_detach.
483         (find_default_require_detach, find_default_require_attach)
484         (debug_to_require_attach, debug_to_require_detach): Remove
485         functions.
486         * target.h (struct target_ops): Remove to_require_attach
487         and to_require_detach.
488         (target_require_attach, target_require_detach): Delete macros.
489         (find_default_require_detach, find_default_require_attach): Delete
490         prototypes.
491         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
492
493 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
494
495         * frame.c (get_frame_extra_info): New function.
496         * frame.h (get_frame_extra_info): Declare.
497
498 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
499
500         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
501         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
502         with `struct frame_id'.
503         (set_longjmp_resume_breakpoint): Ditto.
504         * infrun.c (handle_inferior_event): Update.
505         * breakpoint.c (watch_command_1, until_break_command): Update.
506         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
507         (handle_inferior_event, step_over_function): Update.
508         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
509         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
510         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
511         * infcmd.c (finish_command, run_stack_dummy): Update.
512
513 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
514
515         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
516         (dwarf2_non_const_array_bound_ignored)
517         (dwarf2_missing_line_number_section)
518         (dwarf2_statement_list_fits_in_line_number_section)
519         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
520         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
521         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
522         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
523         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
524         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
525         (dwarf2_missing_member_fn_type_complaint)
526         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
527         (dwarf2_const_value_length_mismatch)
528         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
529         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
530         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
531         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
532         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
533         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
534         complaints using deprecated struct..
535         (dwarf2_non_const_array_bound_ignored_complaint)
536         (dwarf2_complex_location_expr_complaint)
537         (dwarf2_unsupported_at_frame_base_complaint)
538         (dwarf2_const_value_length_mismatch_complaint)
539         (dwarf2_macros_too_long_complaint)
540         (dwarf2_macro_malformed_definition_complaint)
541         (dwarf2_invalid_attrib_class_complaint): New functions.
542         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
543         (read_structure_scope, read_array_type, read_common_block)
544         (read_tag_pointer_type, read_base_type, read_partial_die)
545         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
546         (new_symbol, dwarf2_const_value, read_type_die)
547         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
548         (parse_macro_definition, dwarf_decode_macros): Replace calls to
549         complain() with, possibly indirect, calls to complaint().
550
551 2002-12-11  Andrew Cagney  <cagney@redhat.com>
552
553         * frame.c (deprecated_get_frame_saved_regs): Rename
554         get_frame_saved_regs.
555         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
556         * sparc-tdep.c: Update.
557         * hppa-tdep.c: Update.
558         * h8500-tdep.c: Update.
559
560 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
561
562         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
563         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
564         ``char *'' for return and parameter types.
565         * gdbarch.h, gdbarch.c: Regenerate.
566         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
567         return type from ``char *'' to ``const char *''.
568         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
569         const.
570
571 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
572
573         * i386-tdep.c: Include "dummy-frame.h".
574         (i386_frame_chain, i386_frame_saved_pc): Replace
575         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
576         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
577
578 2002-12-10  Andrew Cagney  <cagney@redhat.com>
579
580         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
581         Change to a function with predicate.
582         * gdbarch.h, gdbarch.c: Re-generate.
583         * frame.c (get_prev_frame): Update.  Test
584         DEPRECATED_INIT_FRAME_PC_P.
585         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
586         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
587         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
588         * alpha-tdep.c (alpha_gdbarch_init): Update.
589         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
590         * mips-tdep.c (mips_gdbarch_init): Update.
591         * i386-interix-tdep.c (i386_interix_init_abi): Update.
592         * arm-tdep.c: Update comments.
593         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
594         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
595         * frv-tdep.c (frv_gdbarch_init): Ditto.
596         * x86-64-tdep.c (x86_64_init_abi): Ditto.
597         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
598         * s390-tdep.c (s390_gdbarch_init): Ditto.
599         * v850-tdep.c (v850_gdbarch_init): Ditto.
600         * vax-tdep.c (vax_gdbarch_init): Ditto.
601         * sh-tdep.c (sh_gdbarch_init): Ditto.
602         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
603         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
604         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
605         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
606         * i386-tdep.c (i386_gdbarch_init): Ditto.
607         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
608         * cris-tdep.c (cris_gdbarch_init): Ditto.
609         * avr-tdep.c (avr_gdbarch_init): Ditto.
610         * arm-tdep.c (arm_gdbarch_init): Ditto.
611         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
612         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
613
614 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
615
616         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
617         CHILD_FOLLOW_FORK.
618         * hppah-nat.c (saved_vfork_pid): Add.
619         (child_post_follow_vfork): Remove.
620         (child_follow_fork): New function.
621         (child_wait): Call detach_breakpoints after receiving the child vfork.
622         Call child_resume directly instead of going through resume ().
623         Make sure we have the exec before reporting the vfork.
624         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
625         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
626         (follow_fork): New function.  Call target_follow_fork.
627         (follow_inferior_reset_breakpoints): New function broken out from
628         old follow_inferior_fork.
629         (resume): Remove hack to follow exec after vfork.
630         * inftarg.c (child_post_follow_vfork): Remove.
631         (child_follow_fork): New function.
632         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
633         * target.c (cleanup_target): Replace to_post_follow_vfork with
634         to_follow_fork.
635         (update_current_target): Likewise.
636         (setup_target_debug): Likewise.
637         (debug_to_post_follow_vfork): Remove.
638         (debug_to_follow_fork): New function.
639         * target.h (struct target_ops): Replace to_post_folow_vfork with
640         to_follow_fork.
641         (child_post_follow_vfork): Remove prototype.
642         (child_follow_fork): Add prototype.
643         (target_post_follow_vfork): Remove macro.
644         (target_follow_fork): Add macro.
645
646 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
647
648         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
649         (child_post_follow_vfork): Cancel pending exec event if we follow
650         the parent.
651         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
652         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
653         event at the following wait call if necessary.
654         * infrun.c (follow_vfork): Don't follow_exec here.
655         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
656         case about HP/UX 10.20.  Remove code pushed down to
657         hppah-nat.c:child_wait.
658         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
659         vfork_in_flight is set.
660
661 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
662
663         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
664         for the parent's fork event.
665         * infrun.c (handle_inferior_event): Only expect one fork event.
666         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
667         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
668
669 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
670
671         * PROBLEMS: Delete reference to PR gdb/725.
672         
673         * MAINTAINERS (gdb.c++): Add David Carlton.
674
675 2002-12-09  David Carlton  <carlton@math.stanford.edu>
676
677         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
678         * cli/cli-cmds.c: Ditto.
679
680 2002-12-09  Andrew Cagney  <cagney@redhat.com>
681
682         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
683         function address in <>.
684         * gdbarch.c: Re-generate.
685
686 2002-12-09  David Carlton  <carlton@math.stanford.edu>
687
688         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
689
690 2002-12-09  David Carlton  <carlton@math.stanford.edu>
691
692         * linespec.c (symtab_from_filename): New function.
693         (decode_line_1): Move code into symtab_from_filename.
694
695 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
696
697         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
698
699 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
700
701         * f-valprint.c (info_common_command): Use get_frame_pc.
702         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
703         * ax-gdb.c (agent_command): Ditto.
704         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
705         (rs6000_pop_frame): Ditto.
706         (rs6000_frameless_function_invocation): Ditto.
707         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
708         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
709         * macroscope.c (default_macro_scope): Ditto.
710         * stack.c (print_frame_info_base): Ditto.
711         (print_frame, frame_info, print_frame_label_vars): Ditto.
712         (return_command, func_command, get_frame_language): Ditto.
713         * infcmd.c (finish_command): Ditto.
714         * dummy-frame.c (cached_find_dummy_frame): Ditto.
715         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
716         (break_at_finish_at_depth_command_1): Ditto.
717         (break_at_finish_command_1): Ditto.
718         (until_break_command, get_catch_sals): Ditto.
719         * blockframe.c (func_frame_chain_valid): Ditto.
720         (frameless_look_for_prologue): Ditto.
721         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
722
723 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
724
725         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
726         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
727
728 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
729
730         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
731         to pure functions.
732         * gdbarch.h, gdbarch.c: Re-generate.
733         * frame.c (get_prev_frame): Explictly assign prev's pc with value
734         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
735
736         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
737         declaration to a function returning a CORE_ADDR.
738         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
739         * arch-utils.c (init_frame_pc_noop): Return the PC value.
740         (init_frame_pc_default): Ditto.
741         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
742         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
743         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
744         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
745         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
746         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
747
748         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
749         to init_frame_pc_noop.
750         (i386_interix_init_frame_pc): Delete function.
751         * z8k-tdep.c (init_frame_pc): Delete function.
752         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
753         (INIT_FRAME_PC_FIRST): Ditto.
754         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
755         (INIT_FRAME_PC_FIRST): Ditto.
756         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
757         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
758         init_frame_pc_noop.
759         (INIT_FRAME_PC_FIRST): Convert to an expression.
760         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
761
762 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
763
764         * blockframe.c: Use get_frame_base instead of directly accessing
765         the `struct frame_info' member frame.
766         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
767         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
768
769 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
770
771         * Makefile.in (readline_h): Define.
772         (completer.o): Depend on readline_h.
773         (corelow.o): Ditto.
774         (event-top.o): Ditto.
775         (exec.o): Ditto.
776         (solib.o): Ditto.
777         (source.o): Ditto. 
778         (symfile.o): Ditto. 
779         (symmisc.o): Ditto. 
780         (top.o): Ditto.
781         (tracepoint.o): Ditto. 
782         (utils.o): Ditto.
783         (cli-dump.o): Ditto.
784         (tui-hooks.o): Ditto. 
785         (tuiWin.o): Ditto. 
786
787 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
788
789         More cleanup from import of readline 4.3.
790         * completer.h (complete_line, readline_line_completion_function):
791         Update prototypes.
792         (line_completion_function): Removed, not used outside of completer.c.
793         * completer.c (readline_line_completion_function,
794         complete_function, line_completion_function): Use const for first
795         parameter.
796         (line_completion_function): Make static.
797         (filename_completer): filename_completion_function is now called
798         rl_filename_completion_function
799         * corelow.c: Include <readline/readline.h>.
800         * exec.c: Ditto.
801         * solib.c: Ditto.
802         * source.c: Ditto.
803         * symfile.c: Ditto.
804         * symmisc.c: Ditto.
805         * top.c (init_main): No need to coerce
806         readline_line_completion_function anymore.
807         * cli/cli-dump.c: Include <readline/readline.h>.
808
809 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
810
811         * stack.c (frame_info): Use get_prev_frame.
812         * blockframe.c (frame_address_in_block): Ditto.
813         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
814         (rs6000_frameless_function_invocation): Ditto.
815         (rs6000_frame_saved_pc): Ditto.
816         (rs6000_frame_chain): Ditto.
817         * arch-utils.c (init_frame_pc_default): Ditto.
818
819 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
820
821         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
822         Delete redundant definition.
823
824 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
825
826         Import of readline 4.3:
827         * cli/cli-cmds.c: Include readline/tilde.h.
828         * cli/cli-setshow.c: Ditto.
829         * defs.h: Don't declare tilde_expand anymore, since readline
830         exports it.
831
832 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
833
834         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
835         -Werror on this file.
836
837 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
838
839         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
840         the format name.
841         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
842         * gdbarch.c: Regenerate.
843         
844 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
845
846         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
847         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
848         provide a default value.
849         * gdbarch.h, gdbarch.c: Regenerate.
850         * frame.c (get_prev_frame): Update.  Check
851         DEPRECATED_INIT_FRAME_PC_FIRST_P.
852         * s390-tdep.c (s390_gdbarch_init): Update.
853         * mips-tdep.c (mips_gdbarch_init): Update.
854         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
855         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
856         * alpha-tdep.c (alpha_gdbarch_init): Update.
857         
858 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
859
860         * ia64-linux-nat.c: Include gdb_string.h.
861         * alpha-nat.c: Ditto.
862         * ppc-linux-nat.c: Ditto.
863         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
864         Update dependencies.
865
866 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
867
868         * gdbthread.h: Include "frame.h".
869         (struct thread_info): Replace step_frame_address with
870         step_frame_id.
871         * inferior.h: Include "frame.h".
872         (step_frame_id): Replace external variable step_frame_address.
873         * gdbthread.h (save_infrun_state): Replace step_frame_address
874         parameter with step_frame_id parameter.
875         (load_infrun_state): Ditto.
876         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
877         * infcmd.c (step_frame_id, step_1, step_once): Update.
878         * thread.c (load_infrun_state, save_infrun_state): Update.
879         * infrun.c (clear_proceed_status, save_inferior_status): Update.
880         (handle_inferior_event, step_over_function): Update.
881         (normal_stop, context_switch, restore_inferior_status): Update.
882         (struct inferior_status): Replace step_frame_address with
883         step_frame_id.
884
885 2002-12-05  David Carlton  <carlton@math.stanford.edu>
886
887         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
888         DW_TAG_member as well as a declaration as being a C++ static data
889         member.
890         (read_structure_scope): Combine tests for DW_TAG_member and
891         DW_TAG_variable.
892
893 2002-12-05  David Carlton  <carlton@math.stanford.edu>
894
895         * linespec.c (decode_compound): New function.
896         (decode_line_1): Move code into decode_compound.
897
898 2002-12-05  David Carlton  <carlton@math.stanford.edu>
899
900         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
901         argument.
902         (lookup_symbol_aux): Do the 'field_of_this' check before checking
903         the static block.  See PR gdb/804.
904
905 2002-12-05  David Carlton  <carlton@math.stanford.edu>
906
907         * symtab.c (lookup_symbol_aux_block): New function.
908         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
909
910 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
911
912         * gdbarch.sh: Dump the predicate function and macro values.
913         (read): Print error on standard error.
914         * gdbarch.c: Regenerate.
915         
916 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
917
918         * Makefile.in (mips_tdep_h): Define.
919         (mips-tdep.o): Add mips_tdep_h to dependency list.
920         * mips-tdep.h: New file.
921         * mips-tdep.c (mips-tdep.h): Include.
922         (enum mips_abi): Move to mips-tdep.h.
923         (mips_abi): New function.
924
925 2002-12-04  David Carlton  <carlton@math.stanford.edu>
926
927         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
928
929 2002-12-04  David Carlton  <carlton@math.stanford.edu>
930
931         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
932         function.
933         (lookup_symbol_aux_minsyms): New function.
934
935 2002-12-04  J. Brobecker  <brobecker@gnat.com>
936
937         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
938
939 2002-12-04  J. Brobecker  <brobecker@gnat.com>
940
941         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
942         which is an obsolete macro name.
943
944 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
945
946         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
947         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
948
949 2002-12-03  H.J. Lu  (hjl@gnu.org)
950
951         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
952         (create_breakpoints): Make sure the addr_string field is not
953         NULL.
954
955 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
956
957         * sparc-nat.c (fetch_inferior_registers)
958         (store_inferior_registers): Add comment on problem of LWP vs
959         threads.
960         
961         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
962         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
963         (lin_lwp_store_registers): Remove.
964         (init_lin_lwp_ops): Use fetch_inferior_registers
965         and store_inferior_registers directly.
966         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
967         (store_inferior_registers): Likewise.
968         Fix PR gdb/725.
969
970 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
971
972         * frame.h (get_frame_id): Convert to a function.
973         (null_frame_id, frame_id_p): Declare.
974         (frame_id_eq, frame_id_inner): Declare.
975         (frame_id_build): New function.
976         * frame.c (get_frame_id): Update.  Use null_frame_id.
977         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
978         frame_id_inner.
979         (null_frame_id, frame_id_p): Define.
980         (frame_id_eq, frame_id_inner): Define.
981         (frame_id_build): New function.
982         * varobj.c (varobj_create): Update.
983         (varobj_update): Update.
984         * valops.c (value_assign): Update.
985         (new_root_variable): Update.
986         * infrun.c (save_inferior_status): Update.
987         * breakpoint.c (watch_command_1): Update.
988
989 2002-12-03  J. Brobecker  <brobecker@gnat.com>
990
991         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
992         (SNAP2): Likewise.
993
994 2002-12-03  Andrew Cagney  <cagney@redhat.com>
995
996         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
997         patch.
998
999         * PROBLEMS: Mention PR gdb/725.
1000
1001 2002-12-03  Andreas Schwab  <schwab@suse.de>
1002
1003         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1004
1005 2002-12-02  Adam Fedor  <fedor@gnu.org>
1006             Klee Dienes  <kdienes@apple.com>
1007
1008         * objc-lang.c (objc_printstr): Add width arg to match
1009         printstr prototype.
1010         (compare_selectors): Add 'const' to arg types.
1011         (compare_classes): Likewise.
1012         (find_imps): Cast msym pointer to avoid compiler warning.
1013         (print_object_command): Validate the address before
1014         passing it to the print routine.
1015         (find_objc_msgcall_submethod): Change function argument to
1016         return an int.
1017         * objc-lang.h: Add 'extern' to all function declarations.
1018         (value_nsstring): Add declaration.
1019
1020 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1021
1022         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1023         Fixes a build failure on HP/UX.
1024
1025         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1026         failure on HP/UX. 
1027         (hpread_has_name): Advance declaration to avoid a compilation warning.
1028         (pst_syms_count): Add missing variable type. By change, the compiler
1029         was defaulting to int, which seems a good choice. Fixes a compilation
1030         warning.
1031         (pst_syms_size): Likewise.
1032  
1033 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1034
1035         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1036         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1037         later to set the proper gdbarch methods depending on the osabi.
1038         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1039
1040 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1041
1042         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1043         * osabi.c (gdb_osabi_name): Add strings images for the two new
1044         enum values.
1045         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1046
1047 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1048
1049         * MAINTAINERS (Java): Global maintainers are responible for Java.
1050         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1051         part Java maintainers.
1052
1053 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1054
1055         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1056         Fixes a compilation failure on AiX.
1057
1058 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1059
1060         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1061         why aix-thread.o is not listed.
1062
1063 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1064
1065         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1066         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1067         * gdbarch.h, gdbarch.c: Re-generate.
1068         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1069         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1070         * config/pa/tm-hppa.h, frame.h: Update.
1071         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1072         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1073         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1074         * cris-tdep.c, alpha-tdep.c: Update.
1075         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1076         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1077         (get_prev_frame): Ditto.
1078
1079 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1080
1081         * exec.c (xfer_memory): Replace boolean with int.
1082         * p-exp.y: Use 0 instead of false.
1083         * corelow.c (gdb_check_format): Change return type to int from
1084         boolean.
1085         * utils.c: Don't include <curses.h> or <term.h> first.
1086
1087 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1088
1089         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1090         (m68hc11_register_byte): Remove.
1091         (m68hc11_gdbarch_init): Don't set the above.
1092
1093 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1094
1095         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1096         by calling get_selected_frame.
1097         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1098         set_current_frame, create_new_frame, select_frame and
1099         get_current_frame.
1100         * remote-e7000.c (e7000_start_remote): Ditto.
1101         * remote-mips.c (common_open): Ditto
1102         * remote-rdp.c (remote_rdp_open): Ditto.
1103
1104 2002-11-29  Andreas Schwab  <schwab@suse.de>
1105
1106         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1107         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1108         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1109         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1110         read_memory_unsigned_integer instead of read_memory_integer when
1111         dealing with addresses and instruction opcodes.
1112         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1113         (m68k_linux_frame_saved_pc): Likewise.
1114
1115 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1116
1117         * stack.c (selected_frame, select_frame): Move from here ...
1118         * frame.c (selected_frame, select_frame): ... to here.  Include
1119         "language.h".
1120         * Makefile.in (frame.o): Update dependencies.
1121         * frame.c (get_selected_frame): New function.
1122         * frame.h (get_selected_frame): Declare.
1123         (deprecated_selected_frame): Rename selected_frame.
1124         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1125         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1126         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1127         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1128         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1129         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1130         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1131         * z8k-tdep.c, cli/cli-cmds.c: Update.
1132         
1133 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1134
1135         * frame.h (get_selected_block): Add comments.
1136
1137 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1138
1139         * frame.c (pc_notcurrent): New function.
1140         (find_frame_sal): New function.
1141         * frame.h (find_frame_sal): Declare.
1142         (struct symtab_and_line): Add opaque declaration.
1143         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1144         find_pc_line.
1145         (frame_info): Ditto.
1146         * ada-lang.c (find_printable_frame): Ditto.
1147
1148 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1149
1150         * configure.in: Check that the pthdebug library is recent enough
1151         before enabling thread support on native AiX.
1152         * configure: Regenerate.
1153
1154         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1155         from the list of object files as it is now appended by configure
1156         if thread support is enabled.
1157         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1158         if thread support is enabled.
1159
1160 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1161
1162         * stack.c (get_selected_block): In-line get_current_block.
1163         * frame.h (get_current_block): Delete declaration.
1164         * blockframe.c (get_current_block): Delete function.
1165
1166 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1167
1168         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1169         USE_GENERIC_DUMMY_FRAMES.
1170         * gdbarch.h, gdbarch.c: Regenerate.
1171         * valops.c, frame.c: Update.
1172         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1173         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1174         * config/pa/tm-hppa.h, blockframe.c: Update.
1175         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1176         * m68k-tdep.c, alpha-tdep.c: Ditto.
1177
1178         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1179         * mips-tdep.c: Ditto.
1180
1181 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1182
1183         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1184         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1185         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1186         * gdbarch.c, gdbarch.h: Re-generate.
1187         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1188         (CALL_DUMMY_LOCATION): Delete macro definition.
1189         (PC_IN_CALL_DUMMY): Delete macro definitions.
1190         
1191         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1192         default is already generic_pc_in_call_dummy.
1193         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1194         * v850-tdep.c (v850_gdbarch_init): Ditto.
1195         * sh-tdep.c (sh_gdbarch_init): Ditto.
1196         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1197         * mips-tdep.c (mips_gdbarch_init): Ditto.
1198         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1199         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1200         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1201         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1202         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1203         * avr-tdep.c (avr_gdbarch_init): Ditto.
1204         
1205         * arm-tdep.c (arm_gdbarch_init): Do not set
1206         use_generic_dummy_frames, default is already 1.
1207         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1208         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1209         * v850-tdep.c (v850_gdbarch_init): Ditto.
1210         * sh-tdep.c (sh_gdbarch_init): Ditto.
1211         * s390-tdep.c (s390_gdbarch_init): Ditto.
1212         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1213         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1214         * mips-tdep.c (mips_gdbarch_init): Ditto.
1215         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1216         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1217         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1218         * i386-tdep.c (i386_gdbarch_init): Ditto.
1219         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1220         * frv-tdep.c (frv_gdbarch_init): Ditto.
1221         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1222         * cris-tdep.c (cris_gdbarch_init): Ditto.
1223         * avr-tdep.c (avr_gdbarch_init): Ditto.
1224
1225         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1226         call_dummy_location, default is already AT_ENTRY_POINT.
1227         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1228         * v850-tdep.c (v850_gdbarch_init): Ditto.
1229         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1230         * sh-tdep.c (sh_gdbarch_init): Ditto.
1231         * s390-tdep.c (s390_gdbarch_init): Ditto.
1232         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1233         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1234         * mips-tdep.c (mips_gdbarch_init): Ditto.
1235         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1236         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1237         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1238         * i386-tdep.c (i386_gdbarch_init): Ditto.
1239         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1240         * frv-tdep.c (frv_gdbarch_init): Ditto.
1241         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1242         * cris-tdep.c (cris_gdbarch_init): Ditto.
1243         * avr-tdep.c (avr_gdbarch_init): Ditto.
1244         * arm-tdep.c (arm_gdbarch_init): Ditto.
1245         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1246
1247 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1248
1249         * frame.h: Update comments on set_current_frame, create_new_frame,
1250         flush_cached_frames, reinit_frame_cache, select_frame and
1251         selected_frame.
1252         
1253 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1254
1255         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1256         deprecated pc_in_call_dummy function.
1257         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1258         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1259         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1260         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1261         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1262
1263 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1264
1265         * Makefile.in: Remove Tix dependencies.
1266         * acinclude.m4: Ditto.
1267         * aclocal.m4: Ditto.
1268         * configure.in: Ditto.
1269         * configure: Regenerated.
1270         
1271 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1272
1273         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1274         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1275         * gdbarch.c: Re-generate.
1276         
1277 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1278
1279         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1280         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1281         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1282         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1283         pc_in_call_dummy_at_entry_point.
1284         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1285         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1286         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1287         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1288         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1289         pc_in_call_dummy_on_stack.
1290         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1291         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1292         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1293         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1294         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1295         
1296 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1297
1298         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1299         pc_in_call_dummy_before_text_end
1300         (deprecated_pc_in_call_dummy_after_text_end): Rename
1301         pc_in_call_dummy_after_text_end.
1302         (deprecated_pc_in_call_dummy_on_stack): Rename
1303         pc_in_call_dummy_on_stack.
1304         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1305         pc_in_call_dummy_at_entry_point.
1306         * m68k-tdep.c (m68k_gdbarch_init): Update.
1307         * s390-tdep.c (s390_gdbarch_init): Update.
1308         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1309         * vax-tdep.c (vax_gdbarch_init): Update.
1310         * sparc-tdep.c (sparc_gdbarch_init): Update.
1311         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1312         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1313         * i386-tdep.c (i386_gdbarch_init): Update.
1314         * frv-tdep.c (frv_gdbarch_init): Update.
1315         * cris-tdep.c (cris_gdbarch_init): Update.
1316         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1317         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1318         (deprecated_pc_in_call_dummy_after_text_end)
1319         (deprecated_pc_in_call_dummy_on_stack)
1320         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1321         * alpha-tdep.c (alpha_gdbarch_init): Update.
1322
1323 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1324
1325         * acconfig.h (HAVE_PREAD64): Add.
1326         * configure.in: Check for pread64.
1327         * config.in: Regenerated.
1328         * configure: Regenerated.
1329         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1330         * linux-proc.c (linux_proc_xfer_memory): New function.
1331         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1332
1333 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1334
1335         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1336         pdi's with no name.
1337
1338 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1339
1340         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1341         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1342
1343 2002-11-25  Jim Blandy  <jimb@redhat.com>
1344
1345         * symfile.c (init_objfile_sect_indices): New function.
1346         (default_symfile_offsets): Move the section-index-initializing
1347         stuff into init_objfile_sect_indices, and call that.
1348
1349         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1350         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1351
1352         * symfile.c (syms_from_objfile): Adjust indentation.
1353
1354         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1355         || info_verbose isn't true.
1356
1357 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1358
1359         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1360         default to get_frame_base.
1361         * gdbarch.h, gdbarch.c: Regenerate.
1362         * arch-utils.c (default_frame_address): Delete function.
1363         * arch-utils.h (default_frame_address): Delete declaration
1364
1365 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1366
1367         * varobj.c (find_frame_addr_in_frame_chain):
1368         Use get_frame_base instead of FRAME_FP,
1369         obvious fix.
1370
1371 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1372
1373         * frame.h (FRAME_FP): Delete macro.
1374         (get_frame_base): New function declaration.
1375         * frame.c (get_frame_base): New function.
1376         (get_frame_id): Use ->frame.
1377         (frame_find_by_id): Rewrite to use get_frame_id.
1378         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1379         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1380         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1381         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1382         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1383         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1384         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1385
1386 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1387
1388         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1389
1390 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1391
1392         * frame.c (set_unwind_by_pc): Revert change below, use
1393         PC_IN_CALL_DUMMY.
1394         (get_prev_frame): Ditto.
1395
1396 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1397
1398         * dummy-frame.c (pc_in_dummy_frame): New function.
1399         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1400         (find_dummy_frame): Update comment.
1401         (generic_pop_current_frame): Use get_frame_type.
1402         * dummy-frame.h (pc_in_dummy_frame): Declare.
1403         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1404         (create_new_frame): Use pc_in_dummy_frame.
1405         (get_prev_frame): Use pc_in_dummy_frame.
1406         (frame_saved_regs_register_unwind): Use get_prev_frame.
1407         (deprecated_generic_get_saved_register): Use get_prev_frame.
1408
1409 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1410
1411         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1412         from here ...
1413         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1414         (varobj_create): Note that frame ID should be used.
1415         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1416
1417 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1418
1419         * breakpoint.c: Include "gdb_assert.h".
1420         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1421         not being used.
1422         * Makefile.in (breakpoint.o): Update dependencies.
1423         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1424         deprecated_frame_in_dummy.
1425         * stack.c (print_frame_info_base): Ditto.
1426         (frame_info): Ditto.
1427         (print_frame_info_base): Ditto.  Delete dead code.
1428         
1429 2002-11-23  Andreas Schwab  <schwab@suse.de>
1430
1431         * Makefile.in (m68k_tdep_h): Define.
1432         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1433         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1434         * m68k-tdep.c: Move register number enum ...
1435         * m68k-tdep.h: ... to this new file and rename the constants from
1436         E_* to M68K_*.  All uses changed.
1437         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1438         * abug-rom.c: Include "m68k-tdep.h".  Use
1439         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1440         * cpu32bug-rom.c: Likewise.
1441         * dbug-rom.c: Likewise.
1442         * m68k-tdep.c: Likewise.
1443         * m68klinux-nat.c: Likewise.
1444         * remote-est.c: Likewise.
1445         * rom68k-rom.c: Likewise.
1446         * config/m68k/tm-linux.h: Likewise.
1447
1448 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1449
1450         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1451         dummy frame initialization code.
1452         * mips-tdep.c (mips_gdbarch_init): Ditto.
1453
1454 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1455
1456         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1457         attach will hang.
1458
1459 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1460
1461         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1462         to default_frame_address.
1463         * gdbarch.h, gdbarch.c: Re-generate.
1464
1465         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1466         or frame_locals_address to default_frame_address.
1467         * m68k-tdep.c (m68k_gdbarch_init): Update.
1468         * i386-tdep.c (i386_gdbarch_init): Update.
1469         * frv-tdep.c (frv_gdbarch_init): Update.
1470         * sh-tdep.c (sh_gdbarch_init): Update.
1471         * v850-tdep.c (v850_gdbarch_init): Update.
1472         * sparc-tdep.c (sparc_gdbarch_init): Update.
1473         * mips-tdep.c (mips_gdbarch_init): Update.
1474         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1475         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1476         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1477
1478         * cris-tdep.c (cris_frame_args_address): Delete function.
1479         (cris_frame_locals_address): Delete function.
1480         (cris_gdbarch_init): Do not set frame_args_address or
1481         frame_locals_address.
1482
1483 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1484
1485         * thread-db.c (thread_db_load): Tell the user what's going on
1486         if dlopen fails on libthread_db.
1487
1488 2002-11-23  Andreas Schwab  <schwab@suse.de>
1489
1490         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1491         invariant return values.
1492
1493 2002-11-22  Andreas Schwab  <schwab@suse.de>
1494
1495         * valops.c (value_slice): Move declaration of `offset' to avoid
1496         warning.
1497
1498 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1499
1500         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1501         (struct so_stuff): Add end_addr field.
1502         (register_loaded_dll): Calculate and store end address of loaded dll.
1503         (solib_address): New function.
1504         (child_solib_loaded_library_pathname): Pass carefully constructed
1505         section info to safe_symbol_file_add rather than ignoring it.
1506         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1507         DLL is loaded.
1508         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1509         (child_create_inferior): Fix a compiler warning.
1510         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1511         (solib_address): Declare new function.
1512
1513 2002-11-22  Andreas Schwab  <schwab@suse.de>
1514
1515         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1516         and FPS registers.
1517
1518 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1519
1520         * maint.c (_initialize_maint_cmds): Fix typo.  From
1521         Francesco Potorti` <pot@gnu.org>.
1522
1523 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1524
1525         * mips-tdep.c (mips_dump_tdep): Delete references to
1526         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1527         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1528         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1529         * printcmd.c (build_address_symbolic): Delete calls to
1530         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1531         (address_info): Ditto.
1532         Fix PR gdb/773.
1533         
1534 2002-11-19  Klee Dienes  <kdienes@apple.com>
1535             Adam Fedor  <fedor@gnu.org>
1536
1537         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1538         the ability to explicitly specify the quote characters and word
1539         break characters; if NULL is specified for either, use the old
1540         behavior of using the characters used by the completer.
1541         (skip_chars): New function.  Convenience wrapper around
1542         skip_quoted_chars to provide the original skip_chars behavior.
1543         * completer.h (skip_quoted_chars): Add prototype.
1544
1545 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1546
1547         Problems reported by Paul Eggert.
1548         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1549
1550 2002-11-19  Andreas Schwab  <schwab@suse.de>
1551
1552         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1553         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1554         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1555         (m68k_linux_frame_saved_pc): Move to ...
1556         * m68klinux-tdep.c: ... here.  New file.
1557         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1558         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1559
1560 2002-11-19  Adam Fedor  <fedor@gnu.org>
1561
1562         * objc-exp.y: Revert to old skip_quoted usage.
1563
1564 2002-11-19  Adam Fedor  <fedor@gnu.org>
1565
1566         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1567         (objc_lang_h): Define.
1568         (YYFILES): Add objc-exp.tab.c.
1569         (local-maintainer-clean): Remove objc-exp.tab.c.
1570         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1571         
1572 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1573
1574         * p-exp.y (typecast rule): Add automatic dereference of
1575         pascal classes if needed.
1576         (THIS): Set current_type.
1577         Automatically dereference pascal classes. 
1578         (typebase rule): Add ^typebase recognition.
1579
1580 2002-11-18  Adam Fedor  <fedor@gnu.org>
1581
1582         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1583         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1584         (op_name): Handle OP_OBJC_SELF.
1585         * Makefile.in (expprint.o): Add additional depends.
1586
1587 2002-11-18  Adam Fedor  <fedor@gnu.org>
1588
1589         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1590         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1591         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1592         * objc-exp.y: Likewise. 
1593
1594 2002-11-18  Adam Fedor  <fedor@gnu.org>
1595
1596         * gdb/parser-defs.h: (struct objc_class_str): New structure
1597         for parsing ObjC classes.
1598
1599 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1600
1601         * stack.c (frame_relative_level): Copy function from here ...
1602         * frame.c (frame_relative_level): ...to here.
1603
1604 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1605
1606         * frame.h (enum frame_type): Define.
1607         (get_frame_type): Declare.
1608         (struct frame_info): Add field `type'.  Delete field
1609         signal_handler_caller.
1610         (deprecated_set_frame_signal_handler_caller): Declare.
1611         * frame.c (get_frame_type): New function.
1612         (deprecated_set_frame_type): New function.
1613         (create_new_frame): Set the frame's type.
1614         (get_prev_frame): Similar.
1615         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1616         * s390-tdep.c: Ditto.
1617         * m68klinux-nat.c: Ditto.
1618         * ns32k-tdep.c: Ditto.
1619         * x86-64-linux-tdep.c: Ditto.
1620         * vax-tdep.c: Ditto.
1621         * rs6000-tdep.c: Ditto.
1622         * ppc-linux-tdep.c: Ditto.
1623         * i386-interix-tdep.c: Ditto.
1624         * mips-tdep.c: Ditto.
1625         * m68k-tdep.c: Ditto.
1626         * hppa-tdep.c: Ditto.
1627         * ia64-tdep.c: Ditto.
1628         * cris-tdep.c: Ditto.
1629         * arm-tdep.c: Ditto.
1630         * alpha-tdep.c: Ditto.
1631         * i386-tdep.c: Ditto.
1632         * stack.c: Ditto.
1633         * ada-lang.c: Ditto.
1634         * blockframe.c: Update.
1635         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1636         deprecated_set_frame_type instead of signal_handler_caller.
1637         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1638         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1639         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1640
1641 2002-11-18   Klee Dienes  <kdienes@apple.com>
1642
1643         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1644
1645 2002-11-18  Klee Dienes  <kdienes@apple.com>
1646
1647         * buildsym.c (pop_context): Add comment.
1648         
1649 2002-11-18  Klee Dienes  <kdienes@apple.com>
1650
1651         * buildsym.h (pop_context): Convert to function, defined in
1652         buildsym.c.
1653         * buildsym.c: Include gdb_assert.h.
1654         (pop_context): Implement as C function.  Add check for stack
1655         underflow.
1656         * dbxread.c (process_one_symbol): Complain and stop processing
1657         that symbol if we are already at the top of the context stack for
1658         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1659         when processing N_RBRAC.
1660
1661 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1662
1663         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1664         define.
1665         (struct target_waitstatus): Add opaque definition.
1666         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1667         * exec.c (init_exec_ops): Likewise.
1668         * fork-child.c (clone_and_follow_inferior): Remove.
1669         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1670         * inferior.h (clone_and_follow_inferior): Remove prototype.
1671         * infrun.c (follow_fork_mode_both): Remove.
1672         (follow_fork_mode_kind_names): Remove commented out "both".
1673         (follow_inferior_fork): Remove follow_fork_mode_both support.
1674         * inftarg.c (child_clone_and_follow_inferior): Remove.
1675         (child_post_follow_inferior_by_clone): Remove.
1676         (init_child_ops): Don't set to_clone_and_follow_inferior
1677         or to_post_follow_inferior_by_clone.
1678         * target.c (default_clone_and_follow_inferior): Remove.
1679         (cleanup_target): Don't set to_clone_and_follow_inferior
1680         or to_post_follow_inferior_by_clone.
1681         (find_default_clone_and_follow_inferior): Remove.
1682         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1683         (debug_to_clone_and_follow_inferior): Remove.
1684         (debug_to_post_follow_inferior_by_clone): Remove.
1685         (setup_target_debug): Don't set to_clone_and_follow_inferior
1686         or to_post_follow_inferior_by_clone.
1687         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1688         and to_post_follow_inferior_by_clone.
1689         (child_clone_and_follow_inferior): Remove prototype.
1690         (child_post_follow_inferior_by_clone): Remove prototype.
1691         (target_clone_and_follow_inferior): Remove macro.
1692         (target_post_follow_inferior_by_clone): Remove macro.
1693         (find_default_clone_and_follow_inferior): Remove prototype.
1694
1695 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1696
1697         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1698         inferior_has_vforked, and inferior_has_execd instead of
1699         target_has_forked, target_has_vforked, and target_has_execd.
1700         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1701         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1702         (CHILD_WAIT): Define.
1703         (child_wait): Add prototype.
1704         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1705         Add prototype.
1706         (hpux_has_vforked): Likewise, from child_has_vforked.
1707         (hpux_has_execd): Likewise, from child_has_execd.
1708         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1709         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1710         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1711         and hpux_has_syscall_event instead of the target hooks.
1712         * infrun.c (inferior_has_forked, inferior_has_vforked)
1713         (inferior_has_execd): New functions.
1714         * inftarg.c (not_same_real_pid): Remove.
1715         (child_wait): Remove references to not_same_real_pid,
1716         target_has_forked, target_has_vforked, target_has_execd,
1717         and target_has_syscall_event.
1718         (child_has_forked, child_has_vforked, child_has_execd)
1719         (child_has_syscall_event): Remove.
1720         (init_child_ops): Remove references to child_has_forked,
1721         child_has_vforked, child_has_execd, and child_has_syscall_event.
1722         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1723         (hpux_has_vforked): Likewise, from child_has_vforked.
1724         (hpux_has_execd): Likewise, from child_has_execd.
1725         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1726         * target.c (cleanup_target): Remove references to
1727         to_has_forked, to_has_vforked, to_has_execd, and
1728         to_has_syscall_event.
1729         (update_current_target): Likewise.
1730         (setup_target_debug): Likewise.
1731         (debug_to_has_forked): Remove.
1732         (debug_to_has_vforked): Remove.
1733         (debug_to_has_execd): Remove.
1734         (debug_to_has_syscall_event): Remove.
1735         * target.h (struct target_ops): Remove to_has_forked.
1736         to_has_vforked, to_has_execd, and to_has_syscall_event.
1737         (child_has_forked, child_has_vforked, child_has_execd)
1738         (child_has_syscall_event): Remove prototypes.
1739         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1740         prototypes.
1741         (target_has_forked, target_has_vforked, target_has_execd)
1742         (target_has_syscall_event): Remove macros.
1743
1744 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1745
1746         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1747         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1748         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1749         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1750         * target.c (cleanup_target): Remove reference to
1751         to_can_follow_vfork_prior_to_exec.
1752         (update_current_target): Likewise.
1753         (debug_to_can_follow_vfork_prior_to_exec): Remove.
1754         (setup_target_debug): Remove reference to
1755         to_can_follow_vfork_prior_to_exec.
1756         * target.h (struct target_ops): Remove
1757         to_can_follow_vfork_prior_to_exec.
1758         (child_can_follow_vfork_prior_to_exec): Remove prototype.
1759         (target_can_follow_vfork_prior_to_exec): Remove definition.
1760         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1761         define.
1762         * infrun.c (follow_vfork_when_exec): Remove.
1763         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1764         (follow_exec): Likewise.
1765         (handle_inferior_event): Likewise.
1766         (keep_going): Likewise.
1767
1768 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1769
1770         * frame.c (generic_unwind_get_saved_register): Make static.
1771         * frame.h (generic_unwind_get_saved_register): Delete declaration.
1772         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1773         defaults to generic_unwind_get_saved_register.
1774         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1775         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1776         * frv-tdep.c (frv_gdbarch_init): Ditto.
1777         * i386-tdep.c (i386_gdbarch_init): Ditto.
1778         * s390-tdep.c (s390_gdbarch_init): Ditto.
1779         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1780         * v850-tdep.c (v850_gdbarch_init): Ditto.
1781         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1782         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1783         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1784
1785 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1786
1787         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
1788         i386-tdep.c.
1789
1790 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1791
1792         * frame.h (sigtramp_saved_pc): Delete declaration.
1793         * blockframe.c (sigtramp_saved_pc): Delete function.
1794         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1795         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1796         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1797         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1798
1799 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1800
1801         * frame.c (frame_pc_unwind): New function.
1802         (frame_saved_regs_pc_unwind): New function.
1803         (frame_register_unwind): Pass unwind_cache instead of
1804         register_unwind_cache.
1805         (set_unwind_by_pc): Add unwind_pc parameter, set.
1806         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1807         (get_prev_frame): Ditto.
1808         * frame.h (frame_pc_unwind_ftype): Declare.
1809         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1810         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
1811         (frame_pc_unwind): Declare.
1812         * dummy-frame.c (dummy_frame_pc_unwind): New function.
1813         (struct dummy_frame): Add comment mentioning that values are for
1814         previous frame.
1815         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1816         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1817         (generic_file_frame_chain_valid): Ditto.
1818         * stack.c (frame_info): Ditto.
1819
1820 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1821
1822         * linespec.c (locate_first_half): New function.
1823         (decode_line_1): Move code into locate_first_half.
1824
1825 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1826
1827         * complaints.h: Add comment explaining how to eliminate a
1828         deprecated_complain call.
1829         * complaints.h: Fix spelling errors.
1830
1831 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1832
1833         * printcmd.c: Remove #include "disasm.h".
1834
1835 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1836
1837         * frame.h: Move the most relevant interface functions to the start
1838         of the file.
1839
1840 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1841
1842         * regcache.h (deprecated_registers): Rename registers.
1843         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1844         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1845         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1846         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1847         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1848         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1849         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1850         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1851         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1852         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1853         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1854         * v850ice.c: Update.
1855
1856 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
1857
1858         * utils.c (gdb_realpath): Add comment mentioning realpath with a
1859         NULL buffer.
1860
1861 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1862
1863         * regcache.h (deprecated_read_register_bytes): Rename
1864         read_register_bytes.
1865         (deprecated_write_register_bytes): Rename write_register_bytes.
1866         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1867         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1868         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1869         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1870         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1871         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1872         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1873         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1874         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1875         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1876         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1877         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1878         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1879         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1880
1881 2002-11-13  Jim Blandy  <jimb@redhat.com>
1882
1883         * findvar.c (read_var_value): Doc fix.
1884
1885 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1886
1887         * regcache.c (struct regcache): Replace passthough_p with
1888         readonly_p.
1889         (regcache_xmalloc): Initialize readonly_p.
1890         (build_regcache): Initialize readonly_p.
1891         (regcache_save): New function.
1892         (regcache_restore): New function.
1893         (regcache_cpy): Re-implement using regcache_save and
1894         regcache_restore.
1895         (regcache_raw_read): Update.
1896         (regcache_cooked_read): When a read-only cache, checked for cached
1897         pseudo register values.
1898         (regcache_raw_write): Assert that the cache is not read-only.
1899         Remove code handling a non-passthrough cache.
1900         * regcache.h (regcache_save): Declare.
1901         (regcache_restore): Declare.
1902
1903 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1904
1905         * regcache.c (struct regcache_descr): Add fields
1906         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1907         (init_legacy_regcache_descr): Compute the size of a cooked
1908         register cache and then assign that to sizeof_raw_registers.  Set
1909         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1910         (init_legacy_regcache_descr): Ditto.
1911
1912 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1913
1914         * regcache.c (register_buffer): Move to near start of file, update
1915         description.
1916         (regcache_raw_read): Use.
1917         (regcache_raw_write): Use.
1918         (struct regcache): Rename raw_registers to registers and
1919         raw_register_valid_p to register_valid_p.
1920         (regcache_xmalloc): Update.
1921         (regcache_xfree): Update.
1922         (register_buffer): Update.
1923         (regcache_cpy): Update.
1924         (regcache_cpy_no_passthrough): Update.
1925         (regcache_valid_p): Update.
1926         (deprecated_grub_regcache_for_registers): Update.
1927         (deprecated_grub_regcache_for_register_valid): Update.
1928         (set_register_cached): Update.
1929         (regcache_raw_write): Update.
1930
1931 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
1932
1933         * p-exp.y (name_not_typename): Use copy_name to
1934         set current_type variable for fields of THIS.
1935
1936 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
1937
1938         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1939         * monitor.c (init_base_monitor_ops): Likewise.
1940         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1941         * remote-array.c (init_array_ops): Likewise.
1942         * remote-e7000.c (init_e7000_ops): Likewise.
1943         * remote-es.c (init_es1800_ops): Likewise.
1944         (init_es1800_child_ops): Likewise.
1945         * remote-rdp.c (init_remote_rdp_ops): Likewise.
1946         * remote-sim.c (init_gdbsim_ops): Likewise.
1947         * remote-st.c (init_st2000_ops): Likewise.
1948         * sol-thread.c (init_sol_core_ops): Likewise.
1949         (init_sol_thread_ops): Likewise.
1950         * v850ice.c (init_850ice_ops): Likewise.
1951         * win32-nat.c (init_child_ops): Likewise.
1952         * wince.c (init_child_ops): Likewise.
1953
1954 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
1955
1956         * utils.c (gdb_realpath): Make rp a constant pointer.
1957
1958 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
1959
1960         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
1961         a constant buffer; cannonicalize_file_name(); realpath() with a
1962         pathconf() defined buffer, xstrdup().
1963
1964 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
1965
1966         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1967         to hang2.C; hang3.c to hang3.C.
1968
1969 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
1970
1971         * findvar.c (read_var_value): Reenable TLS code.
1972
1973 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
1974             Jim Blandy  <jimb@redhat.com>
1975         
1976         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1977         * target.c (update_current_target): Add
1978         to_get_thread_local_address.
1979         * target.h (to_get_thread_local_address): Export.
1980         (target_get_thread_local_address): Define.
1981         (target_get_thread_local_address_p): Define.
1982         * thread-db.c: Include solib-svr4.h.
1983         (td_thr_tls_get_addr_p): Define.
1984         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1985         (thread_db_get_thread_local_address): New function.
1986         (init_thread_db_ops): Initialize to_get_thread_local_address.
1987         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1988         * configure: Regenerate.
1989         * config.in: Regenerate.
1990
1991 2002-11-11  David Carlton  <carlton@math.stanford.edu>
1992
1993         * linespec.c (set_flags): New function.
1994         (decode_line_1): Move code into set_flags.
1995
1996 2002-11-11  David Carlton  <carlton@math.stanford.edu>
1997
1998         * linespec.c (decode_line_1): Move chunks of code to separate
1999         functions.
2000         (initialize_defaults): New function.
2001         (decode_indirect): New function.
2002
2003 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2004
2005         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2006         instead of void_code_ptr.
2007         (sigtramp_saved_pc): Ditto.
2008
2009         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2010         i386_fp_regnum_p.
2011
2012 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2013
2014         * gdbtypes.h (struct main_type): Move artificial flag out of
2015         loc.  New member of ``struct field'' named static_kind.  Reduce
2016         overloaded meaning of bitsize.
2017         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2018         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2019         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2020
2021         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2022         new fields.
2023         (template_to_fixed_record_type, template_to_static_fixed_type)
2024         (to_record_with_fixed_variant_part): Likewise.
2025         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2026         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2027         * dwarfread.c (struct_type, enum_type): Likewise.
2028         * hpread.c (hpread_read_enum_type)
2029         (hpread_read_function_type, hpread_read_doc_function_type)
2030         (hpread_read_struct_type): Likewise.
2031         * mdebugread.c (parse_symbol): Likewise.
2032
2033 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2034
2035         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2036         * stack.c (print_frame_info_base): Update.
2037         (print_frame_info_base, frame_info): Update.
2038         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2039         (sparc_frame_saved_pc): Update.
2040         * ada-lang.c (find_printable_frame): Update.
2041         * breakpoint.c (deprecated_frame_in_dummy): Update.
2042         
2043 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2044
2045         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2046         defined.
2047         (regmap): Extend to cover all registers.
2048         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2049         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2050         definitions.
2051         (fetch_register, sore_register): Simplify.
2052         (old_fetch_inferior_registers, old_store_inferior_registers):
2053         Remove functions.
2054         (cannot_fetch_register, cannot_store_register): Change
2055         implementation to use regmap array to decide which registers
2056         cannot be fetched/stored.  This removes $orig_eax from the
2057         registers that cannot be fetched/stored.
2058         (fetch_inferior_registers): Call fetch_register directly instead
2059         of calling old_fetch_inferior_registers.
2060         (store_inferior_registers): Call store_register directly instead
2061         of calling old_store_inferior_registers.
2062         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2063         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2064         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2065
2066 2002-11-09  Klee Dienes  <kdienes@apple.com>
2067
2068         * i387-tdep.c (i387_supply_register): When called with NULL as a
2069         buffer, mark the register as not provided (to mirror the behavior
2070         of supply_register).
2071         (i387_supply_fxsave): Ditto.
2072         (i387_supply_fsave): Ditto (inherits the behavior from
2073         i387_supply_register).
2074
2075 2002-11-09  Klee Dienes  <kdienes@apple.com>
2076
2077         * blockframe.c (sigtramp_saved_pc): Use
2078         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2079         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2080         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2081         
2082 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2083
2084         * frame.c (get_prev_frame): Test prev_p to identify a previously
2085         unwound frame.  Initialize prev_p.
2086         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2087         comment.
2088
2089 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2090
2091         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2092         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2093         more comments.  Zap dead code.
2094
2095 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2096
2097         * infcmd.c (print_vector_info, print_float_info): Move code that
2098         checks whether the target has any registers and whether there is a
2099         selected frame up, such that it is also used if a target provides
2100         multi-arch definitions of these functions.
2101
2102 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2103
2104         * Makefile.in (DESTDIR): Define.
2105         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2106         prefix.
2107
2108         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2109         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2110
2111 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2112
2113         * i386-linux-tdep.c: Include "reggroups.h".
2114         (i386_linux_register_reggroup_p): New function.
2115         (i386_linux_init_abi): Set register_reggroup_p to
2116         i386_linux_register_reggroup_p.
2117         * i386-tdep.h (i386_register_reggroup_p): Declare.
2118         * i386-tdep.c: Include "reggroups.h".
2119         (i386_init_reggroups): New function.
2120         (i386_add_reggroups): New function.
2121         (i386_register_reggroup_p): New function.
2122         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2123         (_initialize_i386_tdep): Call i386_init_reggroups.
2124         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2125         specific reggroups.
2126
2127 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2128
2129         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2130         request that's available in *BSD.
2131
2132         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2133
2134         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2135         FDOFF_REGNUM.
2136
2137 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2138
2139         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2140         * dummy-frame.c (find_dummy_frame): Rename
2141         generic_find_dummy_frame, make static.  Return the dummy frame
2142         instead of the regcache.
2143         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2144         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2145         (dummy_frame_register_unwind): Rename
2146         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2147         * dummy-frame.h (dummy_frame_register_unwind): Rename
2148         generic_call_dummy_register_unwind.
2149
2150 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2151
2152         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2153         except the inclusion of "i386/tm-i386.h", to...
2154         * config/i386/nm-i386v42mp.h: ...here.
2155         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2156
2157 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2158
2159         * Makefile.in (frame.o): Update dependencies.
2160         * blockframe.c (current_frame, frame_obstack_alloc)
2161         (frame_saved_regs_zalloc, get_current_frame)
2162         (set_current_frame, create_new_frame)
2163         (set_unwind_by_pc, get_next_frame)
2164         (flush_cached_frames, reinit_frame_cache)
2165         (frame_saved_regs_register_unwind)
2166         (deprecated_generic_get_saved_register)
2167         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2168         (_initialize_blockframe): Move frame code from here...
2169         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2170         "annotate.h" and "dummy-frame.h".
2171         (_initialize_frame): New function.
2172
2173 2002-11-08  Jim Blandy  <jimb@redhat.com>
2174
2175         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2176         when we finish a function a context.
2177         * buildsym.h (outermost_context_p): New macro.
2178         (Bug analyzed by David Edelsohn.)
2179
2180 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2181
2182         * blockframe.c: Include "dummy-frame.h".
2183         (struct dummy_frame, dummy_frame_stack)
2184         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2185         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2186         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2187         (generic_save_call_dummy_addr, generic_pop_current_frame)
2188         (generic_pop_dummy_frame, generic_fix_call_dummy)
2189         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2190         dummy frame code from here...
2191         * dummy-frame.c: ...to here.  New file.
2192         * dummy-frame.h: New file.
2193         (generic_call_dummy_register_unwind): Declare.
2194         (generic_find_dummy_frame): Declare.
2195         * Makefile.in (SFILES): Add dummy-frame.c.
2196         (dummy-frame.o): Specify dependencies.
2197         (dummy_frame_h): Define.
2198         (COMMON_OBS): Add dummy-frame.o.
2199         (blockframe.o): Update dependencies.
2200
2201 2002-11-08  Jim Blandy  <jimb@redhat.com>
2202
2203         * dwarf2read.c (read_func_scope): Restore local_symbols and
2204         param_symbols after we finish the function context.  (Based on a
2205         patch from David Edelsohn.)
2206
2207 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2208
2209         * linespec.c (symbol_found): New function.
2210         (minsym_found): New function.
2211         (decode_line_1): Separate out some code into separate functions.
2212
2213 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2214
2215         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2216         the benefit of the interix target.
2217         * i386-tdep.h (i386_frameless_signal_p): Declare.
2218
2219 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2220
2221         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2222         declaration that snuck in from change below.
2223
2224 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2225
2226         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2227         all callers.
2228         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2229         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2230         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2231         (i386_mxcsr_regnum_p): new function.  Use instead of
2232         MXCSR_REGNUM_P.
2233         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2234         (i386_sse_regnum_p): Declare.
2235         (i386_mxcsr_regnum_p): Declare.
2236         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2237         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2238         (IS_FP_REGNUM): Update definition.
2239         (IS_FPU_CTRL_REGNUM): Update definition..
2240         (IS_SSE_REGNUM): Update definition..
2241         * i386v-nat.c (register_u_addr): Update.
2242         * go32-nat.c (fetch_register): Update.
2243         (store_register): Update.
2244
2245 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2246
2247         Preparation work to convert the hppa targets to multiarch partial.
2248
2249         * hppa-tdep.c: Add new functions replacing macro bodies from
2250         config/pa/tm-hppa.h. These function will be used to initialize
2251         the gdbarch structure. Import some comments from tm-hppa.h,
2252         and place them where appropriate, to avoid loosing them when
2253         we cleanup this file.
2254         (hppa_reg_struct_has_addr): New function.
2255         (hppa_inner_than): New function.
2256         (hppa_stack_align): New function.
2257         (hppa_pc_requires_run_before_use): New function.
2258         (hppa_instruction_nullified): New function.
2259         (hppa_register_byte): New function.
2260         (hppa_register_virtual_type): New function.
2261         (hppa_store_struct_return): New function.
2262         (hppa_cannot_store_register): New function.
2263         (hppa_frame_args_address): New function.
2264         (hppa_frame_locals_address): New function.
2265         (hppa_smash_text_address): New function.
2266         (hppa_coerce_float_to_double): New function. Requires the inclusion
2267         of "language.h".
2268
2269         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2270
2271         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2272         gdbarch-eligible macro to a call to the new associated function
2273         created in hppa-tdep.c.
2274         (INNER_THAN): Likewise.
2275         (STACK_ALIGN): Likewise.
2276         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2277         (INSTRUCTION_NULLIFIED): Likewise.
2278         (REGISTER_BYTE): Likewise.
2279         (REGISTER_VIRTUAL_TYPE): Likewise.
2280         (STORE_STRUCT_RETURN): Likewise.
2281         (CANNOT_STORE_REGISTER): Likewise.
2282         (FRAME_ARGS_ADDRESS): Likewise.
2283         (FRAME_LOCALS_ADDRESS): Likewise.
2284         (SMASH_TEXT_ADDRESS): Likewise.
2285         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2286         (ABOUT_TO_RETURN): Delete, as no longer used.
2287
2288 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2289
2290         * printcmd.c (disassemble_command): Remove obsolete function.
2291         (_initialize_printcmd): Do not create disassemble command here.
2292         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2293         disassemble command.
2294         (init_cli_cmds): Create disassemble command here instead.
2295
2296 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2297
2298         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2299
2300 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2301
2302         * regcache.h (regcache_cooked_read_using_offset_hack)
2303         (regcache_cooked_write_using_offset_hack): Delete declarations.
2304         (register_changed): Delete declaration.
2305         * regcache.c (regcache_cooked_read_using_offset_hack)
2306         (regcache_cooked_write_using_offset_hack): Delete functions.
2307         (cooked_xfer_using_offset_hack): Delete function.
2308         (register_changed): Delete function.
2309
2310 2002-11-07  Jim Blandy  <jimb@redhat.com>
2311
2312         * macroscope.c: #include "complaints.h".
2313         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2314         but not in the macro table.
2315         * Makefile.in (macroscope.o): Record dependency.
2316
2317 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2318
2319         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2320
2321 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2322
2323         * regcache.c (deprecated_registers_fetched): Update.
2324         * regcache.h (deprecated_registers_fetched): Rename
2325         registers_fetched.
2326         * remote-vxsparc.c (vx_read_register): Update.
2327         * remote-vxmips.c (vx_read_register): Update.
2328         * remote-vx68.c (vx_read_register): Update.
2329         * irix5-nat.c (fetch_core_registers): Update.
2330         * mipsm3-nat.c (fetch_inferior_registers): Update.
2331         * sun3-nat.c (fetch_inferior_registers): Update.
2332         * symm-nat.c (fetch_inferior_registers): Update.
2333         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2334         (fetch_core_registers): Update.
2335         (fetch_kcore_registers): Update.
2336         * mips-nat.c (fetch_inferior_registers): Update.
2337         * corelow.c (get_core_registers): Update.
2338         * a68v-nat.c (fetch_inferior_registers): Update.
2339
2340 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2341
2342         Put in place the framework necessary for multiarching the hppa targets.
2343         * hppa-tdep.c (hppa_gdbarch_init): New function.
2344         (hppa_dump_tdep): New function.
2345         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2346         tdep structure dumper.
2347         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2348         until the multi-arching conversion has partially been completed.
2349
2350 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2351
2352         * valops.c (value_assign): Merge lval_register case into
2353         lval_reg_frame_relative.  Use frame_register and
2354         regcache_cooked_write instead of get_saved_register and
2355         write_register_bytes.  After flushing the register cache, try to
2356         re-select the selected frame.
2357
2358 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2359
2360         * regcache.h (deprecated_register_valid): Rename register_valid.
2361         * regcache.c: Update.
2362         * ia64-aix-nat.c: Update.
2363         * i386gnu-nat.c: Update.
2364         * alpha-nat.c: Update.
2365         * sparc-nat.c: Update.
2366         * lynx-nat.c: Update.
2367         * remote-mips.c: Update.
2368
2369 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2370
2371         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2372         to end of file, to be more consistent with the pratice followed
2373         by other targets.
2374
2375 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2376
2377         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2378         (print_float_info): Print registers in float_reggroup.
2379         (print_vector_info): Print registers in vector_reggroup.
2380         (default_print_registers_info): When all, print registers in
2381         all_reggroup.  Otherwize, print registers in general_reggroup.
2382         (registers_info): Rewrite.  Add support for register groups.
2383         Eliminate a goto.
2384
2385 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2386
2387         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2388         ages.
2389         (symtab_symbol_info): Remove eons old ifdeffed out code.
2390         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2391         command.
2392
2393 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2394
2395         * c-exp.y: Add missing semi-colons.
2396         * f-exp.y: Add missing semi-colons.
2397         * m2-exp.y: Add missing semi-colons.
2398         * p-exp.y: Add missing semi-colons.
2399         Add empty action to start rule to avoid a type clash error when
2400         building with bison >= 1.50.
2401
2402 2002-11-06  Jim Blandy  <jimb@redhat.com>
2403
2404         * macrotab.h (struct macro_source_file): Doc fix.
2405
2406 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2407
2408         * varobj.c (child_exists, cplus_number_of_children): Change
2409         STREQ macro references to strcmp.
2410         (cplus_name_of_child): Change code to handle the fact that
2411         fields are not necessarily contiguous with regards to their 
2412         access control. This is a fix for PR gdb/792.
2413
2414 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2415
2416         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2417         * gdbarch.h, gdbarch.c: Regnerate.
2418         * frame.h (frame_register): Declare.
2419         * frame.c (frame_register): New function.
2420         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2421         GET_SAVED_REGISTER, otherwize call
2422         generic_unwind_get_saved_register.
2423         (frame_register_read): Use frame_register instead of
2424         get_saved_register.
2425
2426 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2427         
2428         From Jim Ingham  <jingham@apple.com>:
2429         * event-top.c (gdb_disable_readline): New function.
2430         (_initialize_event_loop): Move comment.
2431
2432 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2433
2434         * event-loop.c (start_event_loop): Add comment.
2435         Update copyright.
2436
2437 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2438
2439         * infcmd.c (default_print_registers_info): Do not call
2440         PRINT_REGISTER_HOOK.
2441
2442 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2443
2444         * sparc-tdep.c (sparc_print_register_hook): Make static.
2445         (sparc_print_registers_info): New function.
2446         (sparc_do_registers_info): New function.
2447         (sparclet_print_registers_info): New function.
2448         (sparclet_do_registers_info): New function.
2449         (do_sparc_print_registers_info): New function.
2450         (sparc_print_registers): New static function, clone of infcmd.c's
2451         default_print_registers_info.
2452         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2453         (sparclet_do_registers_info): Declare.
2454         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2455         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2456         Re-define.
2457         (sparc_do_registers_info): Declare.
2458         (PRINT_REGISTER_HOOK): Delete macro.
2459         (sparc_print_register_hook): Delete declaration.
2460
2461 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2462
2463         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2464         functions.
2465         (lookup_symbol_aux_local): New function.
2466         (lookup_symbol_aux_symtabs): New function.
2467         (lookup_symbol_aux_psymtabs): New function.
2468
2469 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2470
2471         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2472         previous values of 'objfile' and 'block'.
2473
2474 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2475
2476         * values.c (value_change_enclosing_type): Set 
2477         enclosing_type field correctly also for the case where 
2478         more memory needs to be allocated.
2479
2480 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2481
2482         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2483         of puts_filtered.
2484
2485         * i387-tdep.c (i387_print_float_info): Replace calls to
2486         register_read and deprecated_read_register_gen with calls to
2487         frame_register_read, and make the necessary adjustments to the
2488         surrounding code.
2489
2490 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2491
2492         * gdbarch.sh (register_reggroup_p): Allow default value.
2493         * gdbarch.h, gdbarch.c: Regenerate.
2494
2495 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2496
2497         * regcache.h: Add coment indicating replacements for deprecated
2498         functions.
2499
2500 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2501
2502         * reggroups.h, reggroups.c: New files.
2503         * regcache.c: Include "reggroups.h".
2504         (enum regcache_dump_what): Add `regcache_dump_groups'.
2505         (regcache_dump): Contract size of the "Type" column.  When
2506         specified, dump the register's groups.
2507         (maintenance_print_register_groups): New function.
2508         (_initialize_regcache): Add command `maint print register-groups'.
2509         * Makefile.in (COMMON_OBS): Add reggroups.o
2510         (SFILES): Add reggroups.c.
2511         (reggroups_h): Define.
2512         (regcache.o, gdbarch.o): Update dependencies.
2513         (reggroups.o): Specify dependencies.
2514         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2515         Add opaque declaration for `struct reggroup' in generated .h file.
2516         Include "reggroups.h" in generated .c file.
2517         gdbarch.h, gdbarch.c: Re-generate.
2518
2519 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2520
2521         * regcache.h (deprecated_read_register_gen): Rename
2522         read_register_gen.
2523         (deprecated_write_register_gen): Rename write_register_gen.
2524         * i387-tdep.c: Update.
2525         * x86-64-linux-nat.c: Update
2526         * wince.c: Update.
2527         * thread-db.c: Update.
2528         * win32-nat.c: Update.
2529         * mips-tdep.c: Update.
2530         * d10v-tdep.c: Update.
2531         * cris-tdep.c: Update.
2532         * remote-sim.c: Update.
2533         * remote-rdi.c: Update.
2534         * remote-rdp.c: Update.
2535         * frame.c: Update.
2536         * target.c: Update.
2537         * blockframe.c: Update.
2538         * x86-64-tdep.c: Update.
2539         * xstormy16-tdep.c: Update.
2540         * sh-tdep.c: Update.
2541         * s390-tdep.c: Update.
2542         * rs6000-tdep.c: Update.
2543         * sparc-tdep.c: Update.
2544         * i386-tdep.c: Update.
2545         * dwarf2cfi.c: Update.
2546         * regcache.c: Update.
2547
2548 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2549
2550         New interix-specific files:
2551         * config/i386/nm-interix.h: New file.
2552         * config/i386/interix.mh: New file.
2553         * config/i386/interix.mt: New file.
2554         * i386-interix-nat.c: New file.
2555         * i386-interix-tdep.c: New file.
2556
2557 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2558
2559         * frame.h (deprecated_generic_get_saved_register): Rename
2560         generic_get_saved_register.
2561         * blockframe.c (deprecated_generic_get_saved_register): Update.
2562         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2563         (xstormy16_frame_saved_register): Update.
2564         * sh-tdep.c (sh_gdbarch_init): Update.
2565         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2566         * ia64-tdep.c (ia64_get_saved_register): Update.
2567         * cris-tdep.c (cris_gdbarch_init): Update.
2568         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2569         * arm-tdep.c (arm_gdbarch_init): Update.
2570
2571 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2572
2573         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2574
2575 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2576
2577         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2578         trampolines in sigaction.
2579
2580 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2581
2582         * h8300-tdep.c: Include "gdb_assert.h".
2583         (h8300_print_register): Add gdbarch, file and frame parameters.
2584         Use frame_read_unsigned_register to read the register's value.
2585         Use fprintf_filtered to display output.
2586         (h8300_print_registers_info): Replace h8300_do_registers_info.
2587         (h8300_gdbarch_init): Set print_registers_info.
2588
2589 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2590
2591         * frame.c (frame_read_unsigned_register): New function.
2592         (frame_read_signed_register): New function.
2593         * frame.h (frame_read_unsigned_register): Declare.
2594         (frame_read_signed_register): Declare.
2595
2596 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2597
2598         * h8500-tdep.c (h8500_print_registers_info): New static function,
2599         clone of infcmd.c's default_print_registers_info.
2600         (h8500_do_registers_info): New funtion.
2601         (h8500_print_register_hook): Rename print_register_hook, make
2602         static.
2603
2604         * config/h8500/tm-h8500.h: Update copyright.
2605         (DEPRECATED_DO_REGISTERS_INFO): Define.
2606         (h8500_do_registers_info: Declare.
2607         (PRINT_REGISTER_HOOK): Delete macro.
2608         (print_register_hook): Delete function.
2609
2610 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2611
2612         * z8k-tdep.c (z8k_print_register_hook): Make static.
2613         (z8k_print_registers_info): New static function, clone of
2614         infcmd.c's default_print_registers_info.
2615         (z8k_do_registers_info): New function.  Wrap
2616         z8k_print_registers_info.
2617         * config/z8k/tm-z8k.h: Update copyright.
2618         (PRINT_REGISTER_HOOK): Delete macro.
2619         (z8k_print_register_hook): Delete declaration.
2620         (DEPRECATED_DO_REGISTERS_INFO): Define.
2621         (z8k_do_registers_info): Declare.
2622
2623 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2624
2625         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2626         as this is already provided by value.h, and was actually causing
2627         a compilation error because of a conflict in parameter type
2628         declaration due to a missing const keyword.
2629         (low_text_segment_addres): Fix a compilation warning.
2630
2631 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2632
2633         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2634         registers without a name.
2635         (mips_linux_cannot_store_register): Don't store registers without
2636         a name.
2637
2638 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2639
2640         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2641         out.)
2642         * symtab.h: Delete prototype for find_addr_symbol.
2643
2644 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2645
2646         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2647         DO_REGISTERS_INFO.
2648         gdbarch.h, gdbarch.c: Re-generate.
2649         * infcmd.c (default_print_registers_info): Update reference.
2650         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2651         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2652         * sh-tdep.c (sh_gdbarch_init): Ditto.
2653         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2654         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2655
2656 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2657
2658         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2659         cfi_init_extra_frame_info.
2660         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2661         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2662
2663         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2664         target where necessary.  Add more comments and remove the ones
2665         that don't provide any useful information.
2666
2667         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2668         deprecated_read_register_dummy with
2669         frame_unwind_unsigned_register.
2670
2671         * i386-tdep.c (i386_extract_struct_value_address): Use
2672         regcache_raw_read_unsigned instead of
2673         regcache_cooked_read_unsigned since we know that the register
2674         we're reading isn't a pseudo register.  Rename variable 'val' into
2675         the more descriptive 'addr'.
2676
2677         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2678         (x86_64_push_return_address): Add comment.
2679         (x86_64_pop_frame): Make static.
2680         (examine_argument): Clarify comment.
2681         (x86_64_skip_prologue): Make prolog_expact variable static.
2682
2683         * dwarf2cfi.c: Fix some formatting problems.
2684         (context_cpy, read_encoded_pointer): Clarify comments.
2685
2686         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2687         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2688         i386 target back into x86_64_gdbarch_init.  Add some comments and
2689         remove meaningless ones.
2690
2691 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2692
2693         * complaints.h (struct deprecated_complaint): Rename `struct
2694         complaint'.
2695         * complaints.c (complain): Update.
2696         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2697         incorrect comment indicating that "symfile.h" was being included
2698         for the `struct complaint' definition.
2699         * remote-vx.c: Update.
2700         * objc-lang.c: Update.
2701         * xcoffread.c: Update.
2702         * hpread.c: Update.
2703         * mdebugread.c: Update.
2704         * stabsread.c: Update.
2705         * dwarf2read.c: Update.
2706         * dwarfread.c: Update.
2707         * elfread.c: Update.
2708         * coffread.c: Update.
2709         * stabsread.h: Update.
2710         * dbxread.c: Update.
2711         * buildsym.c: Update.
2712         * gdbtypes.c: Update.
2713         * macrotab.c: Update.
2714
2715 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2716
2717         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2718         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2719         (x86_64_init_abi): ...new function.
2720
2721         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2722         * i386v-nat.c: Include "i386-tdep.h".
2723
2724 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2725
2726         * gdbtypes.c (address_space_name_to_int): Update.
2727         (address_space_int_to_name): Update.
2728         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2729         multi-arch predicate.
2730         (address_class_name_to_type_flags): Ditto.
2731         * gdbarch.h, gdbarch.c: Re-generate.
2732         
2733         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2734
2735 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
2736
2737         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2738
2739 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
2740
2741         * symtab.h (INIT_SAL): Delete macro.
2742         (init_sal): Export.
2743         * symtab.c (init_sal): New function.
2744
2745         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2746         to init_sal function call.
2747         (find_sal_from_funcs_and_line): Ditto.
2748         (all_sals_for_line): Ditto. 
2749         * breakpoint.c (create_internal_breakpoint): Ditto. 
2750         (create_fork_vfork_event_catchpoint): Ditto. 
2751         (create_exec_event_catchpoint): Ditto. 
2752         (parse_breakpoint_sals): Ditto. 
2753         (watch_command_1): Ditto. 
2754         (handle_gnu_4_16_catch_command): Ditto.
2755         (clear_command): Ditto. 
2756         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
2757         * infcmd.c (run_stack_dummy): Ditto. 
2758         * infrun.c (process_event_stop_test): Ditto.
2759         (check_sigtramp2): Ditto.
2760         (step_over_function): Ditto. 
2761         * linespec.c (decode_line_2): Ditto. 
2762         (decode_line_1): Ditto. 
2763         * source.c (line_info): Ditto. 
2764         * symtab.c (find_pc_sect_line): Ditto.
2765
2766 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
2767
2768         * dwarf2cfi.c (struct context)
2769         (struct context_reg): Moved to dwarf2cfi.h
2770         (context_alloc, frame_state_alloc, context_cpy):
2771         Made extern instead of static, removed prototypes.
2772         * dwarf2cfi.h (struct context)
2773         (struct context_reg): New, moved from dwarf2cfi.c
2774         (context_alloc, frame_state_alloc, context_cpy):
2775         New prototypes.
2776         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2777         Changed from static to extern.
2778         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2779         (LINUX_SIGCONTEXT_FP_OFFSET)
2780         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2781         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2782         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2783         * x86-64-tdep.c (x86_64_gdbarch_init): Several
2784         set_gdbarch_*() calls now use x86-64 specific functions 
2785         instead of DWARF2 CFI ones.
2786         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2787         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2788         (x86_64_init_extra_frame_info): New prototypes.
2789         
2790 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2791
2792         * linespec.c: #include "parser-defs.h".
2793         Delete prototype for find_template_name_end.
2794         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2795
2796 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
2797
2798         * NEWS: add recent mi fixes.
2799         * varobj.c (struct varobj): Add new "updated" flag.
2800         (new_variable): Default "updated" flag to 0.
2801         (varobj_set_value): Set "updated" flag to 1 if value
2802         changes.
2803         (varobj_update): Check varobj "updated" flag before
2804         comparing old and refreshed values.  Fix for
2805         PR gdb/702.
2806
2807 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2808
2809         * parse.c (parse_exp_1): Use BLOCK_START.
2810         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2811         SYMBOL_BLOCK_VALUE.
2812         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2813
2814 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2815
2816         * symtab.c: Delete cplusplus_hint.
2817         Delete prototype for find_template_name_end.
2818
2819 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2820
2821         * symtab.h: Update comment.
2822
2823 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2824
2825         * printcmd.c (address_info): Restore quotes in output.
2826         * valops.c (value_of_local): Restore quotes in error message.
2827
2828 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2829
2830         * symtab.c (symbol_demangled_name): New function.
2831         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2832         turning most of it into a function.
2833         (symbol_demangled_name): Export.
2834
2835 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2836
2837         * valops.c (value_of_local): Restore quotes in error message.
2838
2839 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2840
2841         * symtab.c (symbol_init_language_specific): New function.
2842         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2843         turning most of it into a function.
2844         (symbol_init_language_specific): Export.
2845
2846 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2847
2848         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2849         (dwarf_attr_name): Ditto.
2850         (dwarf_type_encoding_name): Ditto.
2851         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2852         (process_die): Handle DW_TAG_namespace,
2853         DW_TAG_imported_declaration, DW_TAG_imported_module.
2854         (read_namespace): New function.
2855
2856 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
2857
2858         * configure.in: Define NEW_PROC_API on Interix too.
2859         * configure: Regenerate.
2860
2861 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
2862
2863         * configure: Regenerate using the proper version of autoconf.
2864
2865 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2866
2867         * findvar.c (read_var_value): Temporarily disable TLS code, until
2868         complete TLS support is added.
2869
2870 2002-10-21  Jim Blandy  <jimb@redhat.com>
2871             Elena Zannoni  <ezannoni@redhat.com>
2872
2873         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2874         for thread local storage locations.
2875         (struct symbol): Add objfile field.
2876         (SYMBOL_OBJFILE): Define.
2877         * dwarf2read.c (is_thread_local): New static variable.
2878         (new_symbol): If variable is in thread local fill in address class
2879         and objfile appropriately.
2880         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2881         stack operation.
2882         * printcmd.c (address_info): Print the information for thread
2883         local storage variable.
2884         * findvar.c (read_var_value): In case of thread local variable,
2885         defer to the target vector code to compute address.
2886
2887 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2888
2889         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2890         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
2891
2892 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2893
2894         * symtab.h (address_class):  Rename
2895         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2896         * hpread.c (hpread_process_one_debug_symbol): Ditto.
2897         * printcmd.c (address_info): Ditto.
2898         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2899
2900 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
2901
2902         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2903         DBREG_DRX macro to acces debug registers.
2904
2905         * Makefile.in (i386obsd-tdep.o): New target.
2906
2907         * solib-sunos.c: Include "bcache.h" and "regcache.h".
2908         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2909
2910         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2911         * config/i386/obsd.mt: New file.
2912         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2913         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2914         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2915         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2916         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2917         * i386obsd-tdep.c: New file.
2918
2919 2002-10-19  Adam Fedor  <fedor@gnu.org>
2920
2921         * objc-exp.y (name_not_typename): Fix invalid comment.  
2922
2923 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
2924
2925         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2926         to allocate partial syms and macro byte caches.
2927
2928 2002-10-18  David Carlton  <carlton@math.stanford.edu>
2929
2930         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2931
2932 2002-10-18  Adam Fedor  <fedor@gnu.org>
2933
2934         * stabsread.c (find_name_end): New function.
2935         (define_symbol): Use it.
2936
2937 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
2938
2939         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2940         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2941         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2942         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2943
2944 2002-10-17  David Carlton  <carlton@math.stanford.edu>
2945
2946         * symfile.h: Add opaque declaration for struct obstack.
2947         Declare obsavestring to take a const char *.
2948         * symfile.c (obsavestring): Make first argument a const char *.
2949
2950 2002-10-16  Adam Fedor  <fedor@gnu.org>
2951
2952         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2953         names when matching breakpoints in current file.
2954
2955 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
2956
2957         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2958         (read_tag_pointer_type): Add address class support.
2959         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2960         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2961         New methods.
2962         * gdbarch.h, gdbarch.c: Regenerate.
2963         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2964         (make_type_with_address_space, recursive_type_dump): Add address
2965         class support.
2966         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2967         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2968         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2969
2970 2002-10-16  Klee Dienes  <kdienes@apple.com>
2971
2972         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2973         to get the last character of a char[] buffer, not
2974         name[sizeof(vptr_name)-1].
2975
2976 2002-10-14  Adam Fedor  <fedor@gnu.org>
2977
2978         * symtab.h: New objc_specific struct.
2979         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2980         (SYMBOL_DEMANGLED_NAME): Likewise.
2981
2982 2002-10-14  Adam Fedor  <fedor@gnu.org>
2983
2984         * symfile.c (init_filename_language_table): Add ObjC file extension.
2985
2986 2002-10-14  Adam Fedor  <fedor@gnu.org>
2987
2988         * utils.c (puts_filtered_tabular): New function.
2989         (fprintf_symbol_filtered): Get ObjC demangled name.
2990         * defs.h (puts_filtered_tabular): Declared.
2991
2992 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
2993
2994         * c-lang.h (c_type_print_varspec_prefix): Delete.
2995         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
2996         ``need_post_space'' parameter.  Adjust all callers.
2997
2998 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
2999  
3000         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3001         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3002         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3003         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3004
3005 2002-10-13  Adam Fedor  <fedor@gnu.org>
3006
3007         * source.c (print_source_lines): Update comments.
3008
3009 2002-10-13  Adam Fedor  <fedor@gnu.org>
3010
3011         * valops.c (value_of_local): New function.
3012         (value_of_this): Use it.
3013         * value.h (value_of_local): Declared.
3014
3015 2002-10-13  Adam Fedor  <fedor@gnu.org>
3016
3017         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3018         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3019
3020 2002-10-12  Adam Fedor  <fedor@gnu.org>
3021
3022         * language.c (binop_result_type): Add language_objc to case.
3023         (integral_type): Likewise.
3024         (character_type): Likewise.
3025         (string_type): Likewise.
3026         (boolean_type): Likewise.
3027         (structured_type): Likewise.
3028         (binop_type_check): Likewise.
3029
3030 2002-10-11  Adam Fedor  <fedor@gnu.org>
3031
3032         * printcmd.c (address_info): Print 'self' for ObjC.
3033
3034 2002-10-11  Adam Fedor  <fedor@gnu.org>
3035
3036         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3037         OP_SELF.
3038
3039 2002-10-11  Adam Fedor  <fedor@gnu.org>
3040
3041         * language.h (CAST_IS_CONVERSION): Add language_objc.
3042
3043 2002-10-11  Adam Fedor  <fedor@gnu.org>
3044
3045         * defs.h (enum language): Add language_objc.
3046
3047 2002-10-11  Klee Dienes  <kdienes@apple.com>
3048
3049         * corefile.c (read_memory_typed_address): New function.
3050         * gdbcore.h (read_memory_typed_address): Add prototype.
3051         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3052         to read a value destined for a CORE_ADDR, not read_memory_integer.
3053         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3054         (f77_get_dynamic_lowerbound): Ditto.
3055
3056 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3057
3058         * utils.c (string_to_core_addr): After turning string into
3059         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3060         which will do necessary sign-extension, etc.
3061
3062 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3063
3064         * c-exp.y (THIS): Delete token and grammar rule.
3065         (yylex): Don't return THIS.
3066         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3067         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3068         * demangle.c (cplus_markers): Update comment.  Put '$'
3069         first.  Remove CPLUS_MARKER.
3070         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3071         * jv-exp.y (THIS): Delete token and grammar rule.
3072         (yylex): Don't return THIS.
3073         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3074         * objc-exp.y (THIS): Delete token and grammar rule.
3075         (yylex): Don't return THIS.
3076         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3077         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3078         (read_member_functions): Likewise for opname.
3079         (read_tilde_fields): Use is_cplus_marker.
3080
3081         * defs.h (CPLUS_MARKER): Don't define.
3082         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3083         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3084         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3085         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3086         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3087
3088         * config/i386/tm-i386v4.h: Delete file.
3089         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3090         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3091         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3092         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3093         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3094         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3095         * config/i386/i386v4.mt (TM_FILE): Likewise.
3096         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3097
3098 2002-10-10  Marko Mlinar  <markom@opencores.org>
3099
3100         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3101         accidentially not commited 2002-10-09
3102         * gdbarch.h, gdbarch.c: Re-generate.
3103
3104 2002-10-09  Marko Mlinar  <markom@opencores.org>
3105
3106         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3107         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3108         * gdbarch.h, gdbarch.c: Re-generate.
3109
3110 2002-10-08  Petr Sorfa <petrs@caldera.com>
3111
3112         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3113
3114         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3115         so we can work on more than one compilation unit at a time.  This
3116         helps prepare GDB to handle inter-CU die references.
3117         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3118         the code to be defined before struct comp_unit_head.
3119         (comp_unit_head): Added new members - offset, cu_head,
3120         begin_die, next and dwarf2_abbrevs.
3121         (dwarf2_abbrevs): Removed single static var; now member of
3122         struct comp_unit_head.
3123         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3124         members.
3125         (psymtab_to_symtab_1): Changed to work with the new
3126         struct comp_unit_head.
3127         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3128         constructs the dwarf2_abbrevs[] inside the cu_header.
3129         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3130         dwarf2_abbrev table to clean up.
3131         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3132         handling of dwarf2_abbrevs inside the cu_header.
3133         (read_partial_die): Now supports the call to the new
3134         dwarf2_lookup_abbrev.
3135         (read_full_die): Now supports the call to the new
3136         dwarf2_lookup_abbrev.
3137
3138 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3139
3140         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3141         insure that shell variables, such as "transformed_name" are propagated
3142         to later shell statements in rule.
3143
3144 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3145
3146         * config/i386/nm-i386sco.h: Add protection against
3147         multiple-inclusion.  Include "i386/nm-i386v.h".
3148         (REGISTER_U_ADDR): Remove define.
3149         (i386_register_u_addr): Remove prototype.
3150
3151 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3152
3153         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3154         before treating it as a single-step event.
3155
3156 2002-10-03  Adam Fedor  <fedor@gnu.org>
3157
3158         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3159         (objc_demangle): Remove assignment in if statements, Replace
3160         free with xfree.
3161         (add_msglist): Likewise.
3162         (end_msglist): Likewise.
3163         (complare_selectors): Likewise.
3164         (selectors_info): Likewise.
3165         (compare_classes): Likewise.
3166         (classes_info): Likewise.
3167         (print_object_command): Likewise.
3168         (find_objc_msgcall_submethod): Replace PTR with void *.
3169         * objc-lang.h: Remove check for __STDC__.
3170
3171 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3172
3173         * ui-out.h (ui_out_field_fmt_int): New prototype.
3174         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3175         of field width and alignment.
3176         * stack.c (print_frame_info_base): When printing frame level, use
3177         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3178         PR gdb/192
3179
3180 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3181
3182         * MAINTAINERS: Add self to Write After Approval list.
3183
3184 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3185
3186         * infcmd.c (interrupt_target_command_wrapper): Delete.
3187         (interrupt_target_command): Make non static.
3188         (nofp_registers_info): Make static.
3189         * stack.c (return_command_wrapper): Delete.
3190         (return_command): Make non static.
3191
3192 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3193
3194         * event-top.c (gdb_setup_readline): New function. Code moved from
3195         _initialize_event_loop().
3196         (_initialize_event_loop): Call gdb_setup_readline().
3197
3198 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3199
3200         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3201         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3202         * gdbarch.h, gdbarch.c: Re-generate.
3203
3204 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3205
3206         Fix PR gdb/778
3207         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3208         before recursing.
3209         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3210         of fill_in_vptr_fieldno.
3211
3212 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3213
3214         * inferior.h (registers_info, stepi_command, nexti_command,
3215         continue_command, interrupt_target_command): Export from infcmd.c.
3216         * frame.h (args_info, selected_frame_level_changed_hook,
3217         return_command): Export from stack.c.
3218         * v850ice.c (stepi_command, nexti_command, continue_command): use
3219         prototypes from inferior.h.
3220         * tracepoint.c (registers_info, args_info, locals_info): Use
3221         prototypes from frame.h and inferior.h.
3222         * Makefile.in (mi-main.o): Add dependency on frame.h.
3223
3224 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3225
3226         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3227         value in register 3 adjusted by ppc_gp0_regnum.
3228
3229         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3230
3231 2002-10-02  Marko Mlinar <markom@opencores.org>
3232
3233         * MAINTAINERS: Add myself to the Write After Approval list.
3234
3235 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3236
3237         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3238         of the section for the N64 ABI, fixed.
3239
3240         * config/mips/tm-irix6.h: Include solib.h.
3241
3242 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3243
3244         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3245         GNU operators.
3246
3247 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3248
3249         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3250         and that "mi0" syntax has been removed.
3251
3252 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3253
3254         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3255         * ppc-sysv-tdep.c: #include "gdb_string.h".
3256         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3257         pacify GCC.
3258
3259 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3260
3261         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3262         "vrsave"'s register number.
3263
3264 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3265
3266         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3267         use frame_unwind_signed_register to obtain the PC.
3268         (mips_frame_chain): Handle a generic dummy frame.
3269         (mips_init_extra_frame_info): When a generic dummy frame, don't
3270         re-compute the frame base.
3271         (mips_pop_frame): Handle generic dummy frames.
3272         (mips_gdbarch_init): When generic dummy frames, set
3273         use_generic_dummy_frames, push_dummy_frame to
3274         generic_push_dummy_frame, pc_in_call_dummy to
3275         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3276         generic_save_dummy_frame_tos.
3277
3278 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3279
3280         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3281         against TOP when TOP was explictly set.
3282         (generic_push_dummy_frame): Set TOP to zero.
3283
3284 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3285
3286         * event-loop.c (start_event_loop): Rename variable 'result' to
3287         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3288
3289 2002-09-30  Keith Seitz  <keiths@redhat.com>
3290
3291         * gdb-events.sh (selected_thread_changed): New event.
3292         * gdb-events.c: Regenerated.
3293         * gdb-events.h: Regenerated.
3294
3295 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3296
3297         * MAINTAINERS: Add self to Write After Approval list.
3298
3299 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3300
3301         * disasm.c: New file.  
3302         * disasm.h: New file.  
3303         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3304         (compare_lines): Ditto.
3305         (dump_insns): Ditto.
3306         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3307         argument.
3308         (do_assembly_only): Ditto.
3309         (do_disassembly): Renamed to gdb_disassembly and moved to
3310         disasm.c.  Sdded uiout argument.
3311         * Makefile.in: Add new files.  Reorder SFILES list. Update
3312         dependencies.  Include libgdb.a later in the insight executable.
3313
3314 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3315
3316         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3317         bfd/elf64-alpha-fbsd.c.
3318
3319 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3320
3321         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3322         i386gnu-tdep.c.
3323
3324 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3325
3326         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3327         __FUNCTION__.
3328         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3329         function name.
3330         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3331         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3332         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3333         (S_msg_sig_post_reply): Ditto.
3334         
3335 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3336
3337         * sh-tdep.c (sh_use_struct_convention): Use definition according
3338         to ABI.
3339         (sh_push_arguments): Store in register with correct endianess.
3340         (sh_default_store_return_value): Ditto.
3341         (sh_gdbarch_init): Set sizeof long double to 8.
3342
3343 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3344
3345         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3346         Fix some whitespace problems.
3347
3348 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3349
3350         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3351         (mcore-tdep.o): Ditto.
3352         (ns32k-tdep.o): Ditto.
3353         (ns32knbsd-tdep.o): Ditto.
3354         (sh3-rom.o): Ditto.
3355         (vax-tdep.o): Ditto.
3356         * cris-tdep.c: #include "gdb_string.h"
3357         * mcore-tdep.c: Ditto.
3358         * ns32k-tdep.c: Ditto.
3359         * ns32knbsd-tdep.c: Ditto.
3360         * sh3-rom.c: Ditto.
3361         * vax-tdep.c: Ditto.
3362
3363 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3364
3365         * config/djgpp/fnchange.lst: Add entries for
3366         gdb/testsuite/gdb.c++/m-static files.
3367
3368 2002-09-27  Jim Wilson  <wilson@redhat.com>
3369
3370         * MAINTAINERS: Add myself to the Write After Approval list.
3371
3372 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3373
3374         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3375
3376
3377 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3378
3379         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3380         frame.
3381
3382 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3383
3384         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3385         (rs6000_struct_return_address): Delete variable.
3386         (rs6000_store_struct_return): Update.
3387         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3388         deprecated_extract_struct_value_address.
3389         (rs6000_frame_align): New function.
3390         (rs6000_gdbarch_init): Set frame_align.
3391
3392 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3393
3394         From Grace Sainsbury <graces@redhat.com>:
3395         * Makefile.in (gdbtk-main.o): New target.
3396         (gdb.o): New target.
3397         (main_h): Define.
3398         (main.o): Update dependencies.
3399         (gdb$(EXEEXT)): Add gdb.o.
3400         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3401         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3402         (SUBDIR_GDBTK_CLEAN): Set.
3403         (install-gdbtk): Install the insight binary.
3404         (uninstall-gdbtk): New target.
3405         (all-gdbtk, clean-gdbtk): New rule.
3406         * top.c (use_windows): Default to zero.
3407         * main.c: Include "main.h".
3408         (main): Delete.
3409         (struct captured_main_args): Delete.
3410         (gdb_main): New function.
3411         * main.h: New file.
3412         * gdb.c: New File.
3413
3414 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3415
3416         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3417         (frame_map_regnum_to_name): New function.
3418         (frame_map_name_to_regnum): New function.
3419         * frame.h (frame_map_name_to_regnum): Declare.
3420         (frame_map_regnum_to_name): Declare.
3421         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3422         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3423         * parse.c: Do not include "builtin-regs.h".
3424         (target_map_name_to_register): Delete function.
3425         (write_dollar_variable): Use frame_map_name_to_regnum.
3426         * parser-defs.h (target_map_name_to_register): Delete declaration.
3427         * expprint.c: Include "frame.h".
3428         (print_subexp): Use frame_map_regnum_to_name.
3429         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3430         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3431
3432 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3433
3434         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3435         wasn't saved, and the next innermost frame is a dummy, return the
3436         dummy frame's link register.
3437
3438 2002-09-24  Jim Blandy  <jimb@redhat.com>
3439
3440         Fix from Paul Breed:
3441         * main.c (captured_main): Add a `break' after the case for 'b'.
3442
3443 2002-09-24  Keith Seitz  <keiths@redhat.com>
3444
3445         * varobj.c (c_type_of_child): Use get_target_type instead
3446         of TYPE_TARGET_TYPE.
3447
3448 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3449
3450         * source.c (get_current_or_default_source_symtab_and_line): Remove
3451         function.
3452         (set_default_source_symtab_and_line): New function. Attempts to
3453         determine a source file to list lines from if one is not currently
3454         defined.
3455         (get_current_source_symtab_and_line): Initialize sal.pc and
3456         sal.end fields.
3457         (set_current_source_symtab_and_line): Mark argument as const.
3458         * source.h: Update declarations and comments.
3459         * linespec.c (decode_line_1): Replace call to removed routine above.
3460         * stack.c (print_frame_info_base): Ditto.
3461         * cli/cli-cmds.c (edit_command): Ditto.
3462         (list_command): Ditto.
3463
3464 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3465
3466         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3467         sal.pc and sal.end fields.
3468         (get_current_or_default_source_symtab_and_line): Ditto.
3469         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3470         so we do not cause a new source symtab to be searched for (reverting an
3471         unintentional change from the 2002-09-20 patch).
3472         * scm-lang.c (scm_unpac): Ditto.
3473
3474 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3475
3476         * complaints.c (symfile_explanations): Remove new-line from
3477         ``isolated_message''.
3478         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3479         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3480
3481 2002-09-20  Nick Clifton  <nickc@redhat.com>
3482         
3483         * NEWS: Announce that V850EA ISA is no longer supported.
3484         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3485
3486 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3487
3488         * Makefile.in (c-lang.o): Correct dependencies.
3489         (utils.o): Gather dependencies.
3490         (charset.o): Move.
3491         * c-lang.c: #include "gdb_string.h"
3492
3493 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3494
3495         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3496         * cli/cli-cmds.c (list_command): New function.  Implements the new
3497         cli edit command.
3498         (_init_cli_cmds): Add new command definition.
3499         * gdb.1: Document edit command.
3500         * doc/gdb.texinfo: Document edit command.
3501
3502 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3503
3504         * source.c: Make global variables current_source_symtab and
3505         current_source_line static.
3506         (list_command): Moved to cli/cli-cmds.c.
3507         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3508         (get_first_line_listed): New accessor function.
3509         (get_lines_to_list): New accessor function.
3510         (get_current_source_symtab_and_line): New function. Retrieves the
3511         position in the source code that we consider current.
3512         (get_current_or_default_source_symtab_and_line): New function.
3513         Like the above but attempts to determine a default position if one
3514         is not currently defined.
3515         (set_current_source_symtab_and_line): New function. Sets the source
3516         code position considered current and returns the previously set one.
3517         (clear_current_source_symtab_and_line): Reset stored information about
3518         a current source line.
3519         (_initialize_source): Remove registration for the "list" command and
3520         its alias.
3521         * source.h: Add declarations for the new functions above.
3522         * symtab.h: Remove declarations for the global variables mentioned
3523         above.
3524         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3525         obtain current source line.
3526         * linespec.c (decode_line_1): Ditto.
3527         * macroscope.c (default_macro_scope): Ditto.
3528         * scm-lang.c (scm_unpac): Ditto.
3529         * stack.c (print_frame_info_base): Ditto.
3530         * symfile.c (clear_symtab_users): Ditto.
3531         * symtab.c (decode_line_spec): Ditto.
3532         * cli/cli-cmds.c (list_command): Moved here from source.c.
3533         (ambiguous_line_spec): Moved here from source.c.
3534         (_init_cli_cmds): Add definition for "list" and its alias.
3535         * Makefile.in: Update dependencies.
3536
3537 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3538
3539         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3540         with what gcc thinks is correct.
3541
3542 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3543
3544         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3545         multiple register push instruction.
3546
3547 2002-09-19  Jim Blandy  <jimb@redhat.com>
3548
3549         Add support for distinct host and target character sets.
3550         * charset.c, charset.h: New files.
3551         * c-exp.y: #include "charset.h".
3552         (yylex): Convert character and string literals to the target
3553         character set, before returning them as the semantic value of the
3554         token.
3555         * c-lang.c: #include "charset.h".
3556         (c_emit_char): Use charset-specific methods to recognize
3557         characters with backslash escape forms, to decide which characters
3558         to print literally and which to print using numeric escape
3559         sequences, and to convert target characters to host characters
3560         before printing.
3561         * utils.c: #include "charset.h".
3562         (no_control_char_error): New function.
3563         (parse_escape): Use charset-specific methods to recognize
3564         backslash escapes, parse `control character' notation, and convert
3565         characters from the host character set to the target character set.
3566         * configure.in: Set the default host character set.
3567         Check where to find iconv, and what its argument types might be.
3568         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3569         * Makefile.in (SFILES): List charset.c.
3570         (COMMON_OBS): List charset.o.   
3571         (charset.o): New rule.
3572         (charset_h): New header dependency variable.
3573         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3574         (LIBICONV): New variable, set by configure.
3575         (CLIBS): Include $(LIBICONV) here.
3576         * aclocal.m4, config.in, configure: Regenerated.
3577
3578 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3579
3580         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3581         bison 1.35 warning.
3582
3583 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3584
3585         * gdb_mbuild.sh: New file.
3586
3587 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3588
3589         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3590
3591 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3592
3593         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3594         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3595         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3596         valops.c, value.h: Revert previous change.
3597         
3598 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3599
3600         Preliminary support for Objective-C:
3601         * defs.h (language_objc): New enum value.
3602         (puts_filtered_tabular): Declaration only, exported from utils.c.
3603         (skip_quoted): Delete, declared in completer.h.
3604         * c-exp.y: Include completer.h.
3605         * p-exp.y: Ditto.
3606         * jv-exp.y: Ditto.
3607         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3608         New operator enum values.
3609         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3610         * language.c (binop_result_type): Handle language_objc case.
3611         (integral_type, character_type, string_type, boolean_type,
3612         structured_type, binop_type_check): Ditto.
3613         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3614         (struct objc_specific): Add to general_symbol_info.
3615         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3616         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3617         * parser-defs.h (struct objc_class_str): New struct type.
3618         (start_msglist, end_msglist, add_msglist): Declaration only,
3619         exported from objc-lang.c.
3620         * value.h (value_of_local, value_nsstring, 
3621         call_function_by_hand_expecting_type): Exported from valops.c.
3622         * valops.c (find_function_addr): Export.
3623         (call_function_by_hand_expecting_type): New function.
3624         (value_of_local): New function.
3625         * symfile.c (init_filename_language_table): Add ".m" extension
3626         for Objective-C.
3627         * utils.c (puts_filtered_tabular): New function.
3628         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3629         (set/show demangle): Extend help-string to refer to ObjC.
3630         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3631         * stabsread.c (symbol_reference_defined): Objective-C symbols
3632         may contain colons: make allowances when scanning stabs strings
3633         for colons.
3634         (objc_find_colon): New function.
3635         * printcmd.c (address_info): If language == objc then print
3636         "self" instead of "this".
3637         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3638         OP_NSSTRING, and OP_SELF.
3639         (prefixify_subexp): Ditto.
3640         * source.c (print_source_lines): Mention objc in comment.
3641         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3642         method names.
3643
3644 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3645
3646         * complaints.h: Update copyright.
3647         (struct complaints): Declare.
3648         (struct complaint): Make `message' constant.
3649         (internal_complaint): Declare.
3650         (complaint): Declare.
3651         (complaint_root): Delete declaration.
3652         (symfile_complaints): Delete declaration.
3653         (struct complaints): Add opaque declaration.
3654         (clear_complaints): Add a complaints parameter.
3655         * complaints.c: Update copyright.
3656         (enum complaint_series): Define.
3657         (complaint_root): Delete.
3658         (struct complaints): Define.
3659         (complaint_sentinel, symfile_complaint_book): New variables.
3660         (symfile_explanations, symfile_complaints): New variables.
3661         New variables.
3662         (get_complaints): New function.
3663         (vcomplaint): New function.
3664         (complaint): New function.
3665         (internal_complaint): New function.
3666         (complain): Call vcomplain with symfile_complaint.
3667         (clear_complaints): Rewrite.
3668         (_initialize_complaints): Use add_setshow_command.
3669         * Makefile.in (complaints.o): Update dependencies.
3670         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3671         to call to clear_complaints.
3672         (new_symfile_objfile, reread_symbols): Ditto.
3673         (oldsyms_complaint): Delete.
3674         (empty_symtab_complaint, unknown_option_complaint): Delete.
3675         (free_named_symtabs): Use complaint instead of complain.
3676
3677 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3678
3679         Contributed by Apple Computer, Inc.  Merged with current sources
3680         by Adam Fedor <fedor@doc.com> [cagney].
3681         
3682         * objc-lang.c: First clean-up round: comments, indentation.
3683         * objc-lang.h: Ditto.
3684         * objc-lang.y: Ditto.
3685
3686 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3687
3688         * maint.c (maintenance_internal_error): Print the parameter as the
3689         error message.
3690         (maintenance_internal_warning): New function.
3691         (_initialize_maint_cmds): Add command `maint internal-warning'.
3692
3693         * defs.h (internal_warning, internal_vwarning): Declare.
3694         * utils.c (struct internal_problem): Define.
3695         (internal_vproblem): New function.
3696         (internal_warning): New function.
3697         (internal_vwarning): New function.
3698         (internal_warning_problem, internal_error_problem): New variables.
3699         (internal_verror): Just call internal_vproblem.
3700
3701 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3702
3703         * objc-lang.c: New file, support for Objective-C.
3704         Preliminary check-in, not yet integrated into gdb.
3705         * objc-lang.h: New file.
3706         * objc-exp.y:  New file.
3707
3708 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3709
3710         * infrun.c (signal_stop_update): Convert definition to ISO C.
3711         (signal_print_update): Ditto.
3712         (signal_pass_update): Ditto.
3713         * inflow.c (terminal_save_ours): Ditto.
3714
3715         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3716         comments.
3717         
3718         * config/djgpp/fnchange.lst: Handle name clashes between
3719         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3720         bfd/coff-tic80.c.
3721
3722         * i386-linux-tdep.h: Fix tipo.
3723
3724 2002-09-18  Adam Fedor  <fedor@gnu.org>
3725
3726         * MAINTAINERS: Add myself to the Write After Approval list.
3727
3728 2002-09-18  Jim Blandy  <jimb@redhat.com>
3729
3730         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3731         texthigh and textlow to reader-specific structs caused
3732         objfile_relocate to miss them.  This is fixable, but the work that
3733         the change was supposed to prepare GDB for never got done anyway.
3734
3735 2002-09-18  David Carlton  <carlton@math.stanford.edu>
3736
3737         * MAINTAINERS: Alphabetize Write After Approval list.
3738
3739 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
3740
3741         Fix PR gdb/709
3742         * values.c (value_static_field): Call read_var_value.
3743
3744 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3745
3746         * valops.c (hand_function_call): Align the initial stack pointer
3747         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
3748         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3749         return value.
3750         * mips-tdep.c (mips_frame_align): New function.
3751         (mips_gdbarch_init): Set frame_align.
3752         * gdbarch.sh (FRAME_ALIGN): New method.
3753         * gdbarch.h, gdbarch.c: Re-generate.
3754
3755 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
3756
3757         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3758         registers.
3759
3760 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3761
3762         * NEWS: Mention that MIPS $fp behavior changed.
3763         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3764         reference to FP_REGNUM.
3765         (mipsnbsd_cannot_store_register): Ditto.
3766         * mips-linux-nat.c: Update copyright.
3767         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3768         (mips_linux_cannot_store_register): Ditto.
3769         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
3770         * config/mips/tm-mips.h: Update copyright.
3771         (FP_REGNUM): Delete macro.
3772         (MIPS_REGISTER_NAMES): Replace "fp" with "".
3773         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3774         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3775         (mips_r3041_reg_names, mips_r3051_reg_names)
3776         (mips_r3081_reg_names): Replace "fp" with "".
3777         Fix PR gdb/480.
3778
3779 2002-09-17  Theodore A. Roth  <troth@verinet.com>
3780
3781         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
3782         generic_read_register_dummy() (PR gdb/703).
3783         (avr_push_return_address): #if 0 out unused vars.
3784         (avr_gdbarch_init): Enable use of avr_push_return_address().
3785
3786 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3787
3788         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3789         RTE will take care of it.
3790
3791 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3792
3793         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3794         invalid, return SP_REGNUM.
3795
3796 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3797
3798         * mips-tdep.c (mips_pop_frame): Read saved values of floating
3799         point registers without sign extension.
3800
3801 2002-09-17  Andrew Cagney  <cagney@redhat.com>
3802
3803         * blockframe.c (deprecated_read_register_dummy): Rename
3804         generic_read_register_dummy.
3805         * frame.c (frame_unwind_signed_register): New function.
3806         (frame_unwind_unsigned_register): New function.
3807         * frame.h (frame_unwind_signed_register): Declare.
3808         (frame_unwind_unsigned_register): Declare.
3809         (deprecated_read_register_dummy): Rename
3810         generic_read_register_dummy.
3811
3812         * h8300-tdep.c (h8300_frame_chain): Update.
3813         (h8300_frame_saved_pc): Update.
3814         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3815         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3816         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3817         (s390_frame_chain): Update.
3818         * v850-tdep.c (v850_find_callers_reg): Update.
3819         (v850_frame_saved_pc): Update.
3820         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3821         (m32r_find_callers_reg): Update.
3822         (m32r_frame_saved_pc): Update.
3823         * sh-tdep.c (sh_find_callers_reg): Update.
3824         (sh64_get_saved_pr): Update.
3825         (sh_init_extra_frame_info): Update.
3826         (sh_init_extra_frame_info): Update.
3827         (sh64_init_extra_frame_info): Update.
3828         (sh64_init_extra_frame_info): Update.
3829         * mcore-tdep.c (mcore_find_callers_reg): Update.
3830         (mcore_frame_saved_pc): Update.
3831         (mcore_init_extra_frame_info): Update.
3832         * i386-tdep.c (i386_frame_saved_pc): Update.
3833         * ia64-tdep.c (ia64_frame_saved_pc): Update.
3834         (ia64_init_extra_frame_info): Update.
3835         (ia64_init_extra_frame_info): Update.
3836         * d10v-tdep.c (d10v_frame_saved_pc): Update.
3837         * cris-tdep.c (cris_init_extra_frame_info): Update.
3838         * avr-tdep.c (avr_frame_chain): Update.
3839         (avr_init_extra_frame_info): Update.
3840         (avr_frame_saved_pc): Update.
3841         * arm-tdep.c (arm_find_callers_reg): Update.
3842         (arm_init_extra_frame_info): Update.
3843         (arm_frame_saved_pc): Update.
3844
3845 2002-09-17  Tom Tromey  <tromey@redhat.com>
3846
3847         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3848         is "'".
3849
3850 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
3851
3852         * MAINTAINERS: Remove "non multi-arched" text from h8300.
3853         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3854         NEXT_PROLOGUE_INSN.
3855         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3856         NEXT_PROLOGUE_INSN.
3857
3858 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
3859
3860         * osfsolib.c: Remove file, replaced by solib-osf.c.
3861         * Makefile.in: Remove compilation rules for osfsolib.c.
3862
3863 2002-09-16  David Carlton  <carlton@math.stanford.edu>
3864
3865         * cp-valprint.c (cp_print_class_method): Correct args to
3866         check_stub_method_group.
3867
3868 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
3869
3870         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
3871         `set architecture'.  Unify naming convention of functions.
3872         (h8300_skip_prologue): Improve prologue analysis.
3873         (h8300_push_arguments): Rewritten to more closely match GCC's
3874         bizarre argument-passing behavior, along with the comment describing
3875         said behavior.
3876         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3877         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
3878         sim, remote-e7000.c, remote-hms.c and remote.c
3879
3880 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
3881
3882         * i386-tdep.c (gdb_print_insn_i386): Removed.
3883         (i386_print_insn): New function.
3884         (i386_gdbarch_init): Set print_insn to i386_print_insns.
3885         (_initialize_i386_tdep): Don't initialize tm_print_insn and
3886         tm_print_insn_info.
3887
3888 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
3889
3890         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3891         zero.
3892
3893 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
3894
3895         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3896         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
3897         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3898
3899 2002-09-13  Christopher Faylor  <cgf@redhat.com>
3900
3901         * win32-nat.c (child_create_inferior): Honor 'tty' command.
3902
3903 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
3904
3905         * gdbtypes.c (check_stub_method): Make static.
3906         (check_stub_method_group): New function.
3907         * gdbtypes.h: Update prototypes.
3908         * cp-support.c: New file.
3909         * cp-support.h: New file.
3910
3911         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3912         (update_method_name_from_physname): New function.
3913         (read_member_functions): Correct method names for operators
3914         and v3 constructors/destructors.  Separate v2 constructors and
3915         destructors.
3916         * Makefile.in (stabsread.o): Update dependencies.
3917         (SFILES): Add cp-support.c.
3918         (COMMON_OBS): Add cp-support.o.
3919         (cp_support_h, cp-support.o): Add.
3920
3921         * cp-valprint.c (cp_print_class_method): Call
3922         check_stub_method_group instead of check_stub_method.  Remove
3923         extraneous QUITs.
3924         * p-valprint.c (pascal_object_print_class_method): Likewise.
3925         * valops.c (search_struct_method): Likewise.
3926         (find_method_list, value_struct_elt_for_reference): Likewise.
3927
3928 2002-09-13  Andrew Cagney  <cagney@redhat.com>
3929
3930         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3931         * gdbarch.h, gdbarch.c: Regenerate.
3932
3933 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
3934
3935         * frame.c (find_saved_register): Delete function.
3936         * frame.h (find_saved_register): Delete declaration.
3937         Fix PR gdb/631.
3938
3939 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
3940
3941         * mips-tdep.c (read_next_frame_reg): Re-hack using
3942         frame_register_unwind.
3943
3944 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
3945
3946         * mips-tdep.c (mips_get_saved_register): Re-hack using
3947         frame_register_unwind.
3948
3949 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
3950
3951         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3952         vector. Will be useful for Interix.  
3953         * gdbarch.h, gdbarch.c: Regenerate.
3954
3955         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3956         name of the malloc function by NAME_OF_MALLOC.
3957
3958 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
3959
3960         * value.h (find_function_in_inferior): Add const keyword to
3961         one of the parameters. Allows us to invoke this function with
3962         a const char *.
3963         * valops.c (find_function_in_inferior): Likewise.
3964
3965 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
3966
3967         * exec.c (xfer_memory): Fix compilation warning with old versions
3968         of GCC.
3969         * tracepoint.c (trace_find_tracepoint_command): Likewise.
3970
3971 2002-09-12  David Carlton  <carlton@math.stanford.edu>
3972
3973         * symtab.h: Run through gdb_indent.h.
3974         Add 2002 to Copyright year list.
3975
3976 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
3977
3978         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3979         mach constants.
3980         * MAINTAINERS: Add myself to write after approval list.
3981
3982 2002-09-11  J. Brobecker  <brobecker@gnat.com>
3983
3984         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3985
3986 2002-09-11  J. Brobecker  <brobecker@gnat.com>
3987
3988         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3989         Interix.
3990
3991 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
3992
3993         * procfs.c (do_detach): Clear current signal, not just fault.
3994         Corrects problem with breakpoint trap signal leaking to detached
3995         process on Tru64.
3996
3997 2002-09-10  Michael Snyder  <msnyder@redhat.com>
3998
3999         * buildsym.c (finish_block): Protect against null pointer.
4000
4001 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4002
4003         * infcmd.c (default_print_registers_info): Send all output to
4004         ``file'' instead of ``gdb_stdout''.
4005
4006 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4007
4008         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4009         LONGEST, and use signed register read (addresses are sign-
4010         extended for mips).
4011
4012 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4013
4014         * event-loop.c (gdb_do_one_event): Make public.
4015         * event-loop.h (gdb_do_one_event): Declare.
4016
4017 2002-09-10  Jeff Law  <law@redhat.com>
4018
4019         * infttrace.c (child_resume): Simplify and rework to avoid
4020         TT_PROC_CONTINUE.
4021
4022 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4023
4024         * printcmd.c (print_scalar_formatted): "len" is the number of
4025         target bytes, NOT the number of target bits.
4026
4027 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4028
4029         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4030         * top.c (init_main): Set rl_terminal_name.
4031
4032 2002-09-08  Aidan Skinner <aidan@velvet.net>
4033
4034         * ada-lang.c (ada_array_bound, ada_type_match,
4035         _initialize_ada_language): Fix K&R definitions.
4036         * ada-tasks.c (get_current_task): Fix K&R definitions.
4037         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4038                         
4039 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4040
4041         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4042         Add XP.
4043
4044 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4045
4046         * i386-tdep.c (i386_register_virtual_type,
4047         i386_register_convertible, i386_register_convert_to_virtual,
4048         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4049         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4050         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4051         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4052         Don't set push_arguments twice.
4053
4054         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4055         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4056         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4057         sigtramp_end to NULL.
4058         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4059         defines.
4060         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4061
4062         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4063         whitespace.
4064
4065         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4066         * gdbarch.h, gdbarch.c: Re-generate.
4067         * blockframe.c (find_pc_sect_partial_function): Convert to use
4068         SIGTRAMP_START_P predicate.
4069
4070 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4071
4072         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4073         generic_dummy_frame method and old method.  Also distinguish
4074         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4075         (arm_extract_return_value): Use new regcache method.
4076
4077         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4078         adjustment that doesn't conform to the ABI.
4079         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4080         saved regcache, not from current regcache.
4081
4082 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4083
4084         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4085         * README: Update.
4086
4087 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4088
4089         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4090         if arm_apcs_32 is false.
4091
4092 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4093
4094         GDB 5.3 branch created.
4095
4096 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4097
4098         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4099         generic_unwind_get_saved_register.
4100
4101 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4102
4103         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4104         argument (PR gdb/653).  Update call to smash_to_method_type.
4105         (read_structure_scope): Update call to dwarf2_add_member_fn.
4106
4107 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4108
4109         * x86-64-linux-tdep.c: Include gdb_string.h
4110         * x86-64-linux-nat.c: Ditto.
4111
4112 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4113
4114         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4115         when YYDEBUG is set to 1.  
4116         * c-exp.y: Likewise.
4117         * f-exp.y: Likewise.
4118         * jv-exp.y: Likewise.
4119         * m2-exp.y: Likewise.
4120         * p-exp.y: Likewise.
4121
4122 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4123
4124         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4125         dependency list.
4126         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4127         solib_svr4_fetch_link_map_offsets to
4128         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4129         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4130         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4131         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4132         solib-svr4.o, and solib-legacy.o.
4133         * config/i386/tm-nbsd.h: Include solib.h.
4134
4135 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4136
4137         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4138         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4139         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4140         comment noting that this needs its own target configuration.
4141         * config/i386/nbsd.mt: New file.
4142         * config/i386/nbsdaout.mt: Remove.
4143         * config/i386/nbsdelf.mt: Ditto.
4144         * config/i386/tm-nbsdaout.h: Ditto. 
4145
4146 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4147
4148         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4149         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4150         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4151         tdep->sigtramp_end.
4152         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4153         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4154         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4155
4156 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4157
4158         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4159         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4160         * i386-tdep.h (i386bsd_init_abi): New prototype.
4161         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4162         function declaration.
4163         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4164         for NetBSD-a.out or NetBSD-ELF.
4165         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4166         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4167         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4168         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4169         and nbsd-tdep.h.
4170         (i386nbsd_pc_in_sigtramp): New function.
4171         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4172         i386nbsd_pc_in_sigtramp.
4173         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4174         and i386nbsdelf_init_abi OS ABI handlers.
4175         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4176         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4177
4178 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4179
4180         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4181         registers if the target really has them.
4182
4183 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4184
4185         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4186         than nbsd-tdep.h.
4187
4188 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4189
4190         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4191         list.
4192         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4193         (alphanbsd_skip_sigtramp_frame): New functions. 
4194         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4195         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4196         to alphanbsd_sigcontext_addr. 
4197
4198 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4199
4200         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4201         list.
4202         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4203         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4204         nbsd_pc_in_sigtramp. 
4205         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4206         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4207         * nbsd-tdep.c: Include gdb_string.h.
4208         (nbsd_pc_in_sigtramp): New function. 
4209         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4210         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4211         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4212         ppcnbsd_pc_in_sigtramp. 
4213         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4214         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4215         shnbsd_pc_in_sigtramp. 
4216         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4217         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4218         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4219
4220 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4221
4222         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4223         watchpoints to NULL.
4224         (insert_breakpoints): set val field of watchpoints if NULL.
4225
4226
4227 2002-08-29  Jim Blandy  <jimb@redhat.com>
4228
4229         * symtab.c (lookup_symbol_aux): In the cases where we find a
4230         minimal symbol of an appropriate name and use its address to
4231         select a symtab to read and search, use `name' (as passed to us)
4232         as the demangled name when searching the symtab's global and
4233         static blocks, not the minsym's name.
4234
4235 2002-08-29  Keith Seitz  <keiths@redhat.com>
4236
4237         * stack.c (print_frame_info_base): Always set current_source_symtab
4238         and current_source_line.
4239
4240 2002-08-29  Donn Terry  <donnte@microsoft.com>
4241
4242         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4243
4244 2002-08-28  Keith Seitz  <keiths@redhat.com>
4245
4246         * stack.c (select_frame): Add FIXME concerning selected-frame
4247         events.
4248         (select_frame_command): Send selected-frame-level-changed
4249         event notification, but only if the level actually changed.
4250         (up_silently_base): Add selected-frame-level-changed event
4251         notification.
4252         (down_silently_base): Likewise.
4253
4254 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4255
4256         * Makefile.in: Update dependencies for all gdb/*.c files.
4257
4258 2002-08-27  Tom Tromey  <tromey@redhat.com>
4259
4260         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4261         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4262         Update dependencies.
4263         * i387-tdep.c: Include gdb_string.h.
4264         * osabi.c: Likewise.
4265         * i386-linux-nat.c: Likewise.
4266         * lin-lwp.c: Likewise.
4267         * ax-gdb.c: Likewise.
4268         * signals/signals.c: Likewise.
4269         * jv-valprint.c: Likewise.
4270         * p-lang.c: Likewise.
4271         * c-valprint.c: Likewise.
4272         * cp-abi.c: Likewise.
4273
4274 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4275
4276         * cli/cli-script.h (copy_command_lines): Export.
4277         * breakpoint.c: Include cli/cli-script.h.
4278         * Makefile.in (breakpoint.o): Update dependencies.
4279
4280 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4281
4282         * breakpoint.c (insert_breakpoints): Protect all references
4283         to 'process_warning'.  Shorten long lines.
4284
4285 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4286
4287         * cli/cli-script.c (copy_command_lines): New function.
4288         * defs.h (copy_command_lines): Export.
4289         * testsuite/gdb.base/commands.exp: New tests for commands
4290         attached to a temporary breakpoint, and for commands that
4291         delete the breakpoint they are attached to.
4292         
4293 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4294
4295         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4296         pointer to the breakpoint commands struct, make a new copy
4297         of the struct and point to that.
4298         (bpstat_clear): Free the commands struct.
4299         (bpstat_clear_actions): Free the commands struct.
4300         (bpstat_do_actions): Free the command actions.  Also execute
4301         the local cleanups, instead of deleting them.
4302         (delete_breakpoint): Leave the commands field of the bpstat
4303         chain alone -- it will be freed later.
4304
4305 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4306
4307         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4308         deleted in 2002-08-20 commit.  This function is still used by
4309         ppc-linux-nat.c.
4310
4311 2002-08-26  Keith Seitz  <keiths@redhat.com>
4312
4313         * gdb-events.sh: Add selected-frame-level-changed event.
4314         * gdb-events.c: Regenerated.
4315         * gdb-events.h: Regenerated.
4316         
4317 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4318
4319         Fix PR gdb/393:
4320         * inflow.c (terminal_save_ours): New function to save terminal
4321         settings.
4322         * inferior.h (terminal_save_ours): Declare.
4323         * target.c (debug_to_terminal_save_ours): New function.
4324         (cleanup_target): Defaults to_terminal_save_ours.
4325         (update_current_target): Inherit to_terminal_save_ours.
4326         (setup_target_debug): Set to_terminal_save_ours.
4327         * target.h (target_terminal_save_ours): New to save terminal settings.
4328         (target_ops): New member to_terminal_save_ours.
4329         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4330         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4331         * inftarg.c (init_child_ops): Likewise.
4332         * m3-nat.c (init_m3_ops): Likewise.
4333         * procfs.c (init_procfs_ops): Likewise.
4334         * wince.c (init_child_ops): Likewise.
4335         * win32-nat.c (init_child_ops): Likewise.
4336         * sol-thread.c (init_sol_thread_ops): Likewise.
4337
4338 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4339
4340         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4341         use regcache_* functions.
4342         (i386_gdbarch_init): Set store_return_value instead of
4343         deprecated_store_return_value.
4344
4345         * regcache.c (regcache_raw_write_signed,
4346         regcache_raw_write_unsigned): New functions.
4347         * regcache.h (regcache_raw_write_signed,
4348         regcache_raw_write_unsigned): New prototypes.
4349
4350 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4351
4352         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4353         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4354         source file dependencies.  Cleanup corresponding generator rules.
4355
4356 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4357
4358         * regcache.h (register_offset_hack): Declare.
4359         (regcache_cooked_read_using_offset_hack): Declare.
4360         (regcache_cooked_write_using_offset_hack): Declare.
4361
4362         * regcache.c (register_offset_hack): New function.
4363         (regcache_cooked_read_using_offset_hack): New function.
4364         (regcache_cooked_write_using_offset_hack): New function.
4365         (regcache_dump): Check that the registers, according to their
4366         offset, are packed hard against each other.
4367         (cooked_xfer_using_offset_hack): New function.
4368
4369 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4370
4371         * regcache.c (struct regcache_descr): Add field register_type.
4372         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4373         in as a parameter
4374         (init_regcache_descr): Initialize register_type.  Pass the descr
4375         to init_legacy_regcache_descr.  Use register_type instead of
4376         REGISTER_VIRTUAL_TYPE.
4377         (register_type): New function.
4378         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4379         * regcache.h (register_type): Declare.
4380
4381 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4382
4383         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4384         instead of deprecated_store_return_value.  Fix fallout from
4385         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4386
4387 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4388
4389         * regcache.c (max_register_size): New function.
4390         (init_legacy_regcache_descr): Ensure that max_register_size is
4391         large enough for REGISTER_VIRTUAL_SIZE.
4392         * regcache.h (max_register_size): Declare.
4393
4394 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4395
4396         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4397         store_return_value.
4398         (e500_extract_return_value): Change type of valbuf pointer to
4399         void.
4400
4401 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4402
4403         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4404         workaround.
4405
4406         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4407         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4408         long long) to prevent compiler warning on 64-bit systems.
4409
4410 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4411
4412         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4413         (DEPRECATED_STORE_RETURN_VALUE): New method.
4414         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4415         * gdbarch.h, gdbarch.c: Re-generate.
4416
4417         * values.c (set_return_value): Pass current_regcache to
4418         STORE_RETURN_VALUE.
4419         * arch-utils.h (legacy_store_return_value): Declare.
4420         * arch-utils.c (legacy_store_return_value): New function.
4421         (legacy_extract_return_value): Update parameters.
4422
4423         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4424         STORE_RETURN_VALUE.
4425         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4426         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4427         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4428         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4429         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4430         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4431         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4432         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4433         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4434         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4435
4436         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4437         * i386-tdep.c (i386_extract_return_value): Update.
4438         * arch-utils.c (legacy_extract_return_value): Update.
4439         * frv-tdep.c (frv_gdbarch_init): Update.
4440         * cris-tdep.c (cris_gdbarch_init): Update.
4441         * d10v-tdep.c (d10v_gdbarch_init): Update.
4442         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4443         * m68k-tdep.c (m68k_gdbarch_init): Update.
4444         * mcore-tdep.c (mcore_gdbarch_init): Update.
4445         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4446         * s390-tdep.c (s390_gdbarch_init): Update.
4447         * sparc-tdep.c (sparc_gdbarch_init): Update.
4448         * sh-tdep.c (sh_gdbarch_init): Update.
4449         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4450         * v850-tdep.c (v850_gdbarch_init): Update.
4451         * avr-tdep.c (avr_gdbarch_init): Update.
4452         * ia64-tdep.c (ia64_gdbarch_init): Update.
4453         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4454         * vax-tdep.c (vax_gdbarch_init): Update.
4455         * alpha-tdep.c (alpha_gdbarch_init): Update.
4456         * arm-tdep.c (arm_gdbarch_init): Update.
4457         * mips-tdep.c (mips_gdbarch_init): Update.
4458         * i386-tdep.c (i386_gdbarch_init): Update.
4459
4460 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4461
4462         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4463         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4464
4465 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4466
4467         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4468         problems.
4469
4470 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4471
4472         * infrun.c (handle_inferior_event): Move a comment outside of a
4473         function call, in order to avoid indent reformatting this part
4474         of the code in an unreadable way.
4475
4476 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4477
4478         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4479         when breakpoints fail. Move general breakpoint error messages to
4480         insert_breakpoints.  
4481         * breakpoint.c (insert_breakpoints): Change warnings when
4482         breakpoints are nto inserted to specify the type. Remove call to
4483         memory_error when hardware breakpoints can't be inserted. Remove
4484         multiple calls to warning so all messages are sent to the user at
4485         once.
4486         (delete_breakpoints): Make insert error messsages more explicit.
4487
4488 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4489
4490         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4491         gdbserver/ChangeLog.
4492
4493 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4494
4495         * i386-tdep.c: Include "objfiles.h".
4496         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4497         skip_trampoline_code.
4498         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4499         (CPLUS_MARKER): Define to '.'.
4500
4501         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4502         member.
4503         (linux_corefile_thread_callback): Increase args->num_notes.
4504         (linux_make_note_section): Initialize thread_args.num_notes, and
4505         use it to determine whether notes for any threads were created.
4506
4507 2002-08-23  Donn Terry  <donnte@microsoft.com>
4508
4509         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4510         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4511         and PCUNKILL.
4512         (write_with_trace): Conditionalize out the switch branch handling
4513         PCSHOLD if the corresponding macro is not defined. Likewise for
4514         PRSABORT and PRSTOP.
4515         This change will be needed by the Interix port.
4516
4517 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4518
4519         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4520         write_register wherever possible instead of manipulating the
4521         register bytes directly.
4522         Assign VALUE_CONTENTS to a variable and use that.
4523         The GPR numbers are now dependent on the architecture.
4524         
4525 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4526
4527         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4528         ev_offset fields.
4529         (skip_prologue): Add support for BookE/e500 instructions.
4530         (e500_extract_return_value): New function.
4531         (frame_get_saved_regs): Add support for saving ev registers and
4532         pseudo gpr's.
4533         (e500_store_return_value): New function.
4534         (rs6000_gdbarch_init): Move up default intializations of
4535         deprecated_extract_return_value and store_return_value.  Overwrite
4536         init of store_return_value with e500 specific version.
4537         Set extract_return_value for e500.
4538         
4539 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4540
4541         * blockframe.c (generic_call_dummy_register_unwind): Use
4542         regcache_cooked_read to catch cases in which the variable is
4543         stored in a pseudo register.
4544
4545 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4546
4547         * NEWS: Mention that the i960 has been made obsolete.
4548         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4549         i960-tdep.c
4550         (remote-nrom.o): Obsolete target.
4551         (remote-nindy.o, i960-tdep.o): Ditto.
4552         * remote-nrom.c: Make file obsolete.
4553         * remote-nindy.c, remote-vx960.c: Ditto.
4554         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4555         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4556         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4557         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4558         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4559         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4560         i960-*-vxworks* obsolete.
4561         * MAINTAINERS: Note that the i960 is obsolete.
4562
4563 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4564
4565         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4566         detach to allow reinitialization.
4567
4568 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4569
4570         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4571         attempt).
4572
4573 2002-08-22  Jim Blandy  <jimb@redhat.com>
4574
4575         * coffread.c (coff_symfile_read): Don't try to read the line
4576         number table from disk if the image file doesn't have a symbol
4577         table; we'll never actually look at the info anyway, and Windows
4578         ships DLL's with bogus file offsets for the line number data.
4579
4580 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4581
4582         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4583         an e500 executable.
4584
4585 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4586
4587         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4588         (MSYMBOL_SIZE): Replace macro with function.
4589         (DEFAULT_MIPS_TYPE): Delete unused macro.
4590         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4591         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4592
4593 2002-08-21  Jim Blandy  <jimb@redhat.com>
4594
4595         * valops.c (value_cast): Simplify and correct logic for doing a
4596         static cast from a pointer to a base class to a pointer to a
4597         derived class.
4598
4599 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4600
4601         * infcmd.c (default_print_registers_info): Replace
4602         do_registers_info.
4603         (registers_info): Use gdbarch_print_registers_info instead of
4604         DO_REGISTERS_INFO.
4605         * inferior.h (default_print_registers_info): Replace
4606         do_registers_info.
4607         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4608         (DO_REGISTERS_INFO): Change to a predicate function.
4609         * gdbarch.h, gdbarch.c: Regenerate.
4610         
4611 2002-08-21  Keith Seitz  <keiths@redhat.com>
4612
4613         * gdb-events.sh: Add target-changed event.
4614         * gdb-events.c: Regenerated.
4615         * gdb-events.c: Regenerated.
4616         * valops.c (value_assign): Add target-changed event notification
4617         to inlval_register, lval_memory, and lval_reg_frame_relative.
4618
4619 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4620
4621         * NEWS: Add an entry regarding the improvement of the next/step
4622         operation on Alpha Tru64 multi-processor machines.
4623
4624 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4625
4626         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4627         directores.
4628         * Makefile.in: Update all _h macro definitions.
4629         * Makefile.in (install-gdbtk): Move to install section.
4630         (rdi-share/libangsd.a): Move to end of file.
4631
4632 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4633
4634         * frame.c (frame_register_unwind): When a register, set addrp to
4635         the register's byte.
4636
4637 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4638
4639         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4640         used locally, so move them from the target machine header to here.
4641         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4642         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4643         Make static.
4644         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4645
4646 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4647
4648         * NEWS: Mention that the Apollo line was made obsolete.
4649         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4650         m68*-hp-hpux* obsolete.
4651         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4652         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4653         * buildsym.c (make_blockvector): Make static.
4654         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4655         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4656         (ALLDEPFILES): Remove dstread.c.
4657         (dstread.o): Obsolete make rule.
4658         * dstread.c: Makefile obsolete.
4659         * dst.h: Ditto.
4660         * config/m68k/hp300hpux.mt: Ditto.
4661         * config/m68k/hp300hpux.mh: Ditto.
4662         * config/m68k/hp300bsd.mt: Ditto.
4663         * config/m68k/hp300bsd.mh: Ditto.
4664         * config/m68k/apollo68b.mt: Ditto.
4665         * config/m68k/apollo68v.mh: Ditto.
4666         * config/m68k/apollo68b.mh: Ditto.
4667
4668 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4669
4670         * mips-tdep.c (mips_in_return_stub): Make static.
4671         (mips_gdbarch_init): Set in_solib_return_trampoline.
4672         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4673
4674 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4675
4676         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4677         * gdbarch.c, gdbarch.h: Regenerate.
4678         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4679         Add.
4680         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4681
4682 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4683
4684         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4685         (mips_gdbarch_init): Set skip_trampoline_code, 
4686         in_solib_call_trampoline.
4687         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4688         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4689
4690 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4691
4692         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4693
4694         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4695         vector type for ev registers.
4696         (e500_pseudo_register_read): New function.
4697         (e500_pseudo_register_write): New function.
4698         (e500_dwarf2_reg_to_regnum): New function.
4699         (PPC_UISA_NOFP_SPRS): New macro.
4700         (PPC_EV_REGS): New macro.
4701         (PPC_GPRS_PSEUDO_REGS): New macro.
4702         (registers_e500): New register set for e500.
4703         (variants): Add e500 variant.
4704         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4705         before setting architectural dependent variations.  Initialize ev
4706         registers numbers.  Add case for e500 architecture.  Set the
4707         number of pseudo registers.
4708
4709 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4710
4711         * rs6000-tdep.c: Clean up comments.
4712
4713 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4714
4715         * h8300-tdep.c: Re-indent file.
4716
4717 2002-08-20  Jim Blandy  <jimb@redhat.com>
4718
4719         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4720         default for this.
4721
4722 2002-08-20  Keith Seitz  <keiths@redhat.com>
4723
4724         * breakpoints.c (watch_command_1): Use internal breakpoint
4725         when setting a watchpoint_scope breakpoint.
4726
4727 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4728
4729         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4730         (build_builtin_type_vec64i): Ditto.
4731         (build_builtin_type_vec128): Ditto.
4732         (build_builtin_type_vec128i): Ditto.
4733
4734 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4735
4736         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4737         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4738         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4739         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4740         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4741         CALL_DUMMY_ADDRESS): Delete.
4742         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4743         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4744         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
4745         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
4746         push_return_address.
4747         (mips_register_raw_size, mips_eabi_use_struct_convention, 
4748         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4749         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4750         mips_init_extra_frame_info, mips_eabi_push_arguments, 
4751         mips_n32n64_push_arguments, mips_push_return_address,
4752         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4753         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4754
4755 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4756
4757         * mips-tdep.c (mips_frame_num_args): New function.
4758         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4759         frame_saved_pc, frame_args_address, frame_locals_address, 
4760         frame_num_args, and frame_args_skip.
4761         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4762         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
4763         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4764         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4765
4766 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4767
4768         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4769         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4770         * mips-tdep.c (mips_store_struct_return): New function.
4771         (mips_extract_struct_value_address): New function.
4772         (mips_gdbarch_init): Set store_struct_return and
4773         extract_struct_value_address.
4774
4775 2002-08-20  David Carlton  <carlton@math.stanford.edu>
4776
4777         * dwarf2read.c (dwarf2_build_psymtabs): Check that
4778         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4779         (read_file_scope): Check that line_header is nonzero before
4780         decoding macro information.
4781
4782 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
4783
4784         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4785         flag the general-purpose registers as floating-point on targets
4786         that don't support the floating-point registers.
4787
4788 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4789
4790         * rs6000-tdep.c (altivec_register_p): Delete.
4791         (rs6000_do_altivec_registers): Delete.
4792         (rs6000_altivec_registers_info): Delete.
4793         (rs6000_do_registers_info): Delete.
4794         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4795         (rs6000_gdbarch_init): Remove setting of do_registers_info.
4796
4797 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4798
4799         * infcmd.c (do_registers_info): Print vector registers in hex
4800         format only.
4801         (print_vector_info): Check that printing registers
4802         makes sense.
4803         (print_float_info): Ditto.
4804
4805 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4806
4807         * mips-tdep.c (mips_gdbarch_init): Update.
4808         (mips_o32_extract_return_value): Rewrite.
4809         (mips_o32_store_return_value): Rewrite.
4810         (mips_o32_xfer_return_value): New function.
4811         (mips_xfer_register): Tweak debug print message.  Allow for
4812         buf_offset when dumping the value transfered.
4813
4814 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4815
4816         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4817         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4818         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4819         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4820         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4821
4822 2002-08-14  Michael Snyder  <msnyder@redhat.com>
4823
4824         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4825
4826 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4827
4828         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4829         register.
4830         (P): New macro to define a register as a pseudo register.
4831         (R, R4, R8, R16, FR32, R64, R0): Updated.
4832         (struct variant): Add new fields for number of pseudo registers
4833         and number of total registers.
4834         (tot_num_registers): New macro replacing....
4835         (num_registers): ...deleted macro.
4836         (num_registers): New function.
4837         (num_pseudo_registers): New function.
4838         (variants): Update all variants to intialize new fields correctly.
4839         Postpone initialization of number of pseudo regs and real regs.
4840         (init_variants): New function.
4841         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
4842         registers offsets.
4843
4844 2002-08-19  David Carlton  <carlton@math.stanford.edu>
4845
4846         * valops.c (search_struct_field): Change error message to treat
4847         return value of 0 from value_static_field as meaning that field is
4848         optimized out.
4849         (value_struct_elt_for_reference): Ditto.
4850         * values.c (value_static_field): Treat an unresolved location the
4851         same as a nonexistent symbol.  Fix PR gdb/635.
4852         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4853         enclosed.  Fix PR gdb/574.
4854         * MAINTAINERS: Add self to Write After Approval list.
4855
4856 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4857
4858         * mips-tdep.c (mips_xfer_register): New function.
4859         (mips_n32n64_extract_return_value): Rewrite.
4860         (mips_gdbarch_init): For N32 and N64, set extract_return_value
4861         instead of deprecated_extract_return_value.
4862
4863 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4864
4865         * rs6000-tdep.c (TDEP): Delete macro.
4866         (branch_dest): Replace use of TDEP macro with its body.
4867         (rs6000_pop_frame): Ditto.
4868         (rs6000_push_arguments): Ditto.
4869         (rs6000_skip_trampoline_code): Ditto.
4870         (rs6000_frame_saved_pc): Ditto.
4871         (rs6000_frame_chain): Ditto.
4872         (rs6000_register_name): Ditto.
4873         (rs6000_register_byte): Ditto.
4874         (rs6000_register_raw_size): Ditto.
4875         (rs6000_register_virtual_type): Ditto.
4876         (rs6000_register_convertible): Ditto.
4877         (rs6000_convert_from_func_ptr_addr): Ditto.
4878
4879 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
4880
4881         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4882         conditionally.
4883         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4884         MIPS_LINUX_JB_ELEMENT_SIZE.
4885         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4886         for MAX_REGISTER_RAW_SIZE arrays.
4887         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4888         MIPS_LINUX_JB_ELEMENT_SIZE.
4889
4890 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4891
4892         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4893
4894 2002-08-19  Aidan Skinner <aidan@velvet.net>
4895
4896         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4897         ada-valprint.c ada-tasks.c.
4898         (YYFILES): Add ada-exp.y.
4899         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4900         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4901         (ada-exp.tab.o): New target.
4902                 
4903 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
4904
4905         * regcache.c (regcache_xfer_part): New function.
4906         (regcache_raw_read_part): New function.
4907         (regcache_raw_write_part): New function.
4908         (regcache_cooked_read_part): New function.
4909         (regcache_cooked_write_part): New function.
4910         * regcache.h (regcache_raw_read_part): Declare.
4911         (regcache_raw_write_part): Declare.
4912         (regcache_cooked_read_part): Declare.
4913         (regcache_cooked_write_part): Declare.
4914
4915 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
4916
4917         * remote.c (remote_open_1): Add async_p.
4918         (remote_async_open_1): Delete.
4919         (open_remote_target): Delete.
4920         (remote_open, extended_remote_open): Update calls to remote_open_1.
4921         (remote_async_open, extended_remote_async_open): Call
4922         remote_open_1 instead of remote_async_open_1.
4923
4924 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
4925
4926         * blockframe.c: Fix a few coding standard violations.
4927
4928 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
4929
4930         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4931         here from ...
4932         * config/i386/tm-i386sco5.h: ... here.  File removed.
4933         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4934
4935         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4936         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4937         (TM_FILE): Set to tm-i386.h.
4938         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4939         * config/i386/tm-i386v.h: Remove file.
4940         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4941         instead of "i386/tm-i386v.h".
4942         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4943         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4944         "i386/tm-i386v.h".
4945         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4946         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4947         "i386/tm-i386.h".
4948
4949 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
4950
4951         * config/i386/nm-i386v.h: Add protection against
4952         multiple-inclusion.
4953         (i386_register_u_addr): Remove prototype.
4954         (register_u_addr): New prototype.
4955         (REGISTER_U_ADDR): Redefine accordingly.
4956         * i386v-nat.c: Improve several comments.
4957         (i386_register_u_addr): Change signature and rename to
4958         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
4959         ubase variable.
4960
4961 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
4962
4963         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4964         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4965         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4966         deprecated_extract_return_value.
4967         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4968         rename mips_o32o64_push_arguments.
4969         (mips_gdbarch_init): Update.
4970         (mips_extract_return_value): Delete.
4971         (mips_o32_extract_return_value): Clone mips_extract_return_value.
4972         (mips_o64_extract_return_value): Clone mips_extract_return_value.
4973         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4974         (mips_n32n64_extract_return_value): Clone
4975         mips_extract_return_value.
4976         (mips_store_return_value): Delete.
4977         (mips_o32_store_return_value): Clone mips_store_return_value.
4978         (mips_o64_store_return_value): Clone mips_store_return_value.
4979         (mips_eabi_store_return_value): Clone mips_store_return_value.
4980         (mips_n32n64_store_return_value): Clone mips_store_return_value.
4981
4982 2002-08-18  Aidan Skinner <aidan@velvet.net>
4983
4984         * ada-lang.c: Use gdb_string.h instead of <string.h>.
4985         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4986                 
4987 2002-08-18  Aidan Skinner <aidan@velvet.net>
4988
4989         * ada-lang.c: Run through gdb_indent.sh.
4990         * ada-lang.h: Run through gdb_indent.sh.
4991         * ada-tasks.c: Run through gdb_indent.sh.
4992         * ada-typeprint.c: Run through gdb_indent.sh.
4993         * ada-valprint.c: Run through gdb_indent.sh.
4994
4995 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
4996
4997         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4998         ABI.
4999
5000 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5001
5002         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5003
5004         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5005         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5006
5007         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5008         write_register_gen instead of write_register_bytes.
5009
5010         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5011         i[3456]-*-osf1mk* configurations have been made obsolete.
5012         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5013         i[3456]86-*-osf1mk* hosts obsolete.
5014         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5015         targets obsolete.
5016         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5017         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5018         config/i386/i386m3.mt, config/i386/nm-m3.h,
5019         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5020         config/i386/i386mk.mh, config/i386/i386mk.mt,
5021         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5022         obsolete.
5023         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5024         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5025         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5026
5027 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5028
5029         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5030         (hppa_value_returned_from_stack): Declare.
5031         (hppa_extract_return_value): Declare.
5032         * config/pa/hppa.mt: New file.
5033         * configure.tgt: Recognize hppa*-*-*.
5034         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5035
5036 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5037
5038         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5039         comment.
5040
5041 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5042
5043         * top.c (gdb_rl_operate_and_get_next): Make sure
5044         operate-and-get-next functions correctly even when the history
5045         list is completely filled.
5046
5047 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5048
5049         * MAINTAINERS (Target Instruction Set Architectures): Rename
5050         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5051         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5052         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5053         already listed under Host/Native.
5054
5055         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5056         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5057         mips*-*-*.
5058
5059 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5060
5061         * config/ia64/ia64.mt: New file.
5062         * config/alpha/alpha.mt: New file.
5063         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5064         ia64-linux-gnu.  Mention that ia64-elf is broken.
5065         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5066
5067 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5068
5069         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5070         generic_func_frame_valid instead of func_frame_valid.
5071
5072 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5073
5074         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5075         procfs appears to be broken when debugging on multi-processor
5076         machines. So enable software single stepping in order to avoid
5077         using the procfs interface to do next/step operations, using
5078         internal breakpoints instead.
5079
5080         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5081         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5082         make this pc address equal to the value it would have if the
5083         system stepping capability was used. Also set a new flag used
5084         to ensure that we don't readjust the PC one more time later.
5085
5086         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5087         address by DECR_PC_AFTER_BREAK when software single step is
5088         in use for this architecture, as this has already been taken
5089         care of in handle_inferior_event().
5090
5091 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5092
5093         * infrun.c (handle_inferior_event): Minor reformatting, to make
5094         a rather long condition expression easier to read.
5095
5096 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5097
5098         * Makefile.in (gdbtk.o): Move to end of file.
5099         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5100         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5101         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5102         (gdbtk-wrapper.o, gdbres.o): Ditto.
5103
5104 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5105
5106         * Makefile.in (copying.o): Separate out compile rule.
5107         (hpux-thread.o, procfs.o, signals.o): Ditto.
5108         (v850ice.o, z8k-tdep.o): Ditto.
5109         (tui-file.o): Move to TUI section.
5110         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5111         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5112
5113 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5114
5115         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5116         skip_trampoline_code, for better namespace-proofing.   
5117
5118         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5119
5120 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5121
5122         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5123
5124 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5125
5126         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5127         signal, check whether we hit a breakpoint before checking for a
5128         single step breakpoint. Otherwise, GDB fails to notice that a
5129         breakpoint has been hit when stepping onto a breakpoint.
5130
5131 2002-08-16  Keith Seitz  <keiths@redhat.com>
5132
5133         * gdb-events.sh (clear_gdb_event_hooks): New function.
5134         * gdb-events.c: Regenerate.
5135         * gdb-events.h: Regenerate.
5136
5137 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5138
5139         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5140         not_a_sw_breakpoint.
5141         * breakpoint.h (bpstat_stop_status): Add parameter names.
5142
5143 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5144
5145         * remote.c (remote_insert_hw_breakpoint)
5146         (remote_remove_hw_breakpoint): Fix calculation of length field
5147         for Z-packet.
5148
5149 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5150
5151         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5152         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5153         (supply_fpregset): Ditto.
5154         
5155         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5156         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5157         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5158         (TARGET_READ_SP): Delete.
5159         (DO_REGISTERS_INFO): Delete.
5160         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5161         Delete.
5162         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5163         from macros to functions.
5164
5165         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5166         (mips_register_convertible, mips_register_convert_to_virtual,
5167         mips_register_convert_to_raw): Make static.
5168         (mips_read_sp): New function.
5169         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5170         (mips_do_registers_info): Make static.
5171         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5172         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5173         (mips_register_convert_from_type, mips_register_convert_to_type):
5174         New functions.
5175         (mips_gdbarch_init): Set up function_start_offset, 
5176         register_virtual_size, pc_in_sigtramp.
5177
5178 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5179
5180         * infcmd.c (vector_info): New function.
5181         (_initialize_infcmd): Add command "info vector".
5182         (print_vector_info): New function.
5183
5184         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5185         * gdbarch.h, gdbarch.c: Regenerate.
5186
5187 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5188
5189         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5190         ``print_all''.  Only print vector registers when ``print_all''.
5191
5192 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5193
5194         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5195         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5196
5197         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5198         Add `args' parameter.
5199         * gdbarch.h, gdbarch.c: Regenerate.
5200         
5201         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5202         
5203         * infcmd.c (float_info): Call print_float_info.
5204         (print_float_info): New function.  By default, print the
5205         floating-point registers.
5206
5207         * arch-utils.h (default_print_float_info): Delete declaration.
5208         * arch-utils.c (default_print_float_info): Delete function.
5209         
5210 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5211
5212         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5213         out define.
5214
5215         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5216         FRAME.
5217
5218         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5219         * configure.host: Make i[3456]86-*-aix host obsolete.
5220         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5221         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5222         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5223         config/i386/xm-i386aix.h: Make files obsolete.
5224         * i386aix-nat.c: Make file obsolete.
5225         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5226         (i386aix-nat.o): Make target obsolete.
5227
5228         * config/i386/nm-gnu.h: Removed.
5229         * config/i386/nm-i386gnu.h: New file.
5230         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5231         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5232         Moved here from ...
5233         * config/i386/tm-i386gnu.h: ... here.  Removed.
5234         * config/i386/xm-i386gnu.h: Removed.
5235         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5236         (NAT_FILE): Set to nm-i386gnu.h.
5237         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5238         * i386-tdep.c: New file.
5239         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5240         (i386gnu-tdep.o): Specify dependencies.
5241
5242 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5243
5244         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5245         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5246         Adjust a few comments to reflect reality a bit closer.
5247         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5248         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5249         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5250         target_insert_watchpoint, target_remove_watchpoint):
5251         Move defines to ...
5252         * config/i386/nm-i386sco5.h: ... here.
5253         (kernel_u_size): Add prototype.  Improve a few comments and add
5254         protection against multiple inclusion.
5255         
5256         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5257         out define.
5258
5259         * uw-thread.c (SP_ARG0): Define if not already defined.
5260         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5261
5262         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5263
5264         * config/i386/tm-i386.h: Don't include "regcache.h".
5265
5266         * i387-tdep.h (i387_print_float_info): New prototype.
5267         * i387-tdep.c (print_i387_value, print_i387_ext,
5268         print_i387_status_word, print_i387_control_word): Add `struct
5269         ui_file *' argument and use it for output.
5270         (i387_print_float_info): Renamed from i387_float_info.  Add
5271         `struct gdbarch *' and `struct ui_file *' arguments and use the
5272         latter for output.
5273         * i386-tdep.c: Include "i387-tdep.h".
5274         (i386_gdbarch_init): Set print_float_info.
5275         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5276         (FLOAT_INFO): Remove define.
5277
5278 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5279
5280         * mips-tdep.c (mips_push_arguments): Rename to
5281         mips_eabi_push_arguments, and tune for EABI.
5282         (MIPS_REGS_HAVE_HOME_P): Delete.
5283         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5284         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5285         Delete references to mips_regs_have_home_p.
5286
5287 2002-08-14  Keith Seitz  <keiths@redhat.com>
5288
5289         * Makefile.in (install-gdbtk): Create insight plugin directory.
5290         Install plugins.tcl file.
5291
5292 2002-08-14  Keith Seitz  <keiths@redhat.com>
5293
5294         * configure.in: Move SUBDIRS to near top of the file so that
5295         --enable options may add things to it.
5296         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5297         * configure: Regenerate.
5298
5299 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5300
5301         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5302         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5303         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5304
5305 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5306
5307         * vax-tdep.c (vax_get_saved_register): Delete function.
5308         (vax_gdbarch_init): Update.
5309         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5310         (ns32k_gdbarch_init): Update.
5311         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5312         (alpha_gdbarch_init): Update.
5313
5314 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5315
5316         * regcache.c (init_regcache_descr): Overallocate the
5317         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5318         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5319         nr_raw_registers.
5320         (set_register_cached): Add range checking assertions.  Use
5321         current_regcache.
5322
5323 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5324
5325         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5326         numbers for MMX registers.
5327
5328 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5329
5330         * i386-tdep.c (i386_gdbarch_init): Use
5331         generic_unwind_get_saved_register.
5332
5333 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5334
5335         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5336         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5337         target vector.
5338         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5339         Delete.  Add comment regarding this now-deleted target method.
5340
5341 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5342
5343         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5344         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5345         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5346         real PC and the page number (if it's within the memory bank window).
5347         (m68hc11_pseudo_register_write): Likewise when saving.
5348         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5349         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5350         (m68hc11_register_raw_size): And use 32-bit for it.
5351         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5352         16K memory bank is used by the prog; also use the virtual pc.
5353
5354 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5355
5356         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5357         (m68hc11_gdbarch_init): Install it in gdbarch.
5358         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5359         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5360         (MSYMBOL_SIZE): New for documentation.
5361         (insn_return_kind): Enum to specify how a function returns.
5362         (frame_extra_info): Cleanup and record the return mode.
5363         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5364         register in address computation.
5365         (m68hc11_get_return_insn): New to obtain the return instruction used
5366         by the function.
5367         (m68hc11_frame_init_saved_regs): Take into account the return
5368         instruction used by the function for far and interrupt functions.
5369         (m68hc11_init_extra_frame_info): Take into account page register.
5370         (m68hc11_frame_args_address): Adjust according to the return mode.
5371         (show_regs): Print page register only when it's used.
5372
5373 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5374
5375         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5376         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5377         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5378         registers.
5379         (m68hc11_register_raw_size): Likewise.
5380
5381 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5382
5383         * i386-tdep.c (i386_register_name): Handle mmx registers.
5384         (mmx_regnum_p): New function.
5385         (i386_mmx_names): New array.
5386         (mmx_num_regs): New variable.
5387         (i386_pseudo_register_read): New function.
5388         (i386_pseudo_register_write): New function.
5389         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5390
5391         * regcache.c (regcache_raw_read_unsigned): New function.
5392         (regcache_raw_read_signed): New function.
5393         * regcache.h (regcache_raw_read_unsigned): Declare.
5394         (regcache_raw_read_signed): Declare.
5395
5396 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5397
5398         * regcache.c (regcache_raw_read_as_address): Delete function.
5399         (regcache_cooked_read_signed): New function.
5400         (regcache_cooked_read_unsigned): New function.
5401         * regcache.h (regcache_cooked_read_signed): Declare.
5402         (regcache_cooked_read_unsigned): Declare.
5403         (regcache_raw_read_as_address): Delete declaration.
5404
5405         * blockframe.c (generic_read_register_dummy): Use
5406         regcache_cooked_read_unsigned.
5407         * i386-tdep.c (i386_extract_struct_value_address): Use
5408         regcache_cooked_read_unsigned.
5409
5410 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5411
5412         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5413         double sizes according to ELF ABI flags.
5414         (gdbarch_tdep): Record elf_flags.
5415
5416 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5417
5418         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5419         (m6812_prolog): They can appear in 68HC12 function prologue.
5420         (m68hc11_frame_chain): Cleanup.
5421
5422 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5423
5424         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5425         declarations.
5426         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5427         (i386_linux_register_raw_size): Delete function.
5428         (i386_linux_init_abi): Update.
5429         * i386-tdep.c (i386_register_raw_size): Delete function.
5430         (i386_register_byte): Delete function.
5431         (i386_gdbarch_init): Update.
5432         (i386_register_size): Delete array.
5433         (i386_register_offset): Delete array.
5434
5435         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5436         (REGISTER_RAW_SIZE): Delete macro.
5437         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5438         (REGISTER_BYTE): Delete macro.
5439
5440 2002-08-11  Aidan Skinner <aidan@velvet.net>
5441
5442         * ada-lang.c (ada_lookup_partial_symbol)
5443         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5444         prototype names so that grep ^func works properly.
5445
5446         * ada-lang.c (ada_array_element_type)
5447         (ada_lookup_partial_symbol): Fix typos in parameter list.
5448
5449         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5450         Fix prototype names so that grep ^func works properly.
5451         
5452 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5453             Elena Zannoni  <ezannoni@redhat.com>
5454             Martin M. Hunt  <hunt@redhat.com>
5455
5456         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5457         (build_builtin_type_vec128i): Set the vector bit.
5458         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5459         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5460         (build_builtin_type_vec64): New function.
5461         (build_builtin_type_vec64i): New function.
5462         (build_gdbtypes): Initialize builtin_type_vec64 and
5463         builtin_type_vec64i.
5464
5465 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5466
5467         * regcache.c (regcache_dump): Compare the register offset
5468         with REGISTER_BYTE.
5469         * arch-utils.c (generic_register_byte): New function.
5470         * arch-utils.h (generic_register_byte): Declare.
5471         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5472         * gdbarch.h, gdbarch.c: Regenerate.
5473
5474 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5475
5476         * regcache.c: Include "gdbcmd.h"
5477         (_initialize_regcache): Add commands "maintenance print
5478         registers", "maintenance print raw-registers" and "maintenance
5479         print cooked-registers".
5480         (enum regcache_dump_what): Define.
5481         (dump_endian_bytes): New function.
5482         (regcache_dump): New function.
5483         (regcache_print): New function.
5484         (maintenance_print_registers): New function.
5485         (maintenance_print_raw_registers): New function.
5486         (maintenance_print_cooked_registers): New function.
5487         * Makefile.in (regcache.o): Update dependencies.
5488
5489 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5490
5491         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5492         (mips_push_arguments): Correct some comments.  Use paddr_nz
5493         for printing addresses in debug output.  Replace static
5494         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5495         (mips_n32n64_push_arguments): New function, cloned from
5496         mips_push_arguments and tuned for the n32/n64 ABI.
5497         (mips_push_register): Buffer needs dynamic allocation.
5498         (mips_print_register): Ditto.
5499         (do_gp_register_row): Ditto.
5500         (mips_store_return_value): Ditto.
5501         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5502
5503 2002-08-09  Don Howard  <dhoward@redhat.com>
5504
5505         * memattr.c (mem_info_command): Print special case of upper bound
5506         as max CORE_ADDR + 1.
5507
5508 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5509
5510         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5511         returns structs by ref if they're too big to fit in two registers.
5512
5513 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5514
5515         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5516         saved regs value.
5517         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5518         mips_find_saved_regs().
5519         (mips_pop_frame): Likewise.
5520
5521 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5522
5523         * blockframe.c (frame_saved_regs_register_unwind): Revise
5524         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5525         frames are in use.
5526
5527 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5528         
5529         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5530         T-packets; the 'a' is not taken as a register number.
5531         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5532         (remote_stopped_data_address): New functions; add to target
5533         vector.
5534         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5535         prototypes to match other implementations of this
5536         function. replace integer argument with pointer -- the length
5537         field in the Z-packet is the length of what is pointed to or 1 if
5538         pointer is null. Add to target vector.
5539         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5540         target vector.
5541
5542         From Mark Salter:
5543         * remote.c (remote_wait): Add support to extract optional
5544         watchpoint information from T-packet. Ignore unrecognized
5545         optional info in T-packet.
5546         (remote_async_wait): Ditto.
5547
5548 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5549
5550         * cli/cli-dump.c: Change fopen modes to use binary open modes
5551         as defined in include/fopen-bin.h throughout.
5552
5553 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5554
5555         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5556
5557 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5558
5559         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5560         assertion failure by returning early after a warning.
5561
5562 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5563
5564         * mips-tdep.c (mips_find_saved_regs): Make static.
5565         (mips_frame_init_saved_regs): New function.
5566         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5567         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5568         (mips_find_saved_regs): Delete declaration.
5569
5570 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5571
5572         * remote.c (remote_wait, remote_async_wait): Change
5573         thread_num from int to ULONGEST.
5574         (unpack_varlen_hex): Change result parameter from
5575         int * to ULONGEST *.
5576
5577 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5578
5579         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5580         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5581         powerpc*-*-*.
5582         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5583
5584 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5585
5586         * gcore.c (override_derive_stack_segment): Delete variable.
5587         (preempt_derive_stack_segment): Delete function.
5588         (derive_stack_segment): Delete function.
5589         (default_derive_stack_segment): Renamed to derive_stack_segment.
5590         (override_derive_heap_segment): Delete variable.
5591         (preempt_derive_heap_segment): Delete function.
5592         (derive_heap_segment): Delete function.
5593         (default_derive_heap_segment): Rename to derive_heap_segment.
5594
5595 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5596
5597         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5598         * mips-tdep.c (mips_EABI_use_struct_convention, 
5599         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5600         New functions.  (mips_use_struct_convention): Delete.
5601         (mips_gdbarch_init): set use_gdbarch_convention.
5602
5603 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5604
5605         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5606         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5607         mips_o32_reg_struct_has_addr): New functions.
5608         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5609
5610 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5611
5612         * regcache.c (pseudo_register): Delete function.
5613         (fetch_register): Delete function.
5614         (store_register): Delete function.
5615         (regcache_raw_read, legacy_read_register_gen): Use
5616         target_fetch_registers instead of fetch_register.
5617         (legacy_write_register_gen, regcache_raw_write): Use
5618         target_store_register instead of store_register.
5619         (write_register_bytes): Ditto.
5620
5621         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5622         (STORE_PSEUDO_REGISTER): Delete.
5623         * gdbarch.h, gdbarch.c: Regenerate.
5624
5625 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5626
5627         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5628         write dump file binary.
5629
5630 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5631
5632         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5633         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5634         (mips_gdbarch_init): Set N32 target to be mips64.
5635
5636 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5637
5638         * frame.c (find_saved_register): Break out of loop once saved
5639         register address is found.  Don't mention sparc in loop comment
5640         anymore.
5641
5642 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5643
5644         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5645         mips_default_saved_regsize to 8.
5646
5647 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5648
5649         * gcore.c: Do not include <sys/procfs.h>.
5650         * Makefile.in (gcore.o): Update dependencies.
5651
5652 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5653
5654         * configure.tgt: Make arc-*-* obsolete.
5655         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5656         * MAINTAINERS: Make arc-elf obsolete.
5657         * arc-tdep.c: Make file obsolete.
5658         * config/arc/arc.mt: Ditto.
5659         * config/arc/tm-arc.h: Ditto.
5660
5661 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5662
5663         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5664
5665 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5666
5667         * mcore-tdep.c (mcore_gdbarch_init): Use
5668         generic_unwind_get_saved_register instead of
5669         generic_get_saved_register.
5670         * v850-tdep.c (v850_gdbarch_init): Ditto.
5671         * frv-tdep.c (frv_gdbarch_init): Ditto.
5672         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5673         * s390-tdep.c (s390_gdbarch_init): Ditto.
5674         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5675         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5676         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5677
5678 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5679
5680         * objfiles.h: Add missing #include "symfile.h"
5681
5682         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5683
5684 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5685
5686         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5687         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5688         of FIELD_BITSIZE.
5689
5690 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5691
5692         * NEWS: Cleanup and nitpick.
5693
5694 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5695
5696         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5697
5698 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5699
5700         * Makefile.in (gdbtk-bp.o): Update dependencies.
5701         (gdbtk-register.o): Ditto.
5702         (gdbtk-varobj.o): Ditto.
5703
5704 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5705
5706         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5707         m68hc11_fetch_pseudo_register.
5708         (m68hc11_pseudo_register_write): Replace
5709         m68hc11_store_pseudo_register.
5710         (m68hc11_gdbarch_init): Update.
5711
5712 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5713
5714         * gdbarch.sh: Include "gdb_string.h".
5715         * gdbarch.c: Regenerate.
5716
5717         * regcache.c: Include "gdb_string.h".
5718         * ax-general.c: Ditto.
5719         * varobj.c: Ditto.
5720         * std-regs.c: Ditto.
5721         * fbsd-proc.c: Ditto.
5722         * thread.c: Ditto.
5723
5724         * Makefile.in (regcache.o): Update dependencies.
5725         (thread.o, gdbarch.o): Ditto.
5726         (ax-general.o, gdbarch.o): Ditto.
5727         (varobj.o, std-regs.o): Ditto.
5728         (fbsd-proc.o): Specify dependencies.
5729
5730 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5731
5732         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5733         regnum.
5734         (regcache_cooked_write): Ditto.
5735
5736 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
5737
5738         * regcache.c (regcache_cooked_read): New function.
5739         (regcache_cooked_write): New function.
5740         (read_register_gen): Rewrite using regcache_cooked_read.
5741         (write_register_gen): Rewrite using regcache_cooked_write.
5742
5743         * regcache.h (regcache_cooked_read, regcache_cooked_write):
5744         Declare.
5745
5746 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5747
5748         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5749         Replace the architecture methods register_read and register_write.
5750         * gdbarch.h, gdbarch.c: Regenerate.
5751         * regcache.c (init_regcache_descr): Update.
5752         (read_register_gen): Update.
5753         (write_register_gen): Update.
5754         (supply_register): Update comment.
5755
5756         * sh-tdep.c (sh_gdbarch_init): Update.
5757         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5758         `regcache' and `gdbarch' parameters.  Make `buffer' a void
5759         pointer.  Update code.
5760         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5761         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
5762         void pointer.  Update code.
5763         (sh64_register_write): Delete.
5764         (sh4_register_read): Delete.
5765         (sh64_register_read): Delete.
5766         (sh4_register_write): Delete.
5767         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5768         void pointer, `to' parameter a void pointer.
5769         (sh_sh64_register_convert_to_raw): Ditto.
5770
5771 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5772
5773         * mips-tdep.c (mips_register_virtual_type): Use architecture
5774         invariant return values.
5775
5776 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5777
5778         * linux-proc.c: Include "gdb_string.h".
5779         * Makefile.in (linux-proc.o): Update dependency list.
5780
5781 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5782
5783         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
5784         comment.
5785
5786 2002-08-01  Grace Sainsbury  <graces@redhat.com>
5787
5788         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5789         to_insert_watchpoint, to_remove_watchpoint,
5790         to_stopped_by_watchpoint, to_stopped_data_address,
5791         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5792         target vecctor. Define their corresponding macros so they call
5793         them.
5794         
5795         * target.c: Add default and debug versions of for
5796         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5797         to_insert_watchpoint, to_remove_watchpoint,
5798         to_stopped_by_watchpoint, to_stopped_data_address,
5799         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5800
5801 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5802
5803         * mips-tdep.c (mips_register_virtual_type): New function.
5804         (mips_gdbarch_init): Register mips_register_virtual_type()
5805         with gdbarch machinery.
5806         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5807         this file instead of tm-bigmips.h.
5808         (MIPS_REGSIZE): Delete this macro.
5809         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
5810         multiarch version in mips-tdep.c will be found.
5811
5812 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5813
5814         * NEWS: Menion that CHILL has been made obsolete.
5815
5816         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5817         * stabsread.c (read_range_type): Ditto.
5818         * gdbtypes.h: Ditto.
5819         * language.c (binop_type_check): Ditto.
5820         (binop_result_type): Ditto.
5821         (integral_type): Ditto.
5822         (character_type): Ditto.
5823         (string_type): Ditto.
5824         (boolean_type): Ditto.
5825         (structured_type): Ditto.
5826         (lang_bool_type): Ditto.
5827         (binop_type_check): Ditto.
5828         * language.h (_LANG_chill): Ditto.
5829         * dwarfread.c (set_cu_language): Ditto.
5830         * dwarfread.c (CHILL_PRODUCER): Ditto.
5831         * dwarfread.c (handle_producer): Ditto.
5832         * expression.h (enum exp_opcode): Ditto.
5833         * eval.c: Ditto for comments.
5834         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5835         * expprint.c (print_subexp): Ditto.
5836         (print_subexp): Ditto.
5837         * valops.c (value_cast): Ditto.
5838         (search_struct_field): Ditto.
5839         * value.h (COERCE_VARYING_ARRAY): Ditto.
5840         * symfile.c (init_filename_language_table): Ditto.
5841         (add_psymbol_with_dem_name_to_list): Ditto.
5842         * valarith.c (value_binop): Ditto.
5843         (value_neg): Ditto.
5844         * valops.c (value_slice): Ditto.
5845         * symtab.h (union language_specific): Ditto.
5846         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5847         (SYMBOL_DEMANGLED_NAME): Ditto.
5848         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5849         * defs.h (enum language): Ditto.
5850         * symtab.c (got_symtab): Ditto.
5851         * utils.c (fprintf_symbol_filtered): Ditto.
5852
5853         * ch-typeprint.c: Make file obsolete.
5854         * ch-valprint.c: Make file obsolete.
5855         * ch-lang.h: Make file obsolete.
5856         * ch-exp.c: Make file obsolete.
5857         * ch-lang.c: Make file obsolete.
5858
5859         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5860         CHILL_LIB.
5861         (TARGET_FLAGS_TO_PASS): Ditto.
5862         (CHILLFLAGS): Obsolete.
5863         (CHILL): Obsolete.
5864         (CHILL_FOR_TARGET): Obsolete.
5865         (CHILL_LIB): Obsolete.
5866         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5867         ch-valprint.c.
5868         (HFILES_NO_SRCDIR): Remove ch-lang.h.
5869         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5870         ch-lang.o.
5871         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5872         targets.
5873
5874 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
5875
5876         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5877         This does not change anything at the moment, but will be helpful
5878         later when full Ada support is integrated.
5879
5880 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5881
5882         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5883         help message.
5884
5885 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5886
5887         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5888         and save it in a local variable.  Use variable in later test.
5889
5890 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5891
5892         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5893         test.  (Thanks to Daniel Jacobowitz.)
5894         
5895 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5896
5897         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5898         (mips_abi_strings): Add "n64".
5899         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
5900
5901 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5902
5903         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5904         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5905
5906 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5907
5908         * utils.c (host_pointer_to_address, address_to_host_pointer):
5909         Use gdb_assert() instead of explicit call to internal_error().
5910
5911 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
5912
5913         * Makefile.in (rs6000-nat.o): Update dependencies.
5914
5915         From Nicholas Duffek:
5916         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5917         (aix-thread.o): New rule.
5918         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5919         * config/powerpc/aix432.mh: New file.
5920
5921 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
5922
5923         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5924         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5925         (fetch_core_registers, ppc_linux_supply_gregset)
5926         (ppc_linux_supply_fpregset): New functions.
5927         (ppc_linux_regset_core_fns): New.
5928         (_initialize_ppc_linux_tdep): Call add_core_fns.
5929         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5930         and ppc_linux_supply_gregset.
5931         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5932         (supply_fpregset): Call ppc_linux_supply_fpregset.
5933         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5934         corelow.o.
5935         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5936
5937 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
5938
5939         * symtab.c (lookup_symbol): Demangle before lowercasing.
5940
5941 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
5942
5943         * symtab.h: Replace #include "gdb_obstack.h" with opaque
5944         declaration.
5945         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5946         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5947         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5948         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5949         "gdb_string.h".
5950         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5951         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5952         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5953         (avr-tdep.o, mon960-rom.o): Ditto.
5954         (aout_stabs_gnu_h): Define.
5955         (symtab_h): Remove $(gdb_obstack_h).
5956
5957 2002-07-30  Jim Blandy  <jimb@redhat.com>
5958
5959         Patch from David Carlton <carlton@math.stanford.edu>:
5960         * gdbinit.in: Move the `dir' commands that add GDB's own source
5961         directory to the search path to the end, so that the `gdb' source
5962         directory will be searched first.
5963
5964 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
5965
5966         * gdb_obstack.h: New file.
5967         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5968         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5969         * objfiles.h: Include "gdb_obstack.h".
5970         * Makefile.in (gdb_obstack_h): Define.
5971         (symtab_h): Add $(gdb_obstack_h).
5972         (objfiles_h): Add $(gdb_obstack_h).
5973         
5974         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5975         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5976         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5977         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5978         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5979         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5980         * symfile.c, coffread.c, c-typeprint.c: Ditto.
5981         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5982
5983         * Makefile.in (bcache.o): Update dependencies.
5984         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5985         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5986         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5987         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5988         (stabsread.o, symfile.o, symmisc.o): Ditto.
5989         (symtab.o, typeprint.o, macroexp.o): Ditto.
5990         (macrotab.o, mdebugread.o): Ditto.
5991         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5992         (coff_ecoff_h, aout_aout64_h): Define.
5993         (aout_stabs_gnu_h, libaout_h): Define.
5994
5995 2002-07-29  Andrew Cagney  <cagney@redhat.com>
5996
5997         * regcache.c (struct regcache_descr): Rename nr_registers to
5998         nr_cooked_registers.  Revise comments describing the structure
5999         member fields.
6000         (init_regcache_descr): Update.
6001         (init_legacy_regcache_descr): Update.
6002         (read_register_gen, write_register_gen): When a cooked register in
6003         the raw register range, directly access the value from the raw
6004         register cache.
6005
6006 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6007
6008         * z8k-tdep.c: Do not include "obstack.h".
6009         * h8300-tdep.c, h8500-tdep.c: Ditto.
6010         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6011         * valprint.c, v850-tdep.c: Ditto.
6012         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6013         * mn10200-tdep.c: Ditto.
6014
6015         * Makefile.in (z8k-tdep.o): Update dependencies.
6016         (m68hc11-tdep.o, valprint.o): Ditto.
6017         (v850-tdep.o, d10v-tdep.o): Ditto.
6018         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6019         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6020         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6021         (sh_opc_h, gdb_sim_sh_h): Define.
6022         (elf_sh_h, elf_bfd_h): Define.
6023         (opcode_m68hc11_h): Define.
6024         (OPCODES_SRC, OPCODES_DIR): define.
6025         (OPCODES): Use $(OPCODES_DIR).
6026         (gdb_sim_d10v_h): Rename sim_d10v_h.
6027         (gdb_sim_arm_h): Rename sim_arm_h.
6028
6029 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6030
6031         * utils.c (host_pointer_to_address, address_to_host_pointer):
6032         Change internal_error() message to indicate function responsible
6033         for the error.
6034
6035 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6036
6037         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6038         calls to local_hex_string_custom().
6039
6040 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6041
6042         * irix5-nat.c: Move IRIX shared library support from here...
6043         * solib-irix.c: ...to here.  Revised substantially to work with
6044         generic solib framework.
6045
6046         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6047         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6048         * mips-irix-tdep.c: New file.
6049
6050         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6051         (mips-irix-tdep.o, solib-irix.o): New rules.
6052         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6053         solib-irix.o.
6054         * config/mips/irix6.mt (TDEPFILES): Likewise.
6055         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6056
6057 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6058
6059         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6060         disabled (via ``#if 0'') includes.
6061
6062 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6063
6064         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6065         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6066         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6067         Add support for the fpscr register.
6068         * rs6000-nat.c (regmap, fetch_inferior_registers)
6069         (store_inferior_registers, fetch_core_registers): Likewise.
6070
6071 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6072
6073         * rs6000-nat.c (language.h): Include.
6074         (special_regs): Delete this array.
6075         (regmap): New function.
6076         (fetch_register, store_register):  Use regmap() to map gdb
6077         register numbers to ptrace register numbers.  Also, use
6078         outputs from regmap() to make decisions regarding type of
6079         ptrace() call to make.  In particular, don't compare against
6080         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6081         (fetch_inferior_registers, store_inferior_registers): Where
6082         possible, obtain register numbers from tdep struct.  Don't
6083         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6084         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6085         (LAST_UISA_SP_REGNUM): Delete.
6086         
6087 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6088
6089         * rs6000-nat.c (ppc-tdep.h): Include.
6090         (fetch_registers, store_register, fetch_core_registers): Don't
6091         access registers[] directly.  Instead, use supply_register() or
6092         regcache_collect() as appropriate.
6093         (find_toc_address): Format hex address with local_hex_string().
6094
6095 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6096
6097         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6098         bfd/elf32-frv.c.
6099
6100 2002-07-24  Tom Tromey  <tromey@redhat.com>
6101
6102         * jv-exp.y: Marked all strings with _().
6103         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6104         internal_error.
6105         (MethodInvocation, CastExpression, parse_number, yyerror,
6106         java_type_from_name, push_expression_name, yylex): Typo fixes.
6107
6108 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6109
6110         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6111         (tee_file_flush, tee_file_write, tee_file_fputs)
6112         (tee_file_isatty): New.
6113         * ui-file.h (tee_file_new): Add prototype.
6114
6115 2002-07-24  Aidan Skinner <aidan@velvet.net>
6116
6117         * ada-lang.c: Change k&r style function definitions to prototyped
6118         form.
6119         * ada-typeprint.c: Change k&r style function definitions to prototyped
6120         form.
6121         * ada-valprint.c: Change k&r style function definitions to prototyped
6122         form.
6123         
6124 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6125
6126         * README: Remove reference to remote-bug.
6127         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6128         remote-bug.c.
6129         (m88k-nat.o): Delete rule.
6130         (m88k-tdep.o): Delete rule.
6131         (remote-bug.o): Delete rule.
6132         * MAINTAINERS: Mark as obsolete.
6133         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6134         * m88k-tdep.c: Make file obsolete.
6135         * config/m88k/m88k.mh: Ditto.
6136         * config/m88k/delta88v4.mh: Ditto.
6137         * config/m88k/delta88v4.mt: Ditto.
6138         * config/m88k/delta88.mt: Ditto.
6139         * config/m88k/delta88.mh: Ditto.
6140         * remote-bug.c: Ditto.
6141         * config/m88k/tm-delta88.h: Ditto.
6142         * config/m88k/nm-delta88v4.h: Ditto.
6143         * config/m88k/xm-delta88.h: Ditto.
6144         * config/m88k/xm-dgux.h: Ditto.
6145         * config/m88k/tm-m88k.h: Ditto.
6146         * config/m88k/nm-m88k.h: Ditto.
6147         * config/m88k/tm-delta88v4.h: Ditto.
6148         * m88k-nat.c: Ditto.
6149         * cxux-nat.c: Ditto.
6150         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6151         and m88*-*-* obsolete.
6152         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6153         m88*-*-* obsolete.
6154
6155 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6156
6157         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6158         constant.  Same for local pointer variables.
6159         (extract_signed_integer): Ditto.
6160         * defs.h (extract_unsigned_integer): Update.
6161         (extract_signed_integer): Update.
6162
6163 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6164
6165         * regcache.c (regcache_raw_write): Change buf parameter to a
6166         constant void pointer.
6167         (regcache_raw_read): Change buf parameter to a void pointer.
6168         (legacy_write_register_gen): Change myaddr parameter a constant
6169         void pointer.
6170         (supply_register): Change val parameter to a const void pointer.
6171         * regcache.h (regcache_raw_write): Update declaration.
6172         (regcache_raw_read): Update declaration.
6173         (supply_register): Update declaration.
6174
6175 2002-07-24  Tom Tromey  <tromey@redhat.com>
6176
6177         * defs.h (gdb_readline_wrapper): Declare.
6178         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6179         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6180         * top.c (gdb_readline_wrapper): New function.
6181         (command_line_input): Use it.
6182
6183 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6184
6185         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6186         regcache_read and regcache_write.
6187         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6188         * regcache.c: Update.
6189         * sh-tdep.c (sh64_push_arguments): Update comment.
6190         (sh_pseudo_register_read): Update.
6191         (sh_pseudo_register_write): Update.
6192         (sh4_register_read): Update.
6193         (sh4_register_write): Update.
6194         (sh64_pseudo_register_read): Update.
6195         (sh64_pseudo_register_write): Update.
6196         (sh64_register_read): Update.
6197         (sh64_register_write): Update.
6198         * i386-tdep.c (i386_extract_return_value): Update.
6199         (i386_extract_struct_value_address): Update.
6200         (i386_extract_return_value): Update.
6201         * blockframe.c (generic_read_register_dummy): Update.
6202         (generic_call_dummy_register_unwind): Update
6203         * infrun.c (write_inferior_status_register): Update.
6204
6205 2002-07-23  Jim Blandy  <jimb@redhat.com>
6206
6207         * parser-defs.h (expression_context_pc): Make this extern.
6208         (Thanks to Michael Snyder.)
6209
6210 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6211
6212         GDB 5.2.1 released from 5.2 branch.
6213         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6214         * README: Update to mention 5.2.1.
6215
6216 2002-07-23  Mark Salter  <msalter@redhat.com>
6217
6218         * remote.c (remote_read_bytes): Fix check for error.
6219
6220 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6221
6222         * aix-thread.c (language.h): Include.
6223         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6224         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6225         Print newlines at end of debug messages.
6226         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6227         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6228
6229 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6230
6231         * aix-thread.c (ppc-tdep.h): Include.
6232         (special_register_p): New function.
6233         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6234         (store_regs_user_thread): Use register number information from
6235         gdbarch_tdep struct instead of hardcoded offsets relative to
6236         FIRST_UISA_SP_REGNUM.
6237         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6238         special_register_p() instead of using FPLAST_REGNUM and
6239         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6240         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6241         will be MQ's register number.
6242
6243 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6244
6245         * aix-thread.c (ops): Rename to aix_thread_ops.
6246         (base_ops): Rename to base_target.
6247         (ops_attach): Rename to aix_thread_attach.
6248         (ops_detach): Rename to aix_thread_detach.
6249         (ops_resume): Rename to aix_thread_detach.
6250         (ops_wait):   Rename to aix_thread_wait.
6251         (ops_kill):   Rename to aix_thread_kill.
6252         (init_ops):   Rename to init_aix_thread_ops.
6253         (ops_fetch_register): Rename to aix_thread_fetch_register.
6254         (ops_store_register): Rename to aix_thread_store_register.
6255         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6256         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6257         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6258         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6259         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6260         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6261         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6262         (store_regs_lib):  Rename to store_regs_user_thread.
6263         (store_regs_kern): Rename to store_regs_kernel_thread.
6264
6265 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6266
6267         * aix-thread.c (ops_prepare_to_store): Eliminate.
6268         (init_ops): Don't initialize ops.prepare_to_store.
6269         (store_regs_kern): Pre-fetch register buffers from child, 
6270         because some registers may not be in the cache.  Copy
6271         regs from register cache only if they are cached.
6272         (store_regs_lib): Copy regs from register cache only
6273         if they are cached.
6274         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6275         fill_gprs64): Ditto.
6276
6277 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6278
6279         * aix-thread.c (gdb_assert.h): Include.
6280         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6281         register sizes (from register cache) match size of buffer holding
6282         register data.
6283         (fill_sprs32): Change parameter types to match those in the ptrace()
6284         buffer.
6285         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6286         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6287
6288 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6289
6290         * aix-thread.c (supply_sprs64): Cosmetic change.
6291         (supply_sprs32): Cosmetic change.
6292         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6293         (fill_sprs64): Use regcache_collect instead of read_register.
6294         (store_regs_lib): Use regcache_collect instead of 
6295         read_register.  Use fill_sprs32 instead of fill_sprs64,
6296         if debugging a 32-bit architecture.
6297         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6298         out of the register cache, instead of passing a pointer into
6299         the register cache directly to ptrace.  Use regcache_collect
6300         insteaad of read_register.
6301         (ops_prepare_to_store): Use target_read_registers instead
6302         of read_register_bytes.
6303
6304 2002-07-20  Aidan Skinner <aidan@velvet.net>
6305
6306         * MAINTAINERS: Add self under write after approval. 
6307                 
6308 2002-07-20  Aidan Skinner <aidan@velvet.net>
6309
6310         * ada-tasks.c: Change k&r style function definitions to prototyped
6311         form.
6312                 
6313 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6314
6315         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6316         * x86-64-tdep.c: Include "objfiles.h".
6317         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6318         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6319
6320 2002-07-17  Michal Ludvig  <michal@suse.cz>
6321
6322         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6323         (update_context): Initialise cfa variable.
6324
6325 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6326
6327         * aix-thread.c: Shorten some long lines.  
6328         Bring comments into line with code spec.
6329
6330 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6331
6332         * infrun.c: Re-indent using gdb_indent.sh.
6333
6334 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6335
6336         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6337         Leave the indentation temporarily untouched, to minimize the diffs.
6338
6339 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6340
6341         * stabsread.c: Make os9k sections of the code obsolete,
6342         for real this time.
6343         * stabsread.h: Make os9k sections of the code obsolete.
6344
6345 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6346
6347         * linux-low.c (regsets_store_inferior_registers): Add free()
6348         at the end of a loop to prevent memory leak.
6349         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6350         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6351         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6352         line a comment.
6353         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6354
6355 2002-07-17  Jim Blandy  <jimb@redhat.com>
6356
6357         * macrocmd.c (info_macro_command): Remove newline from error
6358         message.
6359
6360 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6361
6362         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6363         (sh_gdbarch_init): Use it for sh-dsp.
6364
6365 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6366
6367         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6368         64-bit DWARF2 format.
6369
6370 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6371
6372         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6373         <sys/proc.h> when not available.
6374
6375 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6376
6377         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6378         * stabsread.c: Make os9k sections of the code obsolete.
6379         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6380         * config/i386/i386os9k.mt: Make file obsolete.
6381         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6382         (COMMON_OBS): Remove os9kread.o
6383         (SFILES): Remove os9kread.c.
6384         (os9kread.o, remote-os9k.o): Make target obsolete.
6385         * remote-os9k.c: Make file obsolete.
6386         * os9kread.c: Make file obsolete.
6387         * Makefile.in
6388
6389 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6390
6391         * NEWS: Mention that the FR30 has been made obsolete.
6392         * fr30-tdep.c: Make file obsolete.
6393         * config/fr30/tm-fr30.h: Ditto.
6394         * config/fr30/fr30.mt: Ditto.
6395         * configure.tgt: Make fr30-*-elf obsolete.
6396         * MAINTAINERS: Make fr30-elf obsolete.
6397
6398 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6399
6400         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6401         found is not inside a section.
6402
6403 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6404
6405         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6406         strerror().
6407         (pdc_realloc): Use xrealloc() instead of realloc().
6408
6409 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6410
6411         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6412         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6413         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6414         macros.
6415
6416 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6417
6418         * aix-thread.c (ptrace_check): Eliminate goto.
6419         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6420         problem.
6421
6422 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6423
6424         * aix-thread.c (gdbcmd.h): Include.
6425         (DEBUG, DBG, DBG2, dbg): Eliminate.
6426         (debug_aix_thread): New static global.
6427         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6428         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6429         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6430         invocations to DBG and DBG2 macros to test against
6431         ``debug_aix_thread'' and call fprintf_unfiltered().
6432         (_initialize_aix_thread): Add new command "set debug aix-thread".
6433
6434 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6435
6436         From Gerhard Tonn <TON@de.ibm.com>:
6437         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6438         instead of supply_register.
6439
6440 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6441
6442         * dwarf2cfi.c: Include "gdb_assert.h".
6443         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6444         non-NULL.
6445         (update_context): Do not use __func__.  Add missing ``break''.
6446         (update_context): Do not use __func__.
6447
6448 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6449
6450         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6451         and its setting.  Set gdbarch instruction printing functions
6452         directly.  For non-rs6000 case use new function
6453         gdb_print_insn_powerpc.
6454         (gdb_print_insn_powerpc): New function.
6455
6456 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6457
6458         * NEWS: Mention that the d30v has been marked obsolete.
6459         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6460         * configure.tgt: Mark d30v-*-* as obsolete.
6461         * d30v-tdep.c: Mark file as obsolete.
6462         * config/d30v/d30v.mt: Ditto.
6463         * config/d30v/tm-d30v.h: Ditto.
6464
6465 2002-07-13  Aidan Skinner <aidan@velvet.net>
6466
6467         * ada-tasks.c (add_task_entry): replace calls to
6468         malloc() with xmalloc
6469         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6470         
6471         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6472         ada_finish_decode_line_1, all_sals_for_line
6473         ada_breakpoint_rewrite): replace calls to free() with xfree()
6474                 
6475 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6476
6477         From Nicholas Duffek (with minor changes by Martin Hunt, 
6478         Louis Hamilton, and Kevin Buettner):
6479         * aix-thread.c: New file.
6480
6481 2002-07-12  Petr Sorfa <petrs@caldera.com>
6482
6483         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6484         complaint for invalid attribute class or form.
6485         (read_func_scope): DW_AT_frame_base
6486         better handling of DW_AT_block*.
6487         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6488         better handling of DW_AT_block*.
6489         (read_common_block): DW_AT_location
6490         better handling of DW_AT_block*.
6491         (read_partial_die): DW_AT_location better handling
6492         of DW_AT_block*.
6493         (new_symbol): DW_AT_external better handling of
6494         DW_AT_block*. Proper initialization of variable
6495         "addr".
6496         (attr_form_is_block): New function that returns true
6497         if the attribute's form is of DW_FORM_block*.
6498
6499 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6500
6501         * valops.c (find_method_list): Remove comment about
6502         removed STATIC_MEMFUNCP argument.
6503         (value_find_oload_method_list): Likewise.
6504
6505 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6506
6507         From Nicholas Duffek:
6508         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6509         target_new_objfile_hook.
6510
6511 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6512
6513         From Nicholas Duffek:
6514         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6515         csect.
6516
6517 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6518
6519         * MAINTAINERS: Mention --enable-sim-build-warnings.
6520         (m68hc11-elf): Disable sim build warnings.
6521         (m32r-elf): Mark as broken obsolete candidate.
6522         (x86_64-linux-gnu): Mark as buildable with -Werror.
6523         (arm-elf): Change -w to ``,'' which enables warnings but not
6524         -Werror.
6525
6526 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6527
6528         * bcache.h: Update copyright.
6529         (struct bstring, struct bcache): Move definition to "bcache.c".
6530         Replaced by opaque declaration.
6531         (bcache_xfree): Replace free_bcache.
6532         (bcache_xmalloc, bcache_memory_used): Declare.
6533         
6534         * bcache.c: Update copyright.
6535         (struct bstring, struct bcache): Moved to here from "bcache.h".
6536         Update comments.
6537         (bcache_xmalloc, bcache_memory_used): New functions.
6538         (bcache_xfree): Replace function free_bcache.
6539         
6540         * Makefile.in (objfiles.o): Add $(bcache_h).
6541         (objfiles_h): Remove $(bcache_h).
6542         (symfile.o): Add $(bcache_h).
6543
6544         * symmisc.c: Update copyright.
6545         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6546         (print_objfile_statistics): Use bcache_memory_used.
6547
6548         * symfile.c: Include "bcache.h".
6549         (reread_symbols): Use bcache_xfree.
6550         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6551         (add_psymbol_to_list): Pass psymbol_cache by value.
6552         (add_psymbol_with_dem_name_to_list): Ditto.
6553
6554         * objfiles.h: Update copyright.
6555         (struct bcache): Declare opaque.  Do not include "bcache.h".
6556         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6557         bcache'' pointers.
6558         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6559
6560         * objfiles.c: Include "bcache.h".  Update copyright.
6561         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6562         macro_cache.
6563         (free_objfile): Use bcache_xfree.
6564
6565 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6566
6567         * monitor.c (monitor_fetch_register): Make name a constant.
6568         (monitor_store_register): Same.
6569
6570 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6571
6572         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6573         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6574         (finish_block) For non-function blocks, hash the symbol table.  For
6575         function blocks, mark the symbol table as unhashed.
6576         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6577         (msymbol_hash_iw): Likewise.
6578         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6579         value.
6580         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6581         (lookup_minimal_symbol): Likewise for both.
6582         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6583         hashtable.
6584         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6585         (ALL_BLOCK_SYMBOLS): Update.
6586         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6587         (struct symbol): Add `hash_next' pointer.
6588         * symtab.c (lookup_block_symbol): Search using the hash table when
6589         possible.
6590         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6591         (search_symbols, find_addr_symbol): Likewise.
6592
6593         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6594         (read_dst_symtab): Likewise.
6595         * jv-lang.c (get_java_class_symtab): Likewise.
6596         * mdebugread.c: Include "gdb_assert.h".
6597         (shrink_block): Assert that the block being modified is not hashed.
6598         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6599         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6600         symbols.
6601         (dump_symtab): Recognize hashed blocks.
6602         * printcmd.c (print_frame_args):  Assert that function blocks do not
6603         have hashed symbol tables.
6604         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6605         (fill_in_ada_prototype, debug_print_block): Likewise.
6606         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6607
6608 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6609
6610         * stack.c (print_frame): Use result of frame_address_in_block()
6611         instead of fi->pc when evaluating symbols.
6612         (backtrace_command_1): Ditto.
6613
6614 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6615
6616         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6617         Make static.
6618
6619         * arm-tdep.c (arm_register_name): Make return type constant.
6620
6621 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6622
6623         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6624         prototype.
6625         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6626         * s390-tdep.c (s390_fp_regnum): Ditto.
6627         (s390_read_fp): Ditto.
6628         (s390_pop_frame): Ditto.
6629         (_initialize_s390_tdep): Ditto.
6630         * remote.c (get_remote_state): Ditto.
6631         * procfs.c (mappingflags): Ditto.
6632         * memattr.c (_initialize_mem): Ditto.
6633         * mcore-tdep.c (mcore_pop_frame): Ditto.
6634         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6635         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6636         * language.c (set_case_str): Ditto.
6637         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6638         * frv-tdep.c (new_variant): Ditto.
6639         (frv_stopped_data_address): Ditto.
6640         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6641         (context_alloc): Ditto.
6642         (frame_state_alloc): Ditto.
6643         (unwind_tmp_obstack_init): Ditto.
6644         (unwind_tmp_obstack_free): Ditto.
6645         (cfi_read_fp): Ditto.
6646         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6647         (cris_pop_frame): Ditto.
6648         * c-lang.c (scanning_macro_expansion): Ditto.
6649         (finished_macro_expansion): Ditto.
6650         (c_preprocess_and_parse): Ditto.
6651         * gdbarch.sh: Ditto.
6652         * gdbarch.h, gdbarch.c: Regenerate.
6653         * config/mn10200/tm-mn10200.h: Adjust indentation.
6654         * target.c: Adjust indentation.
6655         * symtab.h: Adjust indentation.
6656         * stabsread.h: Adjust indentation.
6657         * remote-es.c: Adjust indentation.
6658         * os9kread.c: Adjust indentation.
6659
6660 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6661         
6662         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6663         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6664
6665 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6666         
6667         * NEWS: Mention m68k, mcore multi-arching.  
6668         * MAINTAINERS: Change status of m68k, mcore to reflect
6669         multi-arching.
6670
6671 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6672
6673         * valops.c (find_overload_match): Free oload_syms.
6674
6675 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6676
6677         Define HAVE_SYS_PROC_H if sys/proc.h exists
6678         * configure.in: Add check for sys/proc.h
6679         * config.in: Regenerate.
6680         * configure: Regenerate.
6681
6682 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6683
6684         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6685         #if !GDB_MULTI_ARCH. 
6686
6687 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6688
6689         * config.in, configure: Regenerate.
6690
6691 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6692
6693         * dwarf2cfi.c: Include "gcore.h".
6694         (execute_stack_op): Fix implementation of the
6695         DW_OP_deref and DW_OP_deref_size operators by letting do their
6696         lookup in the target.
6697
6698 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6699
6700         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6701         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6702         tdep->sc_sp_offset.
6703
6704 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6705
6706         Fix PR gdb/595, gdb/602
6707         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6708         Don't call value_cast, just read the vtable pointer; update comments
6709         to match.
6710
6711 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6712
6713         * config/mcore/tm-mcore.h: Remove file.
6714         * config/mcore/mcore.mt: Remove definition of TM_FILE
6715         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6716
6717 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6718
6719         * i386bsd-tdep.c: Include "gdb_string.h".
6720
6721 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6722
6723         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6724         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6725         mcore-tdep.
6726         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6727         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6728         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6729         (RETVAL_REGNUM): Move macros from tm-mcore.h
6730         (mcore_reg_struct_has_addr): New function.
6731         (mcore_gdbarch_init): Added initializations for the macros removed
6732         from tm-mcore.h.
6733
6734 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6735
6736         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6737         traditonal string branding within the ELF header.
6738
6739 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6740
6741         * symtab.c (remove_params): New function.
6742         (make_symbol_overload_list): Use it instead of cplus_demangle.
6743         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
6744
6745 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6746
6747         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6748
6749         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6750         New variables.
6751         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6752         and tdep->sigtramp_end.
6753         * i386obsd-nat.c: New file.
6754         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6755
6756         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6757         Don't call get_current_frame().
6758
6759 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6760
6761         * i386-nat.c (child_post_startup_inferior): New function
6762         calling i386_cleanup_dregs if
6763         I386_USE_GENERIC_WATCHPOINTS is defined.
6764         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6765         conditional to acknowledge that i386-nat.c has its
6766         own child_post_startup_inferior function.
6767
6768 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6769
6770         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6771         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6772         instead of MAX_REGISTER_RAW_SIZE.
6773         (i386_extract_return_value, i386_extract_struct_value_address):
6774         Convert to use regcache.
6775         (i386_gdbarch_init): Set max_register_raw_size and
6776         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6777         Set extract_return_value and extract_struct_value_address instead
6778         of their deprecated variants.
6779
6780         Convert i386 target to generic dummy frames.
6781         * i386-tdep.c: Include "symfile.h".
6782         (i386_frameless_signal_p): Consider a function to be frameless if
6783         the pc points at the first instruction of the function.
6784         (i386_frame_chain): Handle (generic) call dummies.
6785         (i386_frame_saved_pc): Likewise.
6786         (i386_frame_init_saved_regs): Remove code dealing with call
6787         dummies on the stack.
6788         (i386_push_dummy_frame): Removed.
6789         (i386_call_dummy_words): Removed.
6790         (i386_fix_call_dummy): Removed.
6791         (i386_push_return_address): New function.
6792         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
6793         parameter, and don't call get_current_frame.
6794         (i386_pop_frame): New function.
6795         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6796         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6797         entry_point_address, set call_dummy_breakpoint_offset to 0, set
6798         call_dummy_length to 0, set call_dummy_words to NULL, set
6799         sizeof_call_dummy_words to 0, set fix_call_dummy to
6800         generic_fix_call_dummy, set pc_in_call_dummy to
6801         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6802         generic_push_dummy_frame, set push_return_address to
6803         i386_push_return_address and set frame_chain_valid to
6804         generic_file_frame_chain_valid.
6805
6806 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6807
6808         * gdbarch.sh (struct regcache): Add opaque declaration.
6809         (EXTRACT_RETURN_VALUE): New architecture method.
6810         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6811         * gdbarch.h, gdbarch.c: Regenerate.
6812         * arch-utils.c (legacy_extract_return_value): New function.
6813         * arch-utils.h (legacy_extract_return_value): Declare.
6814         * values.c (value_being_returned): Re-enable code handling
6815         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
6816         deprecated_grub_regcache_for_registers call to block handling
6817         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6818         (EXTRACT_RETURN_VALUE): Do not define.
6819
6820 2002-07-03  Grace Sainsbury  <graces@redhat.com>
6821
6822         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6823         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6824         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6825         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6826         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6827         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6828         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6829         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6830         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6831         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6832         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6833         argument so the function fits the prototype in the architecture
6834         vector.
6835         (mcore_pop_frame): Remove argument so the function fits the
6836         prototype. Use get_current_frame instead of the argument.
6837         (mcore_push_arguments): Change type of struct_return so the
6838         function can be used in the architecture vector.
6839         (mcore_store_struct_return): Add.
6840         (mcore_frame_init_saved_regs): Add.
6841         (mcore_gdbarch_init): Add function calls to replace the macros
6842         removed from tm-mcore.h
6843
6844 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6845
6846         * infcmd.c (print_return_value): Remove compatibility code calling
6847         deprecated_grub_regcache_for_registers.
6848         
6849         * values.c: Include "regcache.h".
6850         (value_being_returned): Update.  Use
6851         deprecated_grub_regcache_for_registers to extract the register
6852         buffer address.  
6853         * value.h (value_being_returned): Change ``retbuf'' parameter to a
6854         ``struct regcache''.
6855         * Makefile.in (values.o): Add dependency on $(regcache_h).
6856
6857         * inferior.h (run_stack_dummy): Change type of second parameter to
6858         a ``struct regcache''.
6859         * valops.c (hand_function_call): Change type of retbuf to ``struct
6860         regcache''.  Allocate using regcache_xmalloc, clean using
6861         make_cleanup_regcache_xfree.
6862         * infcmd.c (run_stack_dummy): Update.  Use
6863         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6864
6865         * regcache.c (do_regcache_xfree): New function.
6866         (make_cleanup_regcache_xfree): New function.
6867         * regcache.h (make_cleanup_regcache_xfree): Declare.
6868
6869 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6870
6871         * event-top.c (command_line_handler): Don't read past
6872         beginning of buffer.
6873
6874 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6875         
6876         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
6877         struct frame_id. 
6878         (varobj_create): Store frame_id for root.
6879         (varobj_gen_name): Use xasprintf.
6880         (varobj_update): Save and restore frame using get_frame_id() and
6881         frame_find_by_id().
6882         (create_child): Use xasprintf.
6883         (new_root_variable): Initialize frame_id.
6884         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6885         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6886         to prevent memory leak.
6887
6888 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6889
6890         * valops.c (hand_function_call): Move declaration of retbuf to
6891         start of function, allocate using malloc, add a cleanup but before
6892         the inf_status cleanup, cleanup the buffer.  Rename local variable
6893         old_chain to inf_status_cleanup.
6894
6895 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6896
6897         * top.c (execute_command): Use cmd_func() and cmd_func_p().
6898
6899         * cli/cli-decode.c (cmd_func_p): New function.
6900         (cmd_func): New function.
6901
6902         * command.h: Add cmd_func() and cmd_func_p().   
6903         
6904 2002-07-03  Grace Sainsbury  <graces@redhat.com>
6905
6906         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6907         (REGISTER_SIZE): Remove.
6908         (MAX_REGISTER_RAW_SIZE): Remove.
6909         (REGISTER_VIRTUAL_TYPE): Remove.
6910         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6911         (REGISTER_NAME): Remove.
6912         (USE_GENERIC_DUMMY_FRAMES): Remove.
6913         (CALL_DUMMY): Remove.
6914         (CALL_DUMMY_START_OFFSET): Remove.
6915         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6916         (CALL_DUMMY_LOCATION): Remove.
6917         (FIX_CALL_DUMMY): Remove.
6918         (CALL_DUMMY_ADDRESS): Remove.
6919         (SIZEOF_CALL_DUMMY_WORDS): Remove.
6920         (SAVE_DUMMY_FRAME_TOS): Remove.
6921         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6922         (mcore_register_virtual_type): New function.
6923         (mcore_register_byte): New function.
6924         (mcore_register_size): New function.
6925         (mcore_register_name): New function.
6926         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6927         macros removed from tm-mcore.h.
6928         (mcore_dump_tdep): Add.
6929         (_initialize_mcore_tdep): Add gdbarch_register call.
6930
6931 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
6932
6933         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6934         frameless_look_for_prologue, such that we actually call this
6935         function.
6936
6937 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
6938
6939         * frame.h (frame_address_in_block): New function.
6940
6941         * blockframe.c (frame_address_in_block): New function extracted
6942         from get_frame_block().
6943         (get_frame_block): Use frame_address_in_block().
6944         (block_innermost_frame): Use frame_address_in_block() to match
6945         the frame pc address against the block boundaries rather than
6946         the frame pc directly. This prevents a failure when a frame pc
6947         is actually a return-address pointing immediately after the end
6948         of the given block. 
6949
6950 2002-07-02  Grace Sainsbury  <graces@redhat.com>
6951
6952         * MAINTAINERS: Add self under write after approval. 
6953
6954 2002-07-02  Grace Sainsbury  <graces@redhat.com>
6955
6956         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6957         used in architecture vector. The default is
6958         m68k_local_breakpoint_from_pc.
6959         (m68k_local_breakpoint_from_pc): Add.
6960         (enum): Add register numbers from tm-m68k.h.
6961         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6962         vector.  
6963         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6964         GDB_MULTI_ARCH_PARTIAL.
6965         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6966         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6967         m68k-tdep.c.
6968         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6969         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6970         to enum in m68k-tdep.c
6971
6972 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
6973
6974         * solib-osf.c (open_map): Compute the list of shared libraries
6975         loaded by the inferior, rather than the list of libraries loaded
6976         by GDB itself.  Otherwise, GDB ends up reading the symbols from
6977         the wrong shared libraries...
6978
6979 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
6980
6981         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6982         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6983         macros.
6984         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6985         Remove functions.
6986         (FRAMELESS_SIGNAL): Remove function.
6987         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6988         i386_linux_saved_pc_after_call): Removed.
6989         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6990         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
6991         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6992
6993         * i386-tdep.c (i386_frameless_signal_p): New function.
6994         (i386_frame_chain): Deal with frameless signals.
6995         (i386_sigtramp_saved_sp): New function.
6996         (i386_frame_saved_pc): Deal with frameless signals.
6997         (i386_saved_pc_after_call): Make sure the correct value is
6998         returned just after entry into a sigtramp.
6999         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7000         i386fbsd4_sc_sp_offset): New variables.
7001         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7002         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7003         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7004         similiar to what we already did for sc_pc_offset.
7005         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7006         tdep->sc_sp_offset.
7007
7008         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7009
7010 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7011
7012         * config/i386/tm-x86-64linux.h: New.
7013         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7014         definitions.
7015         * config/i386/nm-x86-64.h: Rename to ...
7016         * config/i386/nm-x86-64linux.h: ... this one.
7017         * config/i386/x86-64linux.mh: Reflect the above change.
7018         
7019 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7020
7021         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7022         with sigcontext_addr.  Add sc_sp_offset.
7023         (i386bsd_sigtramp_saved_pc): Remove prototype.
7024         (i386bsd_sicontext_addr): Add prototype.
7025         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7026         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7027         (i386_svr4_sigtramp_saved_pc): Removed.
7028         (i386_svr4_sigcontext_addr): New function.
7029         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7030         Initialize tdep->sigcontext_addr instead.  Initialize
7031         tdep->sc_pc_offset and tdep->sc_sp_offset.
7032         (i386_gdbarch_init): Likewise.
7033         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7034         any more.
7035         (i386bsd_sigtramp_saved_pc): Remove function.
7036         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7037         Initialize tdep->sigcontext_addr instead.  Initialize
7038         tdep->sc_pc_offset.
7039         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7040         of tdep->sigtramp_saved_pc.
7041         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7042         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7043         instead.
7044
7045         * i386-tdep.c (i386_frameless_function_invocation,
7046         i386_frame_num_args, i386_frame_init_saved_regs,
7047         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7048         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7049         i386_extract_return_value, i386_store_return_value,
7050         i386_extract_struct_value_address, i386_register_virtual_type,
7051         i386_register_convertible, i386_register_convert_to_virtual,
7052         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7053         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7054         static.
7055
7056 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7057
7058         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7059
7060         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7061         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7062         this macro.  Include "value.h".
7063
7064 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7065
7066         * ada-exp.tab.c: remove as it's a generated file
7067         * ada-lex.c: remove as it's a generated file
7068                 
7069 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7070
7071         * config/i386/tm-i386.h (struct frame_info, struct
7072         frame_saved_regs, struct value, struct type): Remove forward
7073         declarations.
7074
7075         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7076         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7077         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7078         (FILL_FPXREGSET): Define.
7079
7080         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7081
7082         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7083         i[3456]86-*-netbsd* case.
7084         * config/i386/tm-obsd.h: Removed.
7085         * config/i386/obsd.mt: Removed.
7086         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7087         core-aout.o.
7088         (MH_CFLAGS): Add -DYYDEBUG=0.
7089
7090         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7091         i386nbsd_sc_pc_offset on OpenBSD too.
7092
7093         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7094         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7095         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7096         define.
7097         * i386bsd-tdep.c: Include "arch-utils.h".
7098         (i386bsd_aout_in_solib_call_trampoline): New function.
7099         (i386bsd_init_abi): Set in_solib_call_trampoline to
7100         i386bsd_aout_in_solib_call_trampoline.
7101         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7102         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7103
7104 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7105
7106         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7107         (struct obstack, struct bcache): Add opaque declarations.
7108         * Makefile.in (macrotab_h): Update
7109
7110 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7111
7112         * blockframe.c (generic_find_dummy_frame): Change return type to
7113         ``struct regcache''.
7114         (struct dummy_frame): Replace field ``registers'' with regcache, a
7115         struct regcache object.
7116         (generic_find_dummy_frame): Update.
7117         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7118         regcache_xmalloc and regcache_cpy.
7119         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7120         regcache_xfree.
7121         (deprecated_generic_find_dummy_frame): Update.
7122         (generic_read_register_dummy): Update.  Use
7123         regcache_read_as_address.
7124         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7125         (generic_get_saved_register): Update.  Use regcache_read.
7126
7127 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7128
7129         * Makefile.in (objfiles_h): Add $(bcache_h).
7130         * objfiles.h: Include "bcache.h".
7131
7132         * Makefile.in (symtab_h): Remove $(bcache_h).
7133         * symtab.h: Do not include "bcache.h".
7134
7135 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7136
7137         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7138         generic_func_frame_chain_valid.
7139
7140 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7141
7142         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7143         * config/i386/tm-fbsd.h: Likewise.
7144
7145 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7146
7147         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7148         generic_unwind_get_saved_register.
7149
7150 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7151
7152         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7153         * regcache.c (supply_register): Add missing argument to
7154         register_buffer call.
7155
7156 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7157
7158         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7159         Solaris /bin/grep does not not like it.  From Peter Schauer.
7160
7161 2002-06-26  Tom Tromey  <tromey@redhat.com>
7162
7163         * command.h (add_setshow_cmd): Declare.
7164         (add_setshow_cmd_full): Declare.
7165         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7166         returns void.  Use add_setshow_cmd_full.
7167         (add_setshow_cmd_full): New function.
7168         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7169         (add_setshow_boolean_cmd): Likewise.
7170
7171 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7172
7173         * config/vax/tm-vax.h: Protect from multiple inclusion.
7174         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7175         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7176         * config/vax/tm-vaxbsd.h: ...here.  New file.
7177         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7178
7179 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7180
7181         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7182         (BELIEVE_PCC_PROMOTION): Remove.
7183         (AP_REGNUM): Move to...
7184         * config/vax/nm-vax.h: ...here.
7185         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7186         (vax_breakpoint_from_pc): New function.
7187         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7188         and gdbarch_believe_pcc_promotion.
7189
7190 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7191
7192         * Makefile.in (vax_tdep_h): Define.  
7193         (vax-tdep.o): Use $(vax_tdep_h).
7194         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7195         (vax_dump_tdep): New function. 
7196         (_initialize_vax_tdep): Register vax_dump_tdep.
7197         * vax-tdep.h: Include osabi.h.     
7198         (struct gdbarch_tdep): New. 
7199
7200 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7201
7202         * frame.h (deprecated_generic_find_dummy_frame): Rename
7203         generic_find_dummy_frame.
7204         * blockframe.c (generic_find_dummy_frame): Make static.
7205         (deprecated_generic_find_dummy_frame): New function.
7206         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7207         generic_find_dummy_frame with deprecated_find_dummy_frame.
7208         (sh64_nofp_frame_init_saved_regs): Ditto.
7209         (sh_fp_frame_init_saved_regs): Ditto.
7210         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7211         (s390_frame_chain): Ditto.
7212         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7213
7214 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7215
7216         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7217         gdbarch vector are at the top.
7218         (NUM_REGS): Remove.
7219         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7220         (FRAME_ARGS_ADDRESS): Remove.
7221         (FRAME_LOCALS_ADDRESS): Remove.
7222         (FRAME_NUM_ARGS): Remove.
7223         (FRAME_ARGS_SKIP): Remove.  
7224         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7225         (m68k_gdbarch_init): Add gdbarch initializations for macros
7226         undefined in tm-m68k.h
7227
7228 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7229
7230         * monitor.h: Add the function regname to monitor_ops
7231         structure. This way NUM_REGS does not have to be a constant.
7232         * monitor.c (monitor_fetch_register): Added support for regname
7233         function. The function is called if the array regnames is NULL.
7234         (monitor_store_register): Same.
7235         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7236         regnames array.
7237         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7238         cpu32bug_cmds.regname to point to new function.
7239         * abug-rom.c (abug_regname): Same as above.
7240         (init_abug_cmds): Same.
7241         * dbug-rom.c (dbug_regname): Same as above.
7242         (init_dbug_cmds): Same.
7243         * remote-est.c (est_regname): Same. 
7244         (init_est_cmds): Same.
7245         * rom68k-rom.c (rom68k_regname): Same. 
7246         (init_rom68k_cmds): Same.
7247
7248 2002-06-25  Tom Tromey  <tromey@redhat.com>
7249
7250         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7251
7252 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7253
7254         * infrun.c (stop_registers): Change variable's type to ``struct
7255         regcache'''.
7256         (xmalloc_inferior_status): Delete function.
7257         (free_inferior_status): Delete function.
7258         (normal_stop): Use regcache_cpy.
7259         (struct inferior_status): Change type of fields ``stop_registers''
7260         and ``registers'' to ``struct regcache''.
7261         (write_inferior_status_register): Use regcache_write.
7262         (save_inferior_status): Instead of calling
7263         xmalloc_inferior_status, allocate the inf_status buffer directly.
7264         Use regcache_dup_no_passthrough and regcache_dup to save the
7265         buffers.
7266         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7267         Replace the stop_registers regcache instead of overriding it.  Use
7268         regcache_xfree.  Instead of calling free_inferior_status, xfree
7269         the buffer directly.
7270         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7271         free_inferior_status, xfree the buffer directly.
7272         (build_infrun): Use regcache_xmalloc.
7273         (_initialize_infrun): Delete redundant call to build_infrun.
7274
7275         * Makefile.in (infcmd.o): Add $(regcache_h).
7276
7277         * infcmd.c: Include "regcache.h".
7278         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7279         obtain the address of `stop_registers' register buffer.
7280         (print_return_value): Ditto.
7281
7282         * inferior.h (struct regcache): Add opaque declaration.
7283         (stop_registers): Change variable's declared type to ``struct
7284         regcache''.
7285
7286 2002-06-24  Tom Tromey  <tromey@redhat.com>
7287
7288         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7289         * target.c (initialize_targets): Fixed typo in
7290         trust-readonly-sections `show' documentation.
7291
7292         * main.c: Marked all strings with _().
7293
7294 2002-06-24  Don Howard  <dhoward@redhat.com>
7295
7296         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7297         that means max CORE_ADDR+1.
7298         (lookup_mem_region): Ditto.
7299         (mem_info_command): Ditto.
7300
7301 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7302
7303         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7304         (REGISTER_BYTES_OK): Remove.
7305         (REGISTER_BYTES): Remove.
7306         (STORE_STRUCT_RETURN): Remove.
7307         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7308         (STORE_RETURN_VALUE): Remove.
7309         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7310         (FRAME_CHAIN): Remove.
7311         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7312         (FRAME_SAVED_PC): Remove.  
7313         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7314         (m68k_store_struct_return): Add.
7315         (m68k_deprecated_extract_return_value): Add.
7316         (m68k_deprecated_extract_struct_value_address): Add.
7317         (m68k_store_return_value): Add.
7318         (m68k_frame_chain): Add.
7319         (m68k_frameless_function_invocation): Add.
7320         (m68k_frame_saved_pc): Add.
7321         (m68k_gdbarch_init): added set_gdbarch calls for new 
7322         functions and deleted macros.
7323
7324 2002-06-23  Tom Tromey  <tromey@redhat.com>
7325
7326         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7327         (ALLDEPFILES): Likewise.
7328         (udiheaders): Removed.
7329         (udip2soc.o): Likewise.
7330         (udi2go32.o): Likewise.
7331         (udr.o): Likewise.
7332         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7333
7334 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7335
7336         * infrun.c (_initialize_infrun): Delete unnecessary call to
7337         build_infrun.
7338
7339         * regcache.h: Update comments describing the regcache_cpy family
7340         of functions.
7341         (regcache_save, regcache_restore): Delete declaration.
7342         (regcache_save_no_passthrough): Delete declaration.
7343         (regcache_restore_no_passthrough): Delete declaration.
7344         * regcache.c (regcache_save): Delete function.
7345         (regcache_save_no_passthrough): Delete function.
7346         (regcache_restore): Delete function.
7347         (regcache_restore_no_passthrough): Delete function.
7348
7349 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7350
7351         * config/m68k/tm-m68k.h: Fix typo.
7352         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7353         (m68k_frame_init_saved_regs): Declare.
7354
7355 2002-06-21  Jim Blandy  <jimb@redhat.com>
7356
7357         Remove some vestiges of Harris 88k support.
7358         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7359         register numbering quirk.
7360         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7361         odd symbols occurring in Harris 88k ELF targets.
7362
7363 2002-06-21  Tom Tromey  <tromey@redhat.com>
7364
7365         * gdb_locale.h: New file.
7366         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7367         (defs_h): Added gdb_locale.h.
7368         * configure, config.in: Rebuilt.
7369         * configure.in (PACKAGE): Define.
7370         * defs.h: Include gdb_locale.h.
7371         * main.c (captured_main): Call setlocale, bindtextdomain,
7372         textdomain.
7373
7374 2002-06-21  Dave Brolley  <brolley@redhat.com>
7375
7376         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7377         * config/frv/frv.mt: New file.
7378         * config/frv/tm-frv.h: New file.
7379         * configure.tgt: Support frv-*-*.
7380         * Makefile.in (frv-tdep.o): New target.
7381         * frv-tdep.c: New file.
7382         * NEWS: Mention frv.
7383
7384 2002-06-21  Dave Brolley  <brolley@redhat.com>
7385
7386         * MAINTAINERS: Add self to "Write After Approval" list.
7387
7388 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7389
7390         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7391         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7392         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7393         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7394         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7395
7396         * m68k-tdep.c: Include arch-utils.h
7397         (m68k_register_raw_size): Add.
7398         (m68k_register_virtual_size): Add.
7399         (m68k_register_virtual_type): Add.
7400         (m68k_register_name): Add.
7401         (m68k_stack_align): Add.
7402         (m68k_register_byte): Add.
7403         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7404         tm-m68k.h.
7405
7406 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7407
7408         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7409         m68k_find_saved_regs.
7410         (m68k_pop_frame): Removed saved_regs structure, and replaced
7411         references to it with frame->saved_regs.
7412         (m68k_gdbarch_init): Added function calls to initialize the
7413         gdbarch structure.
7414         (m68k_fix_call_dummy): Add. 
7415         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7416         (CALL_DUMMY): Remove.
7417         (CALL_DUMMY_LENGTH): Remove.
7418         (CALL_DUMMY_START_OFFSET): Remove.
7419         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7420         (FIX_CALL_DUMMY): Remove.
7421         (PUSH_DUMMY_FRAME): Remove.
7422         (POP_FRAME): Remove.
7423
7424 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7425
7426         * parse.c (parse_fprintf): New function used to avoid calls to
7427         fprintf in bison parser generated debug code.
7428         * parser-defs.h: Declaration of new parse_fprintf function.
7429         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7430         Set YYDEBUG to 1 by default.
7431         Set YYFPRINTF as parse_fprintf.
7432
7433 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7434
7435         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7436         encoding anymore.
7437         (pointer_encoding, enum ptr_encoding): New.
7438         (execute_cfa_program): Take care about pointer encoding.        
7439         (dwarf2_build_frame_info): Only call parse_frame_info for 
7440         .debug_frame and .eh_frame.
7441         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7442         fixed augmentation handling, added relative addressing, 
7443         ignore duplicate FDEs. Added comments.
7444         * dwarf2cfi.c: Reindented.
7445         
7446 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7447
7448         * event-top.c (command_handler): Don't use space_at_cmd_start
7449         unless there is sbrk() on the host. Assign time and space data
7450         to union fields of the appropriate length.
7451
7452 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7453
7454         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7455         x86_64_register_name. Return type changed to 'const char *'.
7456         (x86_64_register_name2nr): Rename to x86_64_register_number.
7457         (x86_64_gdbarch_init): Update to reflect the change.
7458         * x86-64-tdep.h: Ditto.
7459         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7460         (supply_fpregset): Ditto.
7461
7462 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7463
7464         * regcache.h: Update copyright.
7465         (struct regcache, struct gdbarch): Add opaque declarations.
7466         (current_regcache): Declare global variable.
7467         (regcache_read, regcache_write): Add gdbarch parameter.
7468         (regcache_save, regcache_save_no_passthrough)
7469         (regcache_restore, regcache_restore_no_passthrough)
7470         (regcache_dup, regcache_dup_no_passthrough)
7471         (regcache_cpy, regcache_cpy_no_passthrough)
7472         (deprecated_grub_regcache_for_registers)
7473         (deprecated_grub_regcache_for_register_valid)
7474         (regcache_valid_p): Add function declarations.
7475         
7476         * regcache.c: Update copyright.
7477         (regcache_descr_handle): New global variable.
7478         (struct regcache_descr): Define.
7479         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7480         (regcache_descr, xfree_regcache_descr): New functions.
7481         (struct regcache): Define.
7482         (regcache_xmalloc, regcache_xfree): New functions.
7483         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7484         (regcache_dup, regcache_dup_no_passthrough): New functions.
7485         (regcache_valid_p, regcache_read_as_address): New functions.
7486         (deprecated_grub_regcache_for_registers): New function.
7487         (deprecated_grub_regcache_for_register_valid): New function.
7488         (current_regcache): New global variable.
7489         (register_buffer): Add regcache parameter.  Update calls.
7490         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7491         (read_register_gen, write_register_gen): Update register_buffer
7492         call.  Test for legacy_p instead of gdbarch_register_read_p or
7493         gdbarch_register_write_p.
7494         (regcache_collect): Update register_buffer call.
7495         (build_regcache): Rewrite.  Use deprecated grub functions.
7496         (regcache_save, regcache_save_no_passthrough): New functions.
7497         (regcache_restore, regcache_restore_no_passthrough): New
7498         functions.
7499         (_initialize_regcache): Create the regcache_data_handle. Swap
7500         current_regcache global variable.
7501         
7502         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7503         parameter to regcache_read and regcache_write calls.
7504         (sh4_register_read): Ditto.
7505         (sh64_pseudo_register_read): Ditto.
7506         (sh64_register_read): Ditto.
7507         (sh_pseudo_register_write): Ditto.
7508         (sh4_register_write): Ditto.
7509         (sh64_pseudo_register_write): Ditto.
7510         (sh64_register_write): Ditto.
7511
7512         * defs.h (XCALLOC): Define.
7513
7514 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7515
7516         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7517         * m68k-tdep.c (m68k_gdbarch_init): Added.
7518         (m68k_dump_tdep): Added.
7519
7520 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7521
7522         * ada-lang.c (fill_in_ada_prototype): Update comment.
7523
7524 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7525
7526         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7527         MIPS_ABI_LAST.
7528         (mips_abi_string, mips_abi_strings): New.
7529         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7530         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7531         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7532         O32 if no ABI is found.
7533         (mips_dump_tdep): Use mips_abi_strings.
7534         (mips_abi_update): New function.
7535         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7536         ``set mips abi'' and ``show mips abi''.  Check the size of
7537         mips_abi_strings.
7538
7539 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7540
7541         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7542         constant.
7543
7544 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7545
7546         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7547         current frame using only the first stack size adjustment. All
7548         subsequent size adjustments are not considered to be part of
7549         the "static" part of the current frame.
7550         Compute the address of the saved registers relative to the
7551         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7552         in use in this frame.
7553
7554 2002-06-18  Don Howard  <dhoward@redhat.com>
7555  
7556         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7557         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7558         suggesting this solution.
7559
7560 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7561
7562         * config/romp/xm-rtbsd.h: Delete file.
7563         * config/romp/rtbsd.mh: Delete file.
7564
7565 2002-06-18  Keith Seitz  <keiths@redhat.com>
7566
7567         * breakpoint.c (condition_command): Post breakpoint_modify
7568         when a condition is added to an existing breakpoint.
7569         (commands_command): Likewise for commands.
7570         (set_ignore_count): Likewise for ignore counts.
7571         If no tty, do not simply return, still need to send event
7572         notification.
7573         (ignore_command): Only print a newline if the command came
7574         from a tty.
7575         Don't call breakpoints_changed, since this is now properly
7576         handled by set_ignore_count.
7577
7578 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7579
7580         * MAINTAINERS: Note that cris-elf target can be compiled with
7581         -Werror.
7582         * cris-tdep.c (cris_register_name): Make return type constant.
7583         (cris_breakpoint_from_pc): Ditto.
7584
7585 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7586
7587         * frame.h (struct frame_info): Change type of context to 
7588         'struct context'.
7589
7590 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7591
7592         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7593         pointer.
7594         * gdbarch.h, gdbarch.c: Regenerate.
7595         * config/mips/tm-mips.h (mips_register_name): Update.
7596         * i386-tdep.h (i386_register_name): Update.
7597         * mips-tdep.c (mips_register_name): Update
7598         * alpha-tdep.c (alpha_register_name): Update.
7599         * arch-utils.c (legacy_register_name): Update.
7600         * arch-utils.h (legacy_register_name): Update.
7601         * avr-tdep.c (avr_register_name): Update.
7602         * ia64-tdep.c (ia64_register_name): Update.
7603         * i386-tdep.c (i386_register_name): Update.
7604         * sparc-tdep.c (sparc32_register_name): Update.
7605         (sparc64_register_name): Update.
7606         (sparclite_register_name): Update.
7607         (sparclet_register_name): Update.
7608         * sh-tdep.c (sh_generic_register_name): Update.
7609         (sh_sh_register_name): Update.
7610         (sh_sh3_register_name): Update.
7611         (sh_sh3e_register_name): Update.
7612         (sh_sh_dsp_register_name): Update.
7613         (sh_sh3_dsp_register_name): Update.
7614         (sh_sh4_register_name): Update.
7615         (sh_sh64_register_name): Update.
7616         * s390-tdep.c (s390_register_name): Update.
7617         * rs6000-tdep.c (rs6000_register_name): Update.
7618         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7619         (ns32k_register_name_32382): Update.
7620         * d10v-tdep.c (d10v_ts2_register_name): Update.
7621         (d10v_ts3_register_name): Update.
7622         * xstormy16-tdep.c (xstormy16_register_name): Update.
7623         * vax-tdep.c (vax_register_name): Update.
7624         * v850-tdep.c (v850_register_name): Update.
7625         * m68hc11-tdep.c (m68hc11_register_name): Update.
7626         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7627         (am33_register_name): Update.
7628
7629 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7630
7631         * m68k-tdep.c: Reindented.
7632
7633 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7634
7635         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7636         list of predefined types.
7637
7638 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7639
7640         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7641         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7642         REGISTER_CONVERT_TO_RAW): Remove defines.
7643         (i386_register_virtual_type, i386_register_convertible,
7644         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7645         Remove prototypes.
7646         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7647         macros mentioned above.
7648
7649         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7650         (i386lynx_saved_pc_after_call): Remove prototype.
7651         * i386ly-tdep.c: Include "i386-tdep.h".
7652         (i386lynx_saved_pc_after_call): Make static.  Use
7653         read_memory_nobpt instead of read_memory.  Use
7654         read_memory_unsigned_integer instead of read_memory_integer.
7655         (i386lynx_init_abi): New function.
7656         (i386lynx_coff_osabi_sniffer): New function.
7657         (_initialize_i386bsd_tdep): New function.
7658
7659         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7660         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7661         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7662         (i386_fix_call_dummy): Remove prototype.
7663         * i386-tdep.c (i386_call_dummy_words): New variable.
7664         (i386_gdbarch_init): Adjust for removal of the
7665         macros mentioned above.
7666
7667 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7668
7669         * command.h (add_setshow_auto_boolean_cmd): Replace
7670         add_set_auto_boolean_cmd.
7671         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7672         add_set_auto_boolean_cmd.
7673         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7674         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7675         mask-address'' command.
7676         (show_mask_address): Add cmd parameter.
7677         * remote.c (add_packet_config_cmd): Update.  Change type of
7678         set_func and show_func to cmd_sfunc_ftype.
7679         (_initialize_remote): Update `set remote Z-packet'
7680         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7681         (show_remote_protocol_e_packet_cmd): Ditto.
7682         (show_remote_protocol_E_packet_cmd): Ditto.
7683         (show_remote_protocol_P_packet_cmd): Ditto.
7684         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7685         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7686         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7687         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7688         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7689         (show_remote_protocol_Z_packet_cmd): Ditto.
7690         (show_remote_protocol_binary_download_cmd): Ditto.
7691         (show_remote_cmd): Pass NULL to all of above.
7692
7693 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7694
7695         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7696         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7697         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7698         POP_FRAME): Remove defines.
7699         (i386_push_arguments, i386_store_struct_return,
7700         i386_extract_return_value, i386_store_return_value,
7701         i386_extract_struct_value_address, i386_push_dummy_frame,
7702         i386_pop_frame): Renove prototypes.
7703         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7704         macros mentioned above.
7705
7706 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7707
7708         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7709         add_set_boolean_cmd.
7710         (add_setshow_cmd): New function.
7711         * command.h (add_setshow_boolean_cmd): Replace
7712         add_set_boolean_cmd.
7713         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7714         and ``set rdiromatzero''.
7715         * maint.c (_initialize_maint_cmds): Update commented out code.
7716         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7717         * target.c (initialize_targets): Update `set
7718         trust-readonly-sections'.
7719         * remote.c (_initialize_remote): Update `set remotebreak'.
7720
7721 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7722
7723         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7724         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7725         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7726         fit into multi-arch framework.
7727         (i386_breakpoint_from_pc): New function.
7728         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7729         above.
7730
7731         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7732         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7733         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7734         (i386_frameless_function_invocation, i386_frame_num_args,
7735         i386_frame_init_saved_regs): Remove prototypes.
7736         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7737         macros mentioned above.
7738
7739 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7740
7741         * cli/cli-decode.c (set_cmd_cfunc): Update.
7742         (set_cmd_sfunc): Update.
7743         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7744         (set_cmd_sfunc, set_cmd_cfunc): Update.
7745         * cli/cli-decode.h: Update.
7746
7747 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7748
7749         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7750         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7751
7752 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7753
7754         * defs.h (auto_boolean): Declare enum.
7755         * command.h (cmd_auto_boolean): Delete enum.
7756         * mips-tdep.c (mask_address_var): Update.
7757         (mips_mask_address_p): Update.
7758         (show_mask_address): Update.
7759         * remote.c (struct packet_config): Update.
7760         (update_packet_config): Update.
7761         (show_packet_config_cmd): Update.
7762         (packet_ok): Update.
7763         (add_packet_config_cmd): Update.
7764         (_initialize_remote): 
7765         * command.h: Update.
7766         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7767         (do_setshow_command): Update.
7768         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7769         * cli/cli-decode.h: Update.
7770
7771 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7772
7773         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7774         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7775         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7776         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7777         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7778         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7779
7780         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7781         list of DJGPP COFF targets.
7782
7783         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7784         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7785         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7786         (FP0_REGNUM): Remove define.
7787         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7788         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7789         (i386_register_virtual_size): Remove protoype.
7790         * i386-tdep.c (i386_register_virtual_size): Removed.
7791         (i386_extract_return_value, i386_store_return_value): Use
7792         FP0_REGNUM instead of NUM_FREGS to determine whether the
7793         floating-point registers are available.
7794         (i386_gdbarch_init): Tweak FIXME about FPU registers.
7795         Adjust for removal of macros mentioned above.
7796
7797 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7798
7799         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
7800         comments.
7801         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7802         Remove prototypes.
7803         (supply_gregset, fill_gregset): Remove use of register keyword and
7804         remove declaration for regmap.  Use I386_NUM_GREGS instead of
7805         NUM_REGS and NUM_FREGS.
7806         (FPREGSET_FSAVE_OFFSET): Remove.
7807         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7808         NUM_FREGS to determine whether the floating-point registers are
7809         available.
7810
7811         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7812         gnu_store_registers): Replace usage of NUM_GREGS with
7813         I386_NUM_GREGS.
7814
7815         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7816         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7817         usage of NUM_GREGS with I386_NUM_GREGS.
7818
7819         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7820
7821         * i386bsd-nat.c: Include "i386-tdep.h".
7822         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7823         I386_NUM_GREGS.
7824
7825         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7826         and associated comment.  They no longer make any sense, since we
7827         don't use this file anymore on Linux.
7828
7829         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7830         * i386-tdep.c (i386_register_offset, i386_register_size): Use
7831         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7832         elements in these arrays.
7833         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7834         MAX_NUM_REGS.
7835
7836 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7837
7838         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7839         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7840
7841 2002-06-14  Andrew Cagney  <cagney@redhat.com>
7842
7843         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7844         EXTRACT_RETURN_VALUE.
7845         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7846         EXTRACT_STRUCT_VALUE_ADDRESS.
7847         * gdbarch.h, gdbarch.c: Regenerate.
7848         
7849         * values.c (value_being_returned): Handle
7850         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7851         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7852
7853         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
7854         * arm-tdep.c (arm_gdbarch_init): Update.
7855         * avr-tdep.c (avr_gdbarch_init): Update.
7856         * cris-tdep.c (cris_gdbarch_init): Update.
7857         * d10v-tdep.c (d10v_gdbarch_init): Update.
7858         * ia64-tdep.c (ia64_gdbarch_init): Update.
7859         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7860         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7861         * s390-tdep.c (s390_gdbarch_init): Update.
7862         * sh-tdep.c (sh_gdbarch_init): Update.
7863         * s390-tdep.c (s390_gdbarch_init): Update.
7864         * sparc-tdep.c (sparc_gdbarch_init): Update.
7865         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7866         * v850-tdep.c (v850_gdbarch_init): Update.
7867         * vax-tdep.c (vax_gdbarch_init): Update.
7868         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7869         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7870
7871         * config/arc/tm-arc.h: Update.
7872         * config/d30v/tm-d30v.h: Update.
7873         * config/fr30/tm-fr30.h: Update.
7874         * config/h8300/tm-h8300.h: Update.
7875         * config/h8500/tm-h8500.h: Update.
7876         * config/i386/tm-i386.h: Update.
7877         * config/i386/tm-ptx.h: Update.
7878         * config/i386/tm-symmetry.h: Update.
7879         * config/i960/tm-i960.h: Update.
7880         * config/m32r/tm-m32r.h: Update.
7881         * config/m68k/tm-delta68.h: Update.
7882         * config/m68k/tm-linux.h: Update.
7883         * config/m68k/tm-m68k.h: Update.
7884         * config/m88k/tm-m88k.h: Update.
7885         * config/mcore/tm-mcore.h: Update.
7886         * config/mips/tm-mips.h: Update.
7887         * config/mn10200/tm-mn10200.h: Update.
7888         * config/pa/tm-hppa.h: Update.
7889         * config/pa/tm-hppa64.h: Update.
7890         * config/sparc/tm-sp64.h: Update.
7891         * config/sparc/tm-sparc.h: Update.
7892         * config/sparc/tm-sparclet.h: Update.
7893         * config/z8k/tm-z8k.h: Update.
7894
7895 2002-06-14  Andrew Cagney  <cagney@redhat.com>
7896
7897         * Makefile.in (i386_linux_tdep_h): Define.
7898         (i386_tdep_h, i387_tdep_h): Define.
7899         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7900         $(i386_tdep_h) and $(i387_tdep_h).
7901         * i386-linux-nat.c: Include "i386-linux-tdep.h".
7902
7903 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
7904
7905         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7906         Already covered by the default.
7907
7908         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7909         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
7910         (i386_gdbarch_init): Initialize long_double_format and long_double
7911         bit.
7912
7913         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7914         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
7915         Move these to ...
7916         * config/i386/i386sol2.mh: ... here.
7917         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7918         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7919         (SIGCONTEXT_PC_OFFSET): Remove define.
7920         (IN_SIGTRAMP): Remove define.
7921         * i386-sol2-tdep.c: New file.
7922         
7923         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7924         * config/i386/tm-i386nw.h: Removed.
7925
7926         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7927         USE_STRUCT_CONVENTION): Remove defines.
7928         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7929         (get_longjmp_target): Remove prototype.
7930         (IN_SIGTRAMP): Remove define.
7931         (i386bsd_in_sigtramp): Remove prototype.
7932         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7933         function.  Update comment accordingly
7934         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7935         (FRAME_SAVED_PC): Remove define.
7936         (i386bsd_frame_saved_pc): Remove prototype.
7937         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7938         GET_LONGJMP_TARGET): Remove defines.
7939         (get_longjmp_target): Remove prototype.
7940         (IN_SIGTRAMP): Remove define.
7941         (i386bsd_in_sigtramp): Remove prototype.
7942         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7943         function.  Update comment accordingly
7944         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7945         (FRAME_SAVED_PC): Remove define.
7946         (i386bsd_frame_saved_pc): Remove prototype.
7947         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7948         Remove prototype.
7949         (USE_STRUCT_CONVENTION): Remove prototype.
7950         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7951         declaration.
7952         (_initialize_i386bsd_nat): Revise logic to determine some
7953         constants at compile time when compiling a native GDB.  Warn if
7954         things don't match up with what we expect.
7955         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7956         Remove variables.
7957         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
7958         to use date stored in `struct gdbarch_tdep'.
7959         (i386bsd_sigcontext_offset): Remove varaible.
7960         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
7961         stored in `struct gdbarch_tdep'.
7962         (i386bsd_frame_saved_pc): Make static.
7963         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7964         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7965         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7966         i386fbsd4_sc_pc_offset): New variables.
7967         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7968         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7969         functions.
7970         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7971         functions.
7972         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7973         Modify the value of i386fbsd_sigtramp_start and
7974         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7975         i386fbsd_sigtramp_end.
7976         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7977         function.
7978
7979         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7980         define to i386-linux-tdep.h.
7981         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7982         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7983         defines.
7984         (i386_linux_register_name, i386_linux_register_byte,
7985         i386_linux_register_raw_size): Remove prototypes.
7986         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7987         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7988         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7989         TARGET_WRITE_PC): Remove defines.
7990         (i386_linux_in_sigtramp, i386_linux_frame_chain,
7991         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7992         i386_linux_write_pc): Remove prototypes.
7993         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7994         (get_longjmp_target): Remove prototype.
7995         * i386-linux-tdep.h: New file.
7996         * i386-linux-nat.c: Include "i386-linux-tdep.h".
7997         * i386-linux-tdep.c: Include "i386-tdep.h" and
7998         "i386-linux-tdep.h".
7999         (i386_linux_register_name, i386_linux_register_byte,
8000         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8001         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8002         Make static.
8003         (i386_linux_init_abi): New function.
8004         (_initialize_i386_linux_tdep): New function.
8005
8006         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8007         (i386_saved_pc_after_call): Remove prototype.
8008         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8009         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8010         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8011         (i386_register_name, i386_stab_reg_to_regnum,
8012         i386_dwarf_reg_to_regnum): Remove prototypes.
8013         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8014         SIZEOF_SSE_REGS): Remove defines.
8015         (REGISTER_BYTES): Remove define.
8016         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8017         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8018         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8019         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8020         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8021         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8022         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8023         (get_longjmp_target): Remove prototype.
8024         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8025         (sigtramp_saved_pc): Remove define.
8026         (i386v4_sigtramp_saved_pc): Remove prototype.
8027         * config/i386/tm-go32.h (FRAME_CHAIN,
8028         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8029         (i386go32_frame_saved_pc): Remove prototype.
8030         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8031         (get_longjmp_target): Remove prototype.
8032         * i386-tdep.h: Include "osabi.h".
8033         (enum i386_abi): Removed.
8034         (enum struct_return): New enum.
8035         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8036         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8037         sc_pc_offset members.
8038         (i386_gdbarch_register_os_abi): Remove prototype.
8039         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8040         I386_SSE_NUM_REGS): New defines.
8041         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8042         I386_SSE_SIZEOF_REGS): New defines.
8043         (i386_register_name, i386_register_byte, i386_register_raw_size):
8044         New prototypes.
8045         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8046         (i386bsd_sigtramp_saved_pc): New prototype.
8047         * i386-tdep.c: Don't include "elf-bfd.h".
8048         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8049         i386_frame_chain, i386_saved_pc_after_call): Make static.
8050         (i386_frame_saved_pc): Rewrite to call architecture dependent
8051         function to deal with signal handlers.  Make static.
8052         (i386go32_frame_saved_pc): Removed.
8053         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8054         Removed.
8055         (i386_get_longjmp_target): New function.
8056         (default_struct_convention, pcc_struct_convention,
8057         reg_struct_convention, valid_conventions, struct_convention): New
8058         variables.
8059         (i386_use_struct_convention): New function.
8060         (i386v4_sigtramp_saved_pc): Renamed to
8061         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8062         (i386_pc_in_sigtramp): New function.
8063         (i386_abi_names): Removed.
8064         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8065         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8066         Removed.
8067         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8068         i386_gdbarch_register_os_abi): Removed.
8069         (struct i386_abi_handler): Removed.
8070         (i386_abi_handler_list): Removed.
8071         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8072         functions.
8073         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8074         i386_nw_init_abi): New functions.
8075         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8076         Use set_gdbarch_xxx() calls instead of relying on macros for a
8077         number of calls.
8078         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8079         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8080         Register the various architecture variants defined in this file.
8081
8082 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8083
8084         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8085         (struct main_type): Remove arg_types member.  Update comments for
8086         struct field.
8087         (TYPE_ARG_TYPES): Remove.
8088         (TYPE_FN_FIELD_ARGS): Update.
8089         (smash_to_method_type): Update prototype.
8090
8091         * c-typeprint.c (cp_type_print_method_args): Take method type
8092         instead of argument list.  Use new argument layout.  Simplify.
8093         (c_type_print_args): Use new argument layout.  Simplify.
8094         (c_type_print_base): Update call to cp_type_print_method_args.
8095         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8096         argument; use die->type instead.  Update call to
8097         smash_to_method_type.
8098         (read_structure_scope): Update call to dwarf2_add_member_fn.
8099         * gdbtypes.c (allocate_stub_method): Update comment.
8100         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8101         Use new argument layout.
8102         (check_stub_method): Use new argument layout.  Don't count
8103         void as an argument.
8104         (print_arg_types): Update comments.  Use new argument layout.
8105         (recursive_dump_type): Don't print arg_types member.
8106         * hpread.c (hpread_read_struct_type): Use new argument layout.
8107         (fixup_class_method_type): Likewise.
8108         (hpread_type_lookup): Likewise.
8109         * stabsread.c (read_type): Update calls to read_args and
8110         smash_to_method_type.
8111         (read_args): Use new argument layout.  Simplify.
8112         * valops.c (typecmp): Use new argument layout.  Update parameters
8113         and comments.  Simplify.
8114         (hand_function_call): Use new argument layout.
8115         (search_struct_method): Update call to typecmp.
8116         (find_overload_match): Use new argument layout.
8117
8118 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8119
8120         * NEWS: Mention multithreaded debug support for gdbserver.
8121
8122 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8123
8124         * MAINTAINERS: Mention NEWS.
8125
8126 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8127
8128         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8129         (struct mips_objfile_private, compare_pdr_entries): New.
8130         (non_heuristic_proc_desc): Read the ".pdr" section if it
8131         is present.
8132
8133 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8134
8135         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8136         (arm_debug): New static variable.
8137         (_initialize_arm_tdep): Add ``set debug arm'' command.
8138
8139 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8140
8141         * Makefile.in (sim_arm_h): Define.
8142         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8143         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8144         (arm_register_sim_regno): New function, map an internal REGNUM
8145         onto a simulator register number.
8146         (arm_gdbarch_init): Set register_sim_regno.
8147
8148 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8149
8150         * MAINTAINERS: Add self.
8151
8152 2002-06-11  Jim Blandy  <jimb@redhat.com>
8153
8154         * source.c (source_info): Mention whether the symtab has
8155         information about preprocessor macros.
8156
8157         Call the command `info macro', not `show macro'.
8158         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8159         Fix error message.
8160         (_initialize_macrocmd): Register `info_macro_command' in
8161         `infolist', not `showlist'.
8162
8163 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8164
8165         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8166         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8167         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8168         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8169         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8170         unconditionally.
8171         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8172         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8173         (_initialize_mips_tdep): Remove dead code.
8174         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8175         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8176         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8177         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8178         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8179         MIPS_LAST_FP_ARG_REGNUM): Remove.
8180
8181 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8182
8183         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8184         (unwind_tmp_obstack_free, parse_frame_info)
8185         (update_context, cfi_read_fp, cfi_write_fp)
8186         (cfi_frame_chain, cfi_init_extra_frame_info)
8187         (cfi_virtual_frame_pointer): Use the above function.
8188         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8189
8190 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8191
8192         * v850-tdep.c (v850_type_is_scalar): New function.
8193         (v850_use_struct_convention): Match current gcc implementation
8194         as close as possible.
8195         (v850_push_arguments): Fix stack_offset handling.  Don't write
8196         struct_addr into register.  This is done by v850_store_struct_return.
8197         (v850_extract_return_value): Care for structs.
8198         (v850_store_return_value): Ditto.
8199         (v850_store_struct_return): Actually write address.
8200
8201 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8202
8203         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8204         without debug information too.
8205
8206 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8207
8208         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8209         Make multi-arch pure.
8210         * gdbarch.h, gdbarch.c: Re-generate.
8211         * arm-tdep.c (arm_print_float_info): Update.
8212         * arch-utils.h (default_print_float_info): Update.
8213         * arch-utils.c (default_print_float_info): Update.
8214         * infcmd.c (float_info): Update call.
8215
8216 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8217
8218         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8219         the front of the initialize list.
8220
8221 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8222
8223         * infrun.c (struct inferior_status): Replace fields
8224         selected_frame_address and selected_level with field
8225         selected_frame_id.
8226         (save_inferior_status): Update.  Use get_frame_id.
8227         (struct restore_selected_frame_args): Delete.
8228         (restore_selected_frame): Update.  Use frame_find_by_id.
8229         (restore_inferior_status): Update.
8230
8231         * breakpoint.h (struct breakpoint): Change type of
8232         watchpoint_frame to frame_id.
8233         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8234         call to get_current_frame.
8235         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8236         get_current_frame.
8237         (watchpoint_check): Use frame_find_by_id.
8238
8239         * frame.h (record_selected_frame): Delete declaration.
8240         * stack.c (record_selected_frame): Delete function.
8241         
8242         * frame.h (struct frame_id): Define.
8243         (get_frame_id): Declare.
8244         (frame_find_by_id): Declare.
8245         * frame.c (frame_find_by_id): New function.
8246         (get_frame_id): New function.
8247
8248 2002-06-10  Andrey Volkov <avolkov@transas.com>
8249
8250         * ser-e7kpc.c: Fix duplicated define and call of 
8251         _initialize_ser_e7000pc
8252             
8253 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8254
8255         * signals/signals.c (target_signal_from_host): Fix #ifdef
8256         SIGRTMIN case.
8257         (do_target_signal_to_host): Likewise.
8258
8259 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8260
8261         * mips-tdep.c (mips_find_abi_section): New function.
8262         (mips_gdbarch_init): Call it.
8263
8264 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8265
8266         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8267         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8268         after Andrew's 2002-06-08 gdbarch change.
8269
8270 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8271
8272         * i386-linux-nat.c (suppy_gregset): Don't supply
8273         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8274         register cache.
8275         (fill_gregset): Don't fetch it under the same circumstances.
8276
8277 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8278
8279         * Makefile.in (callback_h): Define.
8280         (remote_sim_h): Update path to remote-sim.h.
8281         (remote-rdp.o): Add $(callback_h).
8282         (remote-sim.o): Use $(callback_h).
8283         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8284         * remote-rdp.c: Include "gdb/callback.h".
8285
8286 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8287
8288         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8289         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8290
8291 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8292
8293         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8294         * rdi-share/serpardr.c: Ditto.
8295         * rdi-share/unixcomm.c: Ditto.
8296         * rdi-share/serdrv.c: Ditto.
8297         * rdi-share/hostchan.h: Ditto.
8298         * rdi-share/hostchan.c: Ditto.
8299         * rdi-share/host.h: Ditto.
8300         * rdi-share/devsw.c: Ditto.
8301
8302         * objfiles.h: Change type of obj_private to void pointer.
8303         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8304         strcmp instead of STREQ, use LONGEST, do not use PTR
8305         * somsolib.c: Ditto.
8306
8307         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8308         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8309         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8310
8311 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8312
8313         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8314         (default_get_saved_register): Delete function.
8315         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8316         generic_unwind_get_saved_register.
8317         * gdbarch.h, gdbarch.c: Re-generate.
8318         
8319 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8320
8321         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8322         generic_func_frame_chain_valid.
8323         * gdbarch.h, gdbarch.c: Re-generate.
8324         * blockframe.c (generic_func_frame_chain_valid): Only check
8325         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8326         passing FP to PC_IN_CALL_DUMMY.
8327         Fix PR gdb/360.
8328
8329 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8330
8331         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8332         (register_gdbarch_data): Initialize init_p.
8333         (gdbarch_data): Initialize data pointer using the init function.
8334         (init_gdbarch_data): Delete function.
8335         (gdbarch_update_p): Update.
8336         (initialize_non_multiarch): Update.
8337         (struct gdbarch): Add field initialized_p.
8338         * gdbarch.h, gdbarch.c: Re-generate.
8339
8340 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8341
8342         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8343         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8344         better do the things actually here.
8345         * x86-64-tdep.c (x86_64_register_name2nr): New.
8346         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8347         (x86_64_gdbarch_init): Respect the above change.
8348         * x86-64-tdep.h (x86_64_register_name2nr)
8349         (x86_64_register_nr2name): Add prototypes.
8350         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8351
8352 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8353
8354         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8355         Delete extra braces and re-indent.
8356         (d10v_store_return_value): Char return values
8357         must be shifted over by one byte in R0.
8358         (d10v_extract_return_value): Delete extra braces, re-indent.
8359
8360 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8361
8362         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8363         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8364         (d10v_integer_to_address): Rewrite.
8365         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8366         the d10v specific functions which take care of converting to the
8367         correct space.
8368
8369 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8370
8371         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8372         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8373
8374 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8375
8376         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8377         includes.
8378         * config/tm-linux.h: Ditto.
8379         * config/alpha/tm-alphalinux.h: Ditto.
8380         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8381         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8382         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8383         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8384         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8385         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8386         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8387         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8388         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8389         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8390         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8391         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8392         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8393         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8394         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8395         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8396         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8397         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8398         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8399         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8400         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8401         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8402         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8403         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8404         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8405         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8406         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8407         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8408         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8409         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8410         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8411         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8412         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8413         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8414         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8415         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8416         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8417
8418 2002-05-04  Aidan Skinner <aidan@velvet.net>
8419
8420         * ada-exp.tab.c: New file
8421         * ada-exp.y: New file
8422         * ada-lang.c: New file
8423         * ada-lang.h: New file
8424         * ada-lex.c: New file
8425         * ada-lex.l: New file
8426         * ada-tasks.c: New file
8427         * ada-typeprint.c: New file
8428         * ada-valprint.c: New file
8429         
8430 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8431
8432         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8433         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8434
8435 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8436
8437         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8438         insetead of ppc-linux-tdep.o.
8439         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8440         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8441
8442 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8443
8444         2002-05-07 Christian Groessler <chris@groessler.org>
8445         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8446         bit register contents for little endian hosts.
8447
8448 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8449
8450         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8451         any maintainer.
8452
8453 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8454
8455         * gdbarch.h: Regenerate.
8456
8457 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8458
8459         * MAINTAINERS: Add everyone to write-after-approval list.
8460
8461 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8462
8463         * stack.c (frame_info): Use frame_register_unwind instead of
8464         saved_regs.  Mention when the SP is on the stack or in a register.
8465
8466         * frame.h (frame_register_unwind_ftype): Define.  Document.
8467         (struct frame_info): Add field register_unwind and
8468         register_unwind_cache.
8469         (frame_register_unwind): Declare.
8470         (generic_unwind_get_saved_register): Declare.
8471
8472         * frame.c (frame_register_unwind): New function.
8473         (generic_unwind_get_saved_register): New function.
8474
8475         * blockframe.c (generic_call_dummy_register_unwind): New function.
8476         (frame_saved_regs_register_unwind): New function.
8477         (set_unwind_by_pc): New function.
8478         (create_new_frame): New function.
8479         (get_prev_frame): New function.
8480
8481 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8482
8483         * a29k-share/: Delete directory.
8484         * remote-vx29k.c: Delete file.
8485
8486 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8487
8488         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8489         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8490
8491 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8492
8493         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8494         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8495         (sparc64nbsd-nat.o)
8496         (sparcnbsd-nat.o)
8497         (sparcnbsd-tdep.o): New dependency lists.
8498         * NEWS: Note new UltraSPARC NetBSD native configuration.
8499         * configure.host (sparc64-*-netbsd*): New host.
8500         * configure.tgt (sparc-*-netbsdelf*)
8501         (sparc-*-netbsd*): Set gdb_target to nbsd.
8502         (sparc64-*-netbsd*): New target.
8503         * sparc64nbsd-nat.c: New file.
8504         * sparcnbsd-nat.c: New file.
8505         * sparcnbsd-tdep.c: New file.
8506         * sparcnbsd-tdep.h: New file.
8507         * config/sparc/nbsd.mt: New file.
8508         * config/sparc/nbsd64.mh: New file.
8509         * config/sparc/nbsd64.mt: New file.
8510         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8511         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8512         (HOST_IPC): Remove.
8513         * config/sparc/nbsdaout.mt: Remove.
8514         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8515         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8516         (HOST_IPC): Remove.
8517         * config/sparc/nbsdelf.mt: Remove.
8518         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8519         sparc-nat.c compatiblity defines.
8520         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8521         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8522         * config/sparc/tm-nbsd64.h: New file.
8523         * config/sparc/tm-nbsdaout.h: Remove.
8524         * config/sparc/xm-nbsd.h: Remove.
8525
8526 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8527
8528         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8529         * sparc-tdep.c: Include osabi.h.
8530         (gdbarch_tdep): Add osabi member.
8531         (_initialize_sparc_tdep): Use gdbarch_register.
8532         (sparc_gdbarch_init): Use generic OS ABI framework.
8533         (sparc_dump_tdep): New function.
8534
8535 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8536
8537         * corefile.c (do_captured_read_memory_integer): Return non-zero
8538         result.
8539         (safe_read_memory_integer): Copy result of memory read when
8540         status is non-zero.  Also, add comments.
8541
8542 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8543
8544         * Makefile.in (ppc_tdep_h): Define.
8545         (ppc-linux-nat.o)
8546         (ppc-linux-tdep.o)
8547         (rs6000-tdep.o): Use $(ppc_tdep_h).
8548         (ppc-sysv-tdep.o)
8549         (ppcnbsd-nat.o)
8550         (ppcnbsd-tdep.o): New dependency lists.
8551         * ppc-tdep.h: Use generic OS ABI framework.
8552         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8553         (ppc_linux_init_abi): New functions.
8554         (ppc_sysv_abi_broken_use_struct_convention)
8555         (ppc_sysv_abi_use_struct_convention)
8556         (ppc_sysv_abi_push_arguments): Move to...
8557         * ppc-sysv-tdep.c: ...here.
8558         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8559         * rs6000-tdep.c (process_note_abi_tag_sections)
8560         (get_elfosabi): Remove.
8561         (rs6000_gdbarch_init): Use generic OS ABI framework.
8562         (rs6000_dump_tdep): New function.
8563         (_initialize_rs6000_tdep): Use gdbarch_register.
8564         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8565         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8566         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8567         of ppc-linux-tdep.o.
8568         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8569         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8570         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8571         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8572         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8573         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8574
8575 2002-05-29  Jim Blandy  <jimb@redhat.com>
8576
8577         * macroscope.c (default_macro_scope): Put `void' in empty argument
8578         list.
8579
8580 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8581
8582         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8583         * arch-utils.c: Include "sim-regno.h".
8584         * gdbarch.sh: Don't include "sim-regno.h".
8585         * gdbarch.h, gdbarch.c: Regenerate.
8586         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8587         here.
8588         * arch-utils.h (legacy_register_sim_regno): To here.
8589         * remote-sim.c (legacy_register_sim_regno): Move function from
8590         here.
8591         * arch-utils.c (legacy_register_sim_regno): To here.
8592
8593 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8594
8595         * sim-regno.h: New file.
8596         * Makefile.in (sim_regno_h): Define.
8597         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8598         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8599         (legacy_register_sim_regno): New function.
8600         (one2one_register_sim_regno): New function.
8601         (gdbsim_fetch_register): Rewrite.
8602         (gdbsim_store_register): Only store a register when
8603         REGISTER_SIM_REGNO is valid.
8604         * d10v-tdep.c: Include "sim-regno.h".
8605         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8606         (d10v_ts3_register_sim_regno): Ditto.
8607         * gdbarch.sh: Include "sim-regno.h".
8608         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8609         * gdbarch.h, gdbarch.c: Regenerate.
8610         * arch-utils.h (default_register_sim_regno): Delete declaration.
8611         * arch-utils.c (default_register_sim_regno): Delete function.
8612
8613 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8614
8615         * ppcnbsd-nat.c: Rewrite.
8616         * ppcnbsd-tdep.c: New file.
8617         * ppcnbsd-tdep.h: New file.
8618         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8619         solib.o, and solib-svr4.o.
8620         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8621         nbsd-tdep.o, and corelow.o.
8622
8623 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8624
8625         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8626         `tr' and `sed'.  Mention that `broken' targets are not expected to
8627         build.
8628
8629 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8630
8631         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8632         Let PC point right after the prologue before looking up symbols.
8633         
8634 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8635
8636         * i386-tdep.c (i386_register_virtual_type): Return 
8637         builtin_type_vec128i for SSE registers.
8638
8639         * gdbtypes.h (builtin_type_vec128i): Declare.
8640
8641         * gdbtypes.c (build_builtin_type_vec128i): New function.
8642         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8643         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8644         (build_gdbtypes): Initialize new builtin vector types.
8645         (_initialize_gdbtypes): Register new vector types with gdbarch.
8646
8647 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8648
8649         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8650         since it has been multi-arch'd.
8651         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8652         Move Alpha and VAX multi-arch news entries to same section
8653         as other multi-arch news.
8654
8655 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8656
8657         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8658         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8659         static.  Rename some register numbers to put them in ns32k-tdep
8660         private namespace.
8661         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8662         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8663         functions.
8664         (_initialize_ns32k_tdep): Use gdbarch_register.
8665         * ns32k-tdep.h: New file.
8666         * ns32knbsd-tdep.c: New file.
8667         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8668         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8669         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8670         REGISTER_BYTES, REGISTER_BYTE): Remove.
8671         * config/ns32k/tm-ns32k.h: New file.
8672         * config/ns32k/tm-umax.h: Remove.
8673
8674 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8675
8676         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8677         ns32k_store_struct_return, ns32k_extract_return_value,
8678         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8679         functions.
8680         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8681         ns32k_saved_pc_after_call.
8682         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8683         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8684         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8685         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8686         ns32k_extract_struct_value_address.
8687
8688 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8689
8690         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8691         ns32k_fix_call_dummy): New.
8692         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8693         ns32k_call_dummy_words.
8694         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8695         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8696         CALL_DUMMY_NARGS): Remove.
8697         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8698
8699 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8700
8701         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8702         ns32k_frame_saved_pc, ns32k_frame_args_address,
8703         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8704         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8705         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8706         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8707         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8708         (BREAKPOINT): Remove..
8709         (FRAME_CHAIN): Define as ns32k_frame_chain.
8710         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8711         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8712         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8713         (FRAME_FIND_SAVED_REGS): Remove.
8714         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8715         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8716         (POP_FRAME): Define as ns32k_pop_frame.
8717
8718 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8719
8720         * ns32k-tdep.c (ns32k_register_byte_32082,
8721         ns32k_register_byte_32382, ns32k_register_raw_size,
8722         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8723         functions.
8724         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8725         ns32k_register_byte_32382.
8726         * config/ns32k/tm-umax.h: Update copyright years.
8727         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8728         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8729         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8730         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8731         (ns32k_get_enter_addr): Fix prototype.
8732
8733 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8734
8735         * ns32k-tdep.c: Update copyright years.
8736         (ns32k_register_name_32082): New function.
8737         (ns32k_register_name_32382): Ditto.
8738         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8739         (REGISTER_NAME): Define as ns32k_register_name_32382.
8740         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8741         (REGISTER_NAME): Define as ns32k_register_name_32082.
8742
8743 2002-05-24  Jim Blandy  <jimb@redhat.com>
8744
8745         * dwarf2read.c (free_line_header): Use xfree, not free.
8746
8747 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
8748
8749         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8750         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8751
8752 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8753
8754         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8755
8756 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8757
8758         From Ross Alexander at NEC Europe:
8759         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8760
8761 2002-05-23  Michael Snyder  <msnyder@redhat.com>
8762
8763         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8764         for input, rather than parse_and_eval_address.  
8765
8766 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8767
8768         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8769         * Makefile.in (sim_d10v_h): Update definition.
8770
8771 2002-05-24  Andrew Cagney  <cagney@redhat.com>
8772
8773         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8774         change `2002-05-22 Michael Snyder' below.
8775         (d10v_push_arguments): Ditto.
8776         (d10v_extract_return_value): Ditto.
8777
8778 2002-05-23  Jim Blandy  <jimb@redhat.com>
8779
8780         * macrotab.c (check_for_redefinition): Don't complain if the new
8781         definition is the same as the previous one.  Take more arguments
8782         to allow the comparison.
8783         (macro_define_object, macro_define_function): Pass more arguments
8784         to check_for_redefinition.
8785
8786 2002-05-22  Michael Snyder  <msnyder@redhat.com>
8787
8788         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8789         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8790         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8791         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8792         Don't bail if return_pc is PC_IN_CALL_DUMMY.
8793         Add a temp variable to save a call (and a memory read).
8794         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8795         if possible (so that PC_IN_CALL_DUMMY will work).
8796
8797 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
8798
8799         * MAINTAINERS: Remove status `OBSOLETE' from v850.
8800
8801 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
8802
8803         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8804         fde->cie_ptr.
8805         (dwarf2_build_frame_info): Corrected handling of eh_frame.
8806         (dwarf2_build_frame_info): Add offset to fde->initial_location 
8807         so that frames of shared libraries are mapped correctly.
8808         (execute_stack_op): Change type of 'result' from ULONGEST to
8809         CORE_ADDR.
8810         
8811 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8812
8813         * config/alpha/tm-nbsd.h: Include solib.h.
8814
8815 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8816
8817         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8818         assumptions about the host's byte order.
8819
8820 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8821
8822         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8823         to dependency list.
8824         * alphanbsd-tdep.c: Include solib-svr4.h.
8825         * shnbsd-tdep.c: Ditto.
8826
8827 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8828
8829         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8830         nbsd-tdep.h to dependency list.
8831         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8832         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8833         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8834         nbsdaout.mh and nbsdelf.mh consistently.
8835         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8836         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8837         nbsdaout.mt and nbsdelf.mh consistently.
8838         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
8839         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8840         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8841         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
8842         a.out shared library stuff from here...
8843         * config/nm-nbsdaout.h: ...to here.
8844         * config/tm-nbsd.h: Remove.
8845         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8846         * config/arm/nbsd.mh: Remove.
8847         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8848         nbsd-tdep.o.
8849         * config/arm/nbsdaout.mh: New file. 
8850         * config/arm/nbsdelf.mh: New file.
8851         * config/arm/nm-nbsdaout.h: New file.
8852         * config/i386/nbsd.mh: Remove.
8853         * config/i386/nbsd.mt: Remove.
8854         * config/i386/nbsdaout.mh: New file.
8855         * config/i386/nbsdaout.mt: New file.
8856         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8857         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8858         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
8859         i386_register_u_addr): Remove.
8860         * config/i386/nm-nbsdaout.h: New file.
8861         * config/i386/nm-nbsdelf.h: Remove.
8862         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8863         (USE_STRUCT_CONVENTION): Remove.
8864         * config/i386/tm-nbsdaout.h: New file.
8865         * config/i386/tm-nbsdelf.h: Remove.
8866         * config/m68k/nbsd.mh: Remove.
8867         * config/m68k/nbsd.mt: Remove.
8868         * config/m68k/nbsdaout.mh: New file.
8869         * config/m68k/nbsdaout.mt: New file. 
8870         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8871         * config/m68k/nm-nbsdaout.h: New file.
8872         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8873         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8874         * config/ns32k/nbsd.mh: Remove.
8875         * config/ns32k/nbsd.mt: Remove. 
8876         * config/ns32k/nbsdaout.mh: New file.
8877         * config/ns32k/nbsdaout.mt: New file.
8878         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
8879         * config/ns32k/nm-nbsdaout.h: New file.
8880         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
8881         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8882         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8883         (SVR4_SHARED_LIBS): Remove.
8884         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8885         * config/sparc/nbsd.mh: Remove.
8886         * config/sparc/nbsd.mt: Remove.
8887         * config/sparc/nbsdaout.mh: New file.
8888         * config/sparc/nbsdaout.mt: New file.
8889         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8890         * config/sparc/nbsdelf.mt: New file.
8891         * config/sparc/nm-nbsdaout.h: New file.   
8892         * config/sparc/nm-nbsdelf.h: Remove.
8893         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8894         * config/sparc/tm-nbsdaout.h: New file.
8895
8896 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8897
8898         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8899         mipsnbsd-tdep.c
8900         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8901
8902 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8903
8904         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8905         shnbsd-nat.c.
8906         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8907
8908 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8909
8910         * NEWS: Note new MIPS NetBSD native configuration. 
8911         * configure.host (mips*-*-netbsd*): New host. 
8912         * configure.tgt (mips*-*-netbsd*): New target. 
8913         * mipsnbsd-nat.c: New file.
8914         * mipsnbsd-tdep.c: New file.
8915         * mipsnbsd-tdep.h: New file.
8916         * config/mips/nbsd.mh: New file.
8917         * config/mips/nbsd.mt: New file.
8918         * config/mips/nm-nbsd.h: New file.
8919         * config/mips/tm-nbsd.h: New file.
8920
8921 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8922
8923         * Makefile.in (SFILES): Add osabi.c.
8924         (COMMON_OBS): Add osabi.o.
8925         (osabi.o): New dependency list.
8926         * osabi.c: New file.
8927         * osabi.h: New file.
8928         * doc/gdbint.texinfo: Document new generic OS ABI framework.
8929
8930         * Makefile.in (alpha_tdep_h): Define and use instead of
8931         alpha-tdep.h.
8932         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8933         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8934         Remove.
8935         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8936         * alpha-tdep.h: Include osabi.h.
8937         (alpha_abi): Remove.
8938         (gdbarch_tdep): Use generic OS ABI framework.
8939         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8940         gdbarch_register_osabi.
8941         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8942         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8943         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8944
8945         * Makefile.in (sh_tdep_h): Add osabi.h.
8946         * sh-tdep.h (sh_osabi): Remove.
8947         (gdbarch_tdep): Use generic OS ABI framework.
8948         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8949         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8950         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8951         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8952
8953         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8954         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8955         gdbarch_register_osabi.
8956         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8957         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8958         (get_elfosabi): Rename to...
8959         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
8960         ABI framework support routines.
8961         (arm_gdbarch_init): Use generic OS ABI framework.
8962         (arm_dump_tdep): Likewise.
8963         (_initialize_arm_tdep): Likewise.
8964         * arm-tdep.h: Include osabi.h.
8965         (arm_abi): Remove.
8966         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
8967         osabi member.
8968         (arm_gdbarch_register_os_abi): Remove prototype.
8969         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8970         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8971
8972         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8973         * mips-tdep.c: Include osabi.h.
8974         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8975         OS ABI framework.
8976
8977 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
8978
8979         * h8300-tdep.c: Fix formatting.
8980
8981 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
8982
8983         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8984         printing vector registers.
8985
8986 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
8987
8988         From Fernando Nasser:
8989         * remote.c (remote_async_open_1): Re-throw the exception when the
8990         connection fails.
8991         (remote_cisco_open): Ditto.
8992         (remote_open_1): Ditto.
8993
8994 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
8995
8996         * remote.c (remote_start_remote_dummy): Add uiout parameter.
8997         (remote_start_remote): Add uiout parameter.  Pass through to
8998         remote_start_remote_dummy.
8999         (remote_open_1): Use catch_exception instead of catch_errors.
9000         (remote_async_open_1): Ditto.
9001         (remote_cisco_open): Ditto.
9002
9003 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9004
9005         * remote.c (remote_start_remote): Replace PTR with void pointer.
9006         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9007         static.
9008
9009 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9010
9011         * gdb_indent.sh: Allow the script to be run in the sim directory.
9012
9013 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9014
9015         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9016         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9017
9018         * corelow.c (core_open): Only call set_gdbarch_from_file if
9019         exec_bfd is NULL.
9020
9021 2002-05-17  Andrey Volkov <avolkov@transas.com>
9022
9023         * h8300-tdep.c: Add support of EXR register
9024         * config/h8300/tm-h8300.h: Ditto. 
9025         
9026 2002-05-17  Andrey Volkov <avolkov@transas.com>
9027
9028         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9029         
9030 2002-05-17  Andrey Volkov <avolkov@transas.com>
9031
9032         * h8300-tdep.c: Change literal regnums to REGNO.
9033         
9034 2002-05-17  Jim Blandy  <jimb@redhat.com>
9035
9036         * NEWS: Note addition of macro support.
9037
9038         Expand preprocessor macros in C expressions.
9039         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9040         (scan_macro_expansion, scanning_macro_expansion,
9041         finished_macro_expansion): New function declarations.
9042         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9043         variable declarations.
9044         * parser-defs.h (expression_context_pc): New declaration.
9045         * parse.c (expression_context_pc): New variable.
9046         (parse_exp_1): Set expression_context_pc, as well as
9047         expression_context_block.
9048         * c-exp.y (yylex): If we're not already reading the result of a
9049         macro expansion, try to macro-expand the next token.  When we're
9050         done scanning a macro expansion, switch back to the mainline text.
9051         Commas and `if's in a macro's expansion don't terminate the input.
9052         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9053         (macro_original_text, macro_expanded_text,
9054         expression_macro_lookup_func, expression_macro_lookup_baton): New
9055         variables.
9056         (scan_macro_expansion, scanning_macro_expansion,
9057         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9058         c_preprocess_and_parse): New functions.
9059         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9060         c_preprocess_and_parse, instead of c_parse.
9061         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9062         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9063
9064 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9065
9066         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9067         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9068         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9069
9070 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9071
9072         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9073
9074 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9075
9076         * Makefile.in (sh_tdep_h): Define and use.
9077         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9078         register enum): Move to...
9079         * * sh-tdep.h: ...here.
9080         * sh-tdep.c: Include sh-tdep.h.
9081         * sh3-rom.c: Likewise.
9082         * shnbsd-tdep.c: Likewise.
9083
9084 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9085
9086         * arm-tdep.c: Spelling fix in comment.
9087
9088 2002-05-16  Jim Blandy  <jimb@redhat.com>
9089
9090         Add commands for manually expanding macros and showing their
9091         definitions.
9092         * macrocmd.c, macroscope.c, macroscope.h: New files.
9093         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9094         (macroscope_h): New variable.
9095         (HFILES_NO_SRCDIR): Add macroscope.h.
9096         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9097         (macroscope.o, macrocmd.o): New rules.
9098
9099         Teach the Dwarf 2 reader to read macro information.
9100         * dwarf2read.c: #include "macrotab.h".
9101         (dwarf_macinfo_buffer): New variable.
9102         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9103         dwarf_macinfo_size.
9104         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9105         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9106         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9107         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9108         dwarf2_macro_spaces_in_definition): New complaints.
9109         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9110         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9111         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9112         the partial symbol table.
9113         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9114         from what's recorded in the partial symbol table.
9115         (read_file_scope): If the compilation unit has a
9116         `DW_AT_macro_info' attribute, read its macro information.
9117         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9118
9119 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9120
9121         Fix PR gdb/546
9122         * ser-tcp.c: Don't include <netinet/udp.h>.
9123
9124 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9125
9126         * MAINTAINERS: Update my email address.
9127
9128 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9129
9130         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9131         include file of the same name.
9132
9133 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9134
9135         * configure.tgt: Mark v850 as multi-arched.
9136         * config/v850/tm-v850.h: Remove file.
9137         * config/v850/v850.mt: Eliminate TM_FILE.
9138
9139 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9140
9141         * v850-tdep.c: Full multi-arch.
9142         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9143         Define GDB_MULTI_ARCH to 2.
9144
9145 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9146
9147         * p-exp.y (current_type): New static variable.
9148         Carries the type of the expression at the position that is parsed.
9149         (push_current_type, pop_current_type): Two new functions. Used
9150         to store/restore current_type in expression on specific tokens.
9151         (search_field): New static variable. Set to one after parsing a point
9152         as at that point only a FIELDNAME token should be searched.
9153         (FIELDNAME): New token. After a point only a token belonging to 
9154         current_type type definition is allowed.
9155         (all over token rules): reset and change current_type according
9156         to rules.
9157         (exp '[' rule): insert implicit array index field if
9158         exp is a pascal string type.
9159
9160 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9161
9162         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9163         frame info.  Use frame_info's saved_regs instead of matching member
9164         in extra_frame_info throughout.
9165         (v850_frame_init_saved_regs): New function.
9166         (v850_init_extra_frame_info): Move most functionality into
9167         v850_frame_init_saved_regs().
9168         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9169         (v850_frame_find_saved_regs): Remove declaration.
9170         (FRAME_FIND_SAVED_REGS): Remove definition.
9171         (v850_frame_init_saved_regs): Add declaration.
9172         (FRAME_INIT_SAVED_REGS): Add definition.
9173
9174 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9175
9176         * v850-tdep.c: Begin multi-arch'ing v850.
9177         (v850_target_architecture_hook): Remove function.
9178         (v850_gdbarch_init): New function.  Add code previously in
9179         v850_target_architecture_hook().
9180         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9181         Call register_gdbarch_init() instead.
9182
9183 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9184
9185         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9186         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9187         (fixup_class_method_type): Likewise.
9188
9189 2002-05-15  Jim Blandy  <jimb@redhat.com>
9190
9191         Add macro structures to GDB's symbol tables.  Nobody puts anything
9192         in them yet.
9193         * symtab.h (struct symtab): New member: `macro_table'.
9194         * buildsym.h (pending_macros): New global variable.
9195         * buildsym.c: #include "macrotab.h".
9196         (buildsym_init): Initialize `pending_macros'.
9197         (end_symtab): If we found macro information while reading a CU's
9198         debugging info, do build a symtab structure for it.  Make the
9199         symtab point to the macro information, and clear the
9200         `pending_macros' pointer which held it while we were reading the
9201         debug info.
9202         (really_free_pendings): Free any pending macro table.
9203         * objfiles.h (struct objfile): New member: `macro_cache'.
9204         * objfiles.c (allocate_objfile): Set allocate and free functions
9205         for the macro cache's objstack.
9206         (free_objfile): Empty the macro cache's obstack.
9207         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9208         set new allocate and free functions for it.
9209         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9210         free functions for the macro cache's objstack.  (Why is this
9211         function building its own objfile?)
9212         * symmisc.c (print_objfile_statistics): Print statistics on the
9213         macro bcache.
9214         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9215
9216 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9217
9218         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9219         (REGISTER_U_ADDR): Delete definition.
9220         (arm_register_u_addr): Delete declaration.
9221
9222 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9223
9224         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9225         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9226
9227 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9228
9229         * regcache.c (register_valid): Revise comments refering to "Not
9230         available" and "unavailable".
9231         * frame.c (frame_register_read): Ditto.
9232         * findvar.c (value_of_register): Ditto.
9233
9234 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9235
9236         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9237         (remote-sim.o): Update dependencies.
9238         (d10v-tdep.o): Specify dependencies.
9239         (sim_d10v_h): Define.
9240
9241 2002-05-14  Jim Blandy  <jimb@redhat.com>
9242
9243         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9244         * macrotab.c (macro_lookup_inclusion, find_definition,
9245         new_macro_table): Same.
9246         
9247         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9248         not `! strcmp ()'.  This is a dubious improvement.
9249         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9250
9251         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9252         although it's not necessary, to avoid a warning.
9253
9254 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9255
9256         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9257         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9258         TYPE_INSTANCE_FLAGS.
9259         (struct main_type): New.
9260         (struct type): Move most members to struct main_type.  Change
9261         cv_type and as_type to new type_chain member.  Add instance_flags.
9262         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9263         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9264         (finish_cv_type): Remove prototype.
9265         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9266         Set TYPE_CHAIN.
9267         (alloc_type_instance): New function.
9268         (smash_type): New function.
9269         (make_pointer_type, make_reference_type, make_function_type)
9270         (smash_to_member_type, smash_to_method_type): Call smash_type.
9271         (make_qualified_type): New function.
9272         (make_type_with_address_space): Call make_qualified_type.
9273         (make_cv_type): Likewise.
9274         (finish_cv_type): Remove unnecessary function.
9275         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9276         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9277         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9278         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9279         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9280         * hpread.c (hpread_read_struct_type): Likewise.
9281         * stabsread.c (read_struct_type): Likewise.
9282
9283 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9284
9285         * configure.tgt: Add a catch all sh* target, for cases like
9286         sh[2,3,4]-elf and sh-hms.
9287
9288 2002-05-14  Keith Seitz  <keiths@redhat.com>
9289
9290         * event-loop.c (create_file_handler): Don't do anything but
9291         update data when we are given a fd which we are already
9292         monitoring.
9293
9294 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9295
9296         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9297         (update_context): Use __func__ in warnings.
9298         
9299 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9300
9301         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9302         and tcp_close to net_open and net_close.
9303         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9304         using UDP if requested.  Don't try to disable Nagle on UDP
9305         sockets.
9306         * remote.c (remote_serial_open): New function.  Warn about UDP.
9307         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9308
9309 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9310
9311         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9312
9313 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9314
9315         * configure.tgt: Remove sh-hms target.
9316         * MAINTAINERS: Don't list sh-hms as a separate target.
9317
9318 2002-05-13  Jim Blandy  <jimb@redhat.com>
9319
9320         Add first preprocessor macro-expansion files.
9321         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9322         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9323         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9324         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9325         (COMMON_OBS): Add macrotab.o, macroexp.o.
9326         (macroexp.o, macrotab.o): New rules.
9327
9328 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9329
9330         * config/m88k/tm-m88k.h: Update copyright.
9331         (m88k_target_write_pc): Declare
9332         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9333         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9334         (SHIFT_INST_REGS): Update definition.
9335         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9336         using old definition of TARGET_WRITE_PC.
9337         * regcache.c (generic_target_write_pc): Delete code handling
9338         NNPC_REGNUM.
9339         * gdbarch.sh (NNPC_REGNUM): Delete.
9340         * gdbarch.h, gdbarch.c: Regenerate.
9341
9342 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9343
9344         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9345         builtin reg number.
9346
9347 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9348
9349         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9350         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9351         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9352         access macros.
9353         * c-typeprint.c (cp_type_print_method_args): Likewise.
9354         (c_type_print_args): Likewise.
9355         * d10v-tdep.c (d10v_push_arguments): Likewise.
9356         (d10v_extract_return_value): Likewise.
9357         * expprint.c (print_subexp): Likewise.
9358         * gdbtypes.c (lookup_primitive_typename): Likewise.
9359         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9360         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9361         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9362         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9363         (TYPE_VECTOR): Likewise.
9364         * hpread.c (hpread_read_struct_type)
9365         (fix_static_member_physnames, fixup_class_method_type)
9366         (hpread_type_lookup): Likewise.
9367         * mdebugread.c (parse_symbol, parse_type): Likewise.
9368         * p-lang.c (is_pascal_string_type): Likewise.
9369         * valops.c (hand_function_call): Likewise.
9370         * x86-64-tdep.c (classify_argument): Likewise.
9371
9372         * hpread.c (hpread_read_function_type)
9373         (hpread_read_doc_function_type): Call replace_type.
9374         * dstread.c (create_new_type): Delete.
9375         (decode_dst_structure, process_dst_function): Call alloc_type.
9376         Use type access macros.
9377
9378 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9379
9380         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9381         the're not supported by the current architecture.
9382         (i387_fill_fxsave): Likewise.
9383
9384 2002-05-12  Fred Fish  <fnf@redhat.com>
9385
9386         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9387         sect_index_xxx members to index the first slot in section_offsets
9388         if all of the section_offsets are zero.
9389
9390 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9391
9392         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9393         checked in with last change.
9394
9395 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9396
9397         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9398         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9399         config.sub.
9400
9401 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9402
9403         * Makefile.in: Update dependencies.
9404
9405 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9406
9407         * language.c (local_hex_string_custom): Simplify.  Do not depend
9408         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9409
9410         * memattr.c (mem_info_command): Replace calls to
9411         longest_local_hex_string and longest_local_hex_string_custom.
9412         * buildsym.c (make_blockvector): Ditto.
9413         * solib.c (info_sharedlibrary_command): Ditto.
9414         * tracepoint.c (tracepoints_info): Ditto.
9415         * symtab.c (print_msymbol_info): Ditto.
9416
9417         * language.c (local_hex_string): Delete.
9418         (local_hex_string_custom): Delete.
9419         (longest_local_hex_string): Rename to local_hex_string.
9420         (longest_local_hex_string_custom): Rename to
9421         local_hex_string_custom.
9422         * language.h (local_hex_string): Change parameter type to LONGEST.
9423         (local_hex_string_custom): Ditto.
9424         (longest_local_hex_string): Delete declaration.
9425         (longest_local_hex_string_custom): Ditto.
9426
9427         * solib.c: Update copyright.
9428         * memattr.c: Update copyright.
9429         
9430 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9431
9432         * arch-utils.h (legacy_register_to_value): Declare.
9433         (legacy_value_to_register): Declare.
9434         (legacy_convert_register_p): Declare.
9435         * arch-utils.c (legacy_register_to_value): New function.
9436         (legacy_value_to_register): New function.
9437         (legacy_convert_register_p): New function.
9438
9439         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9440         (VALUE_TO_REGISTER): Define.
9441         (CONVERT_REGISTER_P): Define.
9442         * gdbarch.h, gdbarch.c: Regenerate.
9443
9444         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9445         VALUE_TO_REGISTER.
9446         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9447         CONVERT_REGISTER_P.
9448
9449 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9450             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9451
9452         * Makefile.in: Update dependencies for valops.c.
9453         * valops.c: Include "gdb_assert.h".
9454         (typecmp): Skip THIS parameter to methods.
9455         (find_method_list): Remove static_memfuncp argument,
9456         update callers.  Check for stub methods.
9457         (find_value_oload_method_list): Don't set *static_memfuncp.
9458         (find_overload_match): Don't check for stub methods.  Assert
9459         that methods are not stubbed.  Handle static methods.
9460         (value_find_oload_method_list): Remove static_memfuncp argument.
9461         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9462         to the argument list for static stub methods.
9463         * value.h (value_find_oload_method_list): Update prototype.
9464
9465 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9466
9467         * arch-utils.h (generic_register_size): Declare.
9468         (generic_register_raw_size, generic_register_virtual_size): Delete
9469         declarations.
9470         * arch-utils.c (generic_register_raw_size): Delete.
9471         (generic_register_size): New function.
9472         (generic_register_virtual_size): Delete.
9473
9474         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9475         default generic_register_size.
9476         * gdbarch.h, gdbarch.c: Re-generate.
9477         
9478         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9479         register_virtual_size.
9480         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9481         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9482
9483 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9484
9485         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9486         * gdbarch.h, gdbarch.c: Regenerate.
9487         * gnu-v3-abi.c: Update copyright.
9488         (vtable_address_point_offset): Update.
9489         (gnuv3_rtti_type): Update.
9490         (gnuv3_baseclass_offset): Update.
9491         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9492         (init_fetch_link_map_offsets): Update.
9493         * remote.c (get_remote_state): Update.
9494         
9495 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9496
9497         * TODO: Remove value_headof/value_from_vtable_info comment.
9498         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9499         * values.c (value_headof, value_from_vtable_info): Delete.
9500         * value.h (value_from_vtable_info): Delete prototype.
9501
9502 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9503
9504         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9505         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9506         $(gdb_regex_h).
9507         (gdb_assert_h): Define.
9508         (gdb_wait_h): Define.
9509         (gdb_regex_h): Define.
9510
9511 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9512
9513         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9514         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9515
9516 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9517
9518         * nbsd-tdep.c: Fix comment.
9519
9520 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9521
9522         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9523         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9524         (nbsd-tdep.o): New dependency list.
9525         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9526         nbsd-tdep.h.
9527         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9528         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9529         * nbsd-tdep.c: New file.
9530         * nbsd-tdep.h: New file.
9531         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9532         nbsd-tdep.h.
9533         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9534         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9535         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9536         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9537
9538 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9539
9540         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9541         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9542         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9543         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9544         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9545         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9546
9547 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9548
9549         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9550         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9551         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9552         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9553         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9554         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9555         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9556
9557 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9558
9559         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9560         fetch_elfcore_registers to...
9561         * i386nbsd-tdep.c: ...here.
9562         (i386nbsd_use_struct_convention): Rename to...
9563         (i386nbsd_aout_use_struct_convention): ...this.
9564         (i386nbsd_supply_reg): New function.
9565         (i386nbsd_fill_reg): New function.
9566         (fetch_core_registers): Use i386nbsd_supply_reg.
9567         (fetch_elfcore_registers): Likewise.
9568         (_initialize_i386nbsd_tdep): New function.
9569         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9570         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9571         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9572         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9573         (i386nbsd_aout_use_struct_convention): ...this.
9574
9575 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9576
9577         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9578         (store_inferior_registers): Use shnbsd_fill_reg.
9579         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9580         sh_nbsd_supply_register): Collapse into...
9581         (shnbsd_supply_reg): ...this.
9582         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9583         (shnbsd_fill_reg): ...this.
9584         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9585         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9586         (fetch_core_registers): Use shnbsd_supply_reg.
9587         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9588         (sh_nbsd_core_fns): Rename to...
9589         (shnbsd_core_fns): ...this.
9590         (sh_nbsd_elfcore_fns): Rename to...
9591         (shnbsd_elfcore_fns): ...this.
9592         (sh_nbsd_init_abi): Rename to...
9593         (shnbsd_init_abi): ...this.
9594         (_initialize_sh_nbsd_tdep): Rename to...
9595         (_initialize_shnbsd_tdep): ...this.
9596         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9597         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9598         sh_nbsd_fill_register): Remove prototypes.
9599         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9600
9601 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9602
9603         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9604         (i387-nat.o): Delete dependency list.
9605         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9606         (x86-64-linux-nat.o): Likewise.
9607         * i387-nat.c: Delete file, moving contents to...
9608         * i387-tdep.c: ...here.
9609         * i387-nat.h: Rename...
9610         * i387-tdep.h: ...to this.
9611         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9612         * i386-linux-nat.c: Likewise.
9613         * i386bsd-nat.c: Likewise.
9614         * i386gnu-nat.c: Likewise.
9615         * i386nbsd-nat.c: Likewise.
9616         * i386v4-nat.c: Likewise.
9617         * x86-64-linux-nat.c: Likewise.
9618         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9619         * config/i386/go32.mh (NATDEPFILES): Likewise.
9620         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9621         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9622         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9623         * config/i386/linux.mh (NATDEPFILES): Likewise.
9624         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9625         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9626         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9627         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9628
9629 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9630
9631         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9632         (alphanbsd-nat.o): Remove dependency list.
9633         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9634         * alphanbsd-nat.c: Delete.  Contents moved to...
9635         * alphanbsd-tdep.c: ...here.
9636         (_initialize_alphanbsd_tdep): Register core functions.
9637         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9638
9639 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9640
9641         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9642         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9643         (alphanbsd-nat.o): Likewise.
9644         (alphabsd-tdep.o): New dependency list.
9645         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9646         (fill_gregset): Use alphabsd_fill_reg.
9647         (supply_fpregset): Use alphabsd_supply_fpreg.
9648         (fill_fpregset): Use alphabsd_fill_fpreg.
9649         (fetch_inferior_registers): Use struct reg and struct fpreg
9650         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9651         and alphabsd_supply_fpreg.
9652         (store_inferior_registers): Use struct reg and struct fpreg
9653         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9654         and alphabsd_fill_fpreg.
9655         * alphabsd-tdep.c: New file.
9656         * alphabsd-tdep.h: New file.
9657         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9658         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9659         alphabsd_supply_fpreg.
9660         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9661         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9662
9663 2002-05-11  Eric Christopher  <echristo@redhat.com>
9664
9665         * mips-tdep.c (mips_double_register_type): Fix thinko.
9666         (mips_single_register_type): Ditto.
9667         * MAINTAINERS: Add self.
9668
9669 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9670
9671         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9672         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9673         right thing on architectures with different endianness and/or
9674         integer sizes.
9675
9676 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9677
9678         From Christian Limpach <chris@Pin.LU>
9679         * configure.in: Change sed expression which comments out
9680         NATDEPFILES to also comment out continuation lines.
9681         * configure: Regenerate.
9682
9683 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9684
9685         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9686         big patch.
9687
9688 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9689
9690         * sh-tdep.c: Include correct file.
9691
9692 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9693
9694         New support for sh64-elf (sh5) target.
9695
9696         * configure.tgt: For sh64-elf target, default to sh-elf.
9697
9698         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9699         (struct gdbarch_tdep): Add new fields for new registers and ABI
9700         info.
9701
9702         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9703         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9704         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9705         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9706         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9707         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9708         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9709         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9710         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9711         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9712         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9713         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9714         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9715         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9716         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9717         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9718         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9719         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9720         sign_extend, sh64_nofp_frame_init_saved_regs,
9721         sh64_init_extra_frame_info, sh64_get_saved_register,
9722         sh64_extract_struct_value_address, sh64_pop_frame,
9723         sh64_push_arguments, sh64_extract_return_value,
9724         sh64_store_return_value, sh64_show_media_regs,
9725         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9726         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9727         sh_sh64_register_virtual_type,
9728         sh_sh64_register_convert_to_virtual,
9729         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9730         sh64_register_read, sh64_pseudo_register_write,
9731         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9732         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9733         sh64_do_pseudo_register, sh_compact_do_registers_info,
9734         sh64_do_registers_info, sh_gdbarch_init): New functions.
9735
9736 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9737
9738         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9739
9740 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
9741
9742         * linespec.c (decode_line_1): Check for a double quote after
9743         a filename correctly.
9744
9745 2002-05-10  Jim Blandy  <jimb@redhat.com>
9746
9747         Properly track the size of the current objfile's .debug_line section.
9748         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9749         (DWARF_LINE_SIZE): New macro.
9750         (dwarf2_build_psymtabs_hard): Record the line section's size in
9751         the partial symbol table.
9752         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9753         symbol table.
9754
9755 2002-05-10  Petr Sorfa  <petrs@caldera.com>
9756
9757         * ia64-tdep.c: Handle breakpoints on L instruction type
9758         in MLX instruction bundle by moving the breakpoint to
9759         the third slot (X instruction type) as L holds only data.
9760
9761 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
9762
9763         * dbxread.c (discarding_local_symbols_complaint): New complaint.
9764         (process_one_symbol): Complain about discarding local symbols
9765         due to a misplaced N_LBRAC entry.
9766
9767 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
9768
9769         From Daniel Berlin <dan@cgsoftware.com>
9770         * linespec.c (find_toplevel_char): '<' and '>' also increase and
9771         decrease the depth we are at, in the case of templates.
9772
9773 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9774
9775         * mips-tdep.c (mips_float_register_type): New function.
9776         (mips_double_register_type): New function.
9777         (mips_print_register): Use them.
9778         (do_fp_register_row): Likewise.
9779
9780 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9781
9782         * signals/signals.c (signals): Remove conditional compilation around
9783         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
9784         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9785
9786 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9787
9788         * remote-rdp.c (remote_rdp_can_run): Remove.
9789
9790 2002-05-09  Tom Tromey  <tromey@redhat.com>
9791
9792         * jv-valprint.c (java_val_print): Handle `char' as a special case
9793         of TYPE_CODE_INT.
9794
9795 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9796
9797         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9798         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9799         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9800         str r(0123),[sp,#nn].
9801         (arm_skip_prologue): Ditto.  Also make disassembly
9802         order-independent by placing it in a loop.
9803
9804 2002-05-06  Michael Snyder  <msnyder@redhat.com>
9805
9806         * stabsread.c (read_type): Add recognition for new attribute:
9807         "@V;" means that an array type is actually a vector.
9808         This is analogous to the vector flag that's been added to dwarf2.
9809
9810 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
9811
9812         * i386-tdep.h (i386_abi): New enum.
9813         (struct gdbarch_tdep): Replace os_ident member with abi.
9814         (i386_gdbarch_register_os_abi): New prototype.
9815         * i386-tdep.c (i386_abi_names): New array.
9816         (process_note_abi_tag_sections): Removed.
9817         (process_note_sections): New function.
9818         (i386_elf_abi_from_note, i386_elf_abi): New functions.
9819         (struct i386_abi_handler): New struct.
9820         (i386_abi_handler_list): New variable.
9821         (i386_gdbarch_register_os_abi): New function.
9822         (i386_gdbarch_init): Adapt for the changes given above.
9823
9824 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
9825
9826         * gregset.h: Say "GNU/Linux".
9827
9828 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
9829
9830         * gdbtypes.c : Add new builtin type for 64 bit vectors.
9831         (build_gdbtypes): Build builtin_type_v2_float.
9832         (_initialize_gdbtypes): Register new builtin type.
9833
9834 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
9835
9836         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9837         (clear_gdbarch_swap): New function.
9838         (initialize_non_multiarch): Call.
9839         (gdbarch_update_p): Before calling init(), swap out and clear the
9840         existing architecture.
9841         * gdbarch.c: Regenerate.
9842
9843 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9844
9845         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9846         alphanbsd-tdep.c.
9847
9848 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9849
9850         * sh-nbsd-nat.c: Rename to...
9851         * shnbsd-nat.c: ...this.
9852         * sh-nbsd-tdep.c: Rename to...
9853         * shnbsd-tdep.c: ...this.
9854         * sh-nbsd-tdep.h: Rename to...
9855         * shnbsd-tdep.h: ...this.
9856         * config/sh/nbsd.mh: Use shnbsd-nat.o.
9857         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9858
9859 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
9860
9861         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9862         concatenation for command help messages.
9863
9864 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9865
9866         * NEWS: Note new sh*-*-netbsdelf* configuration.
9867         * configure.host: Set gdb_host_cpu to sh for all sh*.
9868         (sh*-*-netbsdelf*): New host.
9869         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9870         (sh*-*-netbsdelf*): New target.
9871         * sh-nbsd-nat.c: New file.
9872         * sh-nbsd-tdep.c: New file.
9873         * sh-nbsd-tdep.h: New file.
9874         * config/sh/nbsd.mh: New file.
9875         * config/sh/nbsd.mt: New file.
9876         * config/sh/nm-nbsd.h: New file.
9877         * config/sh/tm-nbsd.h: New file.
9878
9879 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9880
9881         * sh-tdep.c (sh_osabi_names): Declare.
9882         (process_note_abi_tag_sections): New function.
9883         (get_elfosabi): Ditto.
9884         (sh_gdbarch_register_os_abi): Ditto.
9885         (sh_dump_tdep): Ditto.
9886         _initialize_sh_tdep): Use gdbarch_register to register
9887         sh_gdbarch_init and sh_dump_tdep.
9888         * config/sh/tm-sh.h (sh_osabi): Declare.
9889         (gdbarch_tdep): Add sh_osabi and osabi_name members.
9890
9891 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
9892
9893         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9894         (thumb_scan_prologue): Ditto.
9895         (arm_find_callers_reg): Ditto.
9896         (arm_frame_chain): Ditto.
9897         (arm_init_extra_frame_info): Ditto.
9898         (arm_frame_saved_pc): Ditto.
9899         (arm_pop_frame): Ditto.
9900         (arm_push_return_address): New function.
9901         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9902         call_dummy_location, call_dummy_breakpoint_offset_p,
9903         call_dummy_breakpoint_offset, call_dummy_p,
9904         call_dummy_stack_adjust_p, call_dummy_words,
9905         sizeof_call_dummy_words, call_dummy_start_offset,
9906         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9907         call_dummy_address, push_return_address and push_dummy_frame for
9908         generic dummy frames.
9909
9910 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
9911
9912         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9913         size computation for alloca.
9914         (sh_fp_frame_init_saved_regs): Likewise.
9915
9916 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
9917
9918         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9919         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9920         * arm-tdep.c (arm_store_return_value): Use them.
9921         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9922         * remote-rdp.c (remote_rdp_fetch_register): Use
9923         ARM_MAX_REGISTER_RAW_SIZE.
9924         (remote_rdp_store_register): Likewise.
9925
9926 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
9927
9928         * dwarf2cfi.c: Code cleanup, removed unused variables,
9929         added default labels to switch {} statements.
9930         * x86-64-tdep.c: Ditto.
9931         * x86-64-linux-nat.c: Ditto.
9932
9933 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
9934
9935         * solib.h: Protect against multiple inclusion.
9936
9937 2002-05-06  Jim Blandy  <jimb@redhat.com>
9938
9939         Add first preprocessor macro-expansion files.
9940         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9941         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9942         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9943         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9944         (COMMON_OBS): Add macrotab.o, macroexp.o.
9945         (macroexp.o, macrotab.o): New rules.
9946
9947         Separate the job of reading the line number info statement program
9948         header (...expialidocious) out into its own function.
9949         * dwarf2read.c (struct line_head, struct filenames, struct
9950         directories): Replace with...
9951         (struct line_header): New structure, containing the full
9952         contents of the statement program header, including the
9953         include directory and file name tables.
9954         (read_file_scope): If we have line number info, instead of just
9955         calling dwarf_decode_lines to do all the work, call
9956         dwarf_decode_line_header first to get a `struct line_header'
9957         containing the data in the statement program header, and then
9958         pass that to dwarf_decode_lines, which will pick up where that
9959         left off.  Be sure to clean up the `struct line_header' object.
9960         (dwarf_decode_line_header, free_line_header, add_include_dir,
9961         add_file_name): New functions.
9962         (dwarf_decode_lines): Move all the code to read the statement
9963         program header into dwarf_decode_line_header.  Take the line
9964         header it built as the first argument, instead of the offset to
9965         the compilation unit's line number info.  Use the new `struct
9966         line_header' type instead of the old structures.  No need to do
9967         cleanups here now, since we don't allocate anything.
9968         (dwarf2_statement_list_fits_in_line_number_section,
9969         dwarf2_line_header_too_long): New complaints.
9970
9971 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
9972
9973         * gdbtypes.c (init_vector_type): New function.
9974         (build_builtin_type_vec128): Simplify the representation of SIMD
9975         registers.
9976         (build_gdbtypes): Initialize new builtin vector types.
9977         (_initialize_gdbtypes): Register new vector types with gdbarch.
9978         (builtin_type_v4_float, builtin_type_v4_int32,
9979         builtin_type_v8_int16, builtin_type_v16_int8,
9980         builtin_type_v2_int32, builtin_type_v4_int16,
9981         builtin_type_v8_int8): New (renamed) SIMD types.
9982
9983 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
9984
9985         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9986         (i387_fill_fxsave): Likewise.
9987
9988 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
9989
9990         * alpha-tdep.c (alpha_extract_return_value): Don't use
9991         non-constant array size in prototype.
9992
9993 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
9994
9995         From Brian Taylor <briant at model dot com>:
9996         * ui-out.c (ui_out_field_core_addr): Use the function
9997         longest_local_hex_string_custom'to format addresses > 32 bits
9998         wide.
9999
10000         * ui-out.c (ui_out_field_core_addr): Update comment.
10001
10002 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10003
10004         * stack.c (select_and_print_frame): Make static.  Delete the
10005         parameter `level'.
10006         (func_command): Update call.
10007         (select_frame_command): Delete code computing the frame level.
10008         * frame.h (select_and_print_frame): Delete declaration.
10009
10010 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10011
10012         * sparc-tdep.c (sparc_get_saved_register): Comment why
10013         get_prev_frame call is safe.
10014
10015 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10016
10017         * frame.h (select_frame): Delete level parameter.
10018         * stack.c (select_frame): Update.  Use frame_relative_level to
10019         obtain the frame's level.
10020         (select_and_print_frame): Update call.
10021         (select_frame_command): Ditto.
10022         (up_silently_base): Ditto.
10023         (down_silently_base): Ditto.
10024         * ocd.c (ocd_start_remote): Ditto.
10025         * remote-rdp.c (remote_rdp_open): Ditto.
10026         * remote-mips.c (mips_initialize): Ditto.
10027         (common_open): Ditto.
10028         * remote-e7000.c (e7000_start_remote): Ditto.
10029         * m3-nat.c (select_thread): Ditto.
10030         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10031         (child_get_current_exception_event): Ditto.
10032         * varobj.c (varobj_create): Ditto.
10033         (varobj_update): Ditto.
10034         (c_value_of_root): Ditto.
10035         * tracepoint.c (finish_tfind_command): Ditto.
10036         * corelow.c (core_open): Ditto.
10037         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10038         * thread.c (info_threads_command): Ditto.
10039         (switch_to_thread): Ditto.
10040         * infrun.c (normal_stop): Ditto.
10041         (restore_selected_frame): Ditto.
10042         (restore_inferior_status): Ditto.
10043         * breakpoint.c (insert_breakpoints): Ditto.
10044         (watchpoint_check): Ditto.
10045         (bpstat_stop_status): Ditto.
10046         (do_enable_breakpoint): Ditto.
10047         * blockframe.c (flush_cached_frames): Ditto.
10048         (reinit_frame_cache): Ditto.
10049
10050 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10051
10052         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10053         maintainer.
10054
10055 2002-05-04  Jim Blandy  <jimb@redhat.com>
10056
10057         * gdbtypes.c (replace_type): Doc fix.
10058
10059 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10060
10061         * valprint.c (strcat_longest): Delete commented out function.
10062         Update copyright.
10063
10064 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10065
10066         * MAINTAINERS: Mark a29k as deleted.
10067         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10068         Move new configurations to the top.
10069         * configure.tgt: Remove a29k.
10070         * config/a29k/tm-vx29k.h: Delete.
10071         * config/a29k/vx29k.mt: Delete.
10072         * config/a29k/tm-a29k.h: Delete.
10073         * config/a29k/a29k-udi.mt: Delete.
10074         * config/a29k/a29k.mt: Delete.
10075         * a29k-tdep.c: Delete.
10076         * remote-udi.c: Delete.
10077         * remote-mm.c: Delete.
10078         * remote-eb.c: Delete.
10079         * remote-adapt.c: Delete.
10080         * Makefile.in: Remove obsolete code.
10081         * config/s390/s390x.mt: Ditto.
10082         * config/s390/s390.mt: Ditto.
10083         * config/sparc/sparclynx.mh: Ditto.
10084         * config/sparc/linux.mh: Ditto.
10085         * config/pa/hppaosf.mh: Ditto.
10086         * config/pa/hppabsd.mh: Ditto.
10087         * config/ns32k/nbsd.mt: Ditto.
10088         * config/mips/vr5000.mt: Ditto.
10089         * config/m68k/sun3os4.mh: Ditto.
10090         * config/m68k/nbsd.mt: Ditto.
10091         * config/m68k/m68klynx.mh: Ditto.
10092         * config/m32r/m32r.mt: Ditto.
10093         * config/i386/x86-64linux.mt: Ditto.
10094         * config/i386/nbsdelf.mt: Ditto.
10095         * config/i386/nbsd.mt: Ditto.
10096         * config/i386/i386lynx.mh: Ditto.
10097
10098 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10099
10100         * target.c (debug_print_register): New function.  Handle oversize
10101         registers.
10102         (debug_to_fetch_registers): Call.
10103         (debug_to_store_registers): Call.
10104
10105 2002-05-03  Jim Blandy  <jimb@redhat.com>
10106
10107         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10108         (read_type): Doc fix.
10109         * gdbtypes.c (replace_type): Doc fix.
10110
10111         * stabsread.c (multiply_defined_struct): New complaint.
10112         (read_struct_type): If the type we were passed isn't empty, or
10113         incomplete, don't read the new struct type into it; complain,
10114         and return the original type unchanged.  Take a new `type_code'
10115         argument, which is the type code for the new type.
10116         (read_type): Rather than storing the type's type code here, pass
10117         it as an argument to read_struct_type, and let that take care of
10118         storing it.  That way, we don't overwrite the original type code,
10119         so read_struct_type can use it to decide whether we're overwriting
10120         something we shouldn't.
10121         (complain_about_struct_wipeout): New function.
10122
10123 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10124
10125         * gdbarch.sh: Assert that gdbarch is non-NULL.
10126         * gdbarch.c: Regenerate.
10127
10128 2002-05-03  Jason Merrill  <jason@redhat.com>
10129
10130         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10131         and return NULL.
10132
10133 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10134
10135         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10136         (x86_64_dwarf2gdb_regno_map_length),
10137         (x86_64_dwarf2_reg_to_regnum): Added.
10138         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10139         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10140         (_initialize_x86_64_tdep): Synced with the change above.
10141         (x86_64_skip_prologue): Reformulated message.
10142
10143 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10144
10145         * f-exp.y: Also use new prev_lexptr variable
10146         to improve error reporting. Based on Michael Snyder
10147         2002-04-24 dated patch to c-exp.y.
10148         * jv-exp.y: Likewise.
10149         * m2-exp.y: Likewise.
10150
10151 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10152
10153         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10154         we are dealing with vectors.
10155
10156 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10157
10158         * config/m68k/tm-nbsd.h: Obvious fix,
10159         correct machine name.
10160
10161 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10162
10163         * p-typeprint.c (pascal_type_print_base): Add support
10164         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10165
10166 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10167
10168         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10169         for fondamental pascal 'char' type.
10170
10171 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10172
10173         * p-lang.h (is_pascal_string_type): Declaration changed,
10174         new sixth argument of type char ** added.
10175         * p-lang.c (is_pascal_string_type): Implementation
10176         changed. Args length_pos, length_size, string_pos, char_size
10177         can now be NULL. New argument arrayname set to the field
10178         name of the char array. Return value set to char array
10179         field index plus one.
10180         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10181         is_pascal_string_type function.
10182
10183 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10184
10185         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10186         <cagney@redhat.com> change.
10187         * gdbarch.c: Regenerate.
10188
10189 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10190
10191         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10192         before probing for a new one.  Detect errorenous gdbarch_init
10193         functions.
10194         * gdbarch.c: Regenerate.
10195
10196 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10197
10198         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10199         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10200         * config/v850/tm-v850.h: Ditto.  Update copyright.
10201
10202 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10203
10204         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10205         current_gdbarch.
10206
10207 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10208
10209         * arm-tdep.c: Whitespace clean-ups.
10210         (arm_skip_prologue): Fix thinko; two lines
10211         should have been removed as part of 4/24 change.
10212
10213 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10214
10215         * rs6000-tdep.c: Added comment describing how fpscr register
10216         numbers were chosen.
10217
10218 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10219
10220         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10221
10222 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10223
10224         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10225         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10226         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10227
10228 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10229
10230         From Louis Hamilton <hamilton@redhat.com>:
10231         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10232         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10233         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10234         not bfd-private xcoff data, to determine wordsize.
10235         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10236
10237 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10238
10239         GDB 5.2 released from 5.2 branch.
10240
10241 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10242
10243         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10244         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10245         (x86_64_register_info_table): Added comments with register numbers.
10246
10247 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10248
10249         * rs6000-tdep.c (rs6000_extract_return_value,
10250         rs6000_store_return_value): Handle returning vectors.
10251         (rs6000_gdbarch_init): Use
10252         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10253         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10254         New function.
10255         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10256         vectors.
10257         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10258         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10259
10260 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10261
10262         * hpread.c (hpread_psymtab_to_symtab_1,
10263         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10264         with fprintf_unfiltered (gdb_stderr,...).
10265
10266 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10267
10268         * remote-array.c (printf_monitor, write_monitor,
10269         array_insert_breakpoint, array_remove_breakpoint ):
10270         Replace fprintf (stderr,...
10271         with fprintf_unfiltered (gdb_stderr,....
10272         * remote-es.c: Likewise.
10273         * remote-os9k.c: Likewise.
10274         * remote-st.c: Likewise.
10275
10276 2002-04-28  Andreas Schwab  <schwab@suse.de>
10277
10278         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10279         linux-proc.o and gcore.o.
10280
10281 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10282
10283         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10284         code without frame pointers.
10285
10286 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10287
10288         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10289         ON_STACK is needed.
10290
10291 2002-04-26  Ben Elliston  <bje@redhat.com>
10292
10293         * target.c (do_xfer_memory): Correct reference to the new option
10294         "trust-readonly-sections".
10295
10296 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10297
10298         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10299         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10300         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10301         vectors.
10302         (read_array_type): Record the fact that this array type is really a
10303         vector (i.e. are passed in by value).
10304
10305 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10306
10307         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10308         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10309         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10310         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10311         * alpha-linux-tdep.c: Include frame.h.
10312         (alpha_linux_sigcontext_addr): New function.
10313         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10314         alpha_linux_sigcontext_addr.
10315         * alpha-osf1-tdep.c: Include gdbcore.h.
10316         (alpha_osf1_sigcontext_addr): New function.
10317         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10318         alpha_osf1_sigcontext_addr.
10319         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10320         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10321
10322 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10323
10324         * stack.c (selected_frame_level):
10325         (select_frame): Do not set selected_frame_level.
10326         * frame.h (selected_frame_level): Delete declaration.
10327
10328 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10329
10330         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10331         convert_from_func_ptr-addr when AIX / PowerOpen.
10332
10333 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10334
10335         * valops.c (hand_function_call): Call
10336         generic_save_call_dummy_addr.
10337         * frame.h (generic_save_call_dummy_addr): Declare.
10338         * blockframe.c (struct dummy_frame): Add fields call_lo and
10339         call_hi.
10340         (generic_find_dummy_frame): Check for PC in range call_lo to
10341         call_hi instead of entry_point_address.
10342         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10343         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10344         (generic_save_call_dummy_addr): New function.
10345
10346 2002-04-24  David S. Miller  <davem@redhat.com>
10347
10348         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10349         sparc_skip_prologue.
10350         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10351         information to find prologue when possible.
10352         (sparc_prologue_frameless_p): Call examine_prologue directly.
10353         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10354         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10355         second argument.
10356         (SKIP_PROLOGUE): Likewise.
10357
10358 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10359
10360         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10361         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10362         indicate that the condition it was testing is always true.
10363         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10364         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10365         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10366
10367 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10368
10369         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10370         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10371         tdep->jb_pc and tdep->jb_elt_size.
10372         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10373         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10374         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10375         * alpha-nat.c (get_longjmp_target): Remove.
10376         (JB_ELEMENT_SIZE): Ditto.
10377         (JB_PC): Ditto.
10378         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10379         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10380         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10381         to alpha_get_longjmp_target.
10382         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10383         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10384         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10385
10386 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10387
10388         * README: Update to GDB 5.2.
10389
10390 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10391
10392         * gdbarch.sh (LC_ALL): Set to `c'.
10393
10394 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10395
10396         * avr-tdep.c: Ran through gdb_indent.sh.
10397
10398 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10399
10400         * MAINTAINERS: Add myself as AVR maintainer.
10401         * NEWS: Note new target avr.
10402
10403 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10404
10405         * Makefile.in: Add support for AVR target.
10406         * configure.tgt: Add support for AVR target.
10407         * avr-tdep.c: New file
10408         * config/avr/avr.mt: New file.
10409
10410 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10411
10412         * MAINTAINERS: Add myself to write-after-approval.
10413
10414 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10415
10416         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10417         with fprintf_unfiltered (gdb_stderr,....
10418
10419 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10420
10421         Fix PR gdb/508.
10422         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10423
10424 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10425
10426         * p-exp.y: Also use new prev_lexptr variable
10427         to improve error reporting. Based on Michael Snyder
10428         2002-04-24 dated patch to c-exp.y.
10429
10430 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10431
10432         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10433         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10434         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10435         to 0.
10436         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10437         and struct value.
10438         (FUNCTION_START_OFFSET): Remove.
10439         (BREAKPOINT): Ditto.
10440
10441 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10442
10443         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10444         * NEWS: Ditto.
10445
10446 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10447
10448         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10449         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10450         alpha_linux_pc_in_sigtramp.
10451         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10452         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10453         alpha_osf1_pc_in_sigtramp.
10454         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10455         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10456         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10457         alphafbsd_pc_in_sigtramp.
10458         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10459         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10460         alphanbsd_pc_in_sigtramp.
10461         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10462         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10463
10464 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10465
10466         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10467
10468 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10469
10470         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10471         alphanbsd-tdep.c.
10472         (alphanbsd-nat.o): New dependency list.
10473         (alphanbsd-tdep.o): Ditto.
10474         * NEWS: Note new native NetBSD/alpha configuration.
10475         * alphanbsd-nat.c: New file.
10476         * alphanbsd-tdep.c: Ditto.
10477         * configure.host (alpha*-*-netbsd*): New host.
10478         * configure.tgt (alpha*-*-netbsd*): New target.
10479         * config/alpha/nbsd.mh: New file.
10480         * config/alpha/nbsd.mt: Ditto.
10481         * config/alpha/nm-nbsd.h: Ditto.
10482         * config/alpha/tm-nbsd.h: Ditto.
10483
10484 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10485
10486         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10487         (alpha-osf1-tdep.o): New dependency list.
10488         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10489         and skip_sigtramp_frame members.
10490         * alpha-linux-tdep.c: Include gdbcore.h.
10491         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10492         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10493         * alpha-osf1-tdep.c: New file.
10494         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10495         alpha-osf1-dep.c.
10496         (alpha_frame_past_sigtramp_frame): New function.
10497         (alpha_dynamic_sigtramp_offset): Ditto.
10498         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10499         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10500         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10501         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10502         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10503         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10504         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10505         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10506         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10507         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10508         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10509         to find_solib_trampoline_target.
10510         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10511         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10512         (SKIP_TRAMPOLINE_CODE): Remove.
10513         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10514         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10515         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10516         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10517         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10518         (PROC_SIGTRAMP_MAGIC): Ditto.
10519         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10520         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10521         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10522         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10523         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10524
10525 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10526
10527         * NEWS: Note that Alpha targets are now multi-arch.
10528
10529 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10530
10531         * parser-defs.h (prev_lexptr): New external variable.
10532         * parse.c (parse_exp_1): Set prev_lexptr to null before
10533         calling the language-specific parser.
10534         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10535         (yyerror): Use prev_lexptr in error reporting.
10536
10537 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10538
10539         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10540         * gregset.h: If FILL_FPXREGSET is defined, provide
10541         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10542         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10543         is defined, call fill_fpxregset.
10544
10545 2002-04-24  Roland McGrath  <roland@frob.com>
10546
10547         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10548         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10549         (supply_gregset, supply_fpregset): New functions.
10550
10551         * gnu-nat.c (gnu_find_memory_regions): New function.
10552         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10553         (gnu_xfer_memory): Add a cast.
10554
10555 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10556
10557         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10558         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10559         of argument regs ("str r(0123), [r11, #-nn"]).
10560         (arm_skip_prologue): Better handling for frameless functions.
10561         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10562         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10563
10564 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10565
10566         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10567         NUM_PSEUDO_REGS can be used.
10568
10569 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10570
10571         * arch-utils.h: Update copyright.
10572
10573         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10574         * gdbarch.h, gdbarch.c: Re-generate.
10575
10576         * inferior.h (IN_SIGTRAMP): Delete definition.
10577         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10578         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10579
10580         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10581         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10582         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10583         (find_proc_framesize): Ditto.
10584         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10585         (alpha_init_extra_frame_info): Ditto.
10586         * infrun.c (handle_inferior_event): Ditto.
10587         (handle_inferior_event): Ditto.
10588         (check_sigtramp2): Ditto.
10589         * blockframe.c (create_new_frame): Ditto.
10590         (get_prev_frame): Ditto.
10591         * ppc-linux-tdep.c: Update comments.
10592         * i386-linux-tdep.c: Update comments.
10593         * breakpoint.c (bpstat_what): Update comment.
10594
10595 2002-04-24  David S. Miller  <davem@redhat.com>
10596
10597         * i960-tdep.c (register_in_window_p): New function.
10598         (i960_find_saved_register): Use it instead of
10599         REGISTER_IN_WINDOW_P.
10600         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10601
10602         * symtab.h (find_stab_function_addr): Kill extern.
10603         * minsyms.c (find_stab_function_addr): Remove from here...
10604         * dbxread.c: ... to here, and mark it static.
10605
10606 2002-04-20  David S. Miller  <davem@redhat.com>
10607
10608         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10609         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10610
10611 2002-04-21  David S. Miller  <davem@redhat.com>
10612
10613         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10614         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10615         (vx_write_register): Likewise.
10616
10617 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10618
10619         * source.c (is_regular_file): New function.
10620         (openp): Check wether file to open is a regular file
10621         to avoid opening directories.
10622
10623 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10624
10625         * findvar.c (extract_signed_integer): Cast printf argument
10626         to suppress format warning.
10627         (extract_unsigned_integer): Likewise.
10628         * infcmd.c (registers_info): Likewise.
10629         * top.c (get_prompt_1): Likewise.
10630         * valops.c (value_assign): Likewise.
10631         * valprint.c (print_decimal): Likewise.
10632
10633 2002-04-22  H.J. Lu  (hjl@gnu.org)
10634
10635         * c-exp.y (typebase): Support
10636
10637         [long|long long|short] [signed|unsigned] [int|]
10638
10639         and
10640
10641         signed [long|long long|short] int
10642
10643 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10644
10645         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10646         and vax-tdep.h.
10647         * vax-tdep.h: New file.
10648         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10649         Make several routines static.
10650         (vax_get_saved_register): New function.
10651         (vax_gdbarch_init): New function.
10652         (_initialize_vax_tdep): Register vax_gdbarch_init.
10653         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10654         Remove macros now under the control of gdbarch.
10655
10656 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10657
10658         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10659         Some whitespace and coding standards tweaks.
10660
10661 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10662
10663         * vax-tdep.c: Include regcache.h.
10664         (vax_call_dummy_words): New.
10665         (sizeof_vax_call_dummy_words): New.
10666         (vax_fix_call_dummy): New function.
10667         (vax_saved_pc_after_call): Ditto.
10668         * config/vax/tm-vax.h: Don't include regcache.h.
10669         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10670         (CALL_DUMMY): Remove.
10671         (CALL_DUMMY_WORDS): Define.
10672         (SIZEOF_CALL_DUMMY_WORDS): Define.
10673         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10674
10675 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10676
10677         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10678
10679 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10680
10681         * vax-tdep.c (vax_frame_chain): New function.
10682         (vax_push_dummy_frame): Ditto.
10683         (vax_pop_frame): Ditto.
10684         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10685         (FRAMELESS_FUNCTION_INVOCATION): Use
10686         generic_frameless_function_invocation_not.
10687         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10688         (POP_FRAME): Use vax_pop_frame.
10689
10690 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10691
10692         * vax-tdep.c (vax_store_struct_return): New function.
10693         (vax_extract_return_value): Ditto.
10694         (vax_store_return_value): Ditto.
10695         (vax_extract_struct_value_address): Ditto.
10696         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10697         vax_store_struct_return.
10698         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10699         (STORE_RETURN_VALUE): Use vax_store_return_value.
10700         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10701
10702 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10703
10704         * vax-tdep.c (vax_frame_saved_pc): New function.
10705         (vax_frame_args_address_correct): Ditto.
10706         (vax_frame_args_address): Ditto.
10707         (vax_frame_locals_address): Ditto.
10708         (vax_frame_num_args): Move code to be in proximity to
10709         other frame-related functions.
10710         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10711         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10712         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10713         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10714         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10715
10716 2002-04-22  H.J. Lu  (hjl@gnu.org)
10717
10718         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10719         includedir.
10720
10721 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10722
10723         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10724         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10725         (FRAME_INIT_SAVED_REGS): New macro.
10726
10727 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10728
10729         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10730
10731 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10732
10733         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10734         where needed.
10735         (fetch_osf_core_registers): Likewise.
10736         (supply_gregset): Likewise.
10737
10738 2002-04-22  J. Brobecker  <brobecker@gnat.com>
10739
10740         * symfile.h (get_section_index): Define.
10741         * symfile.c (get_section_index): New function.
10742         * mdebugread.c (SC_IS_SBSS): New macro.
10743         (SC_IS_BSS): Return true for the scBss storage class only, as
10744         the scSBss storage class refers to the .sbss section.
10745         (parse_partial_symbols): Discard the symbols which associated
10746         section does not exist.
10747         Make sure to use the .sbss section index for symbols which
10748         storage class is scBss, rather than using the .bss section index.
10749
10750 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10751
10752         * vax-tdep.c: Update copyright years.
10753         (vax_register_name): New function.
10754         (vax_register_byte): Ditto.
10755         (vax_register_raw_size): Ditto.
10756         (vax_register_virtual_size): Ditto.
10757         (vax_register_virtual_type): Ditto.
10758         * config/vax/tm-vax.h: Update copyright years.
10759         (REGISTER_NAMES): Remove.
10760         (REGISTER_NAME): Define.
10761         (REGISTER_BYTE): Use vax_register_byte.
10762         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10763         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10764         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10765
10766 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10767
10768         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10769         declaration
10770         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10771
10772 2002-04-21  David S. Miller  <davem@redhat.com>
10773
10774         * arch-utils.c (generic_prologue_frameless_p): Kill
10775         SKIP_PROLOGUE_FRAMELESS_P code.
10776         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10777         references.
10778         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10779         * arc-tdep.c (arc_prologue_frameless_p): Implement.
10780         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10781         references.
10782         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10783         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10784         (sparc_gdbarch_init): Pass it to
10785         set_gdbarch_prologue_frameless_p.
10786
10787 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10788
10789         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10790         (alphabsd-nat.o): New dependency list.
10791
10792 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10793
10794         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10795         alphafbsd-tdep.c.
10796         (alpha-linux-tdep.o): New dependency list.
10797         (alphafbsd-tdep.o): Likewise.
10798
10799 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10800
10801         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
10802         to here...
10803         * alpha-tdep.c: ...from here.
10804         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10805
10806 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10807
10808         * config/alpha/tm-alpha.h: Move alpha_software_single_step
10809         prototype from here...
10810         * alpha-tdep.h: ...to here.
10811
10812 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10813
10814         * frame.h (selected_frame_level): Document as deprecated.
10815         (frame_relative_level): Declare.
10816         * stack.c (frame_relative_level): New function.
10817         (selected_frame_level): Document as deprecated.
10818         (select_frame): Do not set the selected_frame_level.
10819
10820         * stack.c (frame_info, record_selected_frame): Update.
10821         (frame_command, current_frame_command): Update.
10822         (up_silently_base, up_command, down_silently_base): Update.
10823         (down_command): Update.
10824         * inflow.c (kill_command): Update.
10825         * tracepoint.c (finish_tfind_command): Update.
10826         * corelow.c (core_open): Update.
10827         * thread.c (info_threads_command): Update.
10828         (do_captured_thread_select): Update.
10829         * infcmd.c (finish_command): Update.
10830         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10831
10832 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10833
10834         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10835
10836 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10837
10838         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
10839         type const.
10840
10841 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10842
10843         * alphafbsd-tdep.c: Update copyright years.  Include
10844         alpha-tdep.h.
10845         (alphafbsd_use_struct_convention): Make static.
10846         (alphafbsd_init_abi): New function.
10847         (_initialize_alphafbsd_tdep): New function.
10848         * config/alpha/tm-fbsd.h: Update copyright years.
10849         (USE_STRUCT_CONVENTION): Remove.
10850
10851 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10852
10853         * alpha-tdep.c (alpha_abi_handler): New structure to describe
10854         an Alpha ABI variant.
10855         (alpha_abi_handler_list): Declare.
10856         (alpha_gdbarch_register_os_abi): New function.
10857         (alpha_gdbarch_init): Give registered ABI variant handlers a
10858         chance to tweak the gdbarch once we have set up defaults.
10859         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10860
10861 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10862
10863         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10864         to standard_coerce_float_to_double.
10865         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10866
10867 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10868
10869         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10870         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10871         from gdbarch_tdep rather than a constant.
10872         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10873         the default text address for all Alpha Unix ABIs.
10874         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10875         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10876
10877 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10878
10879         * alpha-tdep.h: New file.  Includes several Alpha target constants
10880         taken from...
10881         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
10882         let gdbarch deal with.
10883         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10884         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10885         to dependency list.
10886         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
10887         Alpha target register names.
10888         * alphabsd-nat.c: Likewise.
10889         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
10890         Alpha target register names.  Make serveral routines static.
10891         (alpha_get_saved_register): New function.
10892         (alpha_abi_names): New.
10893         (process_note_abi_tag_sections): New function.
10894         (get_elfosabi): New function.
10895         (alpha_gdbarch_init): New function.
10896         (alpha_dump_tdep): New function.
10897         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10898
10899 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10900
10901         * frame.c (find_saved_register): Delete #ifdef
10902         HAVE_REGISTER_WINDOWS code.
10903         * config/sparc/tm-sparc.h: Update comments.
10904         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10905
10906 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10907
10908         * i960-tdep.c (i960_find_saved_register): New function.
10909         (i960_get_saved_register): New function.
10910         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10911         (i960_get_saved_register): Declare.
10912         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10913
10914 2002-04-20  David S. Miller  <davem@redhat.com>
10915
10916         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10917
10918 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
10919
10920         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10921         instead of NUM_PSEUDO_REGS.
10922
10923 2002-04-20  David S. Miller  <davem@redhat.com>
10924
10925         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10926         GDB_MULTI_ARCH_PARTIAL
10927         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10928         define, let tm-sp64.h do it.
10929
10930 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
10931
10932         * frame.c (find_saved_register): Avoid a NULL pointer
10933         dereference and actually walk the frame list.
10934
10935 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
10936
10937         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10938         sorted in most most-recent-used order.  Document.
10939         * gdbarch.h, gdbarch.c: Regenerate.
10940
10941 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
10942
10943         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10944         instead of ->prev.
10945         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10946         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10947         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10948         instead of ->prev.
10949
10950 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
10951
10952         Fix PR gdb/471.
10953         * gdbtypes.c (init_simd_type): Rewrite using new functions.
10954         (build_builtin_type_vec128): Ditto.
10955         (append_composite_type_field): Fix calculation of type length in
10956         union case.
10957
10958 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
10959
10960         * config/djgpp/README: Update.
10961
10962         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10963         compiler warnings.
10964
10965 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
10966
10967         * alpha-tdep.c (setup_arbitrary_frame): Rename...
10968         (alpha_setup_arbitrary_frame): ...to this.
10969         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10970         for alpha_setup_arbitrary_frame.
10971
10972 2002-04-18  Andrew Cagney  <cagney@redhat.com>
10973
10974         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10975         * gdbarch.h, gdbarch.c: Regenerate.
10976
10977         * defs.h (breakpoint_from_pc_fn): Delete type definition.
10978         * target.h (memory_breakpoint_from_pc): Update declaration.
10979         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10980
10981         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10982         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10983         * mem-break.c (memory_breakpoint_from_pc): Ditto.
10984         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10985         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10986         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10987         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10988         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10989         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10990         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10991         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10992         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10993
10994         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10995         const pointer.
10996         * monitor.c (monitor_insert_breakpoint): Ditto.
10997         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10998
10999         * config/mcore/tm-mcore.h: Update copyright.
11000         * mem-break.c: Ditto.
11001         * xstormy16-tdep.c: Ditto.
11002
11003 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11004
11005         * p-exp.y: Add precedence rule for '^' token.
11006         This removes the shift/reduce conflicts.
11007         Remove the comment concerning these shift/reduce conflicts.
11008
11009 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11010
11011         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11012         (registers_powerpc_nofp): New register set for processors
11013         without floating point unit.
11014
11015 2002-04-18  David S. Miller  <davem@redhat.com>
11016
11017         * MAINTAINERS: Add myself to write-after-approval.
11018
11019 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11020
11021         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11022
11023 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11024
11025         * rs6000-tdep.c (frame_initial_stack_address): Use
11026         frame_register_read to read the alloca_reg.
11027
11028 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11029
11030         * frame.c (find_saved_register): Find saved registers in the next
11031         not prev frame.
11032         Fix PR gdb/365.
11033
11034 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11035
11036         * gdbarch.sh (LANG): Set to ``c''.
11037
11038 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11039
11040         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11041
11042 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11043
11044         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11045         Update copyright.
11046
11047         * hpread.c (hpread_get_lntt): Add declaration.
11048         Also fix PR gdb/391.
11049
11050 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11051
11052         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11053         * aclocal.m4, configure: Re-generate.
11054         Fix PR gdb/391.
11055
11056 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11057
11058         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11059         instead of tm_print_insn.
11060
11061 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11062
11063         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11064
11065 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11066
11067         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11068         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11069         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11070
11071 2002-04-12  Don Howard  <dhoward@redhat.com>
11072
11073         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11074         max_user_call_depth.
11075         (init_cmd_lists): Initialize the new value;
11076         * cli/cli-script.c (execute_user_command): Limit the call depth of
11077         user defined commands.  This avoids a core-dump when user commands
11078         are infinitly recursive.
11079
11080 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11081
11082         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11083         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11084         from tdep struct instead of DEFAULT_LR_SAVE.
11085         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11086         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11087         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11088
11089 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11090
11091         * Remote.c: Spelling fix.
11092         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11093         If no symbol found for "sbrk", try "_sbrk".
11094         (make_output_phdrs): Use bfd_section_name.
11095         (gcore_copy_callback): Use bfd_section_name.
11096         * eval.c: Indentation fix-ups.
11097         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11098         in case it gets applied to an address that is already
11099         in the instruction space.
11100         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11101         * symfile.c: Fix indentation, long lines.
11102         * source.c: White space fix-up.
11103
11104 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11105
11106         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11107         * frame.c (frame_register_read): New function.  Return non-zero on
11108         success.
11109         (read_relative_register_raw_bytes_for_frame): Delete.
11110         (read_relative_register_raw_bytes): Delete.
11111         * frame.h (frame_register_read): Declare.
11112         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11113         * sh-tdep.c: Ditto.
11114         * infcmd.c (do_registers_info): Ditto.
11115         * hppa-tdep.c: Ditto.
11116         * rs6000-tdep.c: Ditto.
11117         * h8500-tdep.c: Ditto.
11118         * mips-tdep.c: Ditto.
11119         * h8300-tdep.c: Ditto.
11120         * z8k-tdep.c: Ditto.
11121
11122 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11123
11124         From Jimi X <jimix@watson.ibm.com>:
11125         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11126         64-bit SysV ABI.
11127
11128 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11129
11130         From Jimi X <jimix@watson.ibm.com>:
11131         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11132         bfd info.
11133
11134 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11135
11136         From Jimi X <jimix@watson.ibm.com>:
11137         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11138         register sets for these processor variants.
11139
11140 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11141
11142         * regformats/reg-ppc.dat: Support FPSCR.
11143
11144 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11145
11146         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11147         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11148         Add fpscr as an invalid/unfetchable register.
11149         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11150         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11151         (fill_fpregset): Add support for register fpscr.
11152         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11153         (fill_gregset): Account for the fact that register ``mq'' might
11154         not exist.
11155         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11156         (registers_power): Add fpscr to register set at slot 71.
11157         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11158         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11159
11160 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11161
11162         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11163         * configure: Regenerate.
11164         * config.in: Regenerate.
11165         * acconfig.h: Add define for _SYSCALL32.
11166         * core-sol2.c: Remove #define _SYSCALL32.
11167         * solib-legacy.c: Remove #define _SYSCALL32.
11168
11169 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11170
11171         * stack.c (select_frame): Cleanup internal error message, do not
11172         use %p.
11173
11174 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11175
11176         * stack.c (select_frame): Check that selected_frame and the
11177         specified level are as expected.
11178         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11179         Update copyright.
11180         * frame.h (struct frame_info): Add field `level'.  Update
11181         copyright.
11182         Work-in-progress PR gdb/464.
11183
11184 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11185
11186         * maint.c (maint_print_section_info): Rename print_section_info.
11187         (print_bfd_section_info, print_objfile_section_info): Update.
11188         * inferior.h (struct gdbarch): Add opaque declaration.
11189         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11190         * gdbarch.h: Regenerate.
11191
11192 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11193
11194         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11195         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11196         (kernel_u_size): Added.
11197         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11198         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11199
11200 2002-04-04  Jim Ingham  <jingham@apple.com>
11201
11202        * valarith.c (find_size_for_pointer_math): New function, either returns
11203        the size for a pointer's target, returns 1 for void *, or errors for
11204        incomplete types.
11205        (value_add, value_sub): use find_size_for_pointer_math.
11206
11207 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11208
11209         * linux-low.c (linux_look_up_symbols): New hook.
11210         (linux_target_ops): Add linux_look_up_symbols.
11211         * remote-utils.c (decode_address): New function.
11212         (look_up_one_symbol): New function.
11213         * server.c (handle_query): Call target look_up_symbols hook.
11214         * server.h (look_up_one_symbol): Add prototype.
11215         * target.h (struct target_ops): Add look_up_symbols hook.
11216
11217 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11218
11219         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11220         override FP_REGNUM with frame->fp.  Update copyright.
11221         * parse.c (num_std_regs, std_regs): Delete.
11222         (target_map_name_to_register): Do not search std_regs.  Update
11223         function description.
11224         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11225         declarations.  Update copyright.
11226         Fix PR gdb/251.
11227
11228 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11229
11230         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11231         after the last symbol in a block.
11232
11233 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11234
11235         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11236         is non zero as a found symbol.
11237
11238 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11239
11240         * findvar.c: Include "builtin-regs.h".
11241         (value_of_register): Call value_of_builtin_reg when applicable.
11242         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11243         (target_map_name_to_register): Call
11244         builtin_reg_map_name_to_regnum.
11245         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11246         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11247         (builtin_regs_h): Define.
11248         (builtin-regs.o): New target.
11249         (findvar.o): Add $(builtin_regs_h).
11250         * builtin-regs.c, builtin-regs.h: New files.
11251         * std-regs.c: New file.
11252         Partial fix for PR gdb/251.
11253
11254 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11255
11256         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11257         it's no longer required.
11258
11259 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11260
11261         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11262
11263 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11264
11265         From Jimi X <jimix@watson.ibm.com>:
11266         * rs6000-tdep.c (rs6000_software_single_step): Use
11267         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11268         and size.  Use target_insert_breakpoint() and
11269         target_remove_breakpoint() to insert and remove breakpoints
11270         instead of explicit memory reads and writes.
11271
11272 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11273
11274         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11275         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11276         ELF_OBJECT_FORMAT ifdef.
11277
11278 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11279
11280         From Jimi X <jimix@watson.ibm.com>:
11281         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11282
11283 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11284
11285         From Jimi X <jimix@watson.ibm.com>:
11286         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11287         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11288
11289 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11290
11291         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11292         s/asprintf/xasprintf/.
11293         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11294
11295 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11296
11297         I believe Jeff Law denies responsability for this one:
11298         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11299         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11300         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11301         Work-around for PR gdb/366.
11302
11303 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11304
11305         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11306         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11307         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11308
11309 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11310
11311         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11312         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11313         information.
11314
11315 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11316
11317         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11318         maintainer.
11319
11320 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11321
11322         * README (Reporting Bugs in GDB): Document the bug web page as the
11323         prefered way of submitting bugs.
11324         Fix PR gdb/402.
11325
11326 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11327
11328         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11329         -1.  Update comment.
11330         * gdbarch.h, gdbarch.c: Re-generate.
11331
11332 2002-04-07  Andreas Schwab  <schwab@suse.de>
11333
11334         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11335         buffer to regcache_collect.
11336
11337 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11338
11339         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11340         * gdbarch.c, gdbarch.h: Re-generate.
11341
11342 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11343
11344         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11345         declaration.  Fix -Werror.
11346
11347 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11348
11349         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11350         * gdbarch.c: Regenerate.
11351
11352 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11353
11354         * breakpoint.c (clear_command): Rewrite middle section to
11355         combine two loops with identical control conditions.
11356         Add a cleanup to eliminate a memory leak.
11357         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11358
11359 2002-04-05  H.J. Lu  (hjl@gnu.org)
11360
11361         * solib-svr4.c (bkpt_names): Add "__start".
11362
11363 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11364
11365         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11366         as test for 64 bit target.
11367
11368 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11369
11370         * h8500-tdep.c (h8500_write_fp): Delete function.
11371         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11372         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11373         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11374         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11375         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11376         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11377         (s390_write_fp):
11378         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11379         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11380         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11381         (d10v_write_fp): Delete function.
11382         * inferior.h (write_fp, generic_target_write_fp): Delete
11383         declarations.
11384         * regcache.c (generic_target_write_fp): Delete function.
11385         (write_fp): Delete function.
11386         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11387         * gdbarch.h, gdbarch.c: Regenerate.
11388         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11389         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11390         (sparc64_write_fp): Delete declaration.
11391         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11392         (h8500_write_fp): Delete declaration.
11393
11394 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11395
11396         * sparc-tdep.c (sparc64_write_fp): Delete.
11397         (sparc_push_dummy_frame): Replace write_fp call with code to store
11398         the FP directly.
11399         (sparc_gdbarch_init): Do not initialize write_fp.
11400
11401 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11402
11403         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11404         clause.
11405
11406 2002-03-29  Jim Blandy  <jimb@redhat.com>
11407
11408         * stack.c (get_selected_block): Add new argument `addr_in_block',
11409         used to return the exact code address we used to select the block,
11410         not just the block.
11411         * blockframe.c (get_frame_block, get_current_block): Same.
11412         * frame.h (get_frame_block, get_current_block,
11413         get_selected_block): Update declarations.
11414         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11415         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11416
11417 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11418
11419         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11420         warning message.
11421
11422 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11423
11424         * utils.c (xfullpath): New function.
11425         * defs.h (xfullpath): Add declaration.
11426         * source.c (openp): Use xfullpath in place of gdb_realpath to
11427         avoid resolving the basename part of filenames when the
11428         associated file is a symbolic link. This fixes a potential
11429         inconsistency between the filenames known to GDB and the
11430         filenames it prints in the annotations.
11431         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11432         to be able to match a filename with either the real filename, or
11433         the name of any symbolic link to this file.
11434         (lookup_partial_symtab): Ditto.
11435
11436 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11437
11438         * breakpoint.c: Add support for hardware breakpoints in overlays.
11439         (overlay_events_enabled): New state variable.
11440         (insert_breakpoints): Use overlay_events_enabled to decide
11441         whether to attempt to set a breakpoint at the overlay load addr.
11442         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11443         (remove_breakpoint): Use overlay_events_enabled to decide
11444         whether breakpoints need to be removed from overlay load addr.
11445         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11446         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11447         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11448         disable_overlay_breakpoints): Update overlay_events_enabled.
11449
11450 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11451
11452         * dwarf2read.c (struct function_range): New.
11453         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11454         (check_cu_functions): New.
11455         (read_file_scope): Initialize global function lists.
11456         Call dwarf_decode_line after processing children.
11457         (read_func_scope): Add to global function list.
11458         (dwarf_decode_lines): Call check_cu_functions everywhere
11459         record_line is called.  Call record_line with a linenumber
11460         of 0 to mark sequence ends.
11461
11462 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11463
11464         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11465         change sync with glibc.
11466
11467 2002-04-03  Jim Blandy  <jimb@redhat.com>
11468
11469         * configure.in: Call AC_C_INLINE.
11470         * configure: Regenerated.
11471
11472 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11473
11474         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11475         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11476
11477 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11478
11479         * NEWS: Mention gcore support on FreeBSD/i386.
11480
11481         * fbsd-proc.c: New file.
11482         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11483         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11484
11485         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11486         while statement.
11487
11488 2002-03-29  Jim Blandy  <jimb@redhat.com>
11489
11490         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11491         unescaped newlines in string literals, but newer ones don't.  So
11492         escape them.
11493
11494 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11495             Andrew Cagney <cagney@redhat.com>
11496
11497         * cli/cli-dump.c: New file.  Dump memory to file,
11498         restore file to memory.
11499         * cli/cli-dump.h: New file.
11500         * Makefile.in: Add rules, dependencies for cli-dump.o.
11501         * NEWS: Mention new commands.
11502
11503 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11504
11505         * symfile.c (symbol_file_add): Move test for null symbols to later.
11506
11507 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11508
11509         From veksler at il.ibm.com:
11510         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11511         the xstrduped original path.
11512         Fix PR gdb/417.
11513
11514 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11515
11516         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11517         * infcmd.c (_initialize_infcmd): Ditto.
11518         * language.c (_initialize_language): Ditto.
11519         * symfile.c (_initialize_symfile): Ditto.
11520         * top.c (_init_main): Ditto.
11521         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11522
11523 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11524
11525         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11526         vector registers handling.
11527         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11528         fields of frame data.
11529         (frame_get_saved_regs): Fill in information for AltiVec registers.
11530
11531 2002-03-27  Jim Blandy  <jimb@redhat.com>
11532
11533         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11534         a function; leave this macro here to invoke that function.
11535         (symbol_init_mangled_name): Declaration for that function.
11536         * symtab.c (symbol_init_mangled_name): New function.
11537
11538 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11539
11540         * valarith.c: Replace strerror with safe_strerror.
11541         * tracepoint.c: Ditto.
11542         * lin-lwp.c: Ditto.
11543         * go32-nat.c: Ditto.
11544         * inflow.c: Ditto.
11545         * gnu-nat.c: Ditto.
11546
11547 2002-03-27  Andreas Schwab  <schwab@suse.de>
11548
11549         * event-top.c (command_line_handler): Remove useless if.
11550
11551 2002-03-27  Andreas Jaeger  <aj@suse.de>
11552
11553         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11554         comment.
11555
11556 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11557
11558         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11559         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11560         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11561         (x86_64_linux_dr_get_status, supply_gregset),
11562         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11563         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11564         (x86_64_register_info_table): Add.
11565         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11566         (x86_64_register_raw_size, x86_64_register_virtual_type),
11567         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11568         general x86_64_register_info_table.
11569         (i386_gdbarch_init): gdbarch_register_bytes is now set
11570         dynamicaly during initialization.
11571         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11572         * gdbserver/linux-x86-64-low.c: Ditto.
11573
11574 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11575
11576         * gdbserver/server.c (main): Call target_signal_to_host_p
11577         and target_signal_to_host on signals received from the remote.
11578         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11579         target_signal_from_host on signals sent to the remote.
11580         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11581         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11582
11583 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11584
11585         * signals/signals.c: Include "server.h" in gdbserver build.
11586         (target_signal_from_name): Don't use STREQ.
11587         (_initialize_signals): Likewise.  Don't include function in
11588         gdbserver build.
11589
11590 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11591
11592         * signals.c: Moved to...
11593         * signals/signals.c: Here.
11594         * Makefile (signals.o): Update.
11595
11596 2002-03-26  Jeff Law (law@redhat.com)
11597
11598         * somread.c (som_symtab_read): Remove some commented out code and
11599         updated related comments.  Do not set the minimal symbol table to
11600         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11601         in a dynamic executable.
11602         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11603         where we are unable to find the minimal symbol for the given
11604         PC value.
11605
11606 2002-03-25  Jeff Law (law@redhat.com)
11607
11608         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11609
11610 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11611
11612         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11613
11614 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11615
11616         * command.h: Update copyright.
11617         (struct cmd_list_element): Replace definition with opaque
11618         declaration.
11619         (enum cmd_types): Document that it will eventually be moved to
11620         cli/cli-decode.h
11621         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11622         (MALLOCED_REPLACEMENT): Delete macro.
11623         * Makefile.in (cli_decode_h): Add $(command_h).
11624         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11625         * top.c: Include "cli/cli-decode.h".
11626         * completer.c: Include "cli/cli-decode.h".
11627         * maint.c: Include "cli/cli-decode.h".
11628         * cli/cli-decode.h: Include "command.h".
11629         (enum command_class): Delete.
11630         (enum cmd_types): Comment out.
11631         (enum cmd_auto_boolean): Delete.
11632         (enum var_types): Delete.
11633
11634 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11635
11636         * cli/cli-decode.c: Include "gdb_assert.h".
11637         (add_set_or_show_cmd): New static function.
11638         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11639         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11640         all fields, such as func, from the set command.
11641
11642 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11643
11644         * MAINTAINERS (sh-elf): Change warning flag to -w.
11645
11646 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11647
11648         * defs.h (error): Add printf format attribute.
11649         * thread-db.c (thread_from_lwp): Fix error format string.
11650         * stack.c (parse_frame_specification): Ditto.
11651         * cli/cli-decode.c (undef_cmd_error): Ditto.
11652         * scm-lang.c (scm_lookup_name): Ditto.
11653         * tracepoint.c (trace_error): Ditto.
11654         * remote-utils.c (usage): Ditto.
11655         * remote.c (compare_sections_command): Ditto.
11656         Fix PR gdb/328.
11657
11658 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11659
11660         * gdbtypes.c (append_composite_type_field): New function.
11661         (init_composite_type): New function.
11662         * gdbtypes.h (append_composite_type_field): Declare.
11663         (init_composite_type): Ditto.
11664
11665 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11666
11667         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11668         function.
11669         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11670         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11671         structure returning convention for SYSV ABI case, but not
11672         for GNU/Linux, FreeBSD, or NetBSD.
11673
11674 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11675
11676         * symtab.h (lookup_block_symbol): Add mangled_name argument
11677         to prototype.
11678
11679         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11680         with new mangled_name argument.
11681         * linespec.c (decode_line_1): Likewise.
11682         * valops (value_of_this): Likewise.
11683         * symtab.c (lookup_transparent_type): Likewise.
11684         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11685         (lookup_symbol): If we are given a mangled name, pass it down
11686         to lookup_symbol_aux.
11687         (lookup_block_symbol): If we are given a mangled name to check
11688         against, only return symbols which match it.
11689
11690 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11691
11692         * win32-nat.c (child_create_inferior): Check for proper shell to use
11693         here, in case the user changes it on the fly.
11694         (_initialize_inftarg): Remove shell path considerations.
11695
11696 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11697
11698         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11699         for gdbarch_max_register_raw_size and max_register_virtual_size.
11700         Adjust copyright year.
11701
11702 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11703
11704          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11705          in a function to cover the entire beginning of the function
11706          as well if it does not already.
11707
11708 2002-03-21  Tom Rix  <trix@redhat.com>
11709
11710         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11711         (rs6000_ptrace64): Renamed from ptrace64.
11712
11713 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11714
11715         * gdbserver/remote-utils.c (remote_open): Don't call
11716         getprotobyname, we're all using TCP here so just use
11717         IPPROTO_TCP.
11718         * gdbserver/gdbreplay.c (remote_open): Ditto.
11719
11720 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11721
11722         * regcache.c (_initialize_regcache): No need to call
11723         build_regcache() at this time; it gets called whenever
11724         the gdbarch changes.
11725
11726 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11727
11728         * sparc-nat.c:  Include sys/param.h where possible.
11729
11730 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11731
11732         Fix PR gdb/422.
11733         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11734         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11735         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11736         complex types.
11737         * stabsread.c (rs6000_builtin_type): Likewise.
11738         (read_sun_floating_type): Likewise.
11739
11740 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11741
11742         * stabsread.c (read_member_functions): Remove skip code for duplicate
11743         constructor/destructor methods.  Use standard parsing for these
11744         methods and just do not chain them to the list of methods after
11745         parsing.
11746
11747 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
11748
11749         * coffread.c: Remove redundant static declarations.  Replace
11750         occurrences of `PTR' with `void *'.
11751         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11752         * top.h (quit_cover): Likewise.
11753         * defs.h (catch_errors): Likewise.
11754
11755 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11756
11757         * defs.h (XMALLOC): Define.
11758         * gdb-events.sh (XMALLOC): Delete macro.
11759         * gdb-events.c, gdb-events.h: Regenerate.
11760         * gdbarch.sh (XMALLOC): Delete macro.
11761         * gdbarch.c: Regenerate.
11762         * serial.c (XMALLOC): Delete macro.
11763         * ui-file.c (XMALLOC): Ditto.
11764         * ser-unix.h (XMALLOC): Ditto.
11765         * sh-tdep.c (XMALLOC): Ditto.
11766         * ui-out.c (XMALLOC): Ditto.
11767         * utils.c (XMALLOC): Ditto.
11768         * i386-tdep.c (XMALLOC): Ditto.
11769         * gdb-events.c (XMALLOC): Ditto.
11770         * d10v-tdep.c (XMALLOC): Ditto.
11771         * cli-out.c (XMALLOC): Ditto.
11772
11773         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11774         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11775         * ui-file.c, ui-out.c: Ditto.
11776
11777 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11778
11779         * command.h (struct cmd_list_element): Add field context.
11780         (set_cmd_context, get_cmd_context): Declare.
11781         * cli/cli-decode.h: Ditto.
11782         * cli/cli-decode.c (get_cmd_context): New function.
11783         (set_cmd_context): New function.
11784         (add_cmd): Initialize context.
11785         Part of fixing PR gdb/145 and PR gdb/146.
11786
11787 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11788
11789         * cli/cli-decode.c (cmd_type): New function.
11790         * command.h (cmd_type): Declare.
11791         * infrun.c (set_schedlock_func): Call function cmd_type.
11792         * kod.c (kod_set_os): Call cmd_type.
11793         * cris-tdep.c (cris_version_update): Use function cmd_type.
11794         (cris_mode_update, cris_abi_update): Ditto.
11795
11796         * command.h: (execute_cmd_post_hook): Declare.
11797         (execute_cmd_pre_hook): Declare.
11798         * cli/cli-script.c (clear_hook_in_cleanup): New function.
11799         (execute_cmd_post_hook, execute_cmd_pre_hook): New
11800         functions. Execute pre/post hook while ensuring that afterwords
11801         hook_in is cleared.
11802         * top.c (execute_command): Use execute_cmd_post_hook, and
11803         execute_cmd_pre_hook to execute pre/post commands.
11804         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11805         hook_stop_stub.
11806         (hook_stop_stub): Call execute_cmd_pre_hook.
11807
11808 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11809
11810         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
11811         set'' and this leads to a core dump.  Move xstrdup of
11812         operating_system to after check that it is not NULL.
11813
11814 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11815
11816         * kod.c (kod_set_os): Remove unnecessary check that
11817         ``command->type'' is set_cmd.
11818
11819         * valprint.c (set_input_radix): Use input_radix.
11820         (set_output_radix): Use output_radix.
11821         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11822         isn't reverted.
11823
11824 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
11825
11826         * value.h (struct value): Delete field ``substring_addr''.  Change
11827         aligner fields to force_doublest_align, force_longest_align,
11828         force_core_addr_align and force_pointer_aligh.
11829
11830         * value.h (struct value): Fix typo in above change.
11831
11832 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11833
11834         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11835         to fix internal_error from ``maintenance print architecture''.
11836
11837 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11838
11839         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11840         for gcc versions after gcc-2.8.1.
11841
11842 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11843
11844         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11845         for method resolution.  Restore adjustment of ``this'' pointer after
11846         calling value_struct_elt, which was accidentally removed during the
11847         HP merge.
11848
11849 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
11850
11851         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11852         value_of_register.
11853         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
11854         get_saved_register.
11855         * value.h (value_of_register): Update.
11856
11857 2002-03-14  Richard Henderson  <rth@redhat.com>
11858
11859         * configure.in: Detect declaration for canonicalize_file_name.
11860         * utils.c (canonicalize_file_name): Declare, if needed.
11861         (gdb_realpath): Prefer realpath if available and usable.
11862         * config.in, configure: Rebuild.
11863
11864 2002-03-14  Richard Henderson  <rth@redhat.com>
11865
11866         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11867         a constant array bound.
11868
11869         * MAINTAINERS: Add myself to write-after-approval.
11870
11871 2002-03-14  Michael Snyder  <msnyder@redhat.com>
11872
11873         * symfile.c (syms_from_objfile): Return immediately if no syms.
11874         (symbol_file_add): Return immediately if no syms.
11875         (find_sym_fns): Return immediately if no syms.
11876
11877 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
11878
11879         * gdbserver/remote-util.c (remote_open): Print remote-side's
11880         IP address when remote debugging over the network.
11881
11882 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
11883
11884         * config/sparc/fbsd.mh: Fix copyright.
11885         * config/sparc/fbsd.mt: Likewise.
11886
11887 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
11888
11889         * MAINTAINERS: Fix typo in name of gdb warnings option.
11890         (x86-64): Fix formating so that this can be parsed by awk.
11891
11892 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
11893
11894         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11895         * defs.h: Include "gdb/signals.h".
11896         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11897
11898 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
11899
11900         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11901         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11902         from x86-64-tdep.h
11903
11904 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
11905             Don Howard <dhoward@redhat.com>
11906
11907         * mips-tdep.c (ST0_FR): Define.
11908         (mips2_fp_compat): New function, temporarily disabled.
11909         (mips_read_fp_register_single): New function.
11910         (mips_read_fp_register_double): New function.
11911         (mips_print_register): Use them.
11912         (do_fp_register_row): Likewise.
11913
11914 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
11915
11916         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11917         approval''.
11918
11919 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11920
11921         * stabsread.c (read_member_functions): Fix is_stub test for
11922         static member functions, improve comment.
11923
11924 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
11925
11926         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11927         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11928         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11929         commands that set boolean values.
11930         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11931         (arm_rdi_resume): Always initialize PC.
11932         (arm_rdi_open): Don't use rslt as a boolean.
11933         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11934         (arm_rdi_fetch_registers, arm_rdi_store_registers)
11935         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11936         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11937
11938 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
11939
11940         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11941         * configure: Rebuilt.
11942
11943 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11944
11945         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11946         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11947
11948 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
11949
11950         * cli/cli-decode.c (set_cmd_completer): New function.
11951         * command.h (set_cmd_completer): Declare.
11952         * cli/cli-decode.h (set_cmd_completer): Ditto.
11953
11954         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11955         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11956         * win32-nat.c (_initialize_inftarg): Ditto.
11957         * remote-rdi.c (_initialize_remote_rdi): Ditto.
11958         * proc-api.c (_initialize_proc_api): Ditto.
11959         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11960         * source.c (_initialize_source): Ditto.
11961         * exec.c (_initialize_exec): Ditto.
11962         * solib.c (_initialize_solib): Ditto.
11963         * top.c (init_main): Ditto.
11964         * tracepoint.c (_initialize_tracepoint): Ditto.
11965         * symfile.c (_initialize_symfile): Ditto.
11966         * printcmd.c (_initialize_printcmd): Ditto.
11967         * infcmd.c (_initialize_infcmd): Ditto.
11968         * corefile.c (_initialize_core): Ditto.
11969
11970 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
11971
11972         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11973
11974 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
11975
11976         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11977
11978 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
11979
11980         * NEWS: Update headings, 5.2 has branched.
11981
11982 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
11983
11984         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11985         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11986         (register_addr, REGISTER_RAW_SIZE): Likewise.
11987         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11988         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11989
11990 2002-03-03  Michal Ludvig <mludvig@suse.cz>
11991
11992         * MAINTAINERS (x86-64): Add myself.
11993         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11994         changed value_ptr -> struct value *
11995
11996 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
11997
11998         * configure.host (sparc64-*-freebsd): Add.
11999         * configure.tgt: Likewise.
12000         * config/sparc/fbsd.mh: New file.
12001         * config/sparc/fbsd.mt: Likewise.
12002         * config/sparc/nm-fbsd.h: Likewise.
12003         * config/sparc/tm-fbsd.h: Likewise.
12004
12005 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12006
12007         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12008         regformats/reg-s390x.dat.
12009
12010 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12011
12012         * utils.c: Add FIXME explaining true/false problem.
12013
12014 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12015
12016         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12017
12018 2002-02-28  Michael Chastain  <mec@shout.net>
12019
12020         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12021
12022 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12023
12024         * gdbserver/linux-s390-low.c: New file.
12025         * regformats/reg-s390.dat: New file.
12026         * regformats/reg-s390x.dat: New file.
12027         * gdbserver/configure.srv: Add S/390.
12028         * gdbserver/Makefile.in: Add S/390.
12029         * configure.tgt: Enable gdbserver for S/390.
12030
12031 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12032
12033         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12034         first line of the doc string for "info dos", except at the end of
12035         the sentence, since the short help stops at the first period.
12036
12037 2002-02-28  Jason Merrill  <jason@redhat.com>
12038
12039         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12040
12041 2002-02-27  Fred Fish  <fnf@redhat.com>
12042
12043         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12044         comment (dumy -> dummy).
12045
12046 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12047
12048         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12049
12050 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12051
12052       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12053
12054 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12055
12056         * gdbserver/acconfig.h: New file.
12057         * gdbserver/i387-fp.c: New file.
12058         * gdbserver/i387-fp.h: New file.
12059         * gdbserver/linux-x86-64.c: New file.
12060         * regformats/reg-x86-64.dat: New file.
12061         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12062         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12063         * gdbserver/configure.in: Add support for regsets.
12064         * gdbserver/config.in: Regenerate.
12065         * gdbserver/configure: Regenerate.
12066         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12067         * gdbserver/linux-low.h: New file.
12068         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12069         for regsets.
12070         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12071         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12072         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12073         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12074         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12075         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12076         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12077         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12078         * gdbserver/regcache.c (supply_register): New function.
12079         (supply_register_by_name): New function.
12080         (collect_register): New function.
12081         (collect_register_by_name): New function.
12082
12083 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12084
12085         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12086         (config.status): Add configure.srv dependency.
12087         (server_h): Add config.h dependency.
12088
12089 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12090
12091         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12092         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12093         * gdbserver/configure.srv: Change i386-*-linux* to use
12094         reg-i386-linux.o.
12095
12096 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12097
12098         * x86-64-tdep.c: Re-indent.  Update copyright date.
12099
12100 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12101
12102         From Michal Ludvig <mludvig@suse.cz>:
12103         * x86-64-tdep.c (value.h): Delete.
12104         (gdb_assert.h): Include.
12105         (x86_64_register_convert_to_virtual,
12106         x86_64_register_convert_to_raw ): Add check which lets only
12107         floating-point values to be converted.
12108         (value_push): Delete.
12109         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12110         (i386_gdbarch_init): Number of register_bytes fixed.
12111
12112 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12113
12114         * MAINTAINERS: Add x86-64 target.
12115
12116 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12117
12118         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12119         * osfsolib.c (solib_map_sections): Ditto.
12120         * irix5-nat.c (solib_map_sections): Ditto.
12121         * corelow.c (gdb_check_format): Ditto.
12122         * symfile.c (symfile_bfd_open): Ditto.
12123         * solib.c (solib_map_sections): Ditto.
12124         Fix PR gdb/354.
12125
12126 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12127
12128         * remote.c (_initialize_remote): By default, disable ``e'' and
12129         ``E'' step out-of-range packets.
12130
12131 2002-02-26  Andreas Schwab  <schwab@suse.de>
12132
12133         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12134         m68k_linux_frame_saved_pc.
12135         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12136         in_sigtramp.
12137         (SIGCONTEXT_PC_OFFSET): Remove.
12138         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12139         m68k_linux_sigtramp_saved_pc): New functions.
12140         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12141         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12142         (UCONTEXT_PC_OFFSET): Define.
12143         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12144         non-RT and RT signal trampolines.
12145
12146 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12147
12148         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12149         (TARGET_NBPG, STACK_END_ADDR): Delete
12150         (VARIABLES_INSIDE_BLOCK): Delete.
12151
12152 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12153
12154         * utils.c (perror_with_name): Make string parameter constant.
12155         (print_sys_errmsg): Ditto.
12156         (query): Ditto.
12157         * defs.h (perror_with_name): Update.
12158         (print_sys_errmsg): Update.
12159         (query): Update.
12160
12161 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12162
12163         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12164         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12165
12166 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12167
12168         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12169         if it already matches the current architecture from the exec file.
12170         Include arch-utils.h for gdbarch_info_init prototype.
12171         * Makefile.in (rs6000-nat.o): Update dependencies.
12172
12173 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12174
12175         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12176          list of exported variables.
12177
12178 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12179
12180         * gdbserver/configure.srv: New file.
12181         * gdbserver/configure.in: Use configure.srv instead
12182         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12183         from it.
12184         * gdbserver/configure: Regenerated.
12185         * gdbserver/terminal.h: New file.
12186         * gdbserver/Makefile.in: Update for configure changes.  Remove
12187         more unneeded include paths.
12188
12189 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12190
12191         From wiz at danbala:
12192         * config/sparc/tm-sp64.h: Fix grammar and typos.
12193         Fix PR gdb/287.
12194
12195 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12196
12197         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12198         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12199         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12200         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12201         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12202         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12203         * s390-tdep.c: Ditto.
12204         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12205         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12206         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12207         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12208         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12209         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12210         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12211         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12212         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12213         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12214         Fix PR gdb/378.
12215
12216 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12217
12218         * lin-thread.c: Delete file.
12219         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12220         to gdb_proc_service.h.
12221         * configure: Re-generate.
12222
12223         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12224         * serial.c (serial_open): Delete check for "ocd".
12225         Fix PR gdb/349.
12226
12227         * Makefile.in (linux-thread.o): Delete target.
12228         * linux-thread.c: Delete file.
12229
12230         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12231         renamed SH files to be consistent.
12232
12233         * symtab.c (sort_search_symbols): Use xfree.
12234
12235 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12236
12237         * arm-linux-tdep.c (arm_linux_init_abi): Register
12238         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12239         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12240         definition with undef, since we don't want the sysvr4 definition.
12241         (SKIP_TRAMPOLINE_CODE): Likewise.
12242
12243 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12244
12245         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12246
12247         * configure.in: (AC_CHECK_FUNCS) Added test for
12248         canonicalize_file_name Regenerated.
12249         * config.in, configure: Regenerated.
12250         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12251         defined use canonicalize_file_name.
12252
12253 2002-02-23  Michael Chastain  <mec@shout.net>
12254
12255         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12256
12257 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12258
12259         * README: Remove references to cygnus.com.
12260         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12261         dot com'' form.  Remove references to cygnus.com and sourceware.
12262
12263 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12264
12265         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12266         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12267         1003.1-2001 no longer allows "head -1".
12268         * gdb/Makefile.in (version.c): Likewise.
12269         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12270         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12271         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12272
12273 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12274
12275         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12276         * command.h (cmd_cfunc_eq): Declare.
12277         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12278
12279         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12280         ``struct cmd_list_element *''.
12281         * cli/cli-cmds.c (is_complete_command): Update.  Use
12282         cmd_cfunc_eq.
12283         * top.c (execute_command): Pass the command to
12284         is_complete_command.
12285         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12286
12287 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12288
12289         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12290         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12291         architecture defines.
12292         * s390-tdep.c (s390_gdbarch_init): Likewise.
12293
12294 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12295
12296         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12297         (arm_linux_push_arguments): Likewise.
12298         (arm_linux_init_abi): Register them.  Also register linux-specific
12299         call_dummy_words.
12300         (find_minsym_and_objfile): Use strcmp, not STREQ.
12301         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12302         (arm_linux_call_dummy_words): Delete declaration.
12303         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12304         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12305         declarations.
12306         (LOWEST_PC): Delete.
12307
12308 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12309
12310         * maint.c (print_section_info): Do not prepend `0x' to filepos
12311         output, it will be handled by local_hex_string_custom.
12312
12313 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12314
12315         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12316         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12317         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12318
12319 2002-02-22  Jim Blandy  <jimb@redhat.com>
12320
12321         Indicate that the bcache functions don't change the strings
12322         they're passed.
12323         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12324         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12325
12326 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12327
12328         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12329
12330 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12331
12332         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12333         find the complete path to a loaded DLL.
12334
12335 2002-02-21  Fred Fish  <fnf@redhat.com>
12336
12337         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12338         that marks the end of the range of a function, enter a line number
12339         entry that has a line number of zero and a PC offset that matches
12340         the end of the function.  This starts a range of PC's for which no
12341         line number information is known.
12342         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12343         PC's for which no line number info is found (line number is zero)
12344         then we didn't find any valid line information.
12345         * symtab.h: Document use of zero line number entry.
12346
12347 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12348
12349         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12350         (have_ptrace_getvrregs): Define for run time checks.
12351         (gdb_vrregset_t): New type for Altivec register handling.
12352         (fetch_register, store_register): Fetch/store altivec register
12353         when needed.
12354         (fetch_altivec_register, store_altivec_register): New functions.
12355         (supply_vrregset, fill_vrregset): New functions.
12356         (fetch_altivec_registers, store_altivec_registers): New functions.
12357         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12358         registers as well.
12359
12360 2002-02-21  Jiri Smid  <smid@suse.cz>
12361
12362         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12363
12364 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12365
12366         * Makefile.in (armnbsd-nat.o): Update dependencies.
12367         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12368         supply the integer register set.
12369         (supply_fparegset): New function.  Similar for FPA registers.
12370         (fetch_regs, fetch_fp_regs): Use them.
12371         (fetch_core_registers): Likewise.
12372         (fetch_elfcore_registers): New function.
12373         (arm_netbsd_elfcore_fns): New core-file type specification.
12374         (_initialize_arm_netbsd_nat): Register it.
12375
12376 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12377
12378         * armnbsd-nat.c: Include gdbcore.h.
12379         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12380         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12381         'void' to declaration, to shut up ARI.
12382         (fetch_core_registers): Make static.  Rewrite using supply_register.
12383         (arm_netbsd_core_fns): New core-file type specification.
12384         (_initialize_arm_netbsd_nat): New function.
12385
12386 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12387
12388         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12389         value.
12390
12391 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12392
12393         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12394         fails.
12395
12396 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12397
12398         * jv-exp.y (parse_number): Change type of implicit longs
12399         to builtin_type_uint64.
12400
12401 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12402
12403         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12404         to be an integer instead of a `union wait'.
12405
12406 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12407
12408         * mips-linux-nat.c: Call the operating system GNU/Linux.
12409         * mips-linux-tdep.c: Likewise.
12410         * mips-tdep.c: Likewise.
12411
12412 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12413
12414         Fix PR gdb/265.
12415         * jv-exp.y (parse_number): Handle 64-bit integers.
12416
12417 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12418
12419         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12420         AC_STDC_HEADERS to AC_HEADER_STDC.
12421         * gdbserver/configure: Regenerated.
12422
12423 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12424
12425         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12426         is defined.
12427         * sparc-tdep.c (get_longjmp_target): Likewise.
12428
12429 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12430
12431         * News: Add news about ARM and Multi-arch.  Mention the new target
12432         arm*-*-netbsd*.
12433
12434 2002-02-19  Jim Blandy  <jimb@redhat.com>
12435
12436         * stabsread.c (error_type_complaint): Improve error message.
12437
12438 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12439
12440         * gdbserver/README: Update documentation.
12441         * gdbserver/configure.in: Update configury to match documentation.
12442         * gdbserver/Makefile.in: Likewise.
12443         * gdbserver/configure: Regenerated.
12444         * gdbserver/aclocal.m4: New file, generated by aclocal.
12445         * gdbserver/config.in: New file, generated by autoheader.
12446
12447 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12448
12449         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12450         armnbsd-nat.c.
12451
12452 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12453
12454         * arm-tdep.h (enum arm_float_model): New enum.
12455         (struct gdbarch_tdep): Add fp_model.
12456         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12457         up floating-point conversions until we know the floating-point model
12458         in use by the inferior.  Don't complain about being unable to
12459         determine the ABI of the inferior when we don't have one.
12460         (arm_extract_return_value): Support different floating-point models.
12461         (arm_store_return_value): Likewise.
12462         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12463         ARM_FLOAT_SOFT.
12464         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12465
12466 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12467
12468         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12469         of ``current_gdbarch''.
12470
12471 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12472
12473         * armnbsd-nat.c : ANSIfy all function declarations.
12474         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12475         (fetch_inferior_registers): Re-implement in terms of above.
12476         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12477         (store_inferior_registers): Re-implement in terms of above.
12478
12479 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12480
12481         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12482         kernel.
12483         * arm-linux-tdep.c: Likewise.
12484         * config/arm/tm-linux.h: Likewise.
12485
12486 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12487
12488         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12489         * config/arm/nbsd.mt (TM_FILE): Delete.
12490         * config/arm/tm-nbsd.h: Delete.
12491
12492 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12493
12494         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12495         Initialize CALL_DUMMY_LENGTH.
12496
12497 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12498
12499         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12500         function.
12501         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12502         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12503         defines one thing and that is incorrect for this port.
12504         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12505
12506 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12507
12508         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12509
12510 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12511
12512         * win32-nat.c (display_selector): New function. Displays information
12513         about the information returned by GetThreadSelectorEntry API function.
12514         (display_selectors): New function. Displays the infomation of
12515         the selector given as argument, or of CS, DS ans FS selectors
12516         if no argument is given.
12517         ( _initialize_inftarg): Add "w32" as info prefix command.
12518         Add "info w32 selector" as command calling display_selectors.
12519
12520 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12521
12522         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12523         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12524         if not defined.
12525
12526 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12527
12528         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12529
12530 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12531
12532         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12533         (arm_fix_call_dummy): Call it.
12534         (arm_call_dummy_breakpoint_offset): Delete.
12535         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12536         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12537
12538 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12539
12540         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12541         Default to func_frame_chain_valid.
12542         * gdbarch.h, gdbarch.c: Re-generate.
12543         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12544
12545 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12546
12547         * ppc-linux-nat.c: Update copyright.
12548         (fetch_register, store_register): Add tid parameter, don't compute
12549         tid here.
12550         (fetch_ppc_registers, store_ppc_registers): Add tid
12551         parameter. Pass it along to callees.
12552         (fetch_inferior_registers, store_inferior_registers): Compute tid
12553         here, and pass it to calleed functions.
12554         (fill_gregset, supply_fpregset): Clean up formatting.
12555
12556 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12557
12558         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12559         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12560
12561 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12562
12563         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12564         * gdbarch.c gdbarch.h: Regenerate.
12565         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12566         function.
12567         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12568         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12569         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12570
12571         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12572         * arm-tdep.c (arm_get_longjmp_target): New function.
12573         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12574         this to a positive value register arm_get_longjmp_target as the
12575         longjmp handler.
12576         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12577         (arm_linux_init_abi): Set up longjmp description in tdep.
12578         * armnbsd-nat.c (get_longjmp_target): Delete.
12579         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12580         description in tdep.
12581         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12582         (get_longjmp_target): Delete declaration.
12583         (GET_LONGJMP_TARGET): Delete.
12584         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12585         (GET_LONGJMP_TARGET): Delete.
12586
12587 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12588
12589         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12590         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12591         of ``current_gdbarch''.
12592
12593 2002-02-17  Tom Tromey  <tromey@redhat.com>
12594
12595         * cli/cli-cmds.c (compare_strings): New function.
12596         (complete_command): Only print each unique item once.
12597         * completer.h (complete_line): Declare.
12598         * completer.c (complete_line): New function.
12599         (line_completion_function): Use it.
12600
12601 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12602
12603         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12604         * gdbarch.h, gdbarch.c: Re-generate.
12605
12606 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12607
12608         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12609
12610 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12611
12612         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12613         * valops.c (value_arg_coerce): Don't take the address of a reference
12614         to convert an argument to a reference.
12615
12616 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12617
12618         * win32-nat.c (get_image_name): New function.
12619         (handle_load_dll): Use get_image_name function.
12620         (get_child_debug_event): Avoid registering debug events until possibly
12621         execed process is started.
12622         (child_create_inferior): Allow invocation via shell so that command
12623         line redirection, etc.  works ok.
12624         (_initialize_inftarg): Add new command: "set shell" to control whether
12625         a shell is used to start a process.
12626
12627 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12628
12629         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12630         instead of find_register_by_number.
12631         (cannot_store_register): Likewise.
12632
12633 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12634
12635         * dwarf2read.c: Replace fprintf (stderr, ...) by
12636         fprintf_unfiltered (gdb_stderr, ...).
12637
12638 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12639
12640         * gdbserver/gdbserver.1: Document --attach.
12641
12642 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12643
12644         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12645         descriptions.
12646         * arm-tdep.c (arm_default_arm_le_breakpoint)
12647         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12648         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12649         traditional breakpoint defines.
12650         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12651         (arm_gdbarch_init): Initialize new breakpoint variables.
12652         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12653         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12654         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12655         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12656         code out to ...
12657         (arm_netbsd_init_abi_common): ... here; new function.
12658         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12659         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12660         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12661         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12662
12663 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12664
12665         * arm-tdep.h (enum arm_abi): New enum.
12666         (struct gdbarch_tdep): New structure.
12667         (LOWEST_PC): Provide a default.
12668         (arm_gdbarch_register_os_abi): Declare new function.
12669         * arm-tdep.c (arm_abi_names): New array.
12670         (process_note_abi_tag_sections): New function.
12671         (get_elfosabi): New function.
12672         (arm_gdbarch_register_os_abi): New function.
12673         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12674         support for that ABI has been built in, then call the appropriate
12675         configuration routine.  Use gdbarch_num_regs() to get the number
12676         of registers.
12677         (arm_dump_tdep): New function.
12678         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12679         place-holder functions.
12680         (_initialize_arm_tdep): Register them.
12681         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12682
12683         * armnbsd-tdep.c: New file.
12684         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12685         * config/arm/nbsd.mt (TDEPFILES): Add it.
12686         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12687
12688         * armnbsd-nat.c: Include regcache.h.
12689         * Makefile.in (armnbsd-nat.o): Update dependency list.
12690
12691         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12692
12693 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12694
12695         * gdbserver/Makefile.in: Fix typos in target rules.
12696
12697 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12698
12699         Fix part of PR gdb/267.
12700         * linespec.c (find_methods): Handle constructors specially for now.
12701
12702 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12703
12704         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12705         handling.
12706         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12707         standard_coerce_float_to_double().
12708
12709 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12710
12711         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12712         GDBINIT_FILENAME.
12713
12714 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12715
12716         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12717         find_variant_by_name, because it confuses the multiarch
12718         framework. Return NULL if there isn't an architecture with the
12719         user supplied name, instead of forcing a different one without
12720         recording the change with the multiarch machinery.
12721         (find_variant_by_name): Delete.
12722
12723 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12724
12725         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12726         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12727
12728 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12729
12730         * stack.c (print_frame_info_base): When calling
12731         print_frame_info_listing_hook, set current_source_symtab.
12732
12733 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12734
12735         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12736         and remove unused $(INCLUDE_DIR).
12737         Add regcache.c to OBS.
12738         Add generated register protocol files to clean target.
12739         Update dependencies for new objects, obsolete old target code.
12740
12741         * gdbserver/linux-low.c: Remove all platform-specific code to
12742         new files.  Remove various dead code.  Update to use regcache
12743         functionality.
12744         * gdbserver/remote-utils.c (fromhex): Add return statement
12745         to quiet warning.
12746         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12747         constant.
12748         (input_interrupt): Add integer parameter to match prototype
12749         of a signal handler.
12750         (outreg): Use register_data ().
12751         (prepare_resume_reply): Use gdbserver_expedite_regs.
12752         * gdbserver/server.c (main): Dynamically allocate own_buf because
12753         PBUFSIZ is no longer constant.  Use registers_to_string () and
12754         registers_from_string ().
12755         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
12756         for error (), fatal (), and warning ().  Update definition of
12757         PBUFSIZ to use regcache functionality.  Add include guard.
12758         * gdbserver/utils.c (fatal): Add missing ``const''.
12759         (warning): New function.
12760
12761         * regformats/regdat.sh: Include "regcache.h" in generated files.
12762         Provide init_registers () function.
12763         * regformats/regdef.h: Add prototype for set_register_cache ().
12764         Add include guard.
12765
12766         * gdbserver/linux-arm-low.c: New file.
12767         * gdbserver/linux-i386-low.c: New file.
12768         * gdbserver/linux-ia64-low.c: New file.
12769         * gdbserver/linux-m68k-low.c: New file.
12770         * gdbserver/linux-mips-low.c: New file.
12771         * gdbserver/linux-ppc-low.c: New file.
12772         * gdbserver/linux-sh-low.c: New file.
12773
12774         * gdbserver/regcache.c: New file.
12775         * gdbserver/regcache.h: New file.
12776
12777         * gdbserver/low-linux.c: Removed obsolete file.
12778
12779 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12780
12781         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12782         * config/i386/linux.mt: Likewise.
12783         * config/ia64/linux.mt: Likewise.
12784         * config/m68k/linux.mh: Likewise.
12785         * config/powerpc/linux.mh: Likewise.
12786         * config/mips/linux.mt: Likewise.
12787
12788         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12789
12790         * config/i386/i386lynx.mh: Mark gdbserver variables
12791         as (currently) obsolete for this target.
12792         * config/i386/nbsd.mt: Likewise.
12793         * config/i386/nbsdelf.mt: Likewise.
12794         * config/m32r/m32r.mt: Likewise.
12795         * config/m68k/m68klynx.mh: Likewise.
12796         * config/m68k/nbsd.mt: Likewise.
12797         * config/m68k/sun3os4.mh: Likewise.
12798         * config/mips/vr5000.mt: Likewise.
12799         * config/ns32k/nbsd.mt: Likewise.
12800         * config/pa/hppabsd.mh: Likewise.
12801         * config/pa/hppaosf.mh: Likewise.
12802         * config/powerpc/nbsd.mt: Likewise.
12803         * config/rs6000/rs6000lynx.mh: Likewise.
12804         * config/s390/s390.mt: Likewise.
12805         * config/s390/s390x.mt: Likewise.
12806         * config/sparc/sparclynx.mh: Likewise.
12807         * config/sparc/sun4os4.mh: Likewise.
12808         * config/i386/x86-64linux.mt: Likewise.
12809         * config/sparc/linux.mh: Likewise.
12810
12811 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12812
12813         * configure.tgt: Configure gdbserver only for known working
12814         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
12815         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
12816         SUBDIRS if it is configured.  Update comment for ${nativefile}.
12817         * configure: Regenerated.
12818
12819 2002-02-13  Michael Snyder  <msnyder@redhat.com>
12820
12821         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12822
12823         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12824         (default_gcore_mach): Just return 0, work around a problem in bfd.
12825         (default_gcore_target): OK to return NULL if exec_bfd is null.
12826         (make_mem_sec): Use a cast, avoid a warning.
12827
12828         * procfs.c (find_memory_regions_callback): Use a cast instead of
12829         calling host_pointer_to_address (which complains if
12830         sizeof (host pointer) != sizeof (target pointer)).
12831         (procfs_make_note_section): Avoid overflow in psargs string.
12832
12833         * procfs.c (procfs_make_note_section): Make the default
12834         implementation return an error.
12835
12836 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
12837
12838         * procfs.c (procfs_make_note_section): Provide a default definition
12839         (for alpha-dec-osf4.0f). Fix typos.
12840
12841 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
12842
12843         * linux-proc.c: Add include of regcache.h.
12844         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12845
12846 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
12847
12848         From 2002-01-18 Greg McGary <greg@mcgary.org>:
12849         * memattr.c (create_mem_region): Disallow useless empty region.
12850         Regions are half-open intervals, so allow [A..B) [B..C) as
12851         non-overlapping.
12852
12853 2002-02-13  Michael Chastain <mec@shout.net>
12854
12855         * defs.h: Kill CONST_PTR.
12856         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12857         * c-lang.c (c_builtin_types): Likewise.
12858         * ch-lang.c (ch_builtin_types): Likewise.
12859         * f-lang.c (f_builtin_types): Likewise.
12860         * language.c (unknown_builtin_types): Likewise.
12861         * m2-lang.c (m2_builtin_types): Likewise.
12862         * p-lang.c (pascal_builtin_types): Likewise.
12863         * scm-lang.c (c_builtin_types): Likewise.
12864
12865 2002-02-13  Keith Seitz  <keiths@redhat.com>
12866
12867         * arm-tdep.h (arm_get_next_pc): Add declaration.
12868
12869 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
12870
12871         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
12872         with other related struct-returning functions.
12873         (arm_extract_struct_value_address): New function.
12874         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
12875         initialize float_format, double_format and long_double_format as
12876         appropriate to the endianness of the target.
12877         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12878         (arm_use_struct_convention): Delete declaration.
12879         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12880
12881 2002-02-13  Keith Seitz  <keiths@redhat.com>
12882
12883         * defs.h (core_addr_to_string_nz): New function.
12884
12885 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
12886
12887         Apply missing bits of 2002-01-15 patch.
12888         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12889         (fill_fpregset): Use i387_fill_fsave.
12890
12891 2002-02-12  Keith Seitz  <keiths@redhat.com>
12892
12893         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12894         (core_addr_to_string_nz): New function.
12895
12896 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
12897
12898         * arm-linux-nat.c: Really include arm-tdep.h.
12899         * config/arm/tm-linux.h (struct type, struct value): Declare.
12900
12901 2002-02-11  Michael Snyder  <msnyder@redhat.com>
12902
12903         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12904         (gcore section): Ifdef for Solaris and Unixware only.
12905         (procfs_do_thread_registers): Unixware needs one lwpstatus
12906         per thread (not one prstatus or pstatus).
12907         (procfs_make_note_section): Iterate only over kernel threads (lwps),
12908         not over all gdb threads.  For unixware, call elfcore_write_pstatus
12909         once before iterating over threads.
12910
12911 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
12912
12913         * arm-tdep.h: New file.
12914         * arm-tdep.c: Include arm-tdep.h.
12915         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12916         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12917         (arm_print_float_info, arm_register_type, convert_to_extended)
12918         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12919         (arm_extract_return_value, arm_register_name): Make static.
12920         (arm_software_single_step): Similarly.  Fix types in declaration.
12921         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12922         (arm_store_return_value, arm_store_struct_return): New functions.
12923         (arm_gdbarch_init): Register the above functions.  Also register
12924         call_dummy_start_offset, sizeof_call_dummy_words,
12925         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12926         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12927         max_register_virtual_size, register_size.  Set up
12928         prologue_cache.saved_regs here, rather than ...
12929         (_initialize_arm_tdep): ... here.
12930         * config/arm/tm-arm.h (struct type, struct value): Delete forward
12931         declarations.
12932         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12933         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12934         (arm_print_float_info, arm_register_type, convert_to_extended)
12935         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12936         (arm_extract_return_value, arm_register_name): Delete declarations.
12937         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12938         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12939         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12940         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12941         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12942         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12943         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12944         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12945         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12946         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12947         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12948         (arm_get_next_pc): No-longer static -- these are needed by the RDI
12949         interface.
12950         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12951         * remote-rdi.c remote-rdp.c: Likewise.
12952         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12953         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12954         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12955         definition.
12956
12957         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12958         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12959         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12960         from non-ARM_ prefixed definitions.
12961         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12962         all uses of above.
12963         * remote-rdi.c remote-rdp.c: Likewise.
12964         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12965
12966 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
12967
12968         * arm-tdep.c (arm_frameless_function_invocation)
12969         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12970         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12971         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12972         (arm_pop_frame, arm_get_next_pc): Make static.
12973         (arm_gdbarch_init): Register above in gdbarch structure.
12974         (arm_read_fp): Renamed from arm_target_read_fp.
12975         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12976         * config/arm/tm-arm.h (arm_frameless_function_invocation)
12977         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12978         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12979         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12980         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12981         (arm_pc_is_thumb_dummy): Delete declarations.
12982         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12983         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12984         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12985         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12986
12987 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
12988
12989         * symtab.c (compare_search_syms): New function.
12990         (sort_search_symbols): New function.
12991         (search_symbols): Sort symbols after searching rather than
12992         before.
12993
12994 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
12995
12996         * NEWS: Linux -> GNU/Linux.
12997
12998 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
12999
13000         * gdbarch.sh: For for level one methods, disallow a definition
13001         when partially multi-arched.  Add comments explaining rationale.
13002         * gdbarch.h: Re-generate.
13003
13004 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13005
13006         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13007         multi-arch partial.
13008
13009 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13010
13011         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13012         field.  Use diff -u.
13013         * gdbarch.c: Re-generate.
13014
13015 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13016
13017         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13018         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13019         partial.
13020
13021 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13022
13023         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13024         multi-arch partial.
13025         (PUSH_ARGUMENTS): Switch to using predefault.
13026         * gdbarch.c: Regenerate.
13027
13028 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13029
13030         * valops.c (PUSH_ARGUMENTS): Delete definition.
13031         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13032         partial.  Default to default_push_arguments.
13033         * gdbarch.h, gdbarch.c: Regenerate.
13034
13035 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13036
13037         * defs.h (throw_exception): Rename return_to_top_level.  Update
13038         comments.
13039         * utils.c (error_stream, internal_verror, quit): Ditto.
13040         * top.c (throw_exception, catcher): Ditto.
13041         * sparclet-rom.c (sparclet_load): Ditto.
13042         * remote.c (interrupt_query, minitelnet): Ditto.
13043         * remote-sds.c (interrupt_query): Ditto.
13044         * remote-mips.c (mips_error, mips_kill): Ditto.
13045         * ocd.c (interrupt_query): Ditto.
13046         * monitor.c (monitor_interrupt_query): Ditto.
13047         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13048         * target.h: Update comment.
13049
13050         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13051
13052 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13053
13054         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13055         default_double_format.
13056         * gdbarch.h, gdbarch.c: Re-generate.
13057         * findvar.c (floatformat_unknown): Delete variable definition.
13058         * doublest.h (floatformat_unknown): Delete variable declaration.
13059
13060 2002-02-09  Jim Blandy  <jimb@redhat.com>
13061
13062         * stabsread.c (read_type): Add code to parse Sun's syntax for
13063         prototyped function types.
13064
13065 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13066
13067         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13068         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13069
13070 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13071
13072         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13073         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13074         now _initialize_xcoffsolib gets called again and overrides the
13075         commands from solib.c in a native configuration.
13076
13077 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13078
13079         * doublest.c (store_typed_floating): Don't try to return a value.
13080         Fixes PR gdb/290.
13081
13082 2002-02-08  Jim Blandy  <jimb@redhat.com>
13083
13084         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13085         is prototyped and has no arguments, print its argument list as
13086         `(void)'.
13087
13088 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13089
13090         * MAINTAINERS (write-after-approval): Add myself.
13091         (paper-trail): I've escaped!
13092
13093 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13094
13095         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13096         changes.
13097         (_initialize_check_for_gdb_ini): Ditto.
13098
13099 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13100
13101         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13102         xaprintf -> xasprintf.
13103
13104 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13105
13106         * win32-nat.c: Remove use of printf and sprintf functions.
13107
13108 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13109
13110         * arm-tdep.c (arm_frame_chain_valid): Make static.
13111         (arm_push_arguments): Likewise.
13112         (arm_gdbarch_init): New function.
13113         (_initialize_arm_tdep): Call it.
13114         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13115         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13116         (FRAME_CHAIN_VALID): Delete.
13117         (arm_frame_chain_valid): Delete declaration.
13118         (PUSH_ARGUMENTS): Delete.
13119         (arm_push_arguments): Delete declaration.
13120         (CALL_DUMMY_P): Delete.
13121
13122 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13123             Corinna Vinschen  <vinschen@redhat.com>
13124
13125         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13126         on builtin float types.
13127
13128 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13129
13130         * utils.c: Include <curses.h> before "bfd.h".
13131         * tui/tui-hooks.c: Likewise.
13132         * tui/tui.c: Likewise.
13133         * tui/tuiCommand.c: Likewise.
13134         * tui/tuiData.c: Likewise.
13135         * tui/tuiDataWin.c: Likewise.
13136         * tui/tuiDisassem.c: Likewise.
13137         * tui/tuiGeneralWin.c: Likewise.
13138         * tui/tuiIO.c: Likewise.
13139         * tui/tuiLayout.c: Likewise.
13140         * tui/tuiRegs.c: Likewise.
13141         * tui/tuiSource.c: Likewise.
13142         * tui/tuiSourceWin.c: Likewise.
13143         * tui/tuiStack.c: Likewise.
13144         * tui/tuiWin.c: Likewise.
13145
13146 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13147
13148         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13149         to include space for pseudoregs as well. Update loops accordingly.
13150         (sh_fp_frame_init_saved_regs): Ditto.
13151         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13152
13153 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13154
13155         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13156         Add Richard Earnshaw to Arm maintainers.
13157
13158 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13159
13160         * defs.h (warning_begin): Delete declaration.
13161
13162         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13163         Delete macro.
13164
13165 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13166
13167         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13168         Logic bug, remove misplaced else.
13169
13170 2002-02-07  Klee Dienes  <klee@apple.com>
13171
13172         * fork-inferior.c (fork_inferior): Add '!' to the list of
13173         characters that need to be quoted when building a string for the
13174         shell.  Quote '!' specifically with a backslash, since CSH chokes
13175         when trying to evaluate "str!str".
13176
13177 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13178
13179         * rdi-share/host.h: Only provide a typedef for bool if it is not
13180         defined.
13181
13182 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13183
13184         * breakpoint.h (enum bptype): Add new overlay event bp type.
13185         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13186
13187         * breakpoint.c (create_internal_breakpoint): New function.
13188         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13189         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13190         (create_thread_event_breakpoint): Ditto.
13191         (create_solib_event_breakpoint): Ditto.
13192         (create_overlay_event_breakpoint): New function.
13193         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13194         (update_breakpoints_after_exec): Delete and re-initialize
13195         overlay event breakpoints after an exec.  Add FIXME comment
13196         about longjmp breakpoint.
13197         (print_it_typical): Ignore overlay event breakpoints.
13198         (print_one_breakpoint): Ditto.
13199         (mention): Ditto.
13200         (bpstat_what): Do not stop for overlay event breakpoints.
13201         (delete_breakpoint): Don't delete overlay event breakpoints.
13202         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13203         (breakpoint_re_set): Re-create overlay event breakpoint.
13204
13205         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13206         (overlay_manual_command): Disable overlay breakpoints.
13207         (overlay_off_command): Disable overlay breakpoints.
13208
13209 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13210
13211         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13212         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13213         to here from config/tm-arm.h.
13214         (coff_sym_is_thumb): Make static.
13215         (arm_elf_make_msymbol_special): New function.
13216         (arm_coff_make_msymbol_special): New function.
13217         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13218         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13219         (coff_sym_is_thumb): Delete declaration.
13220         (arm_elf_make_msymbol_special): Declare.
13221         (arm_coff_make_msymbol_special): Declare.
13222         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13223         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13224
13225 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13226
13227         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13228
13229 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13230
13231         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13232         * gdbarch.c gdbarch.h: Regenerate.
13233         * arch-utils.c (default_print_float_info): New function.
13234         * arch-utils.h (default_print_float_info): Prototype it.
13235         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13236         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13237         (PRINT_FLOAT_INFO): Document it.
13238
13239         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13240         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13241         (PRINT_FLOAT_INFO): Define.
13242
13243 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13244
13245         * win32-nat.c (_initialize_check_for_gdb_ini):
13246         Add typecast to sprintf argument to suppress a warning.
13247
13248 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13249
13250         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13251         to allow easier handling of pass state.
13252         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13253         that gives exception name and address.
13254         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13255         and set last_sig value to ourstatus->value.sig. Some missing
13256         exceptions added.
13257         (child_continue): Correctly report continue_status.
13258         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13259         TARGET_SIGNAL_0 (new default value).
13260         (child_resume): consider sig argument passed to decide if
13261         the exception should be passed to debuggee or not.
13262
13263 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13264
13265         * regcache.c (fetch_register): Call target_fetch_register
13266         only if we don't call FETCH_PSEUDO_REGISTER.
13267         (store_register): Call target_store_register only if we
13268         don't call STORE_PSEUDO_REGISTER.
13269
13270 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13271
13272         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13273         ELF_MAKE_MSYMBOL_SPECIAL.
13274         * gdbarch.c, gdbarch.h: Regenerate.
13275         * arch-utils.c (default_make_msymbol_special): New function.
13276         * arch-utils.h (default_make_msymbol_special): Export.
13277         * elfread.c (elf_symtab_read): Compile use of
13278         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13279         multiarched.
13280         * coffread.c (coff_symtab_read): Ditto, for
13281         COFF_MAKE_MSYMBOL_SPECIAL.
13282
13283 2002-02-05  Jim Blandy  <jimb@redhat.com>
13284
13285         * solib-svr4.c (svr4_truncate_ptr): New function.
13286         (svr4_relocate_section_addresses): Do the address arithmetic with
13287         the appropriate truncation for target addresses, even when
13288         CORE_ADDR is larger than a target address.
13289
13290 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13291
13292         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13293         to (int *).
13294
13295 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13296
13297         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13298         code.
13299
13300 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13301
13302         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13303
13304 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13305
13306         * gdbserver/linux-low.c: Remove unused include files.
13307
13308 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13309
13310         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13311         (read_inferior_memory): Use it.
13312         (write_inferior_memory): Likewise.
13313
13314 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13315
13316         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13317         grubbing through sys_errlist.
13318
13319 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13320
13321         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13322
13323 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13324         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13325
13326 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13327
13328         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13329         (do_sfunc, set_cmd_sfunc): New functions.
13330
13331         * command.h (struct cmd_list_element): Add field func.
13332         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13333         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13334         * cli/cli-decode.h: Ditto.
13335
13336         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13337         (help_all, help_cmd_list): Ditto.
13338         (find_cmd, complete_on_cmdlist): Ditto.
13339         * top.c (execute_command): Ditto.
13340
13341         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13342         function.sfunc.
13343
13344         * infcmd.c (notice_args_read): Fix function signature.
13345
13346         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13347         * cli/cli-decode.c (add_set_cmd): Ditto.
13348         * utils.c (initialize_utils): Ditto.
13349         * maint.c (_initialize_maint_cmds): Ditto.
13350         * infrun.c (_initialize_infrun): Ditto.
13351         * demangle.c (_initialize_demangler): Ditto.
13352         * remote.c (add_packet_config_cmd): Ditto.
13353         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13354         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13355         * proc-api.c (_initialize_proc_api): Ditto.
13356         * kod.c (_initialize_kod): Ditto.
13357         * valprint.c (_initialize_valprint): Ditto.
13358         * top.c (init_main): Ditto.
13359         * infcmd.c (_initialize_infcmd): Ditto.
13360         * corefile.c (_initialize_core): Ditto.
13361         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13362         * arch-utils.c (initialize_current_architecture): Ditto.
13363         (_initialize_gdbarch_utils): Ditto.
13364         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13365
13366         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13367         * wince.c (_initialize_inftarg): Ditto.
13368         * symfile.c (_initialize_symfile): Ditto.
13369         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13370         * language.c (_initialize_language): Ditto.
13371         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13372
13373 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13374
13375         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13376
13377 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13378
13379         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13380         Add rules for building the register data files.
13381
13382 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13383
13384         * regformats/regdat.sh: Add braces to the definition of
13385         expedite_regs_${arch}.
13386
13387 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13388
13389         * regformats/regdef.h (struct reg): Add comment describing the
13390         requirements for offset and size fields.
13391
13392 2002-02-04  Andreas Schwab  <schwab@suse.de>
13393
13394         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13395         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13396
13397 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13398
13399         * gdbarch.sh (copyright): Update years in generated header.
13400         (SMASH_TEXT_ADDRESS): Add rule.
13401         * gdbarch.h, gdbarch.c: Re-generate.
13402         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13403         * dbxread.c: Likewise.
13404         * dwarfread.c: Likewise.
13405         * elfread.c: Likewise.
13406         * somread.c: Likewise.
13407
13408         * arm-tdep.c (arm_smash_text_address): New function.
13409         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13410
13411 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13412
13413         Add support for hardware watchpoints on win32 native.
13414         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13415         CONTEXT_DEBUG_REGISTERS.
13416         (dr variable): New variable. Static array containing a local copy
13417         of debug registers.
13418         (debug_registers_changed): New variable.  Reflects when debug registers
13419         are changed and need to be written to inferior.
13420         (debug_registers_used): New variable. Reflects when any debug register
13421         was set, used when new threads are created.
13422         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13423         i386-nat code.
13424         (thread_rec): Set dr array if id is the thread of current_event .
13425         (child_continue, child_resume): Change the debug registers for all
13426         threads if debug_registers_changed.
13427         (child_add_thread): Change the debug registers if debug_registers_used.
13428         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13429         Link nm.h to new nm-cygwin.h file.
13430         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13431         of hardware registers.
13432
13433 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13434
13435         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13436         Restore behavour broken by 2002-01-20 Andrew Cagney
13437         <ac131313@redhat.com> IEEE_FLOAT removal.
13438
13439 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13440
13441         * c-valprint.c (c_val_print): Pass a proper valaddr to
13442         cp_print_class_method.
13443         * valops.c (search_struct_method): If there is only one method
13444         and args is NULL, return that method.
13445
13446 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13447
13448         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13449         accessing tag_name directly.
13450
13451 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13452
13453         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13454         of accessing tag_name directly.
13455
13456 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13457
13458         PR gdb/280
13459         * gdbtypes.c (replace_type): New function.
13460         * gdbtypes.h (replace_type): Add prototype.
13461         * stabsread.c (read_type): Use replace_type.
13462
13463 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13464
13465         * Makefile.in (memattr.o): Add missing dependencies rule.
13466
13467 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13468
13469         * breakpoint.c (break_at_finish_command): Really export.
13470         (break_at_finish_at_depth_command): Ditto.
13471         (tbreak_at_finish_command): Ditto.
13472         * hppa-tdep.c: Include completer.h.
13473         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13474         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13475
13476 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13477
13478         * utils.c (do_write): New function.
13479         (error_stream): Rewrite combining the code from error_begin and
13480         verror.
13481         (verror): Rewrite using error_stream.
13482         (error_begin): Delete function.
13483
13484 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13485
13486         * utils.c (error_begin): Make static.
13487         * defs.h (error_begin): Delete declaration.
13488
13489         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13490         (decode_line_1): Use cplusplus_error instead of error_begin,
13491         cplusplus_hint and return_to_top_level.
13492         * coffread.c (coff_symfile_read): Use error instead of error_begin
13493         and return_to_top_level.
13494         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13495
13496 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13497
13498         * language.h (type_error, range_error): Make string parameter
13499         constant.
13500         * language.c (warning_pre_print): Delete extern declaration.
13501         * dwarfread.c (warning_pre_print): Ditto.
13502         * language.c (type_error, range_error): Rewrite to use verror and
13503         vwarning instead of warning_begin.
13504
13505 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13506
13507         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13508         (set_ignore_count): Move misplaced comment back where it belongs.
13509
13510 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13511
13512         * command.h (NO_FUNCTION): Delete macro.
13513         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13514         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13515         * tracepoint.c (_initialize_tracepoint): Ditto.
13516         * cli/cli-decode.c (add_set_cmd): Ditto.
13517         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13518
13519 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13520
13521         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13522         Update ``this'' pointer when calling virtual functions.
13523
13524 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13525
13526         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13527         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13528
13529 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13530
13531         * regformats/reg-arm.dat: New file.
13532         * regformats/reg-i386.dat: New file.
13533         * regformats/reg-ia64.dat: New file.
13534         * regformats/reg-m68k.dat: New file.
13535         * regformats/reg-mips.dat: New file.
13536         * regformats/reg-ppc.dat: New file.
13537         * regformats/reg-sh.dat: New file.
13538         * regformats/regdef.h: New file.
13539         * regformats/regdat.sh: New file.
13540
13541 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13542
13543         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13544         (arm_frame_args_address, arm_frame_locals_address): New functions.
13545         (arm_frame_num_args): New function.
13546         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13547         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13548         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13549
13550 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13551
13552         * breakpoint.c (break_at_finish_command): Export.
13553         (break_at_finish_at_depth_command): Export.
13554         (tbreak_at_finish_command): Export.
13555         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13556         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13557         "txbreak" commands, which are HPPA specific.
13558
13559         * printcmd.c (disassemble_command): Remove an ancient
13560         artifact of an old merge.
13561
13562         * symfile.h (enum overlay_debugging_state):
13563         Define enum constant values for overlay mode.
13564         * symfile.c (overlay_debugging): Use enums instead of literals.
13565         (overlay_is_mapped, overlay_auto_command,
13566         overlay_manual_command): Ditto.
13567
13568         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13569         breakpoint_here_p, breakpoint_inserted_here_p,
13570         breakpoint_thread_match, bpstat_stop_status,
13571         describe_other_breakpoints, check_duplicates, clear_command):
13572         Coding standard fixes.
13573
13574         * target.c (target_xfer_memory): Add spaces, coding standard.
13575         (do_xfer_memory): Add missing line to trust-readonly
13576         code: check bfd SEC_READONLY flag for section.
13577
13578 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13579
13580         * PROBLEMS: Fix typo, 5.1->5.1.1.
13581
13582 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13583
13584         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13585         data symbols, since we search based on textlow and texthigh.
13586         (find_pc_sect_symtab): Likewise.
13587
13588 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13589
13590         * defs.h (vwarning): Declare.
13591         * utils.c (vwarning): New function.
13592         (warning): Call vwarning.
13593         (warning_begin): Delete function.
13594
13595         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13596         the warning message.
13597         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13598         warning_begin.
13599
13600 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13601
13602         * NEWS: Mention "set trust-readonly-sections" command.
13603         Mention generate-core-file command.
13604
13605 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13606
13607         * target.c: New command, "set trust-readonly-sections on".
13608         (do_xfer_memory): Honor the suggestion to trust readonly sections
13609         by reading them from the object file instead of from the target.
13610         (initialize_targets): Register command "set trust-readonly-sections".
13611
13612 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13613
13614         * parse.c (target_map_name_to_register): Simplify, search regs and
13615         pseudo-regs using a single loop.
13616
13617 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13618
13619         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13620
13621 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13622
13623         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13624         * config/i386/i386v42mp.mh: Add i387-nat.o .
13625         * i386v4-nat.c: Include i387-nat.h.
13626         (supply_fpregset): Use i387_supply_fsave.
13627         (fill_fpregset): Use i387_fill_fsave.
13628
13629 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13630
13631         * arm-tdep.c (arm_call_dummy_words): Define.
13632         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13633         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13634         (CALL_DUMMY_WORDS): Define.
13635         (arm_call_dummy_words): Declare.
13636         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13637         (arm_linux_call_dummy_words): Declare.
13638
13639 2002-01-30  Andreas Schwab  <schwab@suse.de>
13640
13641         * m68klinux-nat.c: Fix last change to use regcache_collect
13642         instead of referencing registers[] directly.
13643
13644 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13645
13646         * parse.c (target_map_name_to_register): Delete code wrapped in
13647         #ifdef REGISTER_NAME_ALIAS_HOOK.
13648
13649 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13650
13651         * regcache.c (legacy_read_register_gen): Need to be able to
13652         read pseudo-register as well as real register.
13653         (legacy_write_register_gen): Ditto.
13654
13655 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13656
13657         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13658         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13659         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13660         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13661         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13662         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13663         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13664         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13665         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13666         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13667         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13668         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13669         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13670         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13671         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13672         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13673         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13674         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13675         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13676         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13677
13678 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13679
13680         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13681         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13682         (initialize_current_architecture): Update target_byte_order using
13683         information from BFD.
13684         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13685         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13686
13687 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13688
13689         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13690         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13691
13692         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13693         #ifdef INVALID_FLOAT.
13694         * infcmd.c (do_registers_info): Ditto.
13695         * values.c (unpack_double): Ditto.  Add comment.
13696
13697         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13698         already commented out.
13699
13700 2002-01-26  Andreas Schwab  <schwab@suse.de>
13701
13702         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13703         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13704         registers and add support for PTRACE_GETREGS.
13705
13706 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13707
13708         GDB 5.1.1 released from 5.1 branch.
13709         * NEWS: Add 5.1.1 news.
13710         * README: Sync with 5.1 branch.
13711
13712 2002-01-23  Fred Fish  <fnf@redhat.com>
13713
13714         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13715         stabstring on initial malloc.  Reallocing will copy it for us,
13716         if necessary.
13717
13718 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13719
13720         * Makefile.in (hpread_h): Delete.
13721         (HFILES_NO_SRCDIR): Remove hpread.h.
13722         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13723         (hpread.o): Update dependencies.
13724         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13725
13726         * hp-psymtab-read.c: Remove file.
13727         * hp-symtab-read.c: Remove file.
13728         * hpread.h: Remove file.
13729
13730         * hpread.c: Merge all contents of hp-psymtab-read.c,
13731         hp-symtab-read.c and hpread.h into this file, as it was prior to
13732         January 1999.
13733
13734         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13735         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13736         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13737         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13738
13739 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13740
13741         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13742         fill_gregset): Call gdbarch_tdep() just once, assign result to
13743         variable and use that, instead of calling the function several
13744         times.
13745
13746 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
13747
13748         * configure.host: Accept sparcv9 as alias for sparc64.
13749         * configure.tgt: Likewise.
13750
13751 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
13752
13753         * solib-aix5.c (build_so_list_from_mapfile)
13754         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13755         arguments is not reversed.
13756         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13757         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13758
13759 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
13760
13761         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13762         modified version of obsolete sh_fetch_pseudo_register.
13763         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13764         (sh4_register_read): New function.
13765         (sh_pseudo_register_write): New function. Renamed and modified
13766         version of obsolete sh_store_pseudo_register.
13767         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13768         (sh4_register_write): New function.
13769         (sh_gdbarch_init): Remove setting of gdbarch function
13770         fetch_pseudo_register and store_pseudo_register. Remove setting of
13771         register_convert_to_raw, register_convert_to_virtual,
13772         register_convertible.
13773         (sh_sh4_register_convertible): Delete. No longer needed. All is
13774         taken care by architecture specific functions
13775         register_read/register_write.
13776         (sh_sh4_register_convert_to_virtual): Make static.
13777         (sh_sh4_register_convert_to_raw): Ditto.
13778
13779 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
13780
13781         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13782         (floatformat_is_nan, floatformat_mantissa): Ditto.
13783
13784         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13785         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13786         builtin_type_ieee_double_little,
13787         builtin_type_ieee_double_littlebyte_bigword,
13788         builtin_type_m68881_ext, builtin_type_i960_ext,
13789         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13790         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13791         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13792         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13793
13794 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
13795
13796         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13797         parameter.  Set frameless flag if it exists and depended of
13798         whether the scanned function is frameless or not.
13799         (xstormy16_skip_prologue): If function is frameless, return
13800         result of xstormy16_scan_prologue().
13801         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13802         call.
13803
13804 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
13805
13806         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13807         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13808         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13809         sh_sh4_register_byte, sh_sh4_register_raw_size,
13810         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13811         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13812         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13813         sh_store_pseudo_register, sh_do_pseudo_register): Call
13814         gdbarch_tdep() just once, assign result to variable and use that,
13815         instead of calling the function several times.
13816
13817 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
13818
13819         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13820         macros instead of LAST_FPU_CTRL_REGNUM.
13821         (store_register): Likewise.
13822
13823 2002-01-21  Jim Blandy  <jimb@redhat.com>
13824
13825         * infcmd.c (run_command): Check that the `exec' target layer's BFD
13826         is up-to-date before running the program, not just when a program
13827         exits.
13828
13829 2002-01-21  Fred Fish  <fnf@redhat.com>
13830
13831         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13832         when we have found all instructions we are looking for.
13833
13834 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13835
13836         * arm-tdep.c (arm_register_name): New function.
13837         (arm_registers_names): Make static.
13838         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13839         (arm_register_name): Declare.
13840         (REGISTER_NAME): Use it.
13841
13842 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13843             Kevin Buettner  <kevinb@redhat.com>
13844
13845         Convert arm targets to new FRAME interface.
13846         * arm-tdep.c (struct frame_extra_info): Remove fsr.
13847         (arm_frame_find_save_regs): Delete.
13848         (arm_frame_init_saved_regs): New.
13849         (arm_init_extra_frame_info): Alloacte saved_regs as required.
13850         Allocate extra_info as required.  Convert all uses of fsr.regs
13851         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13852         to use extra_info.
13853         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13854         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13855         (check_prologue_cache, save_prologue_cache): Likewise.
13856         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13857         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13858         (FRAME_FIND_SAVED_REGS): Delete.
13859         (arm_frame_find_saved_regs): Delete prototype.
13860         (arm_frame_init_saved_regs): New prototype.
13861         (FRAME_INIT_SAVED_REGS): Define.
13862
13863 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13864
13865         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13866
13867 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13868
13869         From Jeff Law <law@redhat.com>:
13870         * infttrace.c: Include <sys/pstat.h>.
13871         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
13872         exec file if the ttrace equivalent fails.
13873
13874 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13875
13876         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13877         (closeLogFile): Ditto.
13878
13879 2002-01-20  Michael Chastain  <mec@shout.net>
13880
13881         * top.c (print_gdb_version): Bump copyright year to 2002.
13882
13883 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13884
13885         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13886         Zannoni and Eli Zaretskii.
13887
13888 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13889
13890         * buildsym.c: Update copyright years.
13891         * c-typeprint.c: Likewise.
13892         * dwarf2read.c: Likewise.
13893         * f-typeprint.c: Likewise.
13894         * gdbtypes.c: Likewise.
13895         * gdbtypes.h: Likewise.
13896         * hp-symtab-read.c: Likewise.
13897         * hpread.c: Likewise.
13898         * mdebugread.c: Likewise.
13899         * p-typeprint.c: Likewise.
13900
13901 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13902
13903         * remote-sim.c (gdbsim_open): Simplify code testing the macro
13904         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
13905         byte-order selectable.
13906         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13907         * arch-utils.c: Ditto.
13908         (set_endian): Ditto.
13909         (set_endian_from_file): Ditto.
13910         * gdbserver/low-sim.c (create_inferior): Ditto.
13911         * gdbarch.sh: Ditto.
13912         * gdbarch.h: Re-generate.
13913         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13914         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13915         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13916         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13917         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13918         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13919         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13920         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13921         macro definition.
13922         * config/mips/tm-wince.h: Remove #undef of macro
13923         TARGET_BYTE_ORDER_SELECTABLE.
13924         * config/sh/tm-wince.h: Ditto.
13925
13926 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13927
13928         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13929         member function fields.  Add accessor macro
13930         TYPE_FN_FIELD_ARTIFICIAL.
13931         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13932         * c-typeprint.c (c_type_print_base): Skip artificial member
13933         functions.
13934
13935 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13936
13937         * f-typeprint.c: Delete unused function f_type_print_args.
13938         * p-typeprint.c: Delete unused function pascal_type_print_args.
13939
13940 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13941
13942         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
13943         comment.  Add ``artificial'' to ``union field_location''.
13944
13945         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13946
13947         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13948         * mdebugread.c (parse_symbol): Likewise.
13949         * stabsread.c (define_symbol): Likewise.
13950         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13951         initializing TYPE_FIELD_BITPOS to n (obsolete).
13952         (hpread_doc_function_type): Likewise.
13953         * hpread.c (hpread_function_type): Likewise.
13954
13955 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13956
13957         * configure.in (host_makefile_frag): Only require a host makefile
13958         fragment when a native build.
13959         * configure: Re-generate.
13960
13961 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13962
13963         * doublest.h (floatformat_from_type): Declare.
13964         * doublest.c (floatformat_from_type): New function.
13965         (convert_typed_floating): Use.
13966
13967         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13968         call to function floatformat_from_type.
13969
13970         * gdbarch.sh (IEEE_FLOAT): Delete.
13971         * gdbarch.h, gdbarch.c: Re-generate.
13972         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13973         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13974         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13975         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13976         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13977         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13978         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13979         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13980         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13981         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13982         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13983         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13984
13985         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13986         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13987         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13988         * sh-tdep.c (sh_gdbarch_init): Ditto.
13989         * mips-tdep.c (mips_gdbarch_init): Ditto.
13990         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13991         * cris-tdep.c (cris_gdbarch_init): Ditto.
13992
13993 2002-01-20  Jiri Smid  <smid@suse.cz>
13994
13995         * configure.host, configure.tgt: Support x86-64.
13996         * NEWS: Note new target x86-64.
13997
13998         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13999         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14000         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14001         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14002         x86-64-linux-nat.o): Fix dependencies.
14003
14004 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14005
14006         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14007         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14008         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14009         * config/sparc/xm-sun4os4.h: Delete file.
14010         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14011
14012 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14013
14014         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14015         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14016         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14017         * config/i386/i386lynx.mh (XM_FILE): Delete.
14018         * config/rs6000/xm-rs6000ly.h: Delete file.
14019         * config/sparc/xm-sparclynx.h: Delete file.
14020         * config/m68k/xm-m68klynx.h: Delete file.
14021         * config/i386/xm-i386lynx.h: Delete file.
14022         * config/xm-lynx.h: Delete file.
14023         * config/djgpp/fnchange.lst: Update.
14024
14025 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14026
14027         * alpha-tdep.c (alpha_register_byte): New function.
14028         (alpha_register_raw_size): Ditto.
14029         (alpha_register_virtual_size): Ditto.
14030         (alpha_skip_prologue_internal): Renamed from
14031         alpha_skip_prologue.
14032         (alpha_skip_prologue): New version that calls
14033         alpha_skip_prologue_internal.
14034         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14035         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14036         second argument from alpha_skip_prologue.
14037         (REGISTER_BYTE): Use alpha_register_byte.
14038         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14039         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14040         (FRAMELESS_FUNCTION_INVOCATION): Use
14041         generic_frameless_function_invocation_not.
14042         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14043         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14044
14045 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14046
14047         * config/mips/xm-news-mips.h: Delete file.
14048         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14049
14050         * config/m88k/xm-m88k.h: Delete file.
14051         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14052         * config/m88k/xm-delta88v4.h: Ditto.
14053         * config/m88k/xm-delta88.h: Ditto.
14054
14055         * config/alpha/xm-fbsd.h: Delete file.
14056         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14057
14058         * config/sparc/xm-sparc.h: Delete file.
14059         * Makefile.in (xm-sun4os4.h): Delete dependency.
14060         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14061         * config/sparc/xm-sun4os4.h: Ditto.
14062         * config/sparc/xm-linux.h: Ditto.
14063
14064         * config/i386/xm-windows.h: Delete file.
14065
14066 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14067
14068         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14069         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14070
14071 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14072
14073         * alpha-tdep.c (alpha_call_dummy_words): New.
14074         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14075         (CALL_DUMMY_P): Define.
14076         (CALL_DUMMY_WORDS): Define.
14077         (SIZEOF_CALL_DUMMY_WORDS): Define.
14078
14079 2002-01-19  Per Bothner  <per@bothner.com>
14080
14081         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14082         isn't NULL, which can happen with some gcj-3.x-produced code.
14083
14084 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14085
14086         * alpha-tdep.c (alpha_register_virtual_type): New function.
14087         (alpha_init_frame_pc_first): Ditto.
14088         (alpha_fix_call_dummy): Ditto.
14089         (alpha_store_struct_return): Ditto.
14090         (alpha_extract_struct_value_address): Ditto.
14091         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14092         alpha_register_virtual_type.
14093         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14094         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14095         alpha_extract_struct_value_address.
14096         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14097         (INIT_FRAME_PC): Use init_frame_pc_noop.
14098         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14099
14100 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14101
14102         * i386gnu-nat.c: Include "i386-tdep.h".
14103         (fetch_fpregs): Simplify code dealing with uninitialized floating
14104         point states such that it doesn't require FP7_REGNUM.
14105
14106 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14107
14108         * alpha-tdep.c (frame_extra_info): New.
14109         (alpha_find_saved_regs): Make static.  Use
14110         frame->extra_info.
14111         (alpha_frame_init_saved_regs): New function.
14112         (alpha_frame_saved_pc): Use frame->extra_info.
14113         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14114         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14115         (init_extra_frame_info): Rename to...
14116         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14117         (alpha_print_extra_frame_info): New function.
14118         (alpha_frame_locals_address): Ditto.
14119         (alpha_frame_args_address): Ditto.
14120         (alpha_pop_frame): Use frame->extra_info.
14121         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14122         alpha_frame_args_address.
14123         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14124         (alpha_find_saved_regs): Remove prototype.
14125         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14126         (EXTRA_FRAME_INFO): Remove.
14127         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14128         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14129
14130 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14131
14132         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14133         (alpha_cannot_fetch_register): Ditto.
14134         (alpha_cannot_store_register): Ditto.
14135         (alpha_register_convertible): Ditto.
14136         (alpha_use_struct_convention): Ditto.
14137         * config/alpha/tm-alpha.h: Update copyright years.
14138         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14139         (INNER_THAN): Use core_addr_lessthan.
14140         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14141         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14142         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14143         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14144         (FRAME_CHAIN): Remove unnecessary cast.
14145
14146 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14147
14148         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14149         obsolete.
14150
14151 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14152
14153         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14154         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14155         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14156         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14157         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14158         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14159         * x86-64-linux-nat.c: Ditto.
14160
14161 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14162
14163         * alpha-tdep.c (alpha_register_name): New function.
14164         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14165         (REGISTER_NAME): Define.
14166
14167 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14168
14169         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14170
14171 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14172
14173         * alpha-tdep.c: Update copyright years.
14174         (alpha_next_pc): New function.
14175         (alpha_software_single_step): Ditto.
14176         * config/alpha/tm-alpha.h: Add prototype for
14177         alpha_software_single_step.
14178
14179 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14180
14181         * alphabsd-nat.c: Update copyright years.
14182         (fill_gregset): Use regcache_collect.
14183         (fill_fpregset): Likewise.
14184         (fetch_inferior_registers): Only fetch integer registers
14185         if requested to do so.
14186         (store_inferior_registers): Only store integer registers
14187         if requested to do so.
14188
14189 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14190
14191         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14192         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14193         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14194         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14195         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14196         * config/arm/linux.mh (XDEPFILES): Delete.
14197         * config/arm/nbsd.mh (XDEPFILES): Delete.
14198         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14199         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14200         * config/i386/i386m3.mh (XDEPFILES): Delete.
14201         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14202         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14203         * config/i386/fbsd.mh (XDEPFILES): Delete.
14204         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14205         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14206         * config/i386/i386v4.mh (XDEPFILES): Delete.
14207         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14208         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14209         * config/i386/i386aix.mh (XDEPFILES): Delete.
14210         * config/i386/go32.mh (XDEPFILES): Delete.
14211         * config/i386/cygwin.mh (XDEPFILES): Delete.
14212         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14213         * config/i386/i386mach.mh (XDEPFILES): Delete.
14214         * config/i386/i386v32.mh (XDEPFILES): Delete.
14215         * config/i386/linux.mh (XDEPFILES): Delete.
14216         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14217         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14218         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14219         * config/i386/i386sco.mh (XDEPFILES): Delete.
14220         * config/i386/i386v.mh (XDEPFILES): Delete.
14221         * config/i386/nbsd.mh (XDEPFILES): Delete.
14222         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14223         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14224         * config/i386/symmetry.mh (XDEPFILES): Delete.
14225         * config/i386/obsd.mh (XDEPFILES): Delete.
14226         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14227         * config/ia64/linux.mh (XDEPFILES): Delete.
14228         * config/ia64/aix.mh (XDEPFILES): Delete.
14229         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14230         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14231         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14232         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14233         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14234         * config/m68k/linux.mh (XDEPFILES): Delete.
14235         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14236         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14237         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14238         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14239         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14240         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14241         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14242         * config/m88k/delta88.mh (XDEPFILES): Delete.
14243         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14244         * config/m88k/m88k.mh (XDEPFILES): Delete.
14245         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14246         * config/mips/linux.mh (XDEPFILES): Delete.
14247         * config/mips/irix6.mh (XDEPFILES): Delete.
14248         * config/mips/irix5.mh (XDEPFILES): Delete.
14249         * config/mips/irix4.mh (XDEPFILES): Delete.
14250         * config/mips/irix3.mh (XDEPFILES): Delete.
14251         * config/mips/decstation.mh (XDEPFILES): Delete.
14252         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14253         (NATDEPFILES): Move core-aout.o to here.
14254         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14255         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14256         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14257         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14258         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14259         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14260         * config/pa/hpux11.mh (XDEPFILES): Delete.
14261         * config/powerpc/aix.mh (XDEPFILES): Delete.
14262         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14263         * config/powerpc/linux.mh (XDEPFILES): Delete.
14264         * config/romp/rtbsd.mh: Rename XDEPFILES.
14265         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14266         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14267         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14268         * config/s390/s390.mh (XDEPFILES): Delete.
14269         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14270         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14271         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14272         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14273         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14274         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14275         * config/sparc/linux.mh (XDEPFILES): Delete.
14276         * config/vax/vaxult.mh (XDEPFILES): Delete.
14277         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14278         * Makefile.in (DEPFILES): Remove XDEPFILES.
14279
14280 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14281
14282         * utils.c (internal_verror): Fix comments, default is yes not no.
14283         Update queries to match.  Default to quit and dump core.
14284
14285 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14286
14287         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14288         copyright.
14289         * defs.h, event-top.c, gdbcmd.h: Ditto.
14290         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14291         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14292         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14293         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14294         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14295         * mi/mi-main.c:Ditto.
14296
14297         * stack.c, symfile.c: Update copyright.
14298
14299 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14300
14301         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14302         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14303         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14304         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14305
14306 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14307
14308         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14309         * gdbserver/low-lynx.c (myattach): Likewise.
14310         * gdbserver/low-nbsd.c (myattach): Likewise.
14311         * gdbserver/low-sim.c (myattach): Likewise.
14312         * gdbserver/low-sparc.c (myattach): Likewise.
14313         * gdbserver/low-sun3.c (myattach): Likewise.
14314
14315         * gdbserver/low-linux.c (myattach): New function.
14316
14317         * gdbserver/server.c (attach_inferior): New function.
14318         (main): Handle "--attach".
14319
14320 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14321
14322         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14323         maintainer.
14324
14325 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14326
14327         * c-typeprint.c (is_type_conversion_operator): Add additional
14328         check for non-conversion operators.
14329
14330 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14331
14332         * linux-proc.c: Add "info proc" command, a la procfs.c.
14333         (read_mapping): New function, abstract and re-use code.
14334         (linux_find_memory_regions): Use new func read_mapping.
14335         (linux_info_proc_cmd): New function, implement "info proc".
14336         (_initialize_linux_proc): Add new command "info proc".
14337
14338 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14339
14340         * symfile.c (generic_load): Use bfd_map_over_sections method
14341         instead of manipulating bfd structure members directly.
14342         (add_section_size_callback): New function, bfd sections callback
14343         used by generic_load.
14344         (load_sections_callback): New function, bfd sections callback
14345         used by generic_load.
14346
14347 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14348
14349         [Based on work by Jim Blandy]
14350         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14351         (builtin_type_vec128): Export.
14352         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14353         types.
14354         (builtin_type_vec128): New builtin type for 128 bit vector
14355         registers.
14356         (build_gdbtypes): Initialize builtin_type_v16qi and
14357         builtin_type_v8hi. Create the vec128 register builtin type
14358         structure.
14359         (build_builtin_type_vec128): New function.
14360         (_initialize_gdbtypes): Register builtin_type_v16qi and
14361         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14362         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14363         AltiVec register to new builtin type.
14364
14365 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14366
14367         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14368         to make_cv_type.
14369
14370 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14371
14372         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14373         CLEAN_UP_REGISTER_VALUE.
14374         * regcache.c (supply_register): Update only call.
14375
14376 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14377
14378         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14379         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14380         a29k-*-vxworks* targets as obsolete.
14381
14382 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14383
14384         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14385         until we can resolve portability issues.
14386         * gregset.h: Remove references to fpxregs.
14387         * gcore.c (gcore_command): Initialize note_sec to NULL.
14388
14389 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14390
14391         * signals.c (target_signal_to_name): Rewrite.  Only use
14392         signals[].name when in bounds and non-NULL.
14393
14394 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14395
14396         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14397         * signals.c (target_signal_to_name): Verify that SIG is within the
14398         bounds of the signals array.
14399
14400 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14401
14402         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14403
14404 2002-01-13  Keith Seitz  <keiths@redhat.com>
14405
14406         * stack.c (print_frame_info_base): Print the frame's pc
14407         only if when print_frame_info_listing_hook is not defined.
14408
14409 2002-01-13  Keith Seitz  <keiths@redhat.com>
14410
14411         * varobj.c (varobj_set_value): Make sure that there were no
14412         errors evaluating the object before attempting to set its
14413         value.
14414         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14415         so this offset adjustment is no longer necessary.
14416         (create_child): Don't set the error flag if the child is
14417         a CPLUS_FAKE_CHILD.
14418         (value_of_child): If value_fetch_lazy fails, return NULL
14419         so that callers will be notified that an error occurred.
14420         (c_value_of_variable): Delay check of variable's validity
14421         until later. We actually want all structs and unions to have
14422         the value "{...}".
14423         Do not return "???" for variables which could not be evaluated.
14424         This error condition must be returned to the caller so that it
14425         can get the error condition from gdb.
14426         (cplus_name_of_child): Adjust index for vptr before figuring
14427         out the name of the child.
14428         (cplus_value_of_child): If a child's (real) parent is not valid,
14429         don't even bother trying to give a value for it. Just return
14430         an error. Change all instances in this function.
14431         (cplus_type_of_child): If our parent is one of the "fake"
14432         parents, we need to get at the type of the real parent, and
14433         derive the child's true type using this information.
14434
14435 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14436
14437         From 2002-01-09 John Marshall <johnm@falch.net>:
14438         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14439         sources.redhat.com, and tweak some related URLs which had
14440         suffered from linkrot.
14441
14442 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14443
14444         From Jeff law:
14445         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14446         structures passed in registers.
14447
14448 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14449
14450         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14451         white space which prevented compilation.  Reported by DSK
14452         <dsk@student.unsw.edu.au>.
14453
14454 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14455
14456         * symfile.c (build_section_addr_info_from_section_tab):
14457         Use bfd access method instead of manipulating bfd directly.
14458         (syms_from_objfile): Ditto.
14459         (simple_overlay_update_1): Ditto.
14460         (simple_overlay_update): Ditto.
14461         (generic_load): Ditto.
14462         (overlay_unmapped_address): FIXME comment, bfd access methods.
14463         (sections_overlap): FIXME comment, bfd access methods.
14464         (pc_in_mapped_range): FIXME comment, bfd access methods.
14465         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14466         (section_is_mapped): FIXME comment, bfd access methods.
14467         (section_is_overlay): FIXME comment, bfd access methods.
14468
14469         * symfile.c (generic_load): Whitespace and long line cleanups.
14470         Remove duplicate variable, change several local variables to
14471         more appropriate data types.
14472         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14473
14474 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14475
14476         From Peter Schauer:
14477         * language.c (longest_local_hex_string_custom): Use phex_nz to
14478         convert NUM to a hex string.
14479
14480 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14481
14482         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14483         the function.
14484         Update Copyright year.
14485
14486 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14487
14488         * language.c (longest_raw_hex_string): Delete unused function.
14489
14490 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14491
14492         * MAINTAINERS (write-after-approval): Add myself.
14493         * dwarf2read.c (read_tag_string_type): Handling of
14494         DW_AT_byte_size.
14495         (read_tag_string_type): FORTRAN fix to prevent propagation of
14496         first string size.
14497         (set_cu_language): Handling of DW_LANG_Fortran95
14498
14499 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14500
14501         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14502         GETPID(inferior_ptid).
14503         (store_inferior_registers): Likewise.
14504
14505 2002-01-10  Jason Merrill  <jason@redhat.com>
14506
14507         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14508         Fix DW_OP_minus.
14509
14510 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14511
14512         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14513         and bfd/elf32-sh-nbsd.c.
14514
14515 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14516
14517         * NEWS: Mention --pid and corefile/proc-id behavior change.
14518
14519         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14520         * gcore.c: Include cli/cli-decode.h instead of command.h.
14521
14522         * main.c (captured_main): Add new command line option "--pid".
14523         If the second command line argument (following the symbol-file)
14524         begins with a digit, try to attach to it before trying to open
14525         it as a corefile.
14526         (print_gdb_help): Document the "--pid" argument.
14527
14528 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14529
14530         * completer.c (command_completer): New function.
14531
14532         * completer.h <command_completer>: Add prototype.
14533
14534         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14535         completer for the "help" command.
14536
14537 2002-01-09  Jason Merrill  <jason@redhat.com>
14538
14539         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14540
14541 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14542
14543         * i386-linux-nat.c (fill_fpxregset): Make global.
14544         (store_fpxregset): Ditto.
14545
14546         * gregset.h (gdb_fpxregset_t): Define.
14547         (supply_fpxregset): Prototype.
14548         (fill_fpxregset): Prototype.
14549
14550         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14551
14552 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14553
14554         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14555         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14556         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14557
14558 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14559
14560         * MAINTAINERS: Update target maintainer rules so that any
14561         Maintainer can approve a tested patch for a maintenance-only
14562         target.
14563
14564 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14565
14566         * MAINTAINERS (write-after-approval): Add myself.
14567
14568         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14569         IN_SIGTRAMP.
14570
14571 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14572
14573         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14574         real name of the executable, rather than the /proc name.
14575
14576 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14577
14578         Implement a "generate-core-file" command in gdb, save target state.
14579         * gcore.c: New file.  Implement new command 'generate-core-file'.
14580         Save a corefile image of the current state of the inferior.
14581         * linux-proc.c: Add linux-specific code for saving corefiles.
14582         * target.h (struct target_ops): Add new target vectors for saving
14583         corefiles; to_find_memory_regions and to_make_corefile_notes.
14584         (target_find_memory_regions): New macro.
14585         (target_make_corefile_notes): New macro.
14586         * target.c (update_current_target): Inherit new target methods.
14587         (dummy_find_memory_regions): New place-holder method.
14588         (dummy_make_corefile_notes): New place-holder method.
14589         (init_dummy_target): Initialize new dummy target vectors.
14590         * exec.c (exec_set_find_memory_regions): New function.
14591         Allow the exec_ops vector for memory regions to be taken over.
14592         (exec_make_note_section): New function, target vector method.
14593         * defs.h (exec_set_find_memory_regions): Export prototype.
14594         * procfs.c (proc_find_memory_regions): New function, corefile method.
14595         (procfs_make_note_section): New function, corefile method.
14596         (init_procfs_ops): Set new target vector pointers.
14597         (find_memory_regions_callback): New function.
14598         (procfs_do_thread_registers): New function.
14599         (procfs_corefile_thread_callback): New function.
14600         * sol-thread.c (sol_find_memory_regions): New function.
14601         (sol_make_note_section): New function.
14602         (init_sol_thread_ops): Initialize new target vectors.
14603         * inftarg.c (inftarg_set_find_memory_regions): New function.
14604         Allow to_find_memory_regions vector to be taken over.
14605         (inftarg_set_make_corefile_notes): New function.
14606         Allow to_make_corefile_notes vector to be taken over.
14607         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14608         interface layer if not target_has_execution (may be a corefile).
14609         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14610         * config/sparc/sun4sol2.mh: Ditto.
14611         * config/alpha/alpha-linux.mh: Ditto.
14612         * config/arm/linux.mh: Ditto.
14613         * config/i386/x86-64linux.mh: Ditto.
14614         * config/ia64/linux.mh: Ditto.
14615         * config/m68k/linux.mh: Ditto.
14616         * config/mips/linux.mh: Ditto.
14617         * config/powerpc/linux.mh: Ditto.
14618         * config/sparc/linux.mh: Ditto.
14619
14620 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14621
14622         * arm-linux-nat.c: Remove references to regcache.c internal data
14623         (registers[] and register_valid[]).
14624
14625 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14626
14627         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14628         so that attaching to a pid will automatically read the process's
14629         symbol file and shlibs.
14630         * Makefile.in: Add rule for linux-proc.o.
14631         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14632         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14633         * config/arm/linux.mh: Ditto.
14634         * config/i386/linux.mh: Ditto.
14635         * config/i386/x86-64linux.mh: Ditto.
14636         * config/ia64/linux.mh: Ditto.
14637         * config/m68k/linux.mh: Ditto.
14638         * config/mips/linux.mh: Ditto.
14639         * config/powerpc/linux.mh: Ditto.
14640         * config/sparc/linux.mh: Ditto.
14641
14642 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14643
14644         * win32-nat.c: Add i386-tdep.h dependency.
14645
14646 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14647
14648         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14649         instead of bfd_get_arch_size.  Don't bail out just because
14650         there's no exec_bfd.
14651
14652         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14653         * p-valprint.c (pascal_object_print_value): Ditto.
14654         * somread.c (som_symtab_read): Ditto.
14655         * symfile.c (simple_free_overlay_region_table): Ditto.
14656         * valops.c (value_assign): Ditto.
14657
14658         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14659         use tilde_expand and strerror for opening save-tracepoints file.
14660
14661         * thread-db.c (thread_db_new_objfile): Indendation fix.
14662
14663         * infptrace.c (GDB_MAX_ALLOCA): New define.
14664         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14665         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14666         can be overridden with whatever value is appropriate to the host).
14667         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14668         alloca to allocate potentially large buffer.
14669         * rs6000-nat.c (child_xfer_memory): Ditto.
14670         * symm-nat.c (child_xfer_memory): Ditto.
14671         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14672
14673 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14674
14675         From Nick Clifton  <nickc@redhat.com>
14676         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14677
14678 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14679
14680         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14681         Don't use exec_bfd if it's NULL.
14682
14683 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14684
14685         * valops.c (value_arg_coerce): Fix formatting.
14686
14687 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14688
14689         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14690         * gnu-nat.c: Ditto.
14691
14692 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14693
14694         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14695         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14696         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14697         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14698         z8k-coff have not been multi-arched.  Update z8k-coff build
14699         status.
14700
14701 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14702
14703         * MAINTAINERS: Mark a29k target as obsolete.
14704         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14705         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14706         comments.
14707         * NEWS: Note that a29k targets are obsolete.
14708         * a29k-tdep.c: Mark as obsolete.
14709         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14710         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14711         a29k-*-vxworks* targets as obsolete.
14712         * remote-adapt.c: Obsolete.
14713         * remote-eb.c: Obsolete.
14714         * remote-mm.c: Obsolete.
14715         * remote-udi.c: Obsolete.
14716         * config/a29k/a29k-udi.mt: Obsolete.
14717         * config/a29k/a29k.mt: Obsolete.
14718         * config/a29k/tm-a29k.h: Obsolete.
14719         * config/a29k/tm-vx29k.h: Obsolete.
14720         * config/a29k/vx29k.mt: Obsolete.
14721
14722 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14723
14724         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14725         with BFD_ENDIAN_BIG.
14726
14727 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14728
14729         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14730         * configure, config.in: Re-generate.
14731         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14732         * defs.h: Do not include <endian.h>.
14733
14734 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
14735
14736         * acconfig.h (HAVE_PT_GETXMMREGS): New.
14737         * config.in: Regenerate.
14738         * configure.in: Update copyright years.
14739         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14740         * configure: Regenerate.
14741         * i386bsd-nat.c: Update copyright years.
14742         (fill_gregset): Use regcache_collect.
14743         (fetch_inferior_registers): Only fetch integer registers
14744         if requested to do so.  Add support for XMM registers
14745         using PT_GETXMMREGS.
14746         (store_inferior_registers): Only store integer registers
14747         if requested to do so.  Add support for XMM registers
14748         using PT_SETXMMREGS.
14749         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14750         (store_inferior_registers): Remove.
14751         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14752         (fetch_elfcore_registers): New function.
14753         (i386nbsd_elfcore_fns): New.
14754         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14755         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14756         i386bsd-nat.o.
14757         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14758         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14759         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14760         * config/i386/tm-nbsd.h: Update copyright years.
14761         (HAVE_SSE_REGS): Define.
14762         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14763         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14764         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14765         (SIGCONTEXT_PC_OFFSET): Remove.
14766         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14767
14768 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14769
14770         * configure.tgt: Remove powerpc-*-macos* target.
14771         * config/m68k/xm-mpw.h: Delete file.
14772         * config/xm-mpw.h: Delete file.
14773         * ser-mac.c: Delete file.
14774         * mpw-make.sed: Delete file.
14775         * mpw-config.in: Delete file.
14776         * mac-xdep.c: Delete file.
14777         * mac-gdb.r: Delete file.
14778         * mac-defs.h: Delete file.
14779         * mac-nat.c: Delete file.
14780         * config/powerpc/macos.mh: Delete file.
14781         * config/powerpc/macos.mt: Delete file.
14782         * config/powerpc/nm-macos.h: Delete file.
14783         * config/powerpc/tm-macos.h: Delete file.
14784         * source.c (openp, open_source_file): Remove obsolete code.
14785         * top.c (gdb_readline): Ditto.
14786         * utils.c (query): Ditto.
14787         * event-top.c (display_gdb_prompt): Ditto.
14788         * Makefile.in (ser-mac.o): Delete obsolete target.
14789         * NEWS: Update.
14790
14791 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14792
14793         * defs.h (BIG_ENDIAN): Delete macro definition.
14794         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14795         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14796         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14797         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14798         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14799         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14800         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14801         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14802         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14803         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14804         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14805         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14806         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14807         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14808         * gdbarch.c: Re-generate.
14809
14810 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14811
14812         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14813         for core files.
14814
14815 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14816
14817         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14818
14819 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14820
14821         * value.h (value_ptr): Delete typedef.
14822
14823 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14824
14825         * i386nbsd-nat.c: Update copyright years.
14826         Include i386-tdep.h.
14827
14828 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
14829
14830         * stabsread.c: Update copyright years.
14831
14832         From Debashis Mahata <debashis.mahata@wipro.com>:
14833         (read_struct_fields): Deal with Sun C compiler erroneous stab
14834         output for structs and unions.
14835         Fix PR gdb/269.
14836
14837 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14838
14839         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14840         prototype.
14841
14842 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14843
14844         * cp-abi.c: Fix whitespace.
14845         (baseclass_offset): New wrapper function.
14846         * cp-abi.h (baseclass_offset): Add prototype.
14847         (struct cp_abi_ops): Add baseclass_offset pointer.
14848
14849         * valops.c (vb_match): Move to...
14850         * gnu-v2-abi.c (vb_match): here.
14851         * valops.c (baseclass_offset): Move to...
14852         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14853
14854         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14855
14856         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14857         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14858         * hpacc-abi.c (init_hpacc_ops): Likewise.
14859
14860 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14861
14862         * valops.c (find_overload_match): Accept obj as a
14863         reference parameter.  Update it before returning.
14864         * value.h (find_overload_match): Update prototype.
14865         * eval.c (evaluate_subexp_standard): Pass object to
14866         find_overload_match by reference.
14867
14868 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
14869
14870         * valarith.c: Replace value_ptr with struct value pointer.  Remove
14871         register attribute from value declarations.
14872         * valops.c: Ditto.
14873         * value.h: Ditto.
14874         * scm-lang.c (scm_lookup_name): Ditto.
14875
14876 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14877
14878         Abstract the functionality of iterating over mapped memory
14879         regions into a general purpose iterator function.
14880         * procfs.c (iterate_over_mappings): New function, general purpose
14881         iterator for memory sections.
14882         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14883         (solib_mappings_callback): New function, callback for above.
14884         (info_proc_mappings): Reimpliment using iterate_over_mappings.
14885         (info_mappings_callback): New function, callback for above.
14886
14887         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14888
14889 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
14890
14891         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14892         * i386-tdep.c: Include "elf-bfd.h".
14893         (process_note_abi_tag_sections): New function.
14894         (i386_gdbarch_init): Add code to recognize various OS/ABI
14895         combinations.
14896
14897         * maint.c (_initialize_maint_cmds): Add missing \ in
14898         string-literal.
14899
14900 For older changes see ChangeLog-2001
14901 \f
14902 Local Variables:
14903 mode: change-log
14904 left-margin: 8
14905 fill-column: 74
14906 version-control: never
14907 End: