* config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
2
3         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
4         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
5
6 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
7
8         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
9
10 2002-12-23  David Carlton  <carlton@math.stanford.edu>
11
12         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
13         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
14         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
15         information associated to a minsym, not lookup_symbol.
16
17 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
18
19         * x86-64-tdep.h (x86_64_init_abi): New prototype.
20         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
21         (x86_64_init_abi): Make non-static.  Set number of pseudo
22         registers to 0.
23         (x86_64_gdbarch_init): Remove function.
24         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
25         Remove code dealing with dissambly.
26         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
27         (_initialize_x86_64_linux_tdep): New function.
28         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
29         i386-tdep.o.
30
31 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
32
33         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
34         (struct gdb_osabi_handler): Remove member `arch'.  Add member
35         `arch_info'.
36         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
37         construct a `struct bfd_arch_info' and store it in the `struct
38         gdb_osabi_handler' that is created.
39         (gdbarch_init_osabi): Check for compatibility based on machine
40         type and architecture.
41         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
42         comment.
43         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
44         second argument in call to gdbarch_register_osabi.
45         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
46         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
47         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
48         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
49         * arm-tdep.c (_initialize_arm_tdep): Likewise.
50         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
51         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
52         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
53         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
54         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
55         * i386-tdep.c (_initialize_i386_tdep): Likewise.
56         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
57         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
58         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
59         _initialize_i386bsd_tdep and updated likewise.
60         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
61         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
62         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
63         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
64         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
65         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
66         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
67         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
68         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
69         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
70
71 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
72
73         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
74         DT_MIPS_RLD_MAP case for 64-bit targets.
75
76 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
77
78         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
79         ``temp_saved_regs'', not the pointer or other storage contiguous
80         to this pointer.
81
82 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
83
84         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
85         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
86         (mips_linux_get_longjmp_target): Delete declarations.
87         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
88         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
89         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
90         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
91         (mips_linux_get_longjmp_target)
92         (mips_linux_svr4_fetch_link_map_offsets): Make static.
93         (mips_linux_init_abi): New function.
94         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
95
96 2002-12-19  Keith Seitz  <keiths@redhat.com>
97
98         patch committed by Elena Zannoni  <ezannoni@redhat.com>
99         * thread.c (do_captured_list_thread_ids): Call prune_threads and
100         target_find_new_threads. Fix for PR mi/669.
101
102 2002-12-19  David Carlton  <carlton@math.stanford.edu>
103
104         * linespec.c (decode_line_1): Move code into decode_all_digits.
105         (decode_all_digits): New function.
106
107 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
108
109         * exec.c (print_section_info): Select a format string to use with
110         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
111
112 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
113
114         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
115         deprecated_update_current_frame_pc_hack.
116         (deprecated_update_frame_base_hack): New function.
117         * frame.h (deprecated_update_frame_pc_hack): Replace
118         (deprecated_update_frame_base_hack): Declare.
119         * infrun.c (normal_stop): Update.
120
121 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
122
123         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
124         frame_extra_info_zalloc.
125         (rs6000_frame_args_address): Use get_frame_extra_info.
126         (frame_get_saved_regs): Use get_frame_saved_regs.
127         (frame_initial_stack_address): Use get_frame_saved_regs and
128         get_frame_extra_info.
129         (frame_initial_stack_address): Use get_frame_extra_info.
130
131 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
132
133         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
134         array size.
135         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
136         checks for r3900_regnames[].
137
138 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
139
140         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
141         All uses changed
142         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
143
144 2002-12-17  David Carlton  <carlton@math.stanford.edu>
145
146         * symtab.c (lookup_partial_symbol): Don't search past the end of
147         the partial symbols.
148
149 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
150
151         * stack.c (frame_info): Use get_frame_saved_regs.
152         * breakpoint.c (until_break_command): Use get_frame_pc.
153
154 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
155
156         * buildsym.c (block_end_complaint, anon_block_end_complaint)
157         (innerblock_complaint, innerblock_anon_complaint)
158         (blockvector_complaint): Delete deprecated complaint structs.
159         (finish_block, make_blockvector, end_symtab): Replace calls
160         to complain() with calls to complaint().
161         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
162         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
163         (unexpected_type_complaint, bad_sclass_complaint)
164         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
165         Delete deprecated complaint structs.
166         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
167         Replace calls to complain() with calls to complaint().
168         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
169         (unknown_symtype_complaint, unknown_symchar_complaint)
170         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
171         (lbrac_mismatch_complaint, repeated_header_complaint)
172         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
173         Delete deprecated complaint structs.
174         (unknown_symtype_complaint, lbrac_mismatch_complaint)
175         (repeated_header_complaint)
176         (function_outside_compiliation_unit_complaint): New functions.
177         (add_old_header_file, find_corresponding_bincl_psymtab)
178         (set_namestring, find_stab_function_addr, read_dbx_symtab)
179         (process_one_symbol): Replace calls to complain() with, possibly
180         indirect, calls to complaint().
181         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
182         (unknown_attribute_form, unknown_attribute_length)
183         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
184         (const_ignored, botched_modified_type, op_deref2, op_deref4)
185         (basereg_not_handled, dup_user_type_allocation)
186         (dup_user_type_definition, missing_tag, bad_array_element_type)
187         (subscript_data_items, unhandled_array_subscript_format)
188         (unknown_array_subscript_format, not_row_major)
189         (missing_at_name): Delete deprecated complaint structs.
190         (bad_die_ref_complaint, unknown_attribute_form_complaint)
191         (dup_user_type_definition_complaint)
192         (bad_array_element_type_complaint): New functions.
193         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
194         (decode_subscript_data_item, dwarf_read_array_type)
195         (read_tag_string_type, read_subroutine_type, read_func_scope)
196         (locval, scan_partial_symbols, decode_modified_type)
197         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
198         (attribute_size): Replace calls to complain() with, possibly
199         indirect, calls to complaint().
200         * elfread.c (section_info_complaint, section_info_dup_complaint)
201         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
202         Delete deprecated complaint structs.
203         (elf_symtab_read, elfstab_offset_sections): Replace calls to
204         complain() with calls to complaint().
205         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
206         struct.
207         (stub_noname_complaint): New function.
208         (check_typedef, add_mangled_type): Replace calls to complain()
209         with calls to complaint().
210         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
211         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
212         (hpread_unhandled_type_complaint, hpread_struct_complaint)
213         (hpread_array_complaint, hpread_type_lookup_complaint)
214         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
215         (hpread_unhandled_common_complaint)
216         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
217         struct definitions and declarations.
218         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
219         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
220         Replace calls to complain() with, possibly indirect, calls to
221         complaint().
222         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
223         Likewise.
224         * mdebugread.c (bad_file_number_complaint, index_complaint)
225         (aux_index_complaint, block_index_complaint)
226         (unknown_ext_complaint, unknown_sym_complaint)
227         (unknown_st_complaint, block_overflow_complaint)
228         (basic_type_complaint, unknown_type_qual_complaint)
229         (array_index_type_complaint, bad_tag_guess_complaint)
230         (block_member_complaint, stEnd_complaint)
231         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
232         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
233         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
234         (bad_continued_complaint, bad_rfd_entry_complaint)
235         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
236         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
237         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
238         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
239         complaint structs.
240         (index_complaint, unknown_ext_complaint, basic_type_complaint)
241         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
242         (unexpected_type_code_complaint)
243         (function_outside_compilation_unit_complaint): New functions.
244         (parse_symbol, parse_type, upgrade_type, parse_procedure)
245         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
246         Replace calls to complain() with, possibly indirect calls to
247         complaint().
248         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
249         Delete deprecated complaint structs.
250         (lookup__objc_class, lookup_child_selector): Replace complain()
251         with complaint().
252         * remote-vx.c (cant_contact_target): Delete deprecated complaint
253         struct.
254         (vx_lookup_symbol): Replace complain() with complaint().
255         * stabsread.c (invalid_cpp_abbrev_complaint)
256         (invalid_cpp_type_complaint, member_fn_complaint)
257         (const_vol_complaint, error_type_complaint)
258         (invalid_member_complaint, range_type_base_complaint)
259         (reg_value_complaint, vtbl_notfound_complaint)
260         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
261         (unresolved_sym_chain_complaint, stabs_general_complaint)
262         (lrs_general_complaint, multiply_defined_struct): Delete
263         deprecated complaint structs.
264         (invalid_cpp_abbrev_complaint, ref_value_complaint)
265         (stabs_general_complaint, lrs_general_complaint)
266         (msg_unknown_complaint): New functions.
267         (dbx_lookup_type, read_cfront_baseclasses)
268         (read_cfront_member_functions, resolve_symbol_reference)
269         (define_symbol, resolve_live_range, add_live_range, read_type)
270         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
271         (read_one_struct_field, read_baseclasses, read_tilde_fields)
272         (read_cfront_static_fields, attach_fields_to_type)
273         (complain_about_struct_wipeout, read_range_type)
274         (common_block_start, common_block_end, cleanup_undefined_types)
275         (scan_file_globals): Replace complain() with complaint().
276         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
277         Delete deprecated complaint struct declarations.
278         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
279         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
280         (bf_not_found_complaint, ef_complaint, eb_complaint)
281         (function_outside_compilation_unit_complaint): New functions.
282         (record_include_begin, record_include_end, enter_line_range)
283         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
284         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
285         complain() with complaint().
286
287 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
288
289         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
290         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
291         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
292         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
293         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
294         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
295         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
296         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
297         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
298         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
299         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
300         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
301         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
302         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
303         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
304         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
305         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
306         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
307         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
308         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
309         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
310         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
311         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
312         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
313         * config/m88k/xm-dgux.h: Delete.
314         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
315         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
316         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
317         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
318         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
319         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
320         * ch-valprint.c: Delete.
321         
322 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
323
324         * infrun.c (handle_inferior_event): Rearrange code to resume if
325         no catchpoint triggers for an event.
326
327 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
328
329         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
330         and TARGET_WAITKIND_VFORKED cases.
331
332 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
333
334         * infrun.c (handle_inferior_event): Assume that catchpoints
335         are not affected by DECR_PC_AFTER_BREAK.
336
337 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
338
339         * target.c (update_current_target): Don't inherit DONT_USE.
340         * target.h (struct target_ops): Remove DONT_USE.
341         (target_next): Remove macro.
342
343 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
344
345         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
346
347 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
348
349         * arm-tdep.c (convert_from_extended): New argument to hold the
350         type of floating point result we want to convert to.  Make input 
351         argument const.  Fix all callers.
352         (convert_to_extended): Similarly.
353         (arm_extract_return_value): Now takes a regcache argument.  Change
354         code to use regcache accessor functions.  Correctly extract 
355         smaller-than-word results on big-endian machines.
356         (arm_store_return_value): Now takes a regcache argument.  Change
357         code to use regcache accessor functions.  Correctly zero/sign extend
358         smaller than word results before storing into r0.
359         (arm_gdbarch_init): Register new-style extract_return_value and
360         store_return_value functions.
361
362 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
363
364         * thread-db.c (thread_from_lwp): Uniquify error msg.
365         (lwp_from_thread): Ditto.
366         (check_event): Ditto.
367         (find_new_threads_callback): Ditto.
368         (thread_db_pid_to_str): Ditto.
369
370 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
371
372         * frame.h (get_frame_saved_regs): Declare.
373         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
374         pointer.
375         * frame.c (get_frame_saved_regs): New function.
376         (frame_saved_regs_zalloc): Return the allocated saved_regs.
377
378 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
379
380         * frame.c (deprecated_update_current_frame_pc_hack): New
381         function.
382         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
383         * infrun.c (normal_stop): Use said function instead of directly
384         modifying the frame's PC.
385         
386 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
387
388         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
389
390 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
391
392         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
393         config/mips/tm-irix6.h (NUM_REGS): Delete.
394         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
395         (temp_saved_regs): Declare as a pointer rather than an array.
396         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
397         that ``temp_saved_regs'' has storage allocated to it and that
398         it's the correct size.
399
400 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
401
402         * defs.h (init_last_source_visited): New prototype.
403         (add_path): Ditto.
404         * source.c (add_path): New function that adds to a specified path.
405         (mod_path): Change to call add_path.
406         (init_last_source_visited): New function to allow interfaces to
407         initialize static variable: last_source_visited.  Part of fix
408         for PR gdb/741.
409         * Makefile.in: Add support for mi/mi-cmd-env.c.
410
411 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
412
413         * frame.h (frame_id_unwind): Declare.
414         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
415         id_unwind_cache.
416         (frame_id_unwind_ftype): Declare.
417         * frame.c (frame_id_unwind): New function.
418         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
419         (create_new_frame, get_prev_frame): Pass id_unwind to
420         set_unwind_by_pc.
421         (frame_saved_regs_id_unwind): New function.
422         (frame_saved_regs_id_unwind): New function.
423         * dummy-frame.c (dummy_frame_id_unwind): New function.
424         (struct dummy_frame): Add field id.
425         (generic_push_dummy_frame): Initialize `id'.
426         * dummy-frame.h (dummy_frame_id_unwind): Declare.
427
428 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
429
430         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
431         pass that to set_momentary_breakpoint.  Move comments to where they
432         belong.
433         * frame.h (set_current_frame): Delete declaration.
434         * frame.c (set_current_frame): Delete function.
435
436 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
437
438         * frame.c (frame_extra_info_zalloc): New function.
439         * frame.h (frame_extra_info_zalloc): Declare.
440
441 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
442
443         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
444         in the previous prototype change to set_momentary_breakpoint.
445
446 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
447
448         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
449         and saw_child_exec.
450         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
451         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
452         (stop_stepping): Remove outdated check for child vfork events.
453
454 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
455
456         * GDB 5.3 released from gdb_5_3-branch.
457
458 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
459
460         * corelow.c (init_core_ops): Delete references to to_require_attach
461         and to_require_detach.
462         * exec.c (init_exec_ops): Likewise.
463         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
464         hppa_require_detach directly.
465         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
466         * inftarg.c (child_detach): Remove.
467         (child_detach_from_process): Rename to child_detach, remove
468         after_fork argument.
469         (child_attach): Remove.
470         (child_attach_to_process): Rename to child_attach, remove after_fork
471         argument.
472         (init_child_ops): Delete references to to_require_attach
473         and to_require_detach.
474         * infttrace.c (hppa_require_attach): Update comment.
475         * target.c (cleanup_target, update_current_target)
476         (init_dummy_target, setup_target_debug): Delete references to
477         to_require_attach and to_require_detach.
478         (find_default_require_detach, find_default_require_attach)
479         (debug_to_require_attach, debug_to_require_detach): Remove
480         functions.
481         * target.h (struct target_ops): Remove to_require_attach
482         and to_require_detach.
483         (target_require_attach, target_require_detach): Delete macros.
484         (find_default_require_detach, find_default_require_attach): Delete
485         prototypes.
486         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
487
488 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
489
490         * frame.c (get_frame_extra_info): New function.
491         * frame.h (get_frame_extra_info): Declare.
492
493 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
494
495         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
496         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
497         with `struct frame_id'.
498         (set_longjmp_resume_breakpoint): Ditto.
499         * infrun.c (handle_inferior_event): Update.
500         * breakpoint.c (watch_command_1, until_break_command): Update.
501         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
502         (handle_inferior_event, step_over_function): Update.
503         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
504         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
505         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
506         * infcmd.c (finish_command, run_stack_dummy): Update.
507
508 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
509
510         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
511         (dwarf2_non_const_array_bound_ignored)
512         (dwarf2_missing_line_number_section)
513         (dwarf2_statement_list_fits_in_line_number_section)
514         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
515         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
516         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
517         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
518         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
519         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
520         (dwarf2_missing_member_fn_type_complaint)
521         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
522         (dwarf2_const_value_length_mismatch)
523         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
524         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
525         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
526         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
527         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
528         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
529         complaints using deprecated struct..
530         (dwarf2_non_const_array_bound_ignored_complaint)
531         (dwarf2_complex_location_expr_complaint)
532         (dwarf2_unsupported_at_frame_base_complaint)
533         (dwarf2_const_value_length_mismatch_complaint)
534         (dwarf2_macros_too_long_complaint)
535         (dwarf2_macro_malformed_definition_complaint)
536         (dwarf2_invalid_attrib_class_complaint): New functions.
537         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
538         (read_structure_scope, read_array_type, read_common_block)
539         (read_tag_pointer_type, read_base_type, read_partial_die)
540         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
541         (new_symbol, dwarf2_const_value, read_type_die)
542         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
543         (parse_macro_definition, dwarf_decode_macros): Replace calls to
544         complain() with, possibly indirect, calls to complaint().
545
546 2002-12-11  Andrew Cagney  <cagney@redhat.com>
547
548         * frame.c (deprecated_get_frame_saved_regs): Rename
549         get_frame_saved_regs.
550         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
551         * sparc-tdep.c: Update.
552         * hppa-tdep.c: Update.
553         * h8500-tdep.c: Update.
554
555 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
556
557         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
558         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
559         ``char *'' for return and parameter types.
560         * gdbarch.h, gdbarch.c: Regenerate.
561         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
562         return type from ``char *'' to ``const char *''.
563         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
564         const.
565
566 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
567
568         * i386-tdep.c: Include "dummy-frame.h".
569         (i386_frame_chain, i386_frame_saved_pc): Replace
570         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
571         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
572
573 2002-12-10  Andrew Cagney  <cagney@redhat.com>
574
575         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
576         Change to a function with predicate.
577         * gdbarch.h, gdbarch.c: Re-generate.
578         * frame.c (get_prev_frame): Update.  Test
579         DEPRECATED_INIT_FRAME_PC_P.
580         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
581         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
582         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
583         * alpha-tdep.c (alpha_gdbarch_init): Update.
584         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
585         * mips-tdep.c (mips_gdbarch_init): Update.
586         * i386-interix-tdep.c (i386_interix_init_abi): Update.
587         * arm-tdep.c: Update comments.
588         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
589         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
590         * frv-tdep.c (frv_gdbarch_init): Ditto.
591         * x86-64-tdep.c (x86_64_init_abi): Ditto.
592         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
593         * s390-tdep.c (s390_gdbarch_init): Ditto.
594         * v850-tdep.c (v850_gdbarch_init): Ditto.
595         * vax-tdep.c (vax_gdbarch_init): Ditto.
596         * sh-tdep.c (sh_gdbarch_init): Ditto.
597         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
598         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
599         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
600         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
601         * i386-tdep.c (i386_gdbarch_init): Ditto.
602         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
603         * cris-tdep.c (cris_gdbarch_init): Ditto.
604         * avr-tdep.c (avr_gdbarch_init): Ditto.
605         * arm-tdep.c (arm_gdbarch_init): Ditto.
606         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
607         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
608
609 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
610
611         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
612         CHILD_FOLLOW_FORK.
613         * hppah-nat.c (saved_vfork_pid): Add.
614         (child_post_follow_vfork): Remove.
615         (child_follow_fork): New function.
616         (child_wait): Call detach_breakpoints after receiving the child vfork.
617         Call child_resume directly instead of going through resume ().
618         Make sure we have the exec before reporting the vfork.
619         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
620         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
621         (follow_fork): New function.  Call target_follow_fork.
622         (follow_inferior_reset_breakpoints): New function broken out from
623         old follow_inferior_fork.
624         (resume): Remove hack to follow exec after vfork.
625         * inftarg.c (child_post_follow_vfork): Remove.
626         (child_follow_fork): New function.
627         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
628         * target.c (cleanup_target): Replace to_post_follow_vfork with
629         to_follow_fork.
630         (update_current_target): Likewise.
631         (setup_target_debug): Likewise.
632         (debug_to_post_follow_vfork): Remove.
633         (debug_to_follow_fork): New function.
634         * target.h (struct target_ops): Replace to_post_folow_vfork with
635         to_follow_fork.
636         (child_post_follow_vfork): Remove prototype.
637         (child_follow_fork): Add prototype.
638         (target_post_follow_vfork): Remove macro.
639         (target_follow_fork): Add macro.
640
641 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
642
643         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
644         (child_post_follow_vfork): Cancel pending exec event if we follow
645         the parent.
646         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
647         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
648         event at the following wait call if necessary.
649         * infrun.c (follow_vfork): Don't follow_exec here.
650         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
651         case about HP/UX 10.20.  Remove code pushed down to
652         hppah-nat.c:child_wait.
653         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
654         vfork_in_flight is set.
655
656 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
657
658         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
659         for the parent's fork event.
660         * infrun.c (handle_inferior_event): Only expect one fork event.
661         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
662         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
663
664 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
665
666         * PROBLEMS: Delete reference to PR gdb/725.
667         
668         * MAINTAINERS (gdb.c++): Add David Carlton.
669
670 2002-12-09  David Carlton  <carlton@math.stanford.edu>
671
672         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
673         * cli/cli-cmds.c: Ditto.
674
675 2002-12-09  Andrew Cagney  <cagney@redhat.com>
676
677         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
678         function address in <>.
679         * gdbarch.c: Re-generate.
680
681 2002-12-09  David Carlton  <carlton@math.stanford.edu>
682
683         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
684
685 2002-12-09  David Carlton  <carlton@math.stanford.edu>
686
687         * linespec.c (symtab_from_filename): New function.
688         (decode_line_1): Move code into symtab_from_filename.
689
690 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
691
692         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
693
694 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
695
696         * f-valprint.c (info_common_command): Use get_frame_pc.
697         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
698         * ax-gdb.c (agent_command): Ditto.
699         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
700         (rs6000_pop_frame): Ditto.
701         (rs6000_frameless_function_invocation): Ditto.
702         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
703         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
704         * macroscope.c (default_macro_scope): Ditto.
705         * stack.c (print_frame_info_base): Ditto.
706         (print_frame, frame_info, print_frame_label_vars): Ditto.
707         (return_command, func_command, get_frame_language): Ditto.
708         * infcmd.c (finish_command): Ditto.
709         * dummy-frame.c (cached_find_dummy_frame): Ditto.
710         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
711         (break_at_finish_at_depth_command_1): Ditto.
712         (break_at_finish_command_1): Ditto.
713         (until_break_command, get_catch_sals): Ditto.
714         * blockframe.c (func_frame_chain_valid): Ditto.
715         (frameless_look_for_prologue): Ditto.
716         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
717
718 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
719
720         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
721         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
722
723 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
724
725         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
726         to pure functions.
727         * gdbarch.h, gdbarch.c: Re-generate.
728         * frame.c (get_prev_frame): Explictly assign prev's pc with value
729         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
730
731         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
732         declaration to a function returning a CORE_ADDR.
733         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
734         * arch-utils.c (init_frame_pc_noop): Return the PC value.
735         (init_frame_pc_default): Ditto.
736         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
737         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
738         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
739         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
740         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
741         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
742
743         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
744         to init_frame_pc_noop.
745         (i386_interix_init_frame_pc): Delete function.
746         * z8k-tdep.c (init_frame_pc): Delete function.
747         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
748         (INIT_FRAME_PC_FIRST): Ditto.
749         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
750         (INIT_FRAME_PC_FIRST): Ditto.
751         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
752         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
753         init_frame_pc_noop.
754         (INIT_FRAME_PC_FIRST): Convert to an expression.
755         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
756
757 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
758
759         * blockframe.c: Use get_frame_base instead of directly accessing
760         the `struct frame_info' member frame.
761         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
762         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
763
764 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
765
766         * Makefile.in (readline_h): Define.
767         (completer.o): Depend on readline_h.
768         (corelow.o): Ditto.
769         (event-top.o): Ditto.
770         (exec.o): Ditto.
771         (solib.o): Ditto.
772         (source.o): Ditto. 
773         (symfile.o): Ditto. 
774         (symmisc.o): Ditto. 
775         (top.o): Ditto.
776         (tracepoint.o): Ditto. 
777         (utils.o): Ditto.
778         (cli-dump.o): Ditto.
779         (tui-hooks.o): Ditto. 
780         (tuiWin.o): Ditto. 
781
782 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
783
784         More cleanup from import of readline 4.3.
785         * completer.h (complete_line, readline_line_completion_function):
786         Update prototypes.
787         (line_completion_function): Removed, not used outside of completer.c.
788         * completer.c (readline_line_completion_function,
789         complete_function, line_completion_function): Use const for first
790         parameter.
791         (line_completion_function): Make static.
792         (filename_completer): filename_completion_function is now called
793         rl_filename_completion_function
794         * corelow.c: Include <readline/readline.h>.
795         * exec.c: Ditto.
796         * solib.c: Ditto.
797         * source.c: Ditto.
798         * symfile.c: Ditto.
799         * symmisc.c: Ditto.
800         * top.c (init_main): No need to coerce
801         readline_line_completion_function anymore.
802         * cli/cli-dump.c: Include <readline/readline.h>.
803
804 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
805
806         * stack.c (frame_info): Use get_prev_frame.
807         * blockframe.c (frame_address_in_block): Ditto.
808         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
809         (rs6000_frameless_function_invocation): Ditto.
810         (rs6000_frame_saved_pc): Ditto.
811         (rs6000_frame_chain): Ditto.
812         * arch-utils.c (init_frame_pc_default): Ditto.
813
814 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
815
816         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
817         Delete redundant definition.
818
819 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
820
821         Import of readline 4.3:
822         * cli/cli-cmds.c: Include readline/tilde.h.
823         * cli/cli-setshow.c: Ditto.
824         * defs.h: Don't declare tilde_expand anymore, since readline
825         exports it.
826
827 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
828
829         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
830         -Werror on this file.
831
832 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
833
834         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
835         the format name.
836         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
837         * gdbarch.c: Regenerate.
838         
839 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
840
841         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
842         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
843         provide a default value.
844         * gdbarch.h, gdbarch.c: Regenerate.
845         * frame.c (get_prev_frame): Update.  Check
846         DEPRECATED_INIT_FRAME_PC_FIRST_P.
847         * s390-tdep.c (s390_gdbarch_init): Update.
848         * mips-tdep.c (mips_gdbarch_init): Update.
849         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
850         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
851         * alpha-tdep.c (alpha_gdbarch_init): Update.
852         
853 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
854
855         * ia64-linux-nat.c: Include gdb_string.h.
856         * alpha-nat.c: Ditto.
857         * ppc-linux-nat.c: Ditto.
858         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
859         Update dependencies.
860
861 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
862
863         * gdbthread.h: Include "frame.h".
864         (struct thread_info): Replace step_frame_address with
865         step_frame_id.
866         * inferior.h: Include "frame.h".
867         (step_frame_id): Replace external variable step_frame_address.
868         * gdbthread.h (save_infrun_state): Replace step_frame_address
869         parameter with step_frame_id parameter.
870         (load_infrun_state): Ditto.
871         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
872         * infcmd.c (step_frame_id, step_1, step_once): Update.
873         * thread.c (load_infrun_state, save_infrun_state): Update.
874         * infrun.c (clear_proceed_status, save_inferior_status): Update.
875         (handle_inferior_event, step_over_function): Update.
876         (normal_stop, context_switch, restore_inferior_status): Update.
877         (struct inferior_status): Replace step_frame_address with
878         step_frame_id.
879
880 2002-12-05  David Carlton  <carlton@math.stanford.edu>
881
882         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
883         DW_TAG_member as well as a declaration as being a C++ static data
884         member.
885         (read_structure_scope): Combine tests for DW_TAG_member and
886         DW_TAG_variable.
887
888 2002-12-05  David Carlton  <carlton@math.stanford.edu>
889
890         * linespec.c (decode_compound): New function.
891         (decode_line_1): Move code into decode_compound.
892
893 2002-12-05  David Carlton  <carlton@math.stanford.edu>
894
895         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
896         argument.
897         (lookup_symbol_aux): Do the 'field_of_this' check before checking
898         the static block.  See PR gdb/804.
899
900 2002-12-05  David Carlton  <carlton@math.stanford.edu>
901
902         * symtab.c (lookup_symbol_aux_block): New function.
903         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
904
905 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
906
907         * gdbarch.sh: Dump the predicate function and macro values.
908         (read): Print error on standard error.
909         * gdbarch.c: Regenerate.
910         
911 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
912
913         * Makefile.in (mips_tdep_h): Define.
914         (mips-tdep.o): Add mips_tdep_h to dependency list.
915         * mips-tdep.h: New file.
916         * mips-tdep.c (mips-tdep.h): Include.
917         (enum mips_abi): Move to mips-tdep.h.
918         (mips_abi): New function.
919
920 2002-12-04  David Carlton  <carlton@math.stanford.edu>
921
922         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
923
924 2002-12-04  David Carlton  <carlton@math.stanford.edu>
925
926         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
927         function.
928         (lookup_symbol_aux_minsyms): New function.
929
930 2002-12-04  J. Brobecker  <brobecker@gnat.com>
931
932         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
933
934 2002-12-04  J. Brobecker  <brobecker@gnat.com>
935
936         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
937         which is an obsolete macro name.
938
939 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
940
941         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
942         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
943
944 2002-12-03  H.J. Lu  (hjl@gnu.org)
945
946         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
947         (create_breakpoints): Make sure the addr_string field is not
948         NULL.
949
950 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
951
952         * sparc-nat.c (fetch_inferior_registers)
953         (store_inferior_registers): Add comment on problem of LWP vs
954         threads.
955         
956         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
957         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
958         (lin_lwp_store_registers): Remove.
959         (init_lin_lwp_ops): Use fetch_inferior_registers
960         and store_inferior_registers directly.
961         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
962         (store_inferior_registers): Likewise.
963         Fix PR gdb/725.
964
965 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
966
967         * frame.h (get_frame_id): Convert to a function.
968         (null_frame_id, frame_id_p): Declare.
969         (frame_id_eq, frame_id_inner): Declare.
970         (frame_id_build): New function.
971         * frame.c (get_frame_id): Update.  Use null_frame_id.
972         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
973         frame_id_inner.
974         (null_frame_id, frame_id_p): Define.
975         (frame_id_eq, frame_id_inner): Define.
976         (frame_id_build): New function.
977         * varobj.c (varobj_create): Update.
978         (varobj_update): Update.
979         * valops.c (value_assign): Update.
980         (new_root_variable): Update.
981         * infrun.c (save_inferior_status): Update.
982         * breakpoint.c (watch_command_1): Update.
983
984 2002-12-03  J. Brobecker  <brobecker@gnat.com>
985
986         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
987         (SNAP2): Likewise.
988
989 2002-12-03  Andrew Cagney  <cagney@redhat.com>
990
991         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
992         patch.
993
994         * PROBLEMS: Mention PR gdb/725.
995
996 2002-12-03  Andreas Schwab  <schwab@suse.de>
997
998         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
999
1000 2002-12-02  Adam Fedor  <fedor@gnu.org>
1001             Klee Dienes  <kdienes@apple.com>
1002
1003         * objc-lang.c (objc_printstr): Add width arg to match
1004         printstr prototype.
1005         (compare_selectors): Add 'const' to arg types.
1006         (compare_classes): Likewise.
1007         (find_imps): Cast msym pointer to avoid compiler warning.
1008         (print_object_command): Validate the address before
1009         passing it to the print routine.
1010         (find_objc_msgcall_submethod): Change function argument to
1011         return an int.
1012         * objc-lang.h: Add 'extern' to all function declarations.
1013         (value_nsstring): Add declaration.
1014
1015 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1016
1017         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1018         Fixes a build failure on HP/UX.
1019
1020         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1021         failure on HP/UX. 
1022         (hpread_has_name): Advance declaration to avoid a compilation warning.
1023         (pst_syms_count): Add missing variable type. By change, the compiler
1024         was defaulting to int, which seems a good choice. Fixes a compilation
1025         warning.
1026         (pst_syms_size): Likewise.
1027  
1028 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1029
1030         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1031         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1032         later to set the proper gdbarch methods depending on the osabi.
1033         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1034
1035 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1036
1037         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1038         * osabi.c (gdb_osabi_name): Add strings images for the two new
1039         enum values.
1040         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1041
1042 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1043
1044         * MAINTAINERS (Java): Global maintainers are responible for Java.
1045         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1046         part Java maintainers.
1047
1048 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1049
1050         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1051         Fixes a compilation failure on AiX.
1052
1053 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1054
1055         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1056         why aix-thread.o is not listed.
1057
1058 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1059
1060         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1061         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1062         * gdbarch.h, gdbarch.c: Re-generate.
1063         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1064         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1065         * config/pa/tm-hppa.h, frame.h: Update.
1066         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1067         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1068         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1069         * cris-tdep.c, alpha-tdep.c: Update.
1070         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1071         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1072         (get_prev_frame): Ditto.
1073
1074 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1075
1076         * exec.c (xfer_memory): Replace boolean with int.
1077         * p-exp.y: Use 0 instead of false.
1078         * corelow.c (gdb_check_format): Change return type to int from
1079         boolean.
1080         * utils.c: Don't include <curses.h> or <term.h> first.
1081
1082 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1083
1084         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1085         (m68hc11_register_byte): Remove.
1086         (m68hc11_gdbarch_init): Don't set the above.
1087
1088 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1089
1090         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1091         by calling get_selected_frame.
1092         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1093         set_current_frame, create_new_frame, select_frame and
1094         get_current_frame.
1095         * remote-e7000.c (e7000_start_remote): Ditto.
1096         * remote-mips.c (common_open): Ditto
1097         * remote-rdp.c (remote_rdp_open): Ditto.
1098
1099 2002-11-29  Andreas Schwab  <schwab@suse.de>
1100
1101         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1102         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1103         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1104         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1105         read_memory_unsigned_integer instead of read_memory_integer when
1106         dealing with addresses and instruction opcodes.
1107         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1108         (m68k_linux_frame_saved_pc): Likewise.
1109
1110 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1111
1112         * stack.c (selected_frame, select_frame): Move from here ...
1113         * frame.c (selected_frame, select_frame): ... to here.  Include
1114         "language.h".
1115         * Makefile.in (frame.o): Update dependencies.
1116         * frame.c (get_selected_frame): New function.
1117         * frame.h (get_selected_frame): Declare.
1118         (deprecated_selected_frame): Rename selected_frame.
1119         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1120         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1121         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1122         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1123         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1124         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1125         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1126         * z8k-tdep.c, cli/cli-cmds.c: Update.
1127         
1128 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1129
1130         * frame.h (get_selected_block): Add comments.
1131
1132 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1133
1134         * frame.c (pc_notcurrent): New function.
1135         (find_frame_sal): New function.
1136         * frame.h (find_frame_sal): Declare.
1137         (struct symtab_and_line): Add opaque declaration.
1138         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1139         find_pc_line.
1140         (frame_info): Ditto.
1141         * ada-lang.c (find_printable_frame): Ditto.
1142
1143 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1144
1145         * configure.in: Check that the pthdebug library is recent enough
1146         before enabling thread support on native AiX.
1147         * configure: Regenerate.
1148
1149         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1150         from the list of object files as it is now appended by configure
1151         if thread support is enabled.
1152         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1153         if thread support is enabled.
1154
1155 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1156
1157         * stack.c (get_selected_block): In-line get_current_block.
1158         * frame.h (get_current_block): Delete declaration.
1159         * blockframe.c (get_current_block): Delete function.
1160
1161 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1162
1163         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1164         USE_GENERIC_DUMMY_FRAMES.
1165         * gdbarch.h, gdbarch.c: Regenerate.
1166         * valops.c, frame.c: Update.
1167         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1168         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1169         * config/pa/tm-hppa.h, blockframe.c: Update.
1170         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1171         * m68k-tdep.c, alpha-tdep.c: Ditto.
1172
1173         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1174         * mips-tdep.c: Ditto.
1175
1176 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1177
1178         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1179         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1180         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1181         * gdbarch.c, gdbarch.h: Re-generate.
1182         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1183         (CALL_DUMMY_LOCATION): Delete macro definition.
1184         (PC_IN_CALL_DUMMY): Delete macro definitions.
1185         
1186         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1187         default is already generic_pc_in_call_dummy.
1188         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1189         * v850-tdep.c (v850_gdbarch_init): Ditto.
1190         * sh-tdep.c (sh_gdbarch_init): Ditto.
1191         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1192         * mips-tdep.c (mips_gdbarch_init): Ditto.
1193         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1194         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1195         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1196         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1197         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1198         * avr-tdep.c (avr_gdbarch_init): Ditto.
1199         
1200         * arm-tdep.c (arm_gdbarch_init): Do not set
1201         use_generic_dummy_frames, default is already 1.
1202         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1203         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1204         * v850-tdep.c (v850_gdbarch_init): Ditto.
1205         * sh-tdep.c (sh_gdbarch_init): Ditto.
1206         * s390-tdep.c (s390_gdbarch_init): Ditto.
1207         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1208         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1209         * mips-tdep.c (mips_gdbarch_init): Ditto.
1210         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1211         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1212         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1213         * i386-tdep.c (i386_gdbarch_init): Ditto.
1214         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1215         * frv-tdep.c (frv_gdbarch_init): Ditto.
1216         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1217         * cris-tdep.c (cris_gdbarch_init): Ditto.
1218         * avr-tdep.c (avr_gdbarch_init): Ditto.
1219
1220         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1221         call_dummy_location, default is already AT_ENTRY_POINT.
1222         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1223         * v850-tdep.c (v850_gdbarch_init): Ditto.
1224         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1225         * sh-tdep.c (sh_gdbarch_init): Ditto.
1226         * s390-tdep.c (s390_gdbarch_init): Ditto.
1227         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1228         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1229         * mips-tdep.c (mips_gdbarch_init): Ditto.
1230         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1231         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1232         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1233         * i386-tdep.c (i386_gdbarch_init): Ditto.
1234         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1235         * frv-tdep.c (frv_gdbarch_init): Ditto.
1236         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1237         * cris-tdep.c (cris_gdbarch_init): Ditto.
1238         * avr-tdep.c (avr_gdbarch_init): Ditto.
1239         * arm-tdep.c (arm_gdbarch_init): Ditto.
1240         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1241
1242 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1243
1244         * frame.h: Update comments on set_current_frame, create_new_frame,
1245         flush_cached_frames, reinit_frame_cache, select_frame and
1246         selected_frame.
1247         
1248 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1249
1250         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1251         deprecated pc_in_call_dummy function.
1252         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1253         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1254         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1255         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1256         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1257
1258 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1259
1260         * Makefile.in: Remove Tix dependencies.
1261         * acinclude.m4: Ditto.
1262         * aclocal.m4: Ditto.
1263         * configure.in: Ditto.
1264         * configure: Regenerated.
1265         
1266 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1267
1268         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1269         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1270         * gdbarch.c: Re-generate.
1271         
1272 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1273
1274         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1275         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1276         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1277         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1278         pc_in_call_dummy_at_entry_point.
1279         * config/pa/tm-hppa.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/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1283         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1284         pc_in_call_dummy_on_stack.
1285         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1286         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1287         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1288         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1289         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1290         
1291 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1292
1293         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1294         pc_in_call_dummy_before_text_end
1295         (deprecated_pc_in_call_dummy_after_text_end): Rename
1296         pc_in_call_dummy_after_text_end.
1297         (deprecated_pc_in_call_dummy_on_stack): Rename
1298         pc_in_call_dummy_on_stack.
1299         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1300         pc_in_call_dummy_at_entry_point.
1301         * m68k-tdep.c (m68k_gdbarch_init): Update.
1302         * s390-tdep.c (s390_gdbarch_init): Update.
1303         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1304         * vax-tdep.c (vax_gdbarch_init): Update.
1305         * sparc-tdep.c (sparc_gdbarch_init): Update.
1306         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1307         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1308         * i386-tdep.c (i386_gdbarch_init): Update.
1309         * frv-tdep.c (frv_gdbarch_init): Update.
1310         * cris-tdep.c (cris_gdbarch_init): Update.
1311         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1312         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1313         (deprecated_pc_in_call_dummy_after_text_end)
1314         (deprecated_pc_in_call_dummy_on_stack)
1315         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1316         * alpha-tdep.c (alpha_gdbarch_init): Update.
1317
1318 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1319
1320         * acconfig.h (HAVE_PREAD64): Add.
1321         * configure.in: Check for pread64.
1322         * config.in: Regenerated.
1323         * configure: Regenerated.
1324         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1325         * linux-proc.c (linux_proc_xfer_memory): New function.
1326         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1327
1328 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1329
1330         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1331         pdi's with no name.
1332
1333 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1334
1335         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1336         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1337
1338 2002-11-25  Jim Blandy  <jimb@redhat.com>
1339
1340         * symfile.c (init_objfile_sect_indices): New function.
1341         (default_symfile_offsets): Move the section-index-initializing
1342         stuff into init_objfile_sect_indices, and call that.
1343
1344         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1345         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1346
1347         * symfile.c (syms_from_objfile): Adjust indentation.
1348
1349         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1350         || info_verbose isn't true.
1351
1352 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1353
1354         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1355         default to get_frame_base.
1356         * gdbarch.h, gdbarch.c: Regenerate.
1357         * arch-utils.c (default_frame_address): Delete function.
1358         * arch-utils.h (default_frame_address): Delete declaration
1359
1360 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1361
1362         * varobj.c (find_frame_addr_in_frame_chain):
1363         Use get_frame_base instead of FRAME_FP,
1364         obvious fix.
1365
1366 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1367
1368         * frame.h (FRAME_FP): Delete macro.
1369         (get_frame_base): New function declaration.
1370         * frame.c (get_frame_base): New function.
1371         (get_frame_id): Use ->frame.
1372         (frame_find_by_id): Rewrite to use get_frame_id.
1373         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1374         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1375         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1376         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1377         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1378         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1379         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1380
1381 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1382
1383         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1384
1385 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1386
1387         * frame.c (set_unwind_by_pc): Revert change below, use
1388         PC_IN_CALL_DUMMY.
1389         (get_prev_frame): Ditto.
1390
1391 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1392
1393         * dummy-frame.c (pc_in_dummy_frame): New function.
1394         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1395         (find_dummy_frame): Update comment.
1396         (generic_pop_current_frame): Use get_frame_type.
1397         * dummy-frame.h (pc_in_dummy_frame): Declare.
1398         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1399         (create_new_frame): Use pc_in_dummy_frame.
1400         (get_prev_frame): Use pc_in_dummy_frame.
1401         (frame_saved_regs_register_unwind): Use get_prev_frame.
1402         (deprecated_generic_get_saved_register): Use get_prev_frame.
1403
1404 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1405
1406         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1407         from here ...
1408         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1409         (varobj_create): Note that frame ID should be used.
1410         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1411
1412 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1413
1414         * breakpoint.c: Include "gdb_assert.h".
1415         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1416         not being used.
1417         * Makefile.in (breakpoint.o): Update dependencies.
1418         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1419         deprecated_frame_in_dummy.
1420         * stack.c (print_frame_info_base): Ditto.
1421         (frame_info): Ditto.
1422         (print_frame_info_base): Ditto.  Delete dead code.
1423         
1424 2002-11-23  Andreas Schwab  <schwab@suse.de>
1425
1426         * Makefile.in (m68k_tdep_h): Define.
1427         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1428         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1429         * m68k-tdep.c: Move register number enum ...
1430         * m68k-tdep.h: ... to this new file and rename the constants from
1431         E_* to M68K_*.  All uses changed.
1432         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1433         * abug-rom.c: Include "m68k-tdep.h".  Use
1434         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1435         * cpu32bug-rom.c: Likewise.
1436         * dbug-rom.c: Likewise.
1437         * m68k-tdep.c: Likewise.
1438         * m68klinux-nat.c: Likewise.
1439         * remote-est.c: Likewise.
1440         * rom68k-rom.c: Likewise.
1441         * config/m68k/tm-linux.h: Likewise.
1442
1443 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1444
1445         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1446         dummy frame initialization code.
1447         * mips-tdep.c (mips_gdbarch_init): Ditto.
1448
1449 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1450
1451         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1452         attach will hang.
1453
1454 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1455
1456         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1457         to default_frame_address.
1458         * gdbarch.h, gdbarch.c: Re-generate.
1459
1460         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1461         or frame_locals_address to default_frame_address.
1462         * m68k-tdep.c (m68k_gdbarch_init): Update.
1463         * i386-tdep.c (i386_gdbarch_init): Update.
1464         * frv-tdep.c (frv_gdbarch_init): Update.
1465         * sh-tdep.c (sh_gdbarch_init): Update.
1466         * v850-tdep.c (v850_gdbarch_init): Update.
1467         * sparc-tdep.c (sparc_gdbarch_init): Update.
1468         * mips-tdep.c (mips_gdbarch_init): Update.
1469         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1470         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1471         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1472
1473         * cris-tdep.c (cris_frame_args_address): Delete function.
1474         (cris_frame_locals_address): Delete function.
1475         (cris_gdbarch_init): Do not set frame_args_address or
1476         frame_locals_address.
1477
1478 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1479
1480         * thread-db.c (thread_db_load): Tell the user what's going on
1481         if dlopen fails on libthread_db.
1482
1483 2002-11-23  Andreas Schwab  <schwab@suse.de>
1484
1485         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1486         invariant return values.
1487
1488 2002-11-22  Andreas Schwab  <schwab@suse.de>
1489
1490         * valops.c (value_slice): Move declaration of `offset' to avoid
1491         warning.
1492
1493 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1494
1495         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1496         (struct so_stuff): Add end_addr field.
1497         (register_loaded_dll): Calculate and store end address of loaded dll.
1498         (solib_address): New function.
1499         (child_solib_loaded_library_pathname): Pass carefully constructed
1500         section info to safe_symbol_file_add rather than ignoring it.
1501         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1502         DLL is loaded.
1503         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1504         (child_create_inferior): Fix a compiler warning.
1505         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1506         (solib_address): Declare new function.
1507
1508 2002-11-22  Andreas Schwab  <schwab@suse.de>
1509
1510         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1511         and FPS registers.
1512
1513 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1514
1515         * maint.c (_initialize_maint_cmds): Fix typo.  From
1516         Francesco Potorti` <pot@gnu.org>.
1517
1518 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1519
1520         * mips-tdep.c (mips_dump_tdep): Delete references to
1521         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1522         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1523         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1524         * printcmd.c (build_address_symbolic): Delete calls to
1525         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1526         (address_info): Ditto.
1527         Fix PR gdb/773.
1528         
1529 2002-11-19  Klee Dienes  <kdienes@apple.com>
1530             Adam Fedor  <fedor@gnu.org>
1531
1532         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1533         the ability to explicitly specify the quote characters and word
1534         break characters; if NULL is specified for either, use the old
1535         behavior of using the characters used by the completer.
1536         (skip_chars): New function.  Convenience wrapper around
1537         skip_quoted_chars to provide the original skip_chars behavior.
1538         * completer.h (skip_quoted_chars): Add prototype.
1539
1540 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1541
1542         Problems reported by Paul Eggert.
1543         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1544
1545 2002-11-19  Andreas Schwab  <schwab@suse.de>
1546
1547         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1548         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1549         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1550         (m68k_linux_frame_saved_pc): Move to ...
1551         * m68klinux-tdep.c: ... here.  New file.
1552         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1553         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1554
1555 2002-11-19  Adam Fedor  <fedor@gnu.org>
1556
1557         * objc-exp.y: Revert to old skip_quoted usage.
1558
1559 2002-11-19  Adam Fedor  <fedor@gnu.org>
1560
1561         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1562         (objc_lang_h): Define.
1563         (YYFILES): Add objc-exp.tab.c.
1564         (local-maintainer-clean): Remove objc-exp.tab.c.
1565         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1566         
1567 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1568
1569         * p-exp.y (typecast rule): Add automatic dereference of
1570         pascal classes if needed.
1571         (THIS): Set current_type.
1572         Automatically dereference pascal classes. 
1573         (typebase rule): Add ^typebase recognition.
1574
1575 2002-11-18  Adam Fedor  <fedor@gnu.org>
1576
1577         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1578         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1579         (op_name): Handle OP_OBJC_SELF.
1580         * Makefile.in (expprint.o): Add additional depends.
1581
1582 2002-11-18  Adam Fedor  <fedor@gnu.org>
1583
1584         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1585         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1586         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1587         * objc-exp.y: Likewise. 
1588
1589 2002-11-18  Adam Fedor  <fedor@gnu.org>
1590
1591         * gdb/parser-defs.h: (struct objc_class_str): New structure
1592         for parsing ObjC classes.
1593
1594 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1595
1596         * stack.c (frame_relative_level): Copy function from here ...
1597         * frame.c (frame_relative_level): ...to here.
1598
1599 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1600
1601         * frame.h (enum frame_type): Define.
1602         (get_frame_type): Declare.
1603         (struct frame_info): Add field `type'.  Delete field
1604         signal_handler_caller.
1605         (deprecated_set_frame_signal_handler_caller): Declare.
1606         * frame.c (get_frame_type): New function.
1607         (deprecated_set_frame_type): New function.
1608         (create_new_frame): Set the frame's type.
1609         (get_prev_frame): Similar.
1610         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1611         * s390-tdep.c: Ditto.
1612         * m68klinux-nat.c: Ditto.
1613         * ns32k-tdep.c: Ditto.
1614         * x86-64-linux-tdep.c: Ditto.
1615         * vax-tdep.c: Ditto.
1616         * rs6000-tdep.c: Ditto.
1617         * ppc-linux-tdep.c: Ditto.
1618         * i386-interix-tdep.c: Ditto.
1619         * mips-tdep.c: Ditto.
1620         * m68k-tdep.c: Ditto.
1621         * hppa-tdep.c: Ditto.
1622         * ia64-tdep.c: Ditto.
1623         * cris-tdep.c: Ditto.
1624         * arm-tdep.c: Ditto.
1625         * alpha-tdep.c: Ditto.
1626         * i386-tdep.c: Ditto.
1627         * stack.c: Ditto.
1628         * ada-lang.c: Ditto.
1629         * blockframe.c: Update.
1630         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1631         deprecated_set_frame_type instead of signal_handler_caller.
1632         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1633         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1634         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1635
1636 2002-11-18   Klee Dienes  <kdienes@apple.com>
1637
1638         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1639
1640 2002-11-18  Klee Dienes  <kdienes@apple.com>
1641
1642         * buildsym.c (pop_context): Add comment.
1643         
1644 2002-11-18  Klee Dienes  <kdienes@apple.com>
1645
1646         * buildsym.h (pop_context): Convert to function, defined in
1647         buildsym.c.
1648         * buildsym.c: Include gdb_assert.h.
1649         (pop_context): Implement as C function.  Add check for stack
1650         underflow.
1651         * dbxread.c (process_one_symbol): Complain and stop processing
1652         that symbol if we are already at the top of the context stack for
1653         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1654         when processing N_RBRAC.
1655
1656 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1657
1658         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1659         define.
1660         (struct target_waitstatus): Add opaque definition.
1661         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1662         * exec.c (init_exec_ops): Likewise.
1663         * fork-child.c (clone_and_follow_inferior): Remove.
1664         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1665         * inferior.h (clone_and_follow_inferior): Remove prototype.
1666         * infrun.c (follow_fork_mode_both): Remove.
1667         (follow_fork_mode_kind_names): Remove commented out "both".
1668         (follow_inferior_fork): Remove follow_fork_mode_both support.
1669         * inftarg.c (child_clone_and_follow_inferior): Remove.
1670         (child_post_follow_inferior_by_clone): Remove.
1671         (init_child_ops): Don't set to_clone_and_follow_inferior
1672         or to_post_follow_inferior_by_clone.
1673         * target.c (default_clone_and_follow_inferior): Remove.
1674         (cleanup_target): Don't set to_clone_and_follow_inferior
1675         or to_post_follow_inferior_by_clone.
1676         (find_default_clone_and_follow_inferior): Remove.
1677         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1678         (debug_to_clone_and_follow_inferior): Remove.
1679         (debug_to_post_follow_inferior_by_clone): Remove.
1680         (setup_target_debug): Don't set to_clone_and_follow_inferior
1681         or to_post_follow_inferior_by_clone.
1682         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1683         and to_post_follow_inferior_by_clone.
1684         (child_clone_and_follow_inferior): Remove prototype.
1685         (child_post_follow_inferior_by_clone): Remove prototype.
1686         (target_clone_and_follow_inferior): Remove macro.
1687         (target_post_follow_inferior_by_clone): Remove macro.
1688         (find_default_clone_and_follow_inferior): Remove prototype.
1689
1690 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1691
1692         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1693         inferior_has_vforked, and inferior_has_execd instead of
1694         target_has_forked, target_has_vforked, and target_has_execd.
1695         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1696         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1697         (CHILD_WAIT): Define.
1698         (child_wait): Add prototype.
1699         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1700         Add prototype.
1701         (hpux_has_vforked): Likewise, from child_has_vforked.
1702         (hpux_has_execd): Likewise, from child_has_execd.
1703         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1704         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1705         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1706         and hpux_has_syscall_event instead of the target hooks.
1707         * infrun.c (inferior_has_forked, inferior_has_vforked)
1708         (inferior_has_execd): New functions.
1709         * inftarg.c (not_same_real_pid): Remove.
1710         (child_wait): Remove references to not_same_real_pid,
1711         target_has_forked, target_has_vforked, target_has_execd,
1712         and target_has_syscall_event.
1713         (child_has_forked, child_has_vforked, child_has_execd)
1714         (child_has_syscall_event): Remove.
1715         (init_child_ops): Remove references to child_has_forked,
1716         child_has_vforked, child_has_execd, and child_has_syscall_event.
1717         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1718         (hpux_has_vforked): Likewise, from child_has_vforked.
1719         (hpux_has_execd): Likewise, from child_has_execd.
1720         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1721         * target.c (cleanup_target): Remove references to
1722         to_has_forked, to_has_vforked, to_has_execd, and
1723         to_has_syscall_event.
1724         (update_current_target): Likewise.
1725         (setup_target_debug): Likewise.
1726         (debug_to_has_forked): Remove.
1727         (debug_to_has_vforked): Remove.
1728         (debug_to_has_execd): Remove.
1729         (debug_to_has_syscall_event): Remove.
1730         * target.h (struct target_ops): Remove to_has_forked.
1731         to_has_vforked, to_has_execd, and to_has_syscall_event.
1732         (child_has_forked, child_has_vforked, child_has_execd)
1733         (child_has_syscall_event): Remove prototypes.
1734         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1735         prototypes.
1736         (target_has_forked, target_has_vforked, target_has_execd)
1737         (target_has_syscall_event): Remove macros.
1738
1739 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1740
1741         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1742         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1743         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1744         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1745         * target.c (cleanup_target): Remove reference to
1746         to_can_follow_vfork_prior_to_exec.
1747         (update_current_target): Likewise.
1748         (debug_to_can_follow_vfork_prior_to_exec): Remove.
1749         (setup_target_debug): Remove reference to
1750         to_can_follow_vfork_prior_to_exec.
1751         * target.h (struct target_ops): Remove
1752         to_can_follow_vfork_prior_to_exec.
1753         (child_can_follow_vfork_prior_to_exec): Remove prototype.
1754         (target_can_follow_vfork_prior_to_exec): Remove definition.
1755         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1756         define.
1757         * infrun.c (follow_vfork_when_exec): Remove.
1758         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1759         (follow_exec): Likewise.
1760         (handle_inferior_event): Likewise.
1761         (keep_going): Likewise.
1762
1763 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1764
1765         * frame.c (generic_unwind_get_saved_register): Make static.
1766         * frame.h (generic_unwind_get_saved_register): Delete declaration.
1767         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1768         defaults to generic_unwind_get_saved_register.
1769         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1770         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1771         * frv-tdep.c (frv_gdbarch_init): Ditto.
1772         * i386-tdep.c (i386_gdbarch_init): Ditto.
1773         * s390-tdep.c (s390_gdbarch_init): Ditto.
1774         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1775         * v850-tdep.c (v850_gdbarch_init): Ditto.
1776         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1777         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1778         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1779
1780 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1781
1782         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
1783         i386-tdep.c.
1784
1785 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1786
1787         * frame.h (sigtramp_saved_pc): Delete declaration.
1788         * blockframe.c (sigtramp_saved_pc): Delete function.
1789         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1790         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1791         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1792         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1793
1794 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1795
1796         * frame.c (frame_pc_unwind): New function.
1797         (frame_saved_regs_pc_unwind): New function.
1798         (frame_register_unwind): Pass unwind_cache instead of
1799         register_unwind_cache.
1800         (set_unwind_by_pc): Add unwind_pc parameter, set.
1801         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1802         (get_prev_frame): Ditto.
1803         * frame.h (frame_pc_unwind_ftype): Declare.
1804         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1805         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
1806         (frame_pc_unwind): Declare.
1807         * dummy-frame.c (dummy_frame_pc_unwind): New function.
1808         (struct dummy_frame): Add comment mentioning that values are for
1809         previous frame.
1810         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1811         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1812         (generic_file_frame_chain_valid): Ditto.
1813         * stack.c (frame_info): Ditto.
1814
1815 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1816
1817         * linespec.c (locate_first_half): New function.
1818         (decode_line_1): Move code into locate_first_half.
1819
1820 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
1821
1822         * complaints.h: Add comment explaining how to eliminate a
1823         deprecated_complain call.
1824         * complaints.h: Fix spelling errors.
1825
1826 2002-11-15  David Carlton  <carlton@math.stanford.edu>
1827
1828         * printcmd.c: Remove #include "disasm.h".
1829
1830 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1831
1832         * frame.h: Move the most relevant interface functions to the start
1833         of the file.
1834
1835 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
1836
1837         * regcache.h (deprecated_registers): Rename registers.
1838         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1839         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1840         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1841         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1842         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1843         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1844         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1845         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1846         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1847         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1848         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1849         * v850ice.c: Update.
1850
1851 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
1852
1853         * utils.c (gdb_realpath): Add comment mentioning realpath with a
1854         NULL buffer.
1855
1856 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1857
1858         * regcache.h (deprecated_read_register_bytes): Rename
1859         read_register_bytes.
1860         (deprecated_write_register_bytes): Rename write_register_bytes.
1861         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1862         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1863         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1864         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1865         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1866         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1867         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1868         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1869         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1870         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1871         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1872         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1873         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1874         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1875
1876 2002-11-13  Jim Blandy  <jimb@redhat.com>
1877
1878         * findvar.c (read_var_value): Doc fix.
1879
1880 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1881
1882         * regcache.c (struct regcache): Replace passthough_p with
1883         readonly_p.
1884         (regcache_xmalloc): Initialize readonly_p.
1885         (build_regcache): Initialize readonly_p.
1886         (regcache_save): New function.
1887         (regcache_restore): New function.
1888         (regcache_cpy): Re-implement using regcache_save and
1889         regcache_restore.
1890         (regcache_raw_read): Update.
1891         (regcache_cooked_read): When a read-only cache, checked for cached
1892         pseudo register values.
1893         (regcache_raw_write): Assert that the cache is not read-only.
1894         Remove code handling a non-passthrough cache.
1895         * regcache.h (regcache_save): Declare.
1896         (regcache_restore): Declare.
1897
1898 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1899
1900         * regcache.c (struct regcache_descr): Add fields
1901         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1902         (init_legacy_regcache_descr): Compute the size of a cooked
1903         register cache and then assign that to sizeof_raw_registers.  Set
1904         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1905         (init_legacy_regcache_descr): Ditto.
1906
1907 2002-11-13  Andrew Cagney  <cagney@redhat.com>
1908
1909         * regcache.c (register_buffer): Move to near start of file, update
1910         description.
1911         (regcache_raw_read): Use.
1912         (regcache_raw_write): Use.
1913         (struct regcache): Rename raw_registers to registers and
1914         raw_register_valid_p to register_valid_p.
1915         (regcache_xmalloc): Update.
1916         (regcache_xfree): Update.
1917         (register_buffer): Update.
1918         (regcache_cpy): Update.
1919         (regcache_cpy_no_passthrough): Update.
1920         (regcache_valid_p): Update.
1921         (deprecated_grub_regcache_for_registers): Update.
1922         (deprecated_grub_regcache_for_register_valid): Update.
1923         (set_register_cached): Update.
1924         (regcache_raw_write): Update.
1925
1926 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
1927
1928         * p-exp.y (name_not_typename): Use copy_name to
1929         set current_type variable for fields of THIS.
1930
1931 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
1932
1933         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1934         * monitor.c (init_base_monitor_ops): Likewise.
1935         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1936         * remote-array.c (init_array_ops): Likewise.
1937         * remote-e7000.c (init_e7000_ops): Likewise.
1938         * remote-es.c (init_es1800_ops): Likewise.
1939         (init_es1800_child_ops): Likewise.
1940         * remote-rdp.c (init_remote_rdp_ops): Likewise.
1941         * remote-sim.c (init_gdbsim_ops): Likewise.
1942         * remote-st.c (init_st2000_ops): Likewise.
1943         * sol-thread.c (init_sol_core_ops): Likewise.
1944         (init_sol_thread_ops): Likewise.
1945         * v850ice.c (init_850ice_ops): Likewise.
1946         * win32-nat.c (init_child_ops): Likewise.
1947         * wince.c (init_child_ops): Likewise.
1948
1949 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
1950
1951         * utils.c (gdb_realpath): Make rp a constant pointer.
1952
1953 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
1954
1955         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
1956         a constant buffer; cannonicalize_file_name(); realpath() with a
1957         pathconf() defined buffer, xstrdup().
1958
1959 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
1960
1961         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1962         to hang2.C; hang3.c to hang3.C.
1963
1964 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
1965
1966         * findvar.c (read_var_value): Reenable TLS code.
1967
1968 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
1969             Jim Blandy  <jimb@redhat.com>
1970         
1971         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1972         * target.c (update_current_target): Add
1973         to_get_thread_local_address.
1974         * target.h (to_get_thread_local_address): Export.
1975         (target_get_thread_local_address): Define.
1976         (target_get_thread_local_address_p): Define.
1977         * thread-db.c: Include solib-svr4.h.
1978         (td_thr_tls_get_addr_p): Define.
1979         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1980         (thread_db_get_thread_local_address): New function.
1981         (init_thread_db_ops): Initialize to_get_thread_local_address.
1982         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1983         * configure: Regenerate.
1984         * config.in: Regenerate.
1985
1986 2002-11-11  David Carlton  <carlton@math.stanford.edu>
1987
1988         * linespec.c (set_flags): New function.
1989         (decode_line_1): Move code into set_flags.
1990
1991 2002-11-11  David Carlton  <carlton@math.stanford.edu>
1992
1993         * linespec.c (decode_line_1): Move chunks of code to separate
1994         functions.
1995         (initialize_defaults): New function.
1996         (decode_indirect): New function.
1997
1998 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
1999
2000         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2001         instead of void_code_ptr.
2002         (sigtramp_saved_pc): Ditto.
2003
2004         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2005         i386_fp_regnum_p.
2006
2007 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2008
2009         * gdbtypes.h (struct main_type): Move artificial flag out of
2010         loc.  New member of ``struct field'' named static_kind.  Reduce
2011         overloaded meaning of bitsize.
2012         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2013         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2014         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2015
2016         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2017         new fields.
2018         (template_to_fixed_record_type, template_to_static_fixed_type)
2019         (to_record_with_fixed_variant_part): Likewise.
2020         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2021         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2022         * dwarfread.c (struct_type, enum_type): Likewise.
2023         * hpread.c (hpread_read_enum_type)
2024         (hpread_read_function_type, hpread_read_doc_function_type)
2025         (hpread_read_struct_type): Likewise.
2026         * mdebugread.c (parse_symbol): Likewise.
2027
2028 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2029
2030         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2031         * stack.c (print_frame_info_base): Update.
2032         (print_frame_info_base, frame_info): Update.
2033         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2034         (sparc_frame_saved_pc): Update.
2035         * ada-lang.c (find_printable_frame): Update.
2036         * breakpoint.c (deprecated_frame_in_dummy): Update.
2037         
2038 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2039
2040         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2041         defined.
2042         (regmap): Extend to cover all registers.
2043         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2044         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2045         definitions.
2046         (fetch_register, sore_register): Simplify.
2047         (old_fetch_inferior_registers, old_store_inferior_registers):
2048         Remove functions.
2049         (cannot_fetch_register, cannot_store_register): Change
2050         implementation to use regmap array to decide which registers
2051         cannot be fetched/stored.  This removes $orig_eax from the
2052         registers that cannot be fetched/stored.
2053         (fetch_inferior_registers): Call fetch_register directly instead
2054         of calling old_fetch_inferior_registers.
2055         (store_inferior_registers): Call store_register directly instead
2056         of calling old_store_inferior_registers.
2057         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2058         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2059         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2060
2061 2002-11-09  Klee Dienes  <kdienes@apple.com>
2062
2063         * i387-tdep.c (i387_supply_register): When called with NULL as a
2064         buffer, mark the register as not provided (to mirror the behavior
2065         of supply_register).
2066         (i387_supply_fxsave): Ditto.
2067         (i387_supply_fsave): Ditto (inherits the behavior from
2068         i387_supply_register).
2069
2070 2002-11-09  Klee Dienes  <kdienes@apple.com>
2071
2072         * blockframe.c (sigtramp_saved_pc): Use
2073         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2074         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2075         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2076         
2077 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2078
2079         * frame.c (get_prev_frame): Test prev_p to identify a previously
2080         unwound frame.  Initialize prev_p.
2081         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2082         comment.
2083
2084 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2085
2086         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2087         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2088         more comments.  Zap dead code.
2089
2090 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2091
2092         * infcmd.c (print_vector_info, print_float_info): Move code that
2093         checks whether the target has any registers and whether there is a
2094         selected frame up, such that it is also used if a target provides
2095         multi-arch definitions of these functions.
2096
2097 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2098
2099         * Makefile.in (DESTDIR): Define.
2100         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2101         prefix.
2102
2103         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2104         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2105
2106 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2107
2108         * i386-linux-tdep.c: Include "reggroups.h".
2109         (i386_linux_register_reggroup_p): New function.
2110         (i386_linux_init_abi): Set register_reggroup_p to
2111         i386_linux_register_reggroup_p.
2112         * i386-tdep.h (i386_register_reggroup_p): Declare.
2113         * i386-tdep.c: Include "reggroups.h".
2114         (i386_init_reggroups): New function.
2115         (i386_add_reggroups): New function.
2116         (i386_register_reggroup_p): New function.
2117         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2118         (_initialize_i386_tdep): Call i386_init_reggroups.
2119         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2120         specific reggroups.
2121
2122 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2123
2124         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2125         request that's available in *BSD.
2126
2127         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2128
2129         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2130         FDOFF_REGNUM.
2131
2132 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2133
2134         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2135         * dummy-frame.c (find_dummy_frame): Rename
2136         generic_find_dummy_frame, make static.  Return the dummy frame
2137         instead of the regcache.
2138         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2139         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2140         (dummy_frame_register_unwind): Rename
2141         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2142         * dummy-frame.h (dummy_frame_register_unwind): Rename
2143         generic_call_dummy_register_unwind.
2144
2145 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2146
2147         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2148         except the inclusion of "i386/tm-i386.h", to...
2149         * config/i386/nm-i386v42mp.h: ...here.
2150         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2151
2152 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2153
2154         * Makefile.in (frame.o): Update dependencies.
2155         * blockframe.c (current_frame, frame_obstack_alloc)
2156         (frame_saved_regs_zalloc, get_current_frame)
2157         (set_current_frame, create_new_frame)
2158         (set_unwind_by_pc, get_next_frame)
2159         (flush_cached_frames, reinit_frame_cache)
2160         (frame_saved_regs_register_unwind)
2161         (deprecated_generic_get_saved_register)
2162         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2163         (_initialize_blockframe): Move frame code from here...
2164         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2165         "annotate.h" and "dummy-frame.h".
2166         (_initialize_frame): New function.
2167
2168 2002-11-08  Jim Blandy  <jimb@redhat.com>
2169
2170         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2171         when we finish a function a context.
2172         * buildsym.h (outermost_context_p): New macro.
2173         (Bug analyzed by David Edelsohn.)
2174
2175 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2176
2177         * blockframe.c: Include "dummy-frame.h".
2178         (struct dummy_frame, dummy_frame_stack)
2179         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2180         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2181         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2182         (generic_save_call_dummy_addr, generic_pop_current_frame)
2183         (generic_pop_dummy_frame, generic_fix_call_dummy)
2184         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2185         dummy frame code from here...
2186         * dummy-frame.c: ...to here.  New file.
2187         * dummy-frame.h: New file.
2188         (generic_call_dummy_register_unwind): Declare.
2189         (generic_find_dummy_frame): Declare.
2190         * Makefile.in (SFILES): Add dummy-frame.c.
2191         (dummy-frame.o): Specify dependencies.
2192         (dummy_frame_h): Define.
2193         (COMMON_OBS): Add dummy-frame.o.
2194         (blockframe.o): Update dependencies.
2195
2196 2002-11-08  Jim Blandy  <jimb@redhat.com>
2197
2198         * dwarf2read.c (read_func_scope): Restore local_symbols and
2199         param_symbols after we finish the function context.  (Based on a
2200         patch from David Edelsohn.)
2201
2202 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2203
2204         * linespec.c (symbol_found): New function.
2205         (minsym_found): New function.
2206         (decode_line_1): Separate out some code into separate functions.
2207
2208 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2209
2210         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2211         the benefit of the interix target.
2212         * i386-tdep.h (i386_frameless_signal_p): Declare.
2213
2214 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2215
2216         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2217         declaration that snuck in from change below.
2218
2219 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2220
2221         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2222         all callers.
2223         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2224         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2225         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2226         (i386_mxcsr_regnum_p): new function.  Use instead of
2227         MXCSR_REGNUM_P.
2228         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2229         (i386_sse_regnum_p): Declare.
2230         (i386_mxcsr_regnum_p): Declare.
2231         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2232         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2233         (IS_FP_REGNUM): Update definition.
2234         (IS_FPU_CTRL_REGNUM): Update definition..
2235         (IS_SSE_REGNUM): Update definition..
2236         * i386v-nat.c (register_u_addr): Update.
2237         * go32-nat.c (fetch_register): Update.
2238         (store_register): Update.
2239
2240 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2241
2242         Preparation work to convert the hppa targets to multiarch partial.
2243
2244         * hppa-tdep.c: Add new functions replacing macro bodies from
2245         config/pa/tm-hppa.h. These function will be used to initialize
2246         the gdbarch structure. Import some comments from tm-hppa.h,
2247         and place them where appropriate, to avoid loosing them when
2248         we cleanup this file.
2249         (hppa_reg_struct_has_addr): New function.
2250         (hppa_inner_than): New function.
2251         (hppa_stack_align): New function.
2252         (hppa_pc_requires_run_before_use): New function.
2253         (hppa_instruction_nullified): New function.
2254         (hppa_register_byte): New function.
2255         (hppa_register_virtual_type): New function.
2256         (hppa_store_struct_return): New function.
2257         (hppa_cannot_store_register): New function.
2258         (hppa_frame_args_address): New function.
2259         (hppa_frame_locals_address): New function.
2260         (hppa_smash_text_address): New function.
2261         (hppa_coerce_float_to_double): New function. Requires the inclusion
2262         of "language.h".
2263
2264         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2265
2266         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2267         gdbarch-eligible macro to a call to the new associated function
2268         created in hppa-tdep.c.
2269         (INNER_THAN): Likewise.
2270         (STACK_ALIGN): Likewise.
2271         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2272         (INSTRUCTION_NULLIFIED): Likewise.
2273         (REGISTER_BYTE): Likewise.
2274         (REGISTER_VIRTUAL_TYPE): Likewise.
2275         (STORE_STRUCT_RETURN): Likewise.
2276         (CANNOT_STORE_REGISTER): Likewise.
2277         (FRAME_ARGS_ADDRESS): Likewise.
2278         (FRAME_LOCALS_ADDRESS): Likewise.
2279         (SMASH_TEXT_ADDRESS): Likewise.
2280         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2281         (ABOUT_TO_RETURN): Delete, as no longer used.
2282
2283 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2284
2285         * printcmd.c (disassemble_command): Remove obsolete function.
2286         (_initialize_printcmd): Do not create disassemble command here.
2287         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2288         disassemble command.
2289         (init_cli_cmds): Create disassemble command here instead.
2290
2291 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2292
2293         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2294
2295 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2296
2297         * regcache.h (regcache_cooked_read_using_offset_hack)
2298         (regcache_cooked_write_using_offset_hack): Delete declarations.
2299         (register_changed): Delete declaration.
2300         * regcache.c (regcache_cooked_read_using_offset_hack)
2301         (regcache_cooked_write_using_offset_hack): Delete functions.
2302         (cooked_xfer_using_offset_hack): Delete function.
2303         (register_changed): Delete function.
2304
2305 2002-11-07  Jim Blandy  <jimb@redhat.com>
2306
2307         * macroscope.c: #include "complaints.h".
2308         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2309         but not in the macro table.
2310         * Makefile.in (macroscope.o): Record dependency.
2311
2312 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2313
2314         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2315
2316 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2317
2318         * regcache.c (deprecated_registers_fetched): Update.
2319         * regcache.h (deprecated_registers_fetched): Rename
2320         registers_fetched.
2321         * remote-vxsparc.c (vx_read_register): Update.
2322         * remote-vxmips.c (vx_read_register): Update.
2323         * remote-vx68.c (vx_read_register): Update.
2324         * irix5-nat.c (fetch_core_registers): Update.
2325         * mipsm3-nat.c (fetch_inferior_registers): Update.
2326         * sun3-nat.c (fetch_inferior_registers): Update.
2327         * symm-nat.c (fetch_inferior_registers): Update.
2328         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2329         (fetch_core_registers): Update.
2330         (fetch_kcore_registers): Update.
2331         * mips-nat.c (fetch_inferior_registers): Update.
2332         * corelow.c (get_core_registers): Update.
2333         * a68v-nat.c (fetch_inferior_registers): Update.
2334
2335 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2336
2337         Put in place the framework necessary for multiarching the hppa targets.
2338         * hppa-tdep.c (hppa_gdbarch_init): New function.
2339         (hppa_dump_tdep): New function.
2340         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2341         tdep structure dumper.
2342         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2343         until the multi-arching conversion has partially been completed.
2344
2345 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2346
2347         * valops.c (value_assign): Merge lval_register case into
2348         lval_reg_frame_relative.  Use frame_register and
2349         regcache_cooked_write instead of get_saved_register and
2350         write_register_bytes.  After flushing the register cache, try to
2351         re-select the selected frame.
2352
2353 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2354
2355         * regcache.h (deprecated_register_valid): Rename register_valid.
2356         * regcache.c: Update.
2357         * ia64-aix-nat.c: Update.
2358         * i386gnu-nat.c: Update.
2359         * alpha-nat.c: Update.
2360         * sparc-nat.c: Update.
2361         * lynx-nat.c: Update.
2362         * remote-mips.c: Update.
2363
2364 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2365
2366         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2367         to end of file, to be more consistent with the pratice followed
2368         by other targets.
2369
2370 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2371
2372         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2373         (print_float_info): Print registers in float_reggroup.
2374         (print_vector_info): Print registers in vector_reggroup.
2375         (default_print_registers_info): When all, print registers in
2376         all_reggroup.  Otherwize, print registers in general_reggroup.
2377         (registers_info): Rewrite.  Add support for register groups.
2378         Eliminate a goto.
2379
2380 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2381
2382         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2383         ages.
2384         (symtab_symbol_info): Remove eons old ifdeffed out code.
2385         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2386         command.
2387
2388 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2389
2390         * c-exp.y: Add missing semi-colons.
2391         * f-exp.y: Add missing semi-colons.
2392         * m2-exp.y: Add missing semi-colons.
2393         * p-exp.y: Add missing semi-colons.
2394         Add empty action to start rule to avoid a type clash error when
2395         building with bison >= 1.50.
2396
2397 2002-11-06  Jim Blandy  <jimb@redhat.com>
2398
2399         * macrotab.h (struct macro_source_file): Doc fix.
2400
2401 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2402
2403         * varobj.c (child_exists, cplus_number_of_children): Change
2404         STREQ macro references to strcmp.
2405         (cplus_name_of_child): Change code to handle the fact that
2406         fields are not necessarily contiguous with regards to their 
2407         access control. This is a fix for PR gdb/792.
2408
2409 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2410
2411         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2412         * gdbarch.h, gdbarch.c: Regnerate.
2413         * frame.h (frame_register): Declare.
2414         * frame.c (frame_register): New function.
2415         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2416         GET_SAVED_REGISTER, otherwize call
2417         generic_unwind_get_saved_register.
2418         (frame_register_read): Use frame_register instead of
2419         get_saved_register.
2420
2421 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2422         
2423         From Jim Ingham  <jingham@apple.com>:
2424         * event-top.c (gdb_disable_readline): New function.
2425         (_initialize_event_loop): Move comment.
2426
2427 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2428
2429         * event-loop.c (start_event_loop): Add comment.
2430         Update copyright.
2431
2432 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2433
2434         * infcmd.c (default_print_registers_info): Do not call
2435         PRINT_REGISTER_HOOK.
2436
2437 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2438
2439         * sparc-tdep.c (sparc_print_register_hook): Make static.
2440         (sparc_print_registers_info): New function.
2441         (sparc_do_registers_info): New function.
2442         (sparclet_print_registers_info): New function.
2443         (sparclet_do_registers_info): New function.
2444         (do_sparc_print_registers_info): New function.
2445         (sparc_print_registers): New static function, clone of infcmd.c's
2446         default_print_registers_info.
2447         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2448         (sparclet_do_registers_info): Declare.
2449         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2450         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2451         Re-define.
2452         (sparc_do_registers_info): Declare.
2453         (PRINT_REGISTER_HOOK): Delete macro.
2454         (sparc_print_register_hook): Delete declaration.
2455
2456 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2457
2458         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2459         functions.
2460         (lookup_symbol_aux_local): New function.
2461         (lookup_symbol_aux_symtabs): New function.
2462         (lookup_symbol_aux_psymtabs): New function.
2463
2464 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2465
2466         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2467         previous values of 'objfile' and 'block'.
2468
2469 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2470
2471         * values.c (value_change_enclosing_type): Set 
2472         enclosing_type field correctly also for the case where 
2473         more memory needs to be allocated.
2474
2475 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2476
2477         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2478         of puts_filtered.
2479
2480         * i387-tdep.c (i387_print_float_info): Replace calls to
2481         register_read and deprecated_read_register_gen with calls to
2482         frame_register_read, and make the necessary adjustments to the
2483         surrounding code.
2484
2485 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2486
2487         * gdbarch.sh (register_reggroup_p): Allow default value.
2488         * gdbarch.h, gdbarch.c: Regenerate.
2489
2490 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2491
2492         * regcache.h: Add coment indicating replacements for deprecated
2493         functions.
2494
2495 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2496
2497         * reggroups.h, reggroups.c: New files.
2498         * regcache.c: Include "reggroups.h".
2499         (enum regcache_dump_what): Add `regcache_dump_groups'.
2500         (regcache_dump): Contract size of the "Type" column.  When
2501         specified, dump the register's groups.
2502         (maintenance_print_register_groups): New function.
2503         (_initialize_regcache): Add command `maint print register-groups'.
2504         * Makefile.in (COMMON_OBS): Add reggroups.o
2505         (SFILES): Add reggroups.c.
2506         (reggroups_h): Define.
2507         (regcache.o, gdbarch.o): Update dependencies.
2508         (reggroups.o): Specify dependencies.
2509         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2510         Add opaque declaration for `struct reggroup' in generated .h file.
2511         Include "reggroups.h" in generated .c file.
2512         gdbarch.h, gdbarch.c: Re-generate.
2513
2514 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2515
2516         * regcache.h (deprecated_read_register_gen): Rename
2517         read_register_gen.
2518         (deprecated_write_register_gen): Rename write_register_gen.
2519         * i387-tdep.c: Update.
2520         * x86-64-linux-nat.c: Update
2521         * wince.c: Update.
2522         * thread-db.c: Update.
2523         * win32-nat.c: Update.
2524         * mips-tdep.c: Update.
2525         * d10v-tdep.c: Update.
2526         * cris-tdep.c: Update.
2527         * remote-sim.c: Update.
2528         * remote-rdi.c: Update.
2529         * remote-rdp.c: Update.
2530         * frame.c: Update.
2531         * target.c: Update.
2532         * blockframe.c: Update.
2533         * x86-64-tdep.c: Update.
2534         * xstormy16-tdep.c: Update.
2535         * sh-tdep.c: Update.
2536         * s390-tdep.c: Update.
2537         * rs6000-tdep.c: Update.
2538         * sparc-tdep.c: Update.
2539         * i386-tdep.c: Update.
2540         * dwarf2cfi.c: Update.
2541         * regcache.c: Update.
2542
2543 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2544
2545         New interix-specific files:
2546         * config/i386/nm-interix.h: New file.
2547         * config/i386/interix.mh: New file.
2548         * config/i386/interix.mt: New file.
2549         * i386-interix-nat.c: New file.
2550         * i386-interix-tdep.c: New file.
2551
2552 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2553
2554         * frame.h (deprecated_generic_get_saved_register): Rename
2555         generic_get_saved_register.
2556         * blockframe.c (deprecated_generic_get_saved_register): Update.
2557         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2558         (xstormy16_frame_saved_register): Update.
2559         * sh-tdep.c (sh_gdbarch_init): Update.
2560         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2561         * ia64-tdep.c (ia64_get_saved_register): Update.
2562         * cris-tdep.c (cris_gdbarch_init): Update.
2563         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2564         * arm-tdep.c (arm_gdbarch_init): Update.
2565
2566 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2567
2568         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2569
2570 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2571
2572         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2573         trampolines in sigaction.
2574
2575 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2576
2577         * h8300-tdep.c: Include "gdb_assert.h".
2578         (h8300_print_register): Add gdbarch, file and frame parameters.
2579         Use frame_read_unsigned_register to read the register's value.
2580         Use fprintf_filtered to display output.
2581         (h8300_print_registers_info): Replace h8300_do_registers_info.
2582         (h8300_gdbarch_init): Set print_registers_info.
2583
2584 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2585
2586         * frame.c (frame_read_unsigned_register): New function.
2587         (frame_read_signed_register): New function.
2588         * frame.h (frame_read_unsigned_register): Declare.
2589         (frame_read_signed_register): Declare.
2590
2591 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2592
2593         * h8500-tdep.c (h8500_print_registers_info): New static function,
2594         clone of infcmd.c's default_print_registers_info.
2595         (h8500_do_registers_info): New funtion.
2596         (h8500_print_register_hook): Rename print_register_hook, make
2597         static.
2598
2599         * config/h8500/tm-h8500.h: Update copyright.
2600         (DEPRECATED_DO_REGISTERS_INFO): Define.
2601         (h8500_do_registers_info: Declare.
2602         (PRINT_REGISTER_HOOK): Delete macro.
2603         (print_register_hook): Delete function.
2604
2605 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2606
2607         * z8k-tdep.c (z8k_print_register_hook): Make static.
2608         (z8k_print_registers_info): New static function, clone of
2609         infcmd.c's default_print_registers_info.
2610         (z8k_do_registers_info): New function.  Wrap
2611         z8k_print_registers_info.
2612         * config/z8k/tm-z8k.h: Update copyright.
2613         (PRINT_REGISTER_HOOK): Delete macro.
2614         (z8k_print_register_hook): Delete declaration.
2615         (DEPRECATED_DO_REGISTERS_INFO): Define.
2616         (z8k_do_registers_info): Declare.
2617
2618 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2619
2620         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2621         as this is already provided by value.h, and was actually causing
2622         a compilation error because of a conflict in parameter type
2623         declaration due to a missing const keyword.
2624         (low_text_segment_addres): Fix a compilation warning.
2625
2626 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2627
2628         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2629         registers without a name.
2630         (mips_linux_cannot_store_register): Don't store registers without
2631         a name.
2632
2633 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2634
2635         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2636         out.)
2637         * symtab.h: Delete prototype for find_addr_symbol.
2638
2639 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2640
2641         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2642         DO_REGISTERS_INFO.
2643         gdbarch.h, gdbarch.c: Re-generate.
2644         * infcmd.c (default_print_registers_info): Update reference.
2645         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2646         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2647         * sh-tdep.c (sh_gdbarch_init): Ditto.
2648         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2649         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2650
2651 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2652
2653         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2654         cfi_init_extra_frame_info.
2655         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2656         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2657
2658         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2659         target where necessary.  Add more comments and remove the ones
2660         that don't provide any useful information.
2661
2662         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2663         deprecated_read_register_dummy with
2664         frame_unwind_unsigned_register.
2665
2666         * i386-tdep.c (i386_extract_struct_value_address): Use
2667         regcache_raw_read_unsigned instead of
2668         regcache_cooked_read_unsigned since we know that the register
2669         we're reading isn't a pseudo register.  Rename variable 'val' into
2670         the more descriptive 'addr'.
2671
2672         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2673         (x86_64_push_return_address): Add comment.
2674         (x86_64_pop_frame): Make static.
2675         (examine_argument): Clarify comment.
2676         (x86_64_skip_prologue): Make prolog_expact variable static.
2677
2678         * dwarf2cfi.c: Fix some formatting problems.
2679         (context_cpy, read_encoded_pointer): Clarify comments.
2680
2681         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2682         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2683         i386 target back into x86_64_gdbarch_init.  Add some comments and
2684         remove meaningless ones.
2685
2686 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2687
2688         * complaints.h (struct deprecated_complaint): Rename `struct
2689         complaint'.
2690         * complaints.c (complain): Update.
2691         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2692         incorrect comment indicating that "symfile.h" was being included
2693         for the `struct complaint' definition.
2694         * remote-vx.c: Update.
2695         * objc-lang.c: Update.
2696         * xcoffread.c: Update.
2697         * hpread.c: Update.
2698         * mdebugread.c: Update.
2699         * stabsread.c: Update.
2700         * dwarf2read.c: Update.
2701         * dwarfread.c: Update.
2702         * elfread.c: Update.
2703         * coffread.c: Update.
2704         * stabsread.h: Update.
2705         * dbxread.c: Update.
2706         * buildsym.c: Update.
2707         * gdbtypes.c: Update.
2708         * macrotab.c: Update.
2709
2710 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2711
2712         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2713         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2714         (x86_64_init_abi): ...new function.
2715
2716         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2717         * i386v-nat.c: Include "i386-tdep.h".
2718
2719 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2720
2721         * gdbtypes.c (address_space_name_to_int): Update.
2722         (address_space_int_to_name): Update.
2723         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2724         multi-arch predicate.
2725         (address_class_name_to_type_flags): Ditto.
2726         * gdbarch.h, gdbarch.c: Re-generate.
2727         
2728         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2729
2730 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
2731
2732         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2733
2734 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
2735
2736         * symtab.h (INIT_SAL): Delete macro.
2737         (init_sal): Export.
2738         * symtab.c (init_sal): New function.
2739
2740         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2741         to init_sal function call.
2742         (find_sal_from_funcs_and_line): Ditto.
2743         (all_sals_for_line): Ditto. 
2744         * breakpoint.c (create_internal_breakpoint): Ditto. 
2745         (create_fork_vfork_event_catchpoint): Ditto. 
2746         (create_exec_event_catchpoint): Ditto. 
2747         (parse_breakpoint_sals): Ditto. 
2748         (watch_command_1): Ditto. 
2749         (handle_gnu_4_16_catch_command): Ditto.
2750         (clear_command): Ditto. 
2751         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
2752         * infcmd.c (run_stack_dummy): Ditto. 
2753         * infrun.c (process_event_stop_test): Ditto.
2754         (check_sigtramp2): Ditto.
2755         (step_over_function): Ditto. 
2756         * linespec.c (decode_line_2): Ditto. 
2757         (decode_line_1): Ditto. 
2758         * source.c (line_info): Ditto. 
2759         * symtab.c (find_pc_sect_line): Ditto.
2760
2761 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
2762
2763         * dwarf2cfi.c (struct context)
2764         (struct context_reg): Moved to dwarf2cfi.h
2765         (context_alloc, frame_state_alloc, context_cpy):
2766         Made extern instead of static, removed prototypes.
2767         * dwarf2cfi.h (struct context)
2768         (struct context_reg): New, moved from dwarf2cfi.c
2769         (context_alloc, frame_state_alloc, context_cpy):
2770         New prototypes.
2771         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2772         Changed from static to extern.
2773         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2774         (LINUX_SIGCONTEXT_FP_OFFSET)
2775         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2776         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2777         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2778         * x86-64-tdep.c (x86_64_gdbarch_init): Several
2779         set_gdbarch_*() calls now use x86-64 specific functions 
2780         instead of DWARF2 CFI ones.
2781         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2782         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2783         (x86_64_init_extra_frame_info): New prototypes.
2784         
2785 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2786
2787         * linespec.c: #include "parser-defs.h".
2788         Delete prototype for find_template_name_end.
2789         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2790
2791 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
2792
2793         * NEWS: add recent mi fixes.
2794         * varobj.c (struct varobj): Add new "updated" flag.
2795         (new_variable): Default "updated" flag to 0.
2796         (varobj_set_value): Set "updated" flag to 1 if value
2797         changes.
2798         (varobj_update): Check varobj "updated" flag before
2799         comparing old and refreshed values.  Fix for
2800         PR gdb/702.
2801
2802 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2803
2804         * parse.c (parse_exp_1): Use BLOCK_START.
2805         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2806         SYMBOL_BLOCK_VALUE.
2807         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2808
2809 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2810
2811         * symtab.c: Delete cplusplus_hint.
2812         Delete prototype for find_template_name_end.
2813
2814 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2815
2816         * symtab.h: Update comment.
2817
2818 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2819
2820         * printcmd.c (address_info): Restore quotes in output.
2821         * valops.c (value_of_local): Restore quotes in error message.
2822
2823 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2824
2825         * symtab.c (symbol_demangled_name): New function.
2826         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2827         turning most of it into a function.
2828         (symbol_demangled_name): Export.
2829
2830 2002-10-23  Michael Snyder  <msnyder@redhat.com>
2831
2832         * valops.c (value_of_local): Restore quotes in error message.
2833
2834 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2835
2836         * symtab.c (symbol_init_language_specific): New function.
2837         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2838         turning most of it into a function.
2839         (symbol_init_language_specific): Export.
2840
2841 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2842
2843         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2844         (dwarf_attr_name): Ditto.
2845         (dwarf_type_encoding_name): Ditto.
2846         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2847         (process_die): Handle DW_TAG_namespace,
2848         DW_TAG_imported_declaration, DW_TAG_imported_module.
2849         (read_namespace): New function.
2850
2851 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
2852
2853         * configure.in: Define NEW_PROC_API on Interix too.
2854         * configure: Regenerate.
2855
2856 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
2857
2858         * configure: Regenerate using the proper version of autoconf.
2859
2860 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2861
2862         * findvar.c (read_var_value): Temporarily disable TLS code, until
2863         complete TLS support is added.
2864
2865 2002-10-21  Jim Blandy  <jimb@redhat.com>
2866             Elena Zannoni  <ezannoni@redhat.com>
2867
2868         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2869         for thread local storage locations.
2870         (struct symbol): Add objfile field.
2871         (SYMBOL_OBJFILE): Define.
2872         * dwarf2read.c (is_thread_local): New static variable.
2873         (new_symbol): If variable is in thread local fill in address class
2874         and objfile appropriately.
2875         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2876         stack operation.
2877         * printcmd.c (address_info): Print the information for thread
2878         local storage variable.
2879         * findvar.c (read_var_value): In case of thread local variable,
2880         defer to the target vector code to compute address.
2881
2882 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2883
2884         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2885         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
2886
2887 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2888
2889         * symtab.h (address_class):  Rename
2890         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2891         * hpread.c (hpread_process_one_debug_symbol): Ditto.
2892         * printcmd.c (address_info): Ditto.
2893         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2894
2895 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
2896
2897         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2898         DBREG_DRX macro to acces debug registers.
2899
2900         * Makefile.in (i386obsd-tdep.o): New target.
2901
2902         * solib-sunos.c: Include "bcache.h" and "regcache.h".
2903         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2904
2905         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2906         * config/i386/obsd.mt: New file.
2907         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2908         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2909         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2910         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2911         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2912         * i386obsd-tdep.c: New file.
2913
2914 2002-10-19  Adam Fedor  <fedor@gnu.org>
2915
2916         * objc-exp.y (name_not_typename): Fix invalid comment.  
2917
2918 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
2919
2920         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2921         to allocate partial syms and macro byte caches.
2922
2923 2002-10-18  David Carlton  <carlton@math.stanford.edu>
2924
2925         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2926
2927 2002-10-18  Adam Fedor  <fedor@gnu.org>
2928
2929         * stabsread.c (find_name_end): New function.
2930         (define_symbol): Use it.
2931
2932 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
2933
2934         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2935         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2936         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2937         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2938
2939 2002-10-17  David Carlton  <carlton@math.stanford.edu>
2940
2941         * symfile.h: Add opaque declaration for struct obstack.
2942         Declare obsavestring to take a const char *.
2943         * symfile.c (obsavestring): Make first argument a const char *.
2944
2945 2002-10-16  Adam Fedor  <fedor@gnu.org>
2946
2947         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2948         names when matching breakpoints in current file.
2949
2950 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
2951
2952         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2953         (read_tag_pointer_type): Add address class support.
2954         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2955         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2956         New methods.
2957         * gdbarch.h, gdbarch.c: Regenerate.
2958         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2959         (make_type_with_address_space, recursive_type_dump): Add address
2960         class support.
2961         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2962         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2963         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2964
2965 2002-10-16  Klee Dienes  <kdienes@apple.com>
2966
2967         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2968         to get the last character of a char[] buffer, not
2969         name[sizeof(vptr_name)-1].
2970
2971 2002-10-14  Adam Fedor  <fedor@gnu.org>
2972
2973         * symtab.h: New objc_specific struct.
2974         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2975         (SYMBOL_DEMANGLED_NAME): Likewise.
2976
2977 2002-10-14  Adam Fedor  <fedor@gnu.org>
2978
2979         * symfile.c (init_filename_language_table): Add ObjC file extension.
2980
2981 2002-10-14  Adam Fedor  <fedor@gnu.org>
2982
2983         * utils.c (puts_filtered_tabular): New function.
2984         (fprintf_symbol_filtered): Get ObjC demangled name.
2985         * defs.h (puts_filtered_tabular): Declared.
2986
2987 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
2988
2989         * c-lang.h (c_type_print_varspec_prefix): Delete.
2990         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
2991         ``need_post_space'' parameter.  Adjust all callers.
2992
2993 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
2994  
2995         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2996         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2997         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2998         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2999
3000 2002-10-13  Adam Fedor  <fedor@gnu.org>
3001
3002         * source.c (print_source_lines): Update comments.
3003
3004 2002-10-13  Adam Fedor  <fedor@gnu.org>
3005
3006         * valops.c (value_of_local): New function.
3007         (value_of_this): Use it.
3008         * value.h (value_of_local): Declared.
3009
3010 2002-10-13  Adam Fedor  <fedor@gnu.org>
3011
3012         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3013         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3014
3015 2002-10-12  Adam Fedor  <fedor@gnu.org>
3016
3017         * language.c (binop_result_type): Add language_objc to case.
3018         (integral_type): Likewise.
3019         (character_type): Likewise.
3020         (string_type): Likewise.
3021         (boolean_type): Likewise.
3022         (structured_type): Likewise.
3023         (binop_type_check): Likewise.
3024
3025 2002-10-11  Adam Fedor  <fedor@gnu.org>
3026
3027         * printcmd.c (address_info): Print 'self' for ObjC.
3028
3029 2002-10-11  Adam Fedor  <fedor@gnu.org>
3030
3031         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3032         OP_SELF.
3033
3034 2002-10-11  Adam Fedor  <fedor@gnu.org>
3035
3036         * language.h (CAST_IS_CONVERSION): Add language_objc.
3037
3038 2002-10-11  Adam Fedor  <fedor@gnu.org>
3039
3040         * defs.h (enum language): Add language_objc.
3041
3042 2002-10-11  Klee Dienes  <kdienes@apple.com>
3043
3044         * corefile.c (read_memory_typed_address): New function.
3045         * gdbcore.h (read_memory_typed_address): Add prototype.
3046         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3047         to read a value destined for a CORE_ADDR, not read_memory_integer.
3048         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3049         (f77_get_dynamic_lowerbound): Ditto.
3050
3051 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3052
3053         * utils.c (string_to_core_addr): After turning string into
3054         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3055         which will do necessary sign-extension, etc.
3056
3057 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3058
3059         * c-exp.y (THIS): Delete token and grammar rule.
3060         (yylex): Don't return THIS.
3061         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3062         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3063         * demangle.c (cplus_markers): Update comment.  Put '$'
3064         first.  Remove CPLUS_MARKER.
3065         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3066         * jv-exp.y (THIS): Delete token and grammar rule.
3067         (yylex): Don't return THIS.
3068         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3069         * objc-exp.y (THIS): Delete token and grammar rule.
3070         (yylex): Don't return THIS.
3071         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3072         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3073         (read_member_functions): Likewise for opname.
3074         (read_tilde_fields): Use is_cplus_marker.
3075
3076         * defs.h (CPLUS_MARKER): Don't define.
3077         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3078         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3079         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3080         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3081         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3082
3083         * config/i386/tm-i386v4.h: Delete file.
3084         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3085         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3086         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3087         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3088         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3089         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3090         * config/i386/i386v4.mt (TM_FILE): Likewise.
3091         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3092
3093 2002-10-10  Marko Mlinar  <markom@opencores.org>
3094
3095         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3096         accidentially not commited 2002-10-09
3097         * gdbarch.h, gdbarch.c: Re-generate.
3098
3099 2002-10-09  Marko Mlinar  <markom@opencores.org>
3100
3101         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3102         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3103         * gdbarch.h, gdbarch.c: Re-generate.
3104
3105 2002-10-08  Petr Sorfa <petrs@caldera.com>
3106
3107         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3108
3109         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3110         so we can work on more than one compilation unit at a time.  This
3111         helps prepare GDB to handle inter-CU die references.
3112         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3113         the code to be defined before struct comp_unit_head.
3114         (comp_unit_head): Added new members - offset, cu_head,
3115         begin_die, next and dwarf2_abbrevs.
3116         (dwarf2_abbrevs): Removed single static var; now member of
3117         struct comp_unit_head.
3118         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3119         members.
3120         (psymtab_to_symtab_1): Changed to work with the new
3121         struct comp_unit_head.
3122         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3123         constructs the dwarf2_abbrevs[] inside the cu_header.
3124         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3125         dwarf2_abbrev table to clean up.
3126         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3127         handling of dwarf2_abbrevs inside the cu_header.
3128         (read_partial_die): Now supports the call to the new
3129         dwarf2_lookup_abbrev.
3130         (read_full_die): Now supports the call to the new
3131         dwarf2_lookup_abbrev.
3132
3133 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3134
3135         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3136         insure that shell variables, such as "transformed_name" are propagated
3137         to later shell statements in rule.
3138
3139 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3140
3141         * config/i386/nm-i386sco.h: Add protection against
3142         multiple-inclusion.  Include "i386/nm-i386v.h".
3143         (REGISTER_U_ADDR): Remove define.
3144         (i386_register_u_addr): Remove prototype.
3145
3146 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3147
3148         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3149         before treating it as a single-step event.
3150
3151 2002-10-03  Adam Fedor  <fedor@gnu.org>
3152
3153         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3154         (objc_demangle): Remove assignment in if statements, Replace
3155         free with xfree.
3156         (add_msglist): Likewise.
3157         (end_msglist): Likewise.
3158         (complare_selectors): Likewise.
3159         (selectors_info): Likewise.
3160         (compare_classes): Likewise.
3161         (classes_info): Likewise.
3162         (print_object_command): Likewise.
3163         (find_objc_msgcall_submethod): Replace PTR with void *.
3164         * objc-lang.h: Remove check for __STDC__.
3165
3166 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3167
3168         * ui-out.h (ui_out_field_fmt_int): New prototype.
3169         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3170         of field width and alignment.
3171         * stack.c (print_frame_info_base): When printing frame level, use
3172         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3173         PR gdb/192
3174
3175 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3176
3177         * MAINTAINERS: Add self to Write After Approval list.
3178
3179 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3180
3181         * infcmd.c (interrupt_target_command_wrapper): Delete.
3182         (interrupt_target_command): Make non static.
3183         (nofp_registers_info): Make static.
3184         * stack.c (return_command_wrapper): Delete.
3185         (return_command): Make non static.
3186
3187 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3188
3189         * event-top.c (gdb_setup_readline): New function. Code moved from
3190         _initialize_event_loop().
3191         (_initialize_event_loop): Call gdb_setup_readline().
3192
3193 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3194
3195         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3196         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3197         * gdbarch.h, gdbarch.c: Re-generate.
3198
3199 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3200
3201         Fix PR gdb/778
3202         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3203         before recursing.
3204         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3205         of fill_in_vptr_fieldno.
3206
3207 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3208
3209         * inferior.h (registers_info, stepi_command, nexti_command,
3210         continue_command, interrupt_target_command): Export from infcmd.c.
3211         * frame.h (args_info, selected_frame_level_changed_hook,
3212         return_command): Export from stack.c.
3213         * v850ice.c (stepi_command, nexti_command, continue_command): use
3214         prototypes from inferior.h.
3215         * tracepoint.c (registers_info, args_info, locals_info): Use
3216         prototypes from frame.h and inferior.h.
3217         * Makefile.in (mi-main.o): Add dependency on frame.h.
3218
3219 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3220
3221         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3222         value in register 3 adjusted by ppc_gp0_regnum.
3223
3224         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3225
3226 2002-10-02  Marko Mlinar <markom@opencores.org>
3227
3228         * MAINTAINERS: Add myself to the Write After Approval list.
3229
3230 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3231
3232         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3233         of the section for the N64 ABI, fixed.
3234
3235         * config/mips/tm-irix6.h: Include solib.h.
3236
3237 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3238
3239         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3240         GNU operators.
3241
3242 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3243
3244         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3245         and that "mi0" syntax has been removed.
3246
3247 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3248
3249         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3250         * ppc-sysv-tdep.c: #include "gdb_string.h".
3251         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3252         pacify GCC.
3253
3254 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3255
3256         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3257         "vrsave"'s register number.
3258
3259 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3260
3261         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3262         use frame_unwind_signed_register to obtain the PC.
3263         (mips_frame_chain): Handle a generic dummy frame.
3264         (mips_init_extra_frame_info): When a generic dummy frame, don't
3265         re-compute the frame base.
3266         (mips_pop_frame): Handle generic dummy frames.
3267         (mips_gdbarch_init): When generic dummy frames, set
3268         use_generic_dummy_frames, push_dummy_frame to
3269         generic_push_dummy_frame, pc_in_call_dummy to
3270         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3271         generic_save_dummy_frame_tos.
3272
3273 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3274
3275         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3276         against TOP when TOP was explictly set.
3277         (generic_push_dummy_frame): Set TOP to zero.
3278
3279 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3280
3281         * event-loop.c (start_event_loop): Rename variable 'result' to
3282         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3283
3284 2002-09-30  Keith Seitz  <keiths@redhat.com>
3285
3286         * gdb-events.sh (selected_thread_changed): New event.
3287         * gdb-events.c: Regenerated.
3288         * gdb-events.h: Regenerated.
3289
3290 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3291
3292         * MAINTAINERS: Add self to Write After Approval list.
3293
3294 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3295
3296         * disasm.c: New file.  
3297         * disasm.h: New file.  
3298         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3299         (compare_lines): Ditto.
3300         (dump_insns): Ditto.
3301         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3302         argument.
3303         (do_assembly_only): Ditto.
3304         (do_disassembly): Renamed to gdb_disassembly and moved to
3305         disasm.c.  Sdded uiout argument.
3306         * Makefile.in: Add new files.  Reorder SFILES list. Update
3307         dependencies.  Include libgdb.a later in the insight executable.
3308
3309 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3310
3311         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3312         bfd/elf64-alpha-fbsd.c.
3313
3314 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3315
3316         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3317         i386gnu-tdep.c.
3318
3319 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3320
3321         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3322         __FUNCTION__.
3323         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3324         function name.
3325         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3326         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3327         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3328         (S_msg_sig_post_reply): Ditto.
3329         
3330 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3331
3332         * sh-tdep.c (sh_use_struct_convention): Use definition according
3333         to ABI.
3334         (sh_push_arguments): Store in register with correct endianess.
3335         (sh_default_store_return_value): Ditto.
3336         (sh_gdbarch_init): Set sizeof long double to 8.
3337
3338 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3339
3340         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3341         Fix some whitespace problems.
3342
3343 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3344
3345         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3346         (mcore-tdep.o): Ditto.
3347         (ns32k-tdep.o): Ditto.
3348         (ns32knbsd-tdep.o): Ditto.
3349         (sh3-rom.o): Ditto.
3350         (vax-tdep.o): Ditto.
3351         * cris-tdep.c: #include "gdb_string.h"
3352         * mcore-tdep.c: Ditto.
3353         * ns32k-tdep.c: Ditto.
3354         * ns32knbsd-tdep.c: Ditto.
3355         * sh3-rom.c: Ditto.
3356         * vax-tdep.c: Ditto.
3357
3358 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3359
3360         * config/djgpp/fnchange.lst: Add entries for
3361         gdb/testsuite/gdb.c++/m-static files.
3362
3363 2002-09-27  Jim Wilson  <wilson@redhat.com>
3364
3365         * MAINTAINERS: Add myself to the Write After Approval list.
3366
3367 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3368
3369         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3370
3371
3372 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3373
3374         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3375         frame.
3376
3377 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3378
3379         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3380         (rs6000_struct_return_address): Delete variable.
3381         (rs6000_store_struct_return): Update.
3382         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3383         deprecated_extract_struct_value_address.
3384         (rs6000_frame_align): New function.
3385         (rs6000_gdbarch_init): Set frame_align.
3386
3387 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3388
3389         From Grace Sainsbury <graces@redhat.com>:
3390         * Makefile.in (gdbtk-main.o): New target.
3391         (gdb.o): New target.
3392         (main_h): Define.
3393         (main.o): Update dependencies.
3394         (gdb$(EXEEXT)): Add gdb.o.
3395         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3396         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3397         (SUBDIR_GDBTK_CLEAN): Set.
3398         (install-gdbtk): Install the insight binary.
3399         (uninstall-gdbtk): New target.
3400         (all-gdbtk, clean-gdbtk): New rule.
3401         * top.c (use_windows): Default to zero.
3402         * main.c: Include "main.h".
3403         (main): Delete.
3404         (struct captured_main_args): Delete.
3405         (gdb_main): New function.
3406         * main.h: New file.
3407         * gdb.c: New File.
3408
3409 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3410
3411         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3412         (frame_map_regnum_to_name): New function.
3413         (frame_map_name_to_regnum): New function.
3414         * frame.h (frame_map_name_to_regnum): Declare.
3415         (frame_map_regnum_to_name): Declare.
3416         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3417         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3418         * parse.c: Do not include "builtin-regs.h".
3419         (target_map_name_to_register): Delete function.
3420         (write_dollar_variable): Use frame_map_name_to_regnum.
3421         * parser-defs.h (target_map_name_to_register): Delete declaration.
3422         * expprint.c: Include "frame.h".
3423         (print_subexp): Use frame_map_regnum_to_name.
3424         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3425         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3426
3427 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3428
3429         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3430         wasn't saved, and the next innermost frame is a dummy, return the
3431         dummy frame's link register.
3432
3433 2002-09-24  Jim Blandy  <jimb@redhat.com>
3434
3435         Fix from Paul Breed:
3436         * main.c (captured_main): Add a `break' after the case for 'b'.
3437
3438 2002-09-24  Keith Seitz  <keiths@redhat.com>
3439
3440         * varobj.c (c_type_of_child): Use get_target_type instead
3441         of TYPE_TARGET_TYPE.
3442
3443 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3444
3445         * source.c (get_current_or_default_source_symtab_and_line): Remove
3446         function.
3447         (set_default_source_symtab_and_line): New function. Attempts to
3448         determine a source file to list lines from if one is not currently
3449         defined.
3450         (get_current_source_symtab_and_line): Initialize sal.pc and
3451         sal.end fields.
3452         (set_current_source_symtab_and_line): Mark argument as const.
3453         * source.h: Update declarations and comments.
3454         * linespec.c (decode_line_1): Replace call to removed routine above.
3455         * stack.c (print_frame_info_base): Ditto.
3456         * cli/cli-cmds.c (edit_command): Ditto.
3457         (list_command): Ditto.
3458
3459 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3460
3461         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3462         sal.pc and sal.end fields.
3463         (get_current_or_default_source_symtab_and_line): Ditto.
3464         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3465         so we do not cause a new source symtab to be searched for (reverting an
3466         unintentional change from the 2002-09-20 patch).
3467         * scm-lang.c (scm_unpac): Ditto.
3468
3469 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3470
3471         * complaints.c (symfile_explanations): Remove new-line from
3472         ``isolated_message''.
3473         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3474         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3475
3476 2002-09-20  Nick Clifton  <nickc@redhat.com>
3477         
3478         * NEWS: Announce that V850EA ISA is no longer supported.
3479         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3480
3481 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3482
3483         * Makefile.in (c-lang.o): Correct dependencies.
3484         (utils.o): Gather dependencies.
3485         (charset.o): Move.
3486         * c-lang.c: #include "gdb_string.h"
3487
3488 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3489
3490         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3491         * cli/cli-cmds.c (list_command): New function.  Implements the new
3492         cli edit command.
3493         (_init_cli_cmds): Add new command definition.
3494         * gdb.1: Document edit command.
3495         * doc/gdb.texinfo: Document edit command.
3496
3497 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3498
3499         * source.c: Make global variables current_source_symtab and
3500         current_source_line static.
3501         (list_command): Moved to cli/cli-cmds.c.
3502         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3503         (get_first_line_listed): New accessor function.
3504         (get_lines_to_list): New accessor function.
3505         (get_current_source_symtab_and_line): New function. Retrieves the
3506         position in the source code that we consider current.
3507         (get_current_or_default_source_symtab_and_line): New function.
3508         Like the above but attempts to determine a default position if one
3509         is not currently defined.
3510         (set_current_source_symtab_and_line): New function. Sets the source
3511         code position considered current and returns the previously set one.
3512         (clear_current_source_symtab_and_line): Reset stored information about
3513         a current source line.
3514         (_initialize_source): Remove registration for the "list" command and
3515         its alias.
3516         * source.h: Add declarations for the new functions above.
3517         * symtab.h: Remove declarations for the global variables mentioned
3518         above.
3519         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3520         obtain current source line.
3521         * linespec.c (decode_line_1): Ditto.
3522         * macroscope.c (default_macro_scope): Ditto.
3523         * scm-lang.c (scm_unpac): Ditto.
3524         * stack.c (print_frame_info_base): Ditto.
3525         * symfile.c (clear_symtab_users): Ditto.
3526         * symtab.c (decode_line_spec): Ditto.
3527         * cli/cli-cmds.c (list_command): Moved here from source.c.
3528         (ambiguous_line_spec): Moved here from source.c.
3529         (_init_cli_cmds): Add definition for "list" and its alias.
3530         * Makefile.in: Update dependencies.
3531
3532 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3533
3534         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3535         with what gcc thinks is correct.
3536
3537 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3538
3539         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3540         multiple register push instruction.
3541
3542 2002-09-19  Jim Blandy  <jimb@redhat.com>
3543
3544         Add support for distinct host and target character sets.
3545         * charset.c, charset.h: New files.
3546         * c-exp.y: #include "charset.h".
3547         (yylex): Convert character and string literals to the target
3548         character set, before returning them as the semantic value of the
3549         token.
3550         * c-lang.c: #include "charset.h".
3551         (c_emit_char): Use charset-specific methods to recognize
3552         characters with backslash escape forms, to decide which characters
3553         to print literally and which to print using numeric escape
3554         sequences, and to convert target characters to host characters
3555         before printing.
3556         * utils.c: #include "charset.h".
3557         (no_control_char_error): New function.
3558         (parse_escape): Use charset-specific methods to recognize
3559         backslash escapes, parse `control character' notation, and convert
3560         characters from the host character set to the target character set.
3561         * configure.in: Set the default host character set.
3562         Check where to find iconv, and what its argument types might be.
3563         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3564         * Makefile.in (SFILES): List charset.c.
3565         (COMMON_OBS): List charset.o.   
3566         (charset.o): New rule.
3567         (charset_h): New header dependency variable.
3568         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3569         (LIBICONV): New variable, set by configure.
3570         (CLIBS): Include $(LIBICONV) here.
3571         * aclocal.m4, config.in, configure: Regenerated.
3572
3573 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3574
3575         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3576         bison 1.35 warning.
3577
3578 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3579
3580         * gdb_mbuild.sh: New file.
3581
3582 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3583
3584         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3585
3586 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3587
3588         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3589         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3590         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3591         valops.c, value.h: Revert previous change.
3592         
3593 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3594
3595         Preliminary support for Objective-C:
3596         * defs.h (language_objc): New enum value.
3597         (puts_filtered_tabular): Declaration only, exported from utils.c.
3598         (skip_quoted): Delete, declared in completer.h.
3599         * c-exp.y: Include completer.h.
3600         * p-exp.y: Ditto.
3601         * jv-exp.y: Ditto.
3602         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3603         New operator enum values.
3604         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3605         * language.c (binop_result_type): Handle language_objc case.
3606         (integral_type, character_type, string_type, boolean_type,
3607         structured_type, binop_type_check): Ditto.
3608         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3609         (struct objc_specific): Add to general_symbol_info.
3610         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3611         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3612         * parser-defs.h (struct objc_class_str): New struct type.
3613         (start_msglist, end_msglist, add_msglist): Declaration only,
3614         exported from objc-lang.c.
3615         * value.h (value_of_local, value_nsstring, 
3616         call_function_by_hand_expecting_type): Exported from valops.c.
3617         * valops.c (find_function_addr): Export.
3618         (call_function_by_hand_expecting_type): New function.
3619         (value_of_local): New function.
3620         * symfile.c (init_filename_language_table): Add ".m" extension
3621         for Objective-C.
3622         * utils.c (puts_filtered_tabular): New function.
3623         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3624         (set/show demangle): Extend help-string to refer to ObjC.
3625         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3626         * stabsread.c (symbol_reference_defined): Objective-C symbols
3627         may contain colons: make allowances when scanning stabs strings
3628         for colons.
3629         (objc_find_colon): New function.
3630         * printcmd.c (address_info): If language == objc then print
3631         "self" instead of "this".
3632         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3633         OP_NSSTRING, and OP_SELF.
3634         (prefixify_subexp): Ditto.
3635         * source.c (print_source_lines): Mention objc in comment.
3636         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3637         method names.
3638
3639 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3640
3641         * complaints.h: Update copyright.
3642         (struct complaints): Declare.
3643         (struct complaint): Make `message' constant.
3644         (internal_complaint): Declare.
3645         (complaint): Declare.
3646         (complaint_root): Delete declaration.
3647         (symfile_complaints): Delete declaration.
3648         (struct complaints): Add opaque declaration.
3649         (clear_complaints): Add a complaints parameter.
3650         * complaints.c: Update copyright.
3651         (enum complaint_series): Define.
3652         (complaint_root): Delete.
3653         (struct complaints): Define.
3654         (complaint_sentinel, symfile_complaint_book): New variables.
3655         (symfile_explanations, symfile_complaints): New variables.
3656         New variables.
3657         (get_complaints): New function.
3658         (vcomplaint): New function.
3659         (complaint): New function.
3660         (internal_complaint): New function.
3661         (complain): Call vcomplain with symfile_complaint.
3662         (clear_complaints): Rewrite.
3663         (_initialize_complaints): Use add_setshow_command.
3664         * Makefile.in (complaints.o): Update dependencies.
3665         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3666         to call to clear_complaints.
3667         (new_symfile_objfile, reread_symbols): Ditto.
3668         (oldsyms_complaint): Delete.
3669         (empty_symtab_complaint, unknown_option_complaint): Delete.
3670         (free_named_symtabs): Use complaint instead of complain.
3671
3672 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3673
3674         Contributed by Apple Computer, Inc.  Merged with current sources
3675         by Adam Fedor <fedor@doc.com> [cagney].
3676         
3677         * objc-lang.c: First clean-up round: comments, indentation.
3678         * objc-lang.h: Ditto.
3679         * objc-lang.y: Ditto.
3680
3681 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3682
3683         * maint.c (maintenance_internal_error): Print the parameter as the
3684         error message.
3685         (maintenance_internal_warning): New function.
3686         (_initialize_maint_cmds): Add command `maint internal-warning'.
3687
3688         * defs.h (internal_warning, internal_vwarning): Declare.
3689         * utils.c (struct internal_problem): Define.
3690         (internal_vproblem): New function.
3691         (internal_warning): New function.
3692         (internal_vwarning): New function.
3693         (internal_warning_problem, internal_error_problem): New variables.
3694         (internal_verror): Just call internal_vproblem.
3695
3696 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3697
3698         * objc-lang.c: New file, support for Objective-C.
3699         Preliminary check-in, not yet integrated into gdb.
3700         * objc-lang.h: New file.
3701         * objc-exp.y:  New file.
3702
3703 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3704
3705         * infrun.c (signal_stop_update): Convert definition to ISO C.
3706         (signal_print_update): Ditto.
3707         (signal_pass_update): Ditto.
3708         * inflow.c (terminal_save_ours): Ditto.
3709
3710         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3711         comments.
3712         
3713         * config/djgpp/fnchange.lst: Handle name clashes between
3714         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3715         bfd/coff-tic80.c.
3716
3717         * i386-linux-tdep.h: Fix tipo.
3718
3719 2002-09-18  Adam Fedor  <fedor@gnu.org>
3720
3721         * MAINTAINERS: Add myself to the Write After Approval list.
3722
3723 2002-09-18  Jim Blandy  <jimb@redhat.com>
3724
3725         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3726         texthigh and textlow to reader-specific structs caused
3727         objfile_relocate to miss them.  This is fixable, but the work that
3728         the change was supposed to prepare GDB for never got done anyway.
3729
3730 2002-09-18  David Carlton  <carlton@math.stanford.edu>
3731
3732         * MAINTAINERS: Alphabetize Write After Approval list.
3733
3734 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
3735
3736         Fix PR gdb/709
3737         * values.c (value_static_field): Call read_var_value.
3738
3739 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3740
3741         * valops.c (hand_function_call): Align the initial stack pointer
3742         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
3743         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3744         return value.
3745         * mips-tdep.c (mips_frame_align): New function.
3746         (mips_gdbarch_init): Set frame_align.
3747         * gdbarch.sh (FRAME_ALIGN): New method.
3748         * gdbarch.h, gdbarch.c: Re-generate.
3749
3750 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
3751
3752         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3753         registers.
3754
3755 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3756
3757         * NEWS: Mention that MIPS $fp behavior changed.
3758         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3759         reference to FP_REGNUM.
3760         (mipsnbsd_cannot_store_register): Ditto.
3761         * mips-linux-nat.c: Update copyright.
3762         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3763         (mips_linux_cannot_store_register): Ditto.
3764         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
3765         * config/mips/tm-mips.h: Update copyright.
3766         (FP_REGNUM): Delete macro.
3767         (MIPS_REGISTER_NAMES): Replace "fp" with "".
3768         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3769         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3770         (mips_r3041_reg_names, mips_r3051_reg_names)
3771         (mips_r3081_reg_names): Replace "fp" with "".
3772         Fix PR gdb/480.
3773
3774 2002-09-17  Theodore A. Roth  <troth@verinet.com>
3775
3776         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
3777         generic_read_register_dummy() (PR gdb/703).
3778         (avr_push_return_address): #if 0 out unused vars.
3779         (avr_gdbarch_init): Enable use of avr_push_return_address().
3780
3781 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3782
3783         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3784         RTE will take care of it.
3785
3786 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3787
3788         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3789         invalid, return SP_REGNUM.
3790
3791 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3792
3793         * mips-tdep.c (mips_pop_frame): Read saved values of floating
3794         point registers without sign extension.
3795
3796 2002-09-17  Andrew Cagney  <cagney@redhat.com>
3797
3798         * blockframe.c (deprecated_read_register_dummy): Rename
3799         generic_read_register_dummy.
3800         * frame.c (frame_unwind_signed_register): New function.
3801         (frame_unwind_unsigned_register): New function.
3802         * frame.h (frame_unwind_signed_register): Declare.
3803         (frame_unwind_unsigned_register): Declare.
3804         (deprecated_read_register_dummy): Rename
3805         generic_read_register_dummy.
3806
3807         * h8300-tdep.c (h8300_frame_chain): Update.
3808         (h8300_frame_saved_pc): Update.
3809         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3810         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3811         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3812         (s390_frame_chain): Update.
3813         * v850-tdep.c (v850_find_callers_reg): Update.
3814         (v850_frame_saved_pc): Update.
3815         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3816         (m32r_find_callers_reg): Update.
3817         (m32r_frame_saved_pc): Update.
3818         * sh-tdep.c (sh_find_callers_reg): Update.
3819         (sh64_get_saved_pr): Update.
3820         (sh_init_extra_frame_info): Update.
3821         (sh_init_extra_frame_info): Update.
3822         (sh64_init_extra_frame_info): Update.
3823         (sh64_init_extra_frame_info): Update.
3824         * mcore-tdep.c (mcore_find_callers_reg): Update.
3825         (mcore_frame_saved_pc): Update.
3826         (mcore_init_extra_frame_info): Update.
3827         * i386-tdep.c (i386_frame_saved_pc): Update.
3828         * ia64-tdep.c (ia64_frame_saved_pc): Update.
3829         (ia64_init_extra_frame_info): Update.
3830         (ia64_init_extra_frame_info): Update.
3831         * d10v-tdep.c (d10v_frame_saved_pc): Update.
3832         * cris-tdep.c (cris_init_extra_frame_info): Update.
3833         * avr-tdep.c (avr_frame_chain): Update.
3834         (avr_init_extra_frame_info): Update.
3835         (avr_frame_saved_pc): Update.
3836         * arm-tdep.c (arm_find_callers_reg): Update.
3837         (arm_init_extra_frame_info): Update.
3838         (arm_frame_saved_pc): Update.
3839
3840 2002-09-17  Tom Tromey  <tromey@redhat.com>
3841
3842         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3843         is "'".
3844
3845 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
3846
3847         * MAINTAINERS: Remove "non multi-arched" text from h8300.
3848         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3849         NEXT_PROLOGUE_INSN.
3850         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3851         NEXT_PROLOGUE_INSN.
3852
3853 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
3854
3855         * osfsolib.c: Remove file, replaced by solib-osf.c.
3856         * Makefile.in: Remove compilation rules for osfsolib.c.
3857
3858 2002-09-16  David Carlton  <carlton@math.stanford.edu>
3859
3860         * cp-valprint.c (cp_print_class_method): Correct args to
3861         check_stub_method_group.
3862
3863 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
3864
3865         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
3866         `set architecture'.  Unify naming convention of functions.
3867         (h8300_skip_prologue): Improve prologue analysis.
3868         (h8300_push_arguments): Rewritten to more closely match GCC's
3869         bizarre argument-passing behavior, along with the comment describing
3870         said behavior.
3871         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3872         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
3873         sim, remote-e7000.c, remote-hms.c and remote.c
3874
3875 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
3876
3877         * i386-tdep.c (gdb_print_insn_i386): Removed.
3878         (i386_print_insn): New function.
3879         (i386_gdbarch_init): Set print_insn to i386_print_insns.
3880         (_initialize_i386_tdep): Don't initialize tm_print_insn and
3881         tm_print_insn_info.
3882
3883 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
3884
3885         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3886         zero.
3887
3888 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
3889
3890         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3891         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
3892         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3893
3894 2002-09-13  Christopher Faylor  <cgf@redhat.com>
3895
3896         * win32-nat.c (child_create_inferior): Honor 'tty' command.
3897
3898 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
3899
3900         * gdbtypes.c (check_stub_method): Make static.
3901         (check_stub_method_group): New function.
3902         * gdbtypes.h: Update prototypes.
3903         * cp-support.c: New file.
3904         * cp-support.h: New file.
3905
3906         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3907         (update_method_name_from_physname): New function.
3908         (read_member_functions): Correct method names for operators
3909         and v3 constructors/destructors.  Separate v2 constructors and
3910         destructors.
3911         * Makefile.in (stabsread.o): Update dependencies.
3912         (SFILES): Add cp-support.c.
3913         (COMMON_OBS): Add cp-support.o.
3914         (cp_support_h, cp-support.o): Add.
3915
3916         * cp-valprint.c (cp_print_class_method): Call
3917         check_stub_method_group instead of check_stub_method.  Remove
3918         extraneous QUITs.
3919         * p-valprint.c (pascal_object_print_class_method): Likewise.
3920         * valops.c (search_struct_method): Likewise.
3921         (find_method_list, value_struct_elt_for_reference): Likewise.
3922
3923 2002-09-13  Andrew Cagney  <cagney@redhat.com>
3924
3925         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3926         * gdbarch.h, gdbarch.c: Regenerate.
3927
3928 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
3929
3930         * frame.c (find_saved_register): Delete function.
3931         * frame.h (find_saved_register): Delete declaration.
3932         Fix PR gdb/631.
3933
3934 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
3935
3936         * mips-tdep.c (read_next_frame_reg): Re-hack using
3937         frame_register_unwind.
3938
3939 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
3940
3941         * mips-tdep.c (mips_get_saved_register): Re-hack using
3942         frame_register_unwind.
3943
3944 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
3945
3946         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3947         vector. Will be useful for Interix.  
3948         * gdbarch.h, gdbarch.c: Regenerate.
3949
3950         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3951         name of the malloc function by NAME_OF_MALLOC.
3952
3953 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
3954
3955         * value.h (find_function_in_inferior): Add const keyword to
3956         one of the parameters. Allows us to invoke this function with
3957         a const char *.
3958         * valops.c (find_function_in_inferior): Likewise.
3959
3960 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
3961
3962         * exec.c (xfer_memory): Fix compilation warning with old versions
3963         of GCC.
3964         * tracepoint.c (trace_find_tracepoint_command): Likewise.
3965
3966 2002-09-12  David Carlton  <carlton@math.stanford.edu>
3967
3968         * symtab.h: Run through gdb_indent.h.
3969         Add 2002 to Copyright year list.
3970
3971 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
3972
3973         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3974         mach constants.
3975         * MAINTAINERS: Add myself to write after approval list.
3976
3977 2002-09-11  J. Brobecker  <brobecker@gnat.com>
3978
3979         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3980
3981 2002-09-11  J. Brobecker  <brobecker@gnat.com>
3982
3983         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3984         Interix.
3985
3986 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
3987
3988         * procfs.c (do_detach): Clear current signal, not just fault.
3989         Corrects problem with breakpoint trap signal leaking to detached
3990         process on Tru64.
3991
3992 2002-09-10  Michael Snyder  <msnyder@redhat.com>
3993
3994         * buildsym.c (finish_block): Protect against null pointer.
3995
3996 2002-09-10  Andrew Cagney  <cagney@redhat.com>
3997
3998         * infcmd.c (default_print_registers_info): Send all output to
3999         ``file'' instead of ``gdb_stdout''.
4000
4001 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4002
4003         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4004         LONGEST, and use signed register read (addresses are sign-
4005         extended for mips).
4006
4007 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4008
4009         * event-loop.c (gdb_do_one_event): Make public.
4010         * event-loop.h (gdb_do_one_event): Declare.
4011
4012 2002-09-10  Jeff Law  <law@redhat.com>
4013
4014         * infttrace.c (child_resume): Simplify and rework to avoid
4015         TT_PROC_CONTINUE.
4016
4017 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4018
4019         * printcmd.c (print_scalar_formatted): "len" is the number of
4020         target bytes, NOT the number of target bits.
4021
4022 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4023
4024         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4025         * top.c (init_main): Set rl_terminal_name.
4026
4027 2002-09-08  Aidan Skinner <aidan@velvet.net>
4028
4029         * ada-lang.c (ada_array_bound, ada_type_match,
4030         _initialize_ada_language): Fix K&R definitions.
4031         * ada-tasks.c (get_current_task): Fix K&R definitions.
4032         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4033                         
4034 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4035
4036         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4037         Add XP.
4038
4039 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4040
4041         * i386-tdep.c (i386_register_virtual_type,
4042         i386_register_convertible, i386_register_convert_to_virtual,
4043         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4044         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4045         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4046         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4047         Don't set push_arguments twice.
4048
4049         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4050         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4051         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4052         sigtramp_end to NULL.
4053         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4054         defines.
4055         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4056
4057         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4058         whitespace.
4059
4060         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4061         * gdbarch.h, gdbarch.c: Re-generate.
4062         * blockframe.c (find_pc_sect_partial_function): Convert to use
4063         SIGTRAMP_START_P predicate.
4064
4065 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4066
4067         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4068         generic_dummy_frame method and old method.  Also distinguish
4069         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4070         (arm_extract_return_value): Use new regcache method.
4071
4072         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4073         adjustment that doesn't conform to the ABI.
4074         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4075         saved regcache, not from current regcache.
4076
4077 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4078
4079         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4080         * README: Update.
4081
4082 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4083
4084         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4085         if arm_apcs_32 is false.
4086
4087 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4088
4089         GDB 5.3 branch created.
4090
4091 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4092
4093         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4094         generic_unwind_get_saved_register.
4095
4096 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4097
4098         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4099         argument (PR gdb/653).  Update call to smash_to_method_type.
4100         (read_structure_scope): Update call to dwarf2_add_member_fn.
4101
4102 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4103
4104         * x86-64-linux-tdep.c: Include gdb_string.h
4105         * x86-64-linux-nat.c: Ditto.
4106
4107 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4108
4109         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4110         when YYDEBUG is set to 1.  
4111         * c-exp.y: Likewise.
4112         * f-exp.y: Likewise.
4113         * jv-exp.y: Likewise.
4114         * m2-exp.y: Likewise.
4115         * p-exp.y: Likewise.
4116
4117 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4118
4119         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4120         dependency list.
4121         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4122         solib_svr4_fetch_link_map_offsets to
4123         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4124         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4125         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4126         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4127         solib-svr4.o, and solib-legacy.o.
4128         * config/i386/tm-nbsd.h: Include solib.h.
4129
4130 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4131
4132         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4133         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4134         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4135         comment noting that this needs its own target configuration.
4136         * config/i386/nbsd.mt: New file.
4137         * config/i386/nbsdaout.mt: Remove.
4138         * config/i386/nbsdelf.mt: Ditto.
4139         * config/i386/tm-nbsdaout.h: Ditto. 
4140
4141 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4142
4143         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4144         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4145         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4146         tdep->sigtramp_end.
4147         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4148         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4149         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4150
4151 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4152
4153         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4154         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4155         * i386-tdep.h (i386bsd_init_abi): New prototype.
4156         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4157         function declaration.
4158         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4159         for NetBSD-a.out or NetBSD-ELF.
4160         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4161         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4162         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4163         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4164         and nbsd-tdep.h.
4165         (i386nbsd_pc_in_sigtramp): New function.
4166         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4167         i386nbsd_pc_in_sigtramp.
4168         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4169         and i386nbsdelf_init_abi OS ABI handlers.
4170         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4171         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4172
4173 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4174
4175         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4176         registers if the target really has them.
4177
4178 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4179
4180         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4181         than nbsd-tdep.h.
4182
4183 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4184
4185         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4186         list.
4187         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4188         (alphanbsd_skip_sigtramp_frame): New functions. 
4189         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4190         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4191         to alphanbsd_sigcontext_addr. 
4192
4193 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4194
4195         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4196         list.
4197         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4198         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4199         nbsd_pc_in_sigtramp. 
4200         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4201         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4202         * nbsd-tdep.c: Include gdb_string.h.
4203         (nbsd_pc_in_sigtramp): New function. 
4204         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4205         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4206         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4207         ppcnbsd_pc_in_sigtramp. 
4208         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4209         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4210         shnbsd_pc_in_sigtramp. 
4211         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4212         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4213         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4214
4215 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4216
4217         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4218         watchpoints to NULL.
4219         (insert_breakpoints): set val field of watchpoints if NULL.
4220
4221
4222 2002-08-29  Jim Blandy  <jimb@redhat.com>
4223
4224         * symtab.c (lookup_symbol_aux): In the cases where we find a
4225         minimal symbol of an appropriate name and use its address to
4226         select a symtab to read and search, use `name' (as passed to us)
4227         as the demangled name when searching the symtab's global and
4228         static blocks, not the minsym's name.
4229
4230 2002-08-29  Keith Seitz  <keiths@redhat.com>
4231
4232         * stack.c (print_frame_info_base): Always set current_source_symtab
4233         and current_source_line.
4234
4235 2002-08-29  Donn Terry  <donnte@microsoft.com>
4236
4237         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4238
4239 2002-08-28  Keith Seitz  <keiths@redhat.com>
4240
4241         * stack.c (select_frame): Add FIXME concerning selected-frame
4242         events.
4243         (select_frame_command): Send selected-frame-level-changed
4244         event notification, but only if the level actually changed.
4245         (up_silently_base): Add selected-frame-level-changed event
4246         notification.
4247         (down_silently_base): Likewise.
4248
4249 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4250
4251         * Makefile.in: Update dependencies for all gdb/*.c files.
4252
4253 2002-08-27  Tom Tromey  <tromey@redhat.com>
4254
4255         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4256         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4257         Update dependencies.
4258         * i387-tdep.c: Include gdb_string.h.
4259         * osabi.c: Likewise.
4260         * i386-linux-nat.c: Likewise.
4261         * lin-lwp.c: Likewise.
4262         * ax-gdb.c: Likewise.
4263         * signals/signals.c: Likewise.
4264         * jv-valprint.c: Likewise.
4265         * p-lang.c: Likewise.
4266         * c-valprint.c: Likewise.
4267         * cp-abi.c: Likewise.
4268
4269 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4270
4271         * cli/cli-script.h (copy_command_lines): Export.
4272         * breakpoint.c: Include cli/cli-script.h.
4273         * Makefile.in (breakpoint.o): Update dependencies.
4274
4275 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4276
4277         * breakpoint.c (insert_breakpoints): Protect all references
4278         to 'process_warning'.  Shorten long lines.
4279
4280 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4281
4282         * cli/cli-script.c (copy_command_lines): New function.
4283         * defs.h (copy_command_lines): Export.
4284         * testsuite/gdb.base/commands.exp: New tests for commands
4285         attached to a temporary breakpoint, and for commands that
4286         delete the breakpoint they are attached to.
4287         
4288 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4289
4290         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4291         pointer to the breakpoint commands struct, make a new copy
4292         of the struct and point to that.
4293         (bpstat_clear): Free the commands struct.
4294         (bpstat_clear_actions): Free the commands struct.
4295         (bpstat_do_actions): Free the command actions.  Also execute
4296         the local cleanups, instead of deleting them.
4297         (delete_breakpoint): Leave the commands field of the bpstat
4298         chain alone -- it will be freed later.
4299
4300 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4301
4302         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4303         deleted in 2002-08-20 commit.  This function is still used by
4304         ppc-linux-nat.c.
4305
4306 2002-08-26  Keith Seitz  <keiths@redhat.com>
4307
4308         * gdb-events.sh: Add selected-frame-level-changed event.
4309         * gdb-events.c: Regenerated.
4310         * gdb-events.h: Regenerated.
4311         
4312 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4313
4314         Fix PR gdb/393:
4315         * inflow.c (terminal_save_ours): New function to save terminal
4316         settings.
4317         * inferior.h (terminal_save_ours): Declare.
4318         * target.c (debug_to_terminal_save_ours): New function.
4319         (cleanup_target): Defaults to_terminal_save_ours.
4320         (update_current_target): Inherit to_terminal_save_ours.
4321         (setup_target_debug): Set to_terminal_save_ours.
4322         * target.h (target_terminal_save_ours): New to save terminal settings.
4323         (target_ops): New member to_terminal_save_ours.
4324         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4325         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4326         * inftarg.c (init_child_ops): Likewise.
4327         * m3-nat.c (init_m3_ops): Likewise.
4328         * procfs.c (init_procfs_ops): Likewise.
4329         * wince.c (init_child_ops): Likewise.
4330         * win32-nat.c (init_child_ops): Likewise.
4331         * sol-thread.c (init_sol_thread_ops): Likewise.
4332
4333 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4334
4335         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4336         use regcache_* functions.
4337         (i386_gdbarch_init): Set store_return_value instead of
4338         deprecated_store_return_value.
4339
4340         * regcache.c (regcache_raw_write_signed,
4341         regcache_raw_write_unsigned): New functions.
4342         * regcache.h (regcache_raw_write_signed,
4343         regcache_raw_write_unsigned): New prototypes.
4344
4345 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4346
4347         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4348         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4349         source file dependencies.  Cleanup corresponding generator rules.
4350
4351 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4352
4353         * regcache.h (register_offset_hack): Declare.
4354         (regcache_cooked_read_using_offset_hack): Declare.
4355         (regcache_cooked_write_using_offset_hack): Declare.
4356
4357         * regcache.c (register_offset_hack): New function.
4358         (regcache_cooked_read_using_offset_hack): New function.
4359         (regcache_cooked_write_using_offset_hack): New function.
4360         (regcache_dump): Check that the registers, according to their
4361         offset, are packed hard against each other.
4362         (cooked_xfer_using_offset_hack): New function.
4363
4364 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4365
4366         * regcache.c (struct regcache_descr): Add field register_type.
4367         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4368         in as a parameter
4369         (init_regcache_descr): Initialize register_type.  Pass the descr
4370         to init_legacy_regcache_descr.  Use register_type instead of
4371         REGISTER_VIRTUAL_TYPE.
4372         (register_type): New function.
4373         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4374         * regcache.h (register_type): Declare.
4375
4376 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4377
4378         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4379         instead of deprecated_store_return_value.  Fix fallout from
4380         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4381
4382 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4383
4384         * regcache.c (max_register_size): New function.
4385         (init_legacy_regcache_descr): Ensure that max_register_size is
4386         large enough for REGISTER_VIRTUAL_SIZE.
4387         * regcache.h (max_register_size): Declare.
4388
4389 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4390
4391         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4392         store_return_value.
4393         (e500_extract_return_value): Change type of valbuf pointer to
4394         void.
4395
4396 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4397
4398         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4399         workaround.
4400
4401         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4402         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4403         long long) to prevent compiler warning on 64-bit systems.
4404
4405 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4406
4407         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4408         (DEPRECATED_STORE_RETURN_VALUE): New method.
4409         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4410         * gdbarch.h, gdbarch.c: Re-generate.
4411
4412         * values.c (set_return_value): Pass current_regcache to
4413         STORE_RETURN_VALUE.
4414         * arch-utils.h (legacy_store_return_value): Declare.
4415         * arch-utils.c (legacy_store_return_value): New function.
4416         (legacy_extract_return_value): Update parameters.
4417
4418         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4419         STORE_RETURN_VALUE.
4420         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4421         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4422         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4423         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4424         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4425         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4426         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4427         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4428         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4429         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4430
4431         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4432         * i386-tdep.c (i386_extract_return_value): Update.
4433         * arch-utils.c (legacy_extract_return_value): Update.
4434         * frv-tdep.c (frv_gdbarch_init): Update.
4435         * cris-tdep.c (cris_gdbarch_init): Update.
4436         * d10v-tdep.c (d10v_gdbarch_init): Update.
4437         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4438         * m68k-tdep.c (m68k_gdbarch_init): Update.
4439         * mcore-tdep.c (mcore_gdbarch_init): Update.
4440         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4441         * s390-tdep.c (s390_gdbarch_init): Update.
4442         * sparc-tdep.c (sparc_gdbarch_init): Update.
4443         * sh-tdep.c (sh_gdbarch_init): Update.
4444         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4445         * v850-tdep.c (v850_gdbarch_init): Update.
4446         * avr-tdep.c (avr_gdbarch_init): Update.
4447         * ia64-tdep.c (ia64_gdbarch_init): Update.
4448         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4449         * vax-tdep.c (vax_gdbarch_init): Update.
4450         * alpha-tdep.c (alpha_gdbarch_init): Update.
4451         * arm-tdep.c (arm_gdbarch_init): Update.
4452         * mips-tdep.c (mips_gdbarch_init): Update.
4453         * i386-tdep.c (i386_gdbarch_init): Update.
4454
4455 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4456
4457         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4458         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4459
4460 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4461
4462         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4463         problems.
4464
4465 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4466
4467         * infrun.c (handle_inferior_event): Move a comment outside of a
4468         function call, in order to avoid indent reformatting this part
4469         of the code in an unreadable way.
4470
4471 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4472
4473         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4474         when breakpoints fail. Move general breakpoint error messages to
4475         insert_breakpoints.  
4476         * breakpoint.c (insert_breakpoints): Change warnings when
4477         breakpoints are nto inserted to specify the type. Remove call to
4478         memory_error when hardware breakpoints can't be inserted. Remove
4479         multiple calls to warning so all messages are sent to the user at
4480         once.
4481         (delete_breakpoints): Make insert error messsages more explicit.
4482
4483 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4484
4485         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4486         gdbserver/ChangeLog.
4487
4488 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4489
4490         * i386-tdep.c: Include "objfiles.h".
4491         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4492         skip_trampoline_code.
4493         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4494         (CPLUS_MARKER): Define to '.'.
4495
4496         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4497         member.
4498         (linux_corefile_thread_callback): Increase args->num_notes.
4499         (linux_make_note_section): Initialize thread_args.num_notes, and
4500         use it to determine whether notes for any threads were created.
4501
4502 2002-08-23  Donn Terry  <donnte@microsoft.com>
4503
4504         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4505         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4506         and PCUNKILL.
4507         (write_with_trace): Conditionalize out the switch branch handling
4508         PCSHOLD if the corresponding macro is not defined. Likewise for
4509         PRSABORT and PRSTOP.
4510         This change will be needed by the Interix port.
4511
4512 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4513
4514         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4515         write_register wherever possible instead of manipulating the
4516         register bytes directly.
4517         Assign VALUE_CONTENTS to a variable and use that.
4518         The GPR numbers are now dependent on the architecture.
4519         
4520 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4521
4522         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4523         ev_offset fields.
4524         (skip_prologue): Add support for BookE/e500 instructions.
4525         (e500_extract_return_value): New function.
4526         (frame_get_saved_regs): Add support for saving ev registers and
4527         pseudo gpr's.
4528         (e500_store_return_value): New function.
4529         (rs6000_gdbarch_init): Move up default intializations of
4530         deprecated_extract_return_value and store_return_value.  Overwrite
4531         init of store_return_value with e500 specific version.
4532         Set extract_return_value for e500.
4533         
4534 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4535
4536         * blockframe.c (generic_call_dummy_register_unwind): Use
4537         regcache_cooked_read to catch cases in which the variable is
4538         stored in a pseudo register.
4539
4540 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4541
4542         * NEWS: Mention that the i960 has been made obsolete.
4543         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4544         i960-tdep.c
4545         (remote-nrom.o): Obsolete target.
4546         (remote-nindy.o, i960-tdep.o): Ditto.
4547         * remote-nrom.c: Make file obsolete.
4548         * remote-nindy.c, remote-vx960.c: Ditto.
4549         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4550         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4551         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4552         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4553         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4554         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4555         i960-*-vxworks* obsolete.
4556         * MAINTAINERS: Note that the i960 is obsolete.
4557
4558 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4559
4560         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4561         detach to allow reinitialization.
4562
4563 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4564
4565         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4566         attempt).
4567
4568 2002-08-22  Jim Blandy  <jimb@redhat.com>
4569
4570         * coffread.c (coff_symfile_read): Don't try to read the line
4571         number table from disk if the image file doesn't have a symbol
4572         table; we'll never actually look at the info anyway, and Windows
4573         ships DLL's with bogus file offsets for the line number data.
4574
4575 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4576
4577         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4578         an e500 executable.
4579
4580 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4581
4582         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4583         (MSYMBOL_SIZE): Replace macro with function.
4584         (DEFAULT_MIPS_TYPE): Delete unused macro.
4585         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4586         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4587
4588 2002-08-21  Jim Blandy  <jimb@redhat.com>
4589
4590         * valops.c (value_cast): Simplify and correct logic for doing a
4591         static cast from a pointer to a base class to a pointer to a
4592         derived class.
4593
4594 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4595
4596         * infcmd.c (default_print_registers_info): Replace
4597         do_registers_info.
4598         (registers_info): Use gdbarch_print_registers_info instead of
4599         DO_REGISTERS_INFO.
4600         * inferior.h (default_print_registers_info): Replace
4601         do_registers_info.
4602         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4603         (DO_REGISTERS_INFO): Change to a predicate function.
4604         * gdbarch.h, gdbarch.c: Regenerate.
4605         
4606 2002-08-21  Keith Seitz  <keiths@redhat.com>
4607
4608         * gdb-events.sh: Add target-changed event.
4609         * gdb-events.c: Regenerated.
4610         * gdb-events.c: Regenerated.
4611         * valops.c (value_assign): Add target-changed event notification
4612         to inlval_register, lval_memory, and lval_reg_frame_relative.
4613
4614 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4615
4616         * NEWS: Add an entry regarding the improvement of the next/step
4617         operation on Alpha Tru64 multi-processor machines.
4618
4619 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4620
4621         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4622         directores.
4623         * Makefile.in: Update all _h macro definitions.
4624         * Makefile.in (install-gdbtk): Move to install section.
4625         (rdi-share/libangsd.a): Move to end of file.
4626
4627 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4628
4629         * frame.c (frame_register_unwind): When a register, set addrp to
4630         the register's byte.
4631
4632 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4633
4634         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4635         used locally, so move them from the target machine header to here.
4636         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4637         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4638         Make static.
4639         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4640
4641 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4642
4643         * NEWS: Mention that the Apollo line was made obsolete.
4644         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4645         m68*-hp-hpux* obsolete.
4646         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4647         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4648         * buildsym.c (make_blockvector): Make static.
4649         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4650         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4651         (ALLDEPFILES): Remove dstread.c.
4652         (dstread.o): Obsolete make rule.
4653         * dstread.c: Makefile obsolete.
4654         * dst.h: Ditto.
4655         * config/m68k/hp300hpux.mt: Ditto.
4656         * config/m68k/hp300hpux.mh: Ditto.
4657         * config/m68k/hp300bsd.mt: Ditto.
4658         * config/m68k/hp300bsd.mh: Ditto.
4659         * config/m68k/apollo68b.mt: Ditto.
4660         * config/m68k/apollo68v.mh: Ditto.
4661         * config/m68k/apollo68b.mh: Ditto.
4662
4663 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4664
4665         * mips-tdep.c (mips_in_return_stub): Make static.
4666         (mips_gdbarch_init): Set in_solib_return_trampoline.
4667         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4668
4669 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4670
4671         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4672         * gdbarch.c, gdbarch.h: Regenerate.
4673         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4674         Add.
4675         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4676
4677 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4678
4679         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4680         (mips_gdbarch_init): Set skip_trampoline_code, 
4681         in_solib_call_trampoline.
4682         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4683         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4684
4685 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4686
4687         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4688
4689         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4690         vector type for ev registers.
4691         (e500_pseudo_register_read): New function.
4692         (e500_pseudo_register_write): New function.
4693         (e500_dwarf2_reg_to_regnum): New function.
4694         (PPC_UISA_NOFP_SPRS): New macro.
4695         (PPC_EV_REGS): New macro.
4696         (PPC_GPRS_PSEUDO_REGS): New macro.
4697         (registers_e500): New register set for e500.
4698         (variants): Add e500 variant.
4699         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4700         before setting architectural dependent variations.  Initialize ev
4701         registers numbers.  Add case for e500 architecture.  Set the
4702         number of pseudo registers.
4703
4704 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4705
4706         * rs6000-tdep.c: Clean up comments.
4707
4708 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4709
4710         * h8300-tdep.c: Re-indent file.
4711
4712 2002-08-20  Jim Blandy  <jimb@redhat.com>
4713
4714         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4715         default for this.
4716
4717 2002-08-20  Keith Seitz  <keiths@redhat.com>
4718
4719         * breakpoints.c (watch_command_1): Use internal breakpoint
4720         when setting a watchpoint_scope breakpoint.
4721
4722 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4723
4724         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4725         (build_builtin_type_vec64i): Ditto.
4726         (build_builtin_type_vec128): Ditto.
4727         (build_builtin_type_vec128i): Ditto.
4728
4729 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4730
4731         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4732         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4733         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4734         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4735         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4736         CALL_DUMMY_ADDRESS): Delete.
4737         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4738         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4739         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
4740         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
4741         push_return_address.
4742         (mips_register_raw_size, mips_eabi_use_struct_convention, 
4743         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4744         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4745         mips_init_extra_frame_info, mips_eabi_push_arguments, 
4746         mips_n32n64_push_arguments, mips_push_return_address,
4747         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4748         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4749
4750 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4751
4752         * mips-tdep.c (mips_frame_num_args): New function.
4753         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4754         frame_saved_pc, frame_args_address, frame_locals_address, 
4755         frame_num_args, and frame_args_skip.
4756         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4757         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
4758         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4759         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4760
4761 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4762
4763         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4764         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4765         * mips-tdep.c (mips_store_struct_return): New function.
4766         (mips_extract_struct_value_address): New function.
4767         (mips_gdbarch_init): Set store_struct_return and
4768         extract_struct_value_address.
4769
4770 2002-08-20  David Carlton  <carlton@math.stanford.edu>
4771
4772         * dwarf2read.c (dwarf2_build_psymtabs): Check that
4773         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4774         (read_file_scope): Check that line_header is nonzero before
4775         decoding macro information.
4776
4777 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
4778
4779         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4780         flag the general-purpose registers as floating-point on targets
4781         that don't support the floating-point registers.
4782
4783 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4784
4785         * rs6000-tdep.c (altivec_register_p): Delete.
4786         (rs6000_do_altivec_registers): Delete.
4787         (rs6000_altivec_registers_info): Delete.
4788         (rs6000_do_registers_info): Delete.
4789         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4790         (rs6000_gdbarch_init): Remove setting of do_registers_info.
4791
4792 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4793
4794         * infcmd.c (do_registers_info): Print vector registers in hex
4795         format only.
4796         (print_vector_info): Check that printing registers
4797         makes sense.
4798         (print_float_info): Ditto.
4799
4800 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4801
4802         * mips-tdep.c (mips_gdbarch_init): Update.
4803         (mips_o32_extract_return_value): Rewrite.
4804         (mips_o32_store_return_value): Rewrite.
4805         (mips_o32_xfer_return_value): New function.
4806         (mips_xfer_register): Tweak debug print message.  Allow for
4807         buf_offset when dumping the value transfered.
4808
4809 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
4810
4811         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4812         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4813         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4814         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4815         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4816
4817 2002-08-14  Michael Snyder  <msnyder@redhat.com>
4818
4819         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4820
4821 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4822
4823         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4824         register.
4825         (P): New macro to define a register as a pseudo register.
4826         (R, R4, R8, R16, FR32, R64, R0): Updated.
4827         (struct variant): Add new fields for number of pseudo registers
4828         and number of total registers.
4829         (tot_num_registers): New macro replacing....
4830         (num_registers): ...deleted macro.
4831         (num_registers): New function.
4832         (num_pseudo_registers): New function.
4833         (variants): Update all variants to intialize new fields correctly.
4834         Postpone initialization of number of pseudo regs and real regs.
4835         (init_variants): New function.
4836         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
4837         registers offsets.
4838
4839 2002-08-19  David Carlton  <carlton@math.stanford.edu>
4840
4841         * valops.c (search_struct_field): Change error message to treat
4842         return value of 0 from value_static_field as meaning that field is
4843         optimized out.
4844         (value_struct_elt_for_reference): Ditto.
4845         * values.c (value_static_field): Treat an unresolved location the
4846         same as a nonexistent symbol.  Fix PR gdb/635.
4847         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4848         enclosed.  Fix PR gdb/574.
4849         * MAINTAINERS: Add self to Write After Approval list.
4850
4851 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4852
4853         * mips-tdep.c (mips_xfer_register): New function.
4854         (mips_n32n64_extract_return_value): Rewrite.
4855         (mips_gdbarch_init): For N32 and N64, set extract_return_value
4856         instead of deprecated_extract_return_value.
4857
4858 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4859
4860         * rs6000-tdep.c (TDEP): Delete macro.
4861         (branch_dest): Replace use of TDEP macro with its body.
4862         (rs6000_pop_frame): Ditto.
4863         (rs6000_push_arguments): Ditto.
4864         (rs6000_skip_trampoline_code): Ditto.
4865         (rs6000_frame_saved_pc): Ditto.
4866         (rs6000_frame_chain): Ditto.
4867         (rs6000_register_name): Ditto.
4868         (rs6000_register_byte): Ditto.
4869         (rs6000_register_raw_size): Ditto.
4870         (rs6000_register_virtual_type): Ditto.
4871         (rs6000_register_convertible): Ditto.
4872         (rs6000_convert_from_func_ptr_addr): Ditto.
4873
4874 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
4875
4876         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4877         conditionally.
4878         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4879         MIPS_LINUX_JB_ELEMENT_SIZE.
4880         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4881         for MAX_REGISTER_RAW_SIZE arrays.
4882         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4883         MIPS_LINUX_JB_ELEMENT_SIZE.
4884
4885 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4886
4887         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4888
4889 2002-08-19  Aidan Skinner <aidan@velvet.net>
4890
4891         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4892         ada-valprint.c ada-tasks.c.
4893         (YYFILES): Add ada-exp.y.
4894         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4895         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4896         (ada-exp.tab.o): New target.
4897                 
4898 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
4899
4900         * regcache.c (regcache_xfer_part): New function.
4901         (regcache_raw_read_part): New function.
4902         (regcache_raw_write_part): New function.
4903         (regcache_cooked_read_part): New function.
4904         (regcache_cooked_write_part): New function.
4905         * regcache.h (regcache_raw_read_part): Declare.
4906         (regcache_raw_write_part): Declare.
4907         (regcache_cooked_read_part): Declare.
4908         (regcache_cooked_write_part): Declare.
4909
4910 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
4911
4912         * remote.c (remote_open_1): Add async_p.
4913         (remote_async_open_1): Delete.
4914         (open_remote_target): Delete.
4915         (remote_open, extended_remote_open): Update calls to remote_open_1.
4916         (remote_async_open, extended_remote_async_open): Call
4917         remote_open_1 instead of remote_async_open_1.
4918
4919 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
4920
4921         * blockframe.c: Fix a few coding standard violations.
4922
4923 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
4924
4925         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4926         here from ...
4927         * config/i386/tm-i386sco5.h: ... here.  File removed.
4928         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4929
4930         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4931         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4932         (TM_FILE): Set to tm-i386.h.
4933         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4934         * config/i386/tm-i386v.h: Remove file.
4935         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4936         instead of "i386/tm-i386v.h".
4937         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4938         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4939         "i386/tm-i386v.h".
4940         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4941         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4942         "i386/tm-i386.h".
4943
4944 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
4945
4946         * config/i386/nm-i386v.h: Add protection against
4947         multiple-inclusion.
4948         (i386_register_u_addr): Remove prototype.
4949         (register_u_addr): New prototype.
4950         (REGISTER_U_ADDR): Redefine accordingly.
4951         * i386v-nat.c: Improve several comments.
4952         (i386_register_u_addr): Change signature and rename to
4953         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
4954         ubase variable.
4955
4956 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
4957
4958         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4959         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4960         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4961         deprecated_extract_return_value.
4962         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4963         rename mips_o32o64_push_arguments.
4964         (mips_gdbarch_init): Update.
4965         (mips_extract_return_value): Delete.
4966         (mips_o32_extract_return_value): Clone mips_extract_return_value.
4967         (mips_o64_extract_return_value): Clone mips_extract_return_value.
4968         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4969         (mips_n32n64_extract_return_value): Clone
4970         mips_extract_return_value.
4971         (mips_store_return_value): Delete.
4972         (mips_o32_store_return_value): Clone mips_store_return_value.
4973         (mips_o64_store_return_value): Clone mips_store_return_value.
4974         (mips_eabi_store_return_value): Clone mips_store_return_value.
4975         (mips_n32n64_store_return_value): Clone mips_store_return_value.
4976
4977 2002-08-18  Aidan Skinner <aidan@velvet.net>
4978
4979         * ada-lang.c: Use gdb_string.h instead of <string.h>.
4980         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4981                 
4982 2002-08-18  Aidan Skinner <aidan@velvet.net>
4983
4984         * ada-lang.c: Run through gdb_indent.sh.
4985         * ada-lang.h: Run through gdb_indent.sh.
4986         * ada-tasks.c: Run through gdb_indent.sh.
4987         * ada-typeprint.c: Run through gdb_indent.sh.
4988         * ada-valprint.c: Run through gdb_indent.sh.
4989
4990 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
4991
4992         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4993         ABI.
4994
4995 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
4996
4997         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4998
4999         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5000         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5001
5002         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5003         write_register_gen instead of write_register_bytes.
5004
5005         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5006         i[3456]-*-osf1mk* configurations have been made obsolete.
5007         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5008         i[3456]86-*-osf1mk* hosts obsolete.
5009         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5010         targets obsolete.
5011         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5012         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5013         config/i386/i386m3.mt, config/i386/nm-m3.h,
5014         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5015         config/i386/i386mk.mh, config/i386/i386mk.mt,
5016         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5017         obsolete.
5018         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5019         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5020         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5021
5022 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5023
5024         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5025         (hppa_value_returned_from_stack): Declare.
5026         (hppa_extract_return_value): Declare.
5027         * config/pa/hppa.mt: New file.
5028         * configure.tgt: Recognize hppa*-*-*.
5029         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5030
5031 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5032
5033         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5034         comment.
5035
5036 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5037
5038         * top.c (gdb_rl_operate_and_get_next): Make sure
5039         operate-and-get-next functions correctly even when the history
5040         list is completely filled.
5041
5042 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5043
5044         * MAINTAINERS (Target Instruction Set Architectures): Rename
5045         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5046         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5047         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5048         already listed under Host/Native.
5049
5050         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5051         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5052         mips*-*-*.
5053
5054 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5055
5056         * config/ia64/ia64.mt: New file.
5057         * config/alpha/alpha.mt: New file.
5058         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5059         ia64-linux-gnu.  Mention that ia64-elf is broken.
5060         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5061
5062 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5063
5064         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5065         generic_func_frame_valid instead of func_frame_valid.
5066
5067 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5068
5069         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5070         procfs appears to be broken when debugging on multi-processor
5071         machines. So enable software single stepping in order to avoid
5072         using the procfs interface to do next/step operations, using
5073         internal breakpoints instead.
5074
5075         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5076         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5077         make this pc address equal to the value it would have if the
5078         system stepping capability was used. Also set a new flag used
5079         to ensure that we don't readjust the PC one more time later.
5080
5081         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5082         address by DECR_PC_AFTER_BREAK when software single step is
5083         in use for this architecture, as this has already been taken
5084         care of in handle_inferior_event().
5085
5086 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5087
5088         * infrun.c (handle_inferior_event): Minor reformatting, to make
5089         a rather long condition expression easier to read.
5090
5091 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5092
5093         * Makefile.in (gdbtk.o): Move to end of file.
5094         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5095         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5096         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5097         (gdbtk-wrapper.o, gdbres.o): Ditto.
5098
5099 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5100
5101         * Makefile.in (copying.o): Separate out compile rule.
5102         (hpux-thread.o, procfs.o, signals.o): Ditto.
5103         (v850ice.o, z8k-tdep.o): Ditto.
5104         (tui-file.o): Move to TUI section.
5105         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5106         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5107
5108 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5109
5110         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5111         skip_trampoline_code, for better namespace-proofing.   
5112
5113         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5114
5115 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5116
5117         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5118
5119 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5120
5121         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5122         signal, check whether we hit a breakpoint before checking for a
5123         single step breakpoint. Otherwise, GDB fails to notice that a
5124         breakpoint has been hit when stepping onto a breakpoint.
5125
5126 2002-08-16  Keith Seitz  <keiths@redhat.com>
5127
5128         * gdb-events.sh (clear_gdb_event_hooks): New function.
5129         * gdb-events.c: Regenerate.
5130         * gdb-events.h: Regenerate.
5131
5132 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5133
5134         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5135         not_a_sw_breakpoint.
5136         * breakpoint.h (bpstat_stop_status): Add parameter names.
5137
5138 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5139
5140         * remote.c (remote_insert_hw_breakpoint)
5141         (remote_remove_hw_breakpoint): Fix calculation of length field
5142         for Z-packet.
5143
5144 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5145
5146         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5147         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5148         (supply_fpregset): Ditto.
5149         
5150         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5151         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5152         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5153         (TARGET_READ_SP): Delete.
5154         (DO_REGISTERS_INFO): Delete.
5155         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5156         Delete.
5157         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5158         from macros to functions.
5159
5160         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5161         (mips_register_convertible, mips_register_convert_to_virtual,
5162         mips_register_convert_to_raw): Make static.
5163         (mips_read_sp): New function.
5164         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5165         (mips_do_registers_info): Make static.
5166         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5167         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5168         (mips_register_convert_from_type, mips_register_convert_to_type):
5169         New functions.
5170         (mips_gdbarch_init): Set up function_start_offset, 
5171         register_virtual_size, pc_in_sigtramp.
5172
5173 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5174
5175         * infcmd.c (vector_info): New function.
5176         (_initialize_infcmd): Add command "info vector".
5177         (print_vector_info): New function.
5178
5179         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5180         * gdbarch.h, gdbarch.c: Regenerate.
5181
5182 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5183
5184         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5185         ``print_all''.  Only print vector registers when ``print_all''.
5186
5187 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5188
5189         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5190         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5191
5192         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5193         Add `args' parameter.
5194         * gdbarch.h, gdbarch.c: Regenerate.
5195         
5196         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5197         
5198         * infcmd.c (float_info): Call print_float_info.
5199         (print_float_info): New function.  By default, print the
5200         floating-point registers.
5201
5202         * arch-utils.h (default_print_float_info): Delete declaration.
5203         * arch-utils.c (default_print_float_info): Delete function.
5204         
5205 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5206
5207         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5208         out define.
5209
5210         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5211         FRAME.
5212
5213         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5214         * configure.host: Make i[3456]86-*-aix host obsolete.
5215         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5216         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5217         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5218         config/i386/xm-i386aix.h: Make files obsolete.
5219         * i386aix-nat.c: Make file obsolete.
5220         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5221         (i386aix-nat.o): Make target obsolete.
5222
5223         * config/i386/nm-gnu.h: Removed.
5224         * config/i386/nm-i386gnu.h: New file.
5225         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5226         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5227         Moved here from ...
5228         * config/i386/tm-i386gnu.h: ... here.  Removed.
5229         * config/i386/xm-i386gnu.h: Removed.
5230         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5231         (NAT_FILE): Set to nm-i386gnu.h.
5232         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5233         * i386-tdep.c: New file.
5234         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5235         (i386gnu-tdep.o): Specify dependencies.
5236
5237 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5238
5239         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5240         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5241         Adjust a few comments to reflect reality a bit closer.
5242         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5243         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5244         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5245         target_insert_watchpoint, target_remove_watchpoint):
5246         Move defines to ...
5247         * config/i386/nm-i386sco5.h: ... here.
5248         (kernel_u_size): Add prototype.  Improve a few comments and add
5249         protection against multiple inclusion.
5250         
5251         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5252         out define.
5253
5254         * uw-thread.c (SP_ARG0): Define if not already defined.
5255         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5256
5257         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5258
5259         * config/i386/tm-i386.h: Don't include "regcache.h".
5260
5261         * i387-tdep.h (i387_print_float_info): New prototype.
5262         * i387-tdep.c (print_i387_value, print_i387_ext,
5263         print_i387_status_word, print_i387_control_word): Add `struct
5264         ui_file *' argument and use it for output.
5265         (i387_print_float_info): Renamed from i387_float_info.  Add
5266         `struct gdbarch *' and `struct ui_file *' arguments and use the
5267         latter for output.
5268         * i386-tdep.c: Include "i387-tdep.h".
5269         (i386_gdbarch_init): Set print_float_info.
5270         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5271         (FLOAT_INFO): Remove define.
5272
5273 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5274
5275         * mips-tdep.c (mips_push_arguments): Rename to
5276         mips_eabi_push_arguments, and tune for EABI.
5277         (MIPS_REGS_HAVE_HOME_P): Delete.
5278         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5279         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5280         Delete references to mips_regs_have_home_p.
5281
5282 2002-08-14  Keith Seitz  <keiths@redhat.com>
5283
5284         * Makefile.in (install-gdbtk): Create insight plugin directory.
5285         Install plugins.tcl file.
5286
5287 2002-08-14  Keith Seitz  <keiths@redhat.com>
5288
5289         * configure.in: Move SUBDIRS to near top of the file so that
5290         --enable options may add things to it.
5291         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5292         * configure: Regenerate.
5293
5294 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5295
5296         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5297         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5298         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5299
5300 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5301
5302         * vax-tdep.c (vax_get_saved_register): Delete function.
5303         (vax_gdbarch_init): Update.
5304         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5305         (ns32k_gdbarch_init): Update.
5306         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5307         (alpha_gdbarch_init): Update.
5308
5309 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5310
5311         * regcache.c (init_regcache_descr): Overallocate the
5312         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5313         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5314         nr_raw_registers.
5315         (set_register_cached): Add range checking assertions.  Use
5316         current_regcache.
5317
5318 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5319
5320         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5321         numbers for MMX registers.
5322
5323 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5324
5325         * i386-tdep.c (i386_gdbarch_init): Use
5326         generic_unwind_get_saved_register.
5327
5328 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5329
5330         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5331         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5332         target vector.
5333         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5334         Delete.  Add comment regarding this now-deleted target method.
5335
5336 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5337
5338         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5339         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5340         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5341         real PC and the page number (if it's within the memory bank window).
5342         (m68hc11_pseudo_register_write): Likewise when saving.
5343         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5344         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5345         (m68hc11_register_raw_size): And use 32-bit for it.
5346         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5347         16K memory bank is used by the prog; also use the virtual pc.
5348
5349 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5350
5351         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5352         (m68hc11_gdbarch_init): Install it in gdbarch.
5353         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5354         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5355         (MSYMBOL_SIZE): New for documentation.
5356         (insn_return_kind): Enum to specify how a function returns.
5357         (frame_extra_info): Cleanup and record the return mode.
5358         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5359         register in address computation.
5360         (m68hc11_get_return_insn): New to obtain the return instruction used
5361         by the function.
5362         (m68hc11_frame_init_saved_regs): Take into account the return
5363         instruction used by the function for far and interrupt functions.
5364         (m68hc11_init_extra_frame_info): Take into account page register.
5365         (m68hc11_frame_args_address): Adjust according to the return mode.
5366         (show_regs): Print page register only when it's used.
5367
5368 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5369
5370         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5371         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5372         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5373         registers.
5374         (m68hc11_register_raw_size): Likewise.
5375
5376 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5377
5378         * i386-tdep.c (i386_register_name): Handle mmx registers.
5379         (mmx_regnum_p): New function.
5380         (i386_mmx_names): New array.
5381         (mmx_num_regs): New variable.
5382         (i386_pseudo_register_read): New function.
5383         (i386_pseudo_register_write): New function.
5384         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5385
5386         * regcache.c (regcache_raw_read_unsigned): New function.
5387         (regcache_raw_read_signed): New function.
5388         * regcache.h (regcache_raw_read_unsigned): Declare.
5389         (regcache_raw_read_signed): Declare.
5390
5391 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5392
5393         * regcache.c (regcache_raw_read_as_address): Delete function.
5394         (regcache_cooked_read_signed): New function.
5395         (regcache_cooked_read_unsigned): New function.
5396         * regcache.h (regcache_cooked_read_signed): Declare.
5397         (regcache_cooked_read_unsigned): Declare.
5398         (regcache_raw_read_as_address): Delete declaration.
5399
5400         * blockframe.c (generic_read_register_dummy): Use
5401         regcache_cooked_read_unsigned.
5402         * i386-tdep.c (i386_extract_struct_value_address): Use
5403         regcache_cooked_read_unsigned.
5404
5405 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5406
5407         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5408         double sizes according to ELF ABI flags.
5409         (gdbarch_tdep): Record elf_flags.
5410
5411 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5412
5413         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5414         (m6812_prolog): They can appear in 68HC12 function prologue.
5415         (m68hc11_frame_chain): Cleanup.
5416
5417 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5418
5419         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5420         declarations.
5421         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5422         (i386_linux_register_raw_size): Delete function.
5423         (i386_linux_init_abi): Update.
5424         * i386-tdep.c (i386_register_raw_size): Delete function.
5425         (i386_register_byte): Delete function.
5426         (i386_gdbarch_init): Update.
5427         (i386_register_size): Delete array.
5428         (i386_register_offset): Delete array.
5429
5430         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5431         (REGISTER_RAW_SIZE): Delete macro.
5432         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5433         (REGISTER_BYTE): Delete macro.
5434
5435 2002-08-11  Aidan Skinner <aidan@velvet.net>
5436
5437         * ada-lang.c (ada_lookup_partial_symbol)
5438         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5439         prototype names so that grep ^func works properly.
5440
5441         * ada-lang.c (ada_array_element_type)
5442         (ada_lookup_partial_symbol): Fix typos in parameter list.
5443
5444         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5445         Fix prototype names so that grep ^func works properly.
5446         
5447 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5448             Elena Zannoni  <ezannoni@redhat.com>
5449             Martin M. Hunt  <hunt@redhat.com>
5450
5451         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5452         (build_builtin_type_vec128i): Set the vector bit.
5453         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5454         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5455         (build_builtin_type_vec64): New function.
5456         (build_builtin_type_vec64i): New function.
5457         (build_gdbtypes): Initialize builtin_type_vec64 and
5458         builtin_type_vec64i.
5459
5460 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5461
5462         * regcache.c (regcache_dump): Compare the register offset
5463         with REGISTER_BYTE.
5464         * arch-utils.c (generic_register_byte): New function.
5465         * arch-utils.h (generic_register_byte): Declare.
5466         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5467         * gdbarch.h, gdbarch.c: Regenerate.
5468
5469 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5470
5471         * regcache.c: Include "gdbcmd.h"
5472         (_initialize_regcache): Add commands "maintenance print
5473         registers", "maintenance print raw-registers" and "maintenance
5474         print cooked-registers".
5475         (enum regcache_dump_what): Define.
5476         (dump_endian_bytes): New function.
5477         (regcache_dump): New function.
5478         (regcache_print): New function.
5479         (maintenance_print_registers): New function.
5480         (maintenance_print_raw_registers): New function.
5481         (maintenance_print_cooked_registers): New function.
5482         * Makefile.in (regcache.o): Update dependencies.
5483
5484 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5485
5486         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5487         (mips_push_arguments): Correct some comments.  Use paddr_nz
5488         for printing addresses in debug output.  Replace static
5489         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5490         (mips_n32n64_push_arguments): New function, cloned from
5491         mips_push_arguments and tuned for the n32/n64 ABI.
5492         (mips_push_register): Buffer needs dynamic allocation.
5493         (mips_print_register): Ditto.
5494         (do_gp_register_row): Ditto.
5495         (mips_store_return_value): Ditto.
5496         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5497
5498 2002-08-09  Don Howard  <dhoward@redhat.com>
5499
5500         * memattr.c (mem_info_command): Print special case of upper bound
5501         as max CORE_ADDR + 1.
5502
5503 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5504
5505         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5506         returns structs by ref if they're too big to fit in two registers.
5507
5508 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5509
5510         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5511         saved regs value.
5512         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5513         mips_find_saved_regs().
5514         (mips_pop_frame): Likewise.
5515
5516 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5517
5518         * blockframe.c (frame_saved_regs_register_unwind): Revise
5519         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5520         frames are in use.
5521
5522 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5523         
5524         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5525         T-packets; the 'a' is not taken as a register number.
5526         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5527         (remote_stopped_data_address): New functions; add to target
5528         vector.
5529         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5530         prototypes to match other implementations of this
5531         function. replace integer argument with pointer -- the length
5532         field in the Z-packet is the length of what is pointed to or 1 if
5533         pointer is null. Add to target vector.
5534         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5535         target vector.
5536
5537         From Mark Salter:
5538         * remote.c (remote_wait): Add support to extract optional
5539         watchpoint information from T-packet. Ignore unrecognized
5540         optional info in T-packet.
5541         (remote_async_wait): Ditto.
5542
5543 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5544
5545         * cli/cli-dump.c: Change fopen modes to use binary open modes
5546         as defined in include/fopen-bin.h throughout.
5547
5548 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5549
5550         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5551
5552 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5553
5554         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5555         assertion failure by returning early after a warning.
5556
5557 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5558
5559         * mips-tdep.c (mips_find_saved_regs): Make static.
5560         (mips_frame_init_saved_regs): New function.
5561         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5562         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5563         (mips_find_saved_regs): Delete declaration.
5564
5565 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5566
5567         * remote.c (remote_wait, remote_async_wait): Change
5568         thread_num from int to ULONGEST.
5569         (unpack_varlen_hex): Change result parameter from
5570         int * to ULONGEST *.
5571
5572 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5573
5574         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5575         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5576         powerpc*-*-*.
5577         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5578
5579 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5580
5581         * gcore.c (override_derive_stack_segment): Delete variable.
5582         (preempt_derive_stack_segment): Delete function.
5583         (derive_stack_segment): Delete function.
5584         (default_derive_stack_segment): Renamed to derive_stack_segment.
5585         (override_derive_heap_segment): Delete variable.
5586         (preempt_derive_heap_segment): Delete function.
5587         (derive_heap_segment): Delete function.
5588         (default_derive_heap_segment): Rename to derive_heap_segment.
5589
5590 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5591
5592         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5593         * mips-tdep.c (mips_EABI_use_struct_convention, 
5594         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5595         New functions.  (mips_use_struct_convention): Delete.
5596         (mips_gdbarch_init): set use_gdbarch_convention.
5597
5598 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5599
5600         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5601         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5602         mips_o32_reg_struct_has_addr): New functions.
5603         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5604
5605 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5606
5607         * regcache.c (pseudo_register): Delete function.
5608         (fetch_register): Delete function.
5609         (store_register): Delete function.
5610         (regcache_raw_read, legacy_read_register_gen): Use
5611         target_fetch_registers instead of fetch_register.
5612         (legacy_write_register_gen, regcache_raw_write): Use
5613         target_store_register instead of store_register.
5614         (write_register_bytes): Ditto.
5615
5616         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5617         (STORE_PSEUDO_REGISTER): Delete.
5618         * gdbarch.h, gdbarch.c: Regenerate.
5619
5620 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5621
5622         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5623         write dump file binary.
5624
5625 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5626
5627         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5628         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5629         (mips_gdbarch_init): Set N32 target to be mips64.
5630
5631 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5632
5633         * frame.c (find_saved_register): Break out of loop once saved
5634         register address is found.  Don't mention sparc in loop comment
5635         anymore.
5636
5637 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5638
5639         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5640         mips_default_saved_regsize to 8.
5641
5642 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5643
5644         * gcore.c: Do not include <sys/procfs.h>.
5645         * Makefile.in (gcore.o): Update dependencies.
5646
5647 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5648
5649         * configure.tgt: Make arc-*-* obsolete.
5650         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5651         * MAINTAINERS: Make arc-elf obsolete.
5652         * arc-tdep.c: Make file obsolete.
5653         * config/arc/arc.mt: Ditto.
5654         * config/arc/tm-arc.h: Ditto.
5655
5656 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5657
5658         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5659
5660 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5661
5662         * mcore-tdep.c (mcore_gdbarch_init): Use
5663         generic_unwind_get_saved_register instead of
5664         generic_get_saved_register.
5665         * v850-tdep.c (v850_gdbarch_init): Ditto.
5666         * frv-tdep.c (frv_gdbarch_init): Ditto.
5667         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5668         * s390-tdep.c (s390_gdbarch_init): Ditto.
5669         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5670         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5671         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5672
5673 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5674
5675         * objfiles.h: Add missing #include "symfile.h"
5676
5677         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5678
5679 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5680
5681         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5682         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5683         of FIELD_BITSIZE.
5684
5685 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5686
5687         * NEWS: Cleanup and nitpick.
5688
5689 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5690
5691         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5692
5693 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5694
5695         * Makefile.in (gdbtk-bp.o): Update dependencies.
5696         (gdbtk-register.o): Ditto.
5697         (gdbtk-varobj.o): Ditto.
5698
5699 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5700
5701         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5702         m68hc11_fetch_pseudo_register.
5703         (m68hc11_pseudo_register_write): Replace
5704         m68hc11_store_pseudo_register.
5705         (m68hc11_gdbarch_init): Update.
5706
5707 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5708
5709         * gdbarch.sh: Include "gdb_string.h".
5710         * gdbarch.c: Regenerate.
5711
5712         * regcache.c: Include "gdb_string.h".
5713         * ax-general.c: Ditto.
5714         * varobj.c: Ditto.
5715         * std-regs.c: Ditto.
5716         * fbsd-proc.c: Ditto.
5717         * thread.c: Ditto.
5718
5719         * Makefile.in (regcache.o): Update dependencies.
5720         (thread.o, gdbarch.o): Ditto.
5721         (ax-general.o, gdbarch.o): Ditto.
5722         (varobj.o, std-regs.o): Ditto.
5723         (fbsd-proc.o): Specify dependencies.
5724
5725 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5726
5727         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5728         regnum.
5729         (regcache_cooked_write): Ditto.
5730
5731 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
5732
5733         * regcache.c (regcache_cooked_read): New function.
5734         (regcache_cooked_write): New function.
5735         (read_register_gen): Rewrite using regcache_cooked_read.
5736         (write_register_gen): Rewrite using regcache_cooked_write.
5737
5738         * regcache.h (regcache_cooked_read, regcache_cooked_write):
5739         Declare.
5740
5741 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5742
5743         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5744         Replace the architecture methods register_read and register_write.
5745         * gdbarch.h, gdbarch.c: Regenerate.
5746         * regcache.c (init_regcache_descr): Update.
5747         (read_register_gen): Update.
5748         (write_register_gen): Update.
5749         (supply_register): Update comment.
5750
5751         * sh-tdep.c (sh_gdbarch_init): Update.
5752         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5753         `regcache' and `gdbarch' parameters.  Make `buffer' a void
5754         pointer.  Update code.
5755         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5756         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
5757         void pointer.  Update code.
5758         (sh64_register_write): Delete.
5759         (sh4_register_read): Delete.
5760         (sh64_register_read): Delete.
5761         (sh4_register_write): Delete.
5762         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5763         void pointer, `to' parameter a void pointer.
5764         (sh_sh64_register_convert_to_raw): Ditto.
5765
5766 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5767
5768         * mips-tdep.c (mips_register_virtual_type): Use architecture
5769         invariant return values.
5770
5771 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5772
5773         * linux-proc.c: Include "gdb_string.h".
5774         * Makefile.in (linux-proc.o): Update dependency list.
5775
5776 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5777
5778         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
5779         comment.
5780
5781 2002-08-01  Grace Sainsbury  <graces@redhat.com>
5782
5783         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5784         to_insert_watchpoint, to_remove_watchpoint,
5785         to_stopped_by_watchpoint, to_stopped_data_address,
5786         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5787         target vecctor. Define their corresponding macros so they call
5788         them.
5789         
5790         * target.c: Add default and debug versions of for
5791         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5792         to_insert_watchpoint, to_remove_watchpoint,
5793         to_stopped_by_watchpoint, to_stopped_data_address,
5794         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5795
5796 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5797
5798         * mips-tdep.c (mips_register_virtual_type): New function.
5799         (mips_gdbarch_init): Register mips_register_virtual_type()
5800         with gdbarch machinery.
5801         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5802         this file instead of tm-bigmips.h.
5803         (MIPS_REGSIZE): Delete this macro.
5804         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
5805         multiarch version in mips-tdep.c will be found.
5806
5807 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5808
5809         * NEWS: Menion that CHILL has been made obsolete.
5810
5811         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5812         * stabsread.c (read_range_type): Ditto.
5813         * gdbtypes.h: Ditto.
5814         * language.c (binop_type_check): Ditto.
5815         (binop_result_type): Ditto.
5816         (integral_type): Ditto.
5817         (character_type): Ditto.
5818         (string_type): Ditto.
5819         (boolean_type): Ditto.
5820         (structured_type): Ditto.
5821         (lang_bool_type): Ditto.
5822         (binop_type_check): Ditto.
5823         * language.h (_LANG_chill): Ditto.
5824         * dwarfread.c (set_cu_language): Ditto.
5825         * dwarfread.c (CHILL_PRODUCER): Ditto.
5826         * dwarfread.c (handle_producer): Ditto.
5827         * expression.h (enum exp_opcode): Ditto.
5828         * eval.c: Ditto for comments.
5829         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5830         * expprint.c (print_subexp): Ditto.
5831         (print_subexp): Ditto.
5832         * valops.c (value_cast): Ditto.
5833         (search_struct_field): Ditto.
5834         * value.h (COERCE_VARYING_ARRAY): Ditto.
5835         * symfile.c (init_filename_language_table): Ditto.
5836         (add_psymbol_with_dem_name_to_list): Ditto.
5837         * valarith.c (value_binop): Ditto.
5838         (value_neg): Ditto.
5839         * valops.c (value_slice): Ditto.
5840         * symtab.h (union language_specific): Ditto.
5841         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5842         (SYMBOL_DEMANGLED_NAME): Ditto.
5843         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5844         * defs.h (enum language): Ditto.
5845         * symtab.c (got_symtab): Ditto.
5846         * utils.c (fprintf_symbol_filtered): Ditto.
5847
5848         * ch-typeprint.c: Make file obsolete.
5849         * ch-valprint.c: Make file obsolete.
5850         * ch-lang.h: Make file obsolete.
5851         * ch-exp.c: Make file obsolete.
5852         * ch-lang.c: Make file obsolete.
5853
5854         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5855         CHILL_LIB.
5856         (TARGET_FLAGS_TO_PASS): Ditto.
5857         (CHILLFLAGS): Obsolete.
5858         (CHILL): Obsolete.
5859         (CHILL_FOR_TARGET): Obsolete.
5860         (CHILL_LIB): Obsolete.
5861         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5862         ch-valprint.c.
5863         (HFILES_NO_SRCDIR): Remove ch-lang.h.
5864         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5865         ch-lang.o.
5866         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5867         targets.
5868
5869 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
5870
5871         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5872         This does not change anything at the moment, but will be helpful
5873         later when full Ada support is integrated.
5874
5875 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5876
5877         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5878         help message.
5879
5880 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5881
5882         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5883         and save it in a local variable.  Use variable in later test.
5884
5885 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5886
5887         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5888         test.  (Thanks to Daniel Jacobowitz.)
5889         
5890 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5891
5892         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5893         (mips_abi_strings): Add "n64".
5894         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
5895
5896 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5897
5898         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5899         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5900
5901 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
5902
5903         * utils.c (host_pointer_to_address, address_to_host_pointer):
5904         Use gdb_assert() instead of explicit call to internal_error().
5905
5906 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
5907
5908         * Makefile.in (rs6000-nat.o): Update dependencies.
5909
5910         From Nicholas Duffek:
5911         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5912         (aix-thread.o): New rule.
5913         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5914         * config/powerpc/aix432.mh: New file.
5915
5916 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
5917
5918         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5919         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5920         (fetch_core_registers, ppc_linux_supply_gregset)
5921         (ppc_linux_supply_fpregset): New functions.
5922         (ppc_linux_regset_core_fns): New.
5923         (_initialize_ppc_linux_tdep): Call add_core_fns.
5924         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5925         and ppc_linux_supply_gregset.
5926         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5927         (supply_fpregset): Call ppc_linux_supply_fpregset.
5928         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5929         corelow.o.
5930         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5931
5932 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
5933
5934         * symtab.c (lookup_symbol): Demangle before lowercasing.
5935
5936 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
5937
5938         * symtab.h: Replace #include "gdb_obstack.h" with opaque
5939         declaration.
5940         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5941         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5942         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5943         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5944         "gdb_string.h".
5945         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5946         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5947         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5948         (avr-tdep.o, mon960-rom.o): Ditto.
5949         (aout_stabs_gnu_h): Define.
5950         (symtab_h): Remove $(gdb_obstack_h).
5951
5952 2002-07-30  Jim Blandy  <jimb@redhat.com>
5953
5954         Patch from David Carlton <carlton@math.stanford.edu>:
5955         * gdbinit.in: Move the `dir' commands that add GDB's own source
5956         directory to the search path to the end, so that the `gdb' source
5957         directory will be searched first.
5958
5959 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
5960
5961         * gdb_obstack.h: New file.
5962         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5963         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5964         * objfiles.h: Include "gdb_obstack.h".
5965         * Makefile.in (gdb_obstack_h): Define.
5966         (symtab_h): Add $(gdb_obstack_h).
5967         (objfiles_h): Add $(gdb_obstack_h).
5968         
5969         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5970         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5971         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5972         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5973         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5974         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5975         * symfile.c, coffread.c, c-typeprint.c: Ditto.
5976         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5977
5978         * Makefile.in (bcache.o): Update dependencies.
5979         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5980         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5981         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5982         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5983         (stabsread.o, symfile.o, symmisc.o): Ditto.
5984         (symtab.o, typeprint.o, macroexp.o): Ditto.
5985         (macrotab.o, mdebugread.o): Ditto.
5986         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5987         (coff_ecoff_h, aout_aout64_h): Define.
5988         (aout_stabs_gnu_h, libaout_h): Define.
5989
5990 2002-07-29  Andrew Cagney  <cagney@redhat.com>
5991
5992         * regcache.c (struct regcache_descr): Rename nr_registers to
5993         nr_cooked_registers.  Revise comments describing the structure
5994         member fields.
5995         (init_regcache_descr): Update.
5996         (init_legacy_regcache_descr): Update.
5997         (read_register_gen, write_register_gen): When a cooked register in
5998         the raw register range, directly access the value from the raw
5999         register cache.
6000
6001 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6002
6003         * z8k-tdep.c: Do not include "obstack.h".
6004         * h8300-tdep.c, h8500-tdep.c: Ditto.
6005         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6006         * valprint.c, v850-tdep.c: Ditto.
6007         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6008         * mn10200-tdep.c: Ditto.
6009
6010         * Makefile.in (z8k-tdep.o): Update dependencies.
6011         (m68hc11-tdep.o, valprint.o): Ditto.
6012         (v850-tdep.o, d10v-tdep.o): Ditto.
6013         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6014         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6015         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6016         (sh_opc_h, gdb_sim_sh_h): Define.
6017         (elf_sh_h, elf_bfd_h): Define.
6018         (opcode_m68hc11_h): Define.
6019         (OPCODES_SRC, OPCODES_DIR): define.
6020         (OPCODES): Use $(OPCODES_DIR).
6021         (gdb_sim_d10v_h): Rename sim_d10v_h.
6022         (gdb_sim_arm_h): Rename sim_arm_h.
6023
6024 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6025
6026         * utils.c (host_pointer_to_address, address_to_host_pointer):
6027         Change internal_error() message to indicate function responsible
6028         for the error.
6029
6030 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6031
6032         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6033         calls to local_hex_string_custom().
6034
6035 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6036
6037         * irix5-nat.c: Move IRIX shared library support from here...
6038         * solib-irix.c: ...to here.  Revised substantially to work with
6039         generic solib framework.
6040
6041         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6042         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6043         * mips-irix-tdep.c: New file.
6044
6045         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6046         (mips-irix-tdep.o, solib-irix.o): New rules.
6047         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6048         solib-irix.o.
6049         * config/mips/irix6.mt (TDEPFILES): Likewise.
6050         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6051
6052 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6053
6054         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6055         disabled (via ``#if 0'') includes.
6056
6057 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6058
6059         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6060         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6061         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6062         Add support for the fpscr register.
6063         * rs6000-nat.c (regmap, fetch_inferior_registers)
6064         (store_inferior_registers, fetch_core_registers): Likewise.
6065
6066 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6067
6068         * rs6000-nat.c (language.h): Include.
6069         (special_regs): Delete this array.
6070         (regmap): New function.
6071         (fetch_register, store_register):  Use regmap() to map gdb
6072         register numbers to ptrace register numbers.  Also, use
6073         outputs from regmap() to make decisions regarding type of
6074         ptrace() call to make.  In particular, don't compare against
6075         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6076         (fetch_inferior_registers, store_inferior_registers): Where
6077         possible, obtain register numbers from tdep struct.  Don't
6078         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6079         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6080         (LAST_UISA_SP_REGNUM): Delete.
6081         
6082 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6083
6084         * rs6000-nat.c (ppc-tdep.h): Include.
6085         (fetch_registers, store_register, fetch_core_registers): Don't
6086         access registers[] directly.  Instead, use supply_register() or
6087         regcache_collect() as appropriate.
6088         (find_toc_address): Format hex address with local_hex_string().
6089
6090 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6091
6092         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6093         bfd/elf32-frv.c.
6094
6095 2002-07-24  Tom Tromey  <tromey@redhat.com>
6096
6097         * jv-exp.y: Marked all strings with _().
6098         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6099         internal_error.
6100         (MethodInvocation, CastExpression, parse_number, yyerror,
6101         java_type_from_name, push_expression_name, yylex): Typo fixes.
6102
6103 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6104
6105         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6106         (tee_file_flush, tee_file_write, tee_file_fputs)
6107         (tee_file_isatty): New.
6108         * ui-file.h (tee_file_new): Add prototype.
6109
6110 2002-07-24  Aidan Skinner <aidan@velvet.net>
6111
6112         * ada-lang.c: Change k&r style function definitions to prototyped
6113         form.
6114         * ada-typeprint.c: Change k&r style function definitions to prototyped
6115         form.
6116         * ada-valprint.c: Change k&r style function definitions to prototyped
6117         form.
6118         
6119 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6120
6121         * README: Remove reference to remote-bug.
6122         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6123         remote-bug.c.
6124         (m88k-nat.o): Delete rule.
6125         (m88k-tdep.o): Delete rule.
6126         (remote-bug.o): Delete rule.
6127         * MAINTAINERS: Mark as obsolete.
6128         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6129         * m88k-tdep.c: Make file obsolete.
6130         * config/m88k/m88k.mh: Ditto.
6131         * config/m88k/delta88v4.mh: Ditto.
6132         * config/m88k/delta88v4.mt: Ditto.
6133         * config/m88k/delta88.mt: Ditto.
6134         * config/m88k/delta88.mh: Ditto.
6135         * remote-bug.c: Ditto.
6136         * config/m88k/tm-delta88.h: Ditto.
6137         * config/m88k/nm-delta88v4.h: Ditto.
6138         * config/m88k/xm-delta88.h: Ditto.
6139         * config/m88k/xm-dgux.h: Ditto.
6140         * config/m88k/tm-m88k.h: Ditto.
6141         * config/m88k/nm-m88k.h: Ditto.
6142         * config/m88k/tm-delta88v4.h: Ditto.
6143         * m88k-nat.c: Ditto.
6144         * cxux-nat.c: Ditto.
6145         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6146         and m88*-*-* obsolete.
6147         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6148         m88*-*-* obsolete.
6149
6150 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6151
6152         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6153         constant.  Same for local pointer variables.
6154         (extract_signed_integer): Ditto.
6155         * defs.h (extract_unsigned_integer): Update.
6156         (extract_signed_integer): Update.
6157
6158 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6159
6160         * regcache.c (regcache_raw_write): Change buf parameter to a
6161         constant void pointer.
6162         (regcache_raw_read): Change buf parameter to a void pointer.
6163         (legacy_write_register_gen): Change myaddr parameter a constant
6164         void pointer.
6165         (supply_register): Change val parameter to a const void pointer.
6166         * regcache.h (regcache_raw_write): Update declaration.
6167         (regcache_raw_read): Update declaration.
6168         (supply_register): Update declaration.
6169
6170 2002-07-24  Tom Tromey  <tromey@redhat.com>
6171
6172         * defs.h (gdb_readline_wrapper): Declare.
6173         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6174         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6175         * top.c (gdb_readline_wrapper): New function.
6176         (command_line_input): Use it.
6177
6178 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6179
6180         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6181         regcache_read and regcache_write.
6182         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6183         * regcache.c: Update.
6184         * sh-tdep.c (sh64_push_arguments): Update comment.
6185         (sh_pseudo_register_read): Update.
6186         (sh_pseudo_register_write): Update.
6187         (sh4_register_read): Update.
6188         (sh4_register_write): Update.
6189         (sh64_pseudo_register_read): Update.
6190         (sh64_pseudo_register_write): Update.
6191         (sh64_register_read): Update.
6192         (sh64_register_write): Update.
6193         * i386-tdep.c (i386_extract_return_value): Update.
6194         (i386_extract_struct_value_address): Update.
6195         (i386_extract_return_value): Update.
6196         * blockframe.c (generic_read_register_dummy): Update.
6197         (generic_call_dummy_register_unwind): Update
6198         * infrun.c (write_inferior_status_register): Update.
6199
6200 2002-07-23  Jim Blandy  <jimb@redhat.com>
6201
6202         * parser-defs.h (expression_context_pc): Make this extern.
6203         (Thanks to Michael Snyder.)
6204
6205 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6206
6207         GDB 5.2.1 released from 5.2 branch.
6208         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6209         * README: Update to mention 5.2.1.
6210
6211 2002-07-23  Mark Salter  <msalter@redhat.com>
6212
6213         * remote.c (remote_read_bytes): Fix check for error.
6214
6215 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6216
6217         * aix-thread.c (language.h): Include.
6218         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6219         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6220         Print newlines at end of debug messages.
6221         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6222         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6223
6224 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6225
6226         * aix-thread.c (ppc-tdep.h): Include.
6227         (special_register_p): New function.
6228         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6229         (store_regs_user_thread): Use register number information from
6230         gdbarch_tdep struct instead of hardcoded offsets relative to
6231         FIRST_UISA_SP_REGNUM.
6232         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6233         special_register_p() instead of using FPLAST_REGNUM and
6234         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6235         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6236         will be MQ's register number.
6237
6238 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6239
6240         * aix-thread.c (ops): Rename to aix_thread_ops.
6241         (base_ops): Rename to base_target.
6242         (ops_attach): Rename to aix_thread_attach.
6243         (ops_detach): Rename to aix_thread_detach.
6244         (ops_resume): Rename to aix_thread_detach.
6245         (ops_wait):   Rename to aix_thread_wait.
6246         (ops_kill):   Rename to aix_thread_kill.
6247         (init_ops):   Rename to init_aix_thread_ops.
6248         (ops_fetch_register): Rename to aix_thread_fetch_register.
6249         (ops_store_register): Rename to aix_thread_store_register.
6250         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6251         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6252         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6253         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6254         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6255         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6256         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6257         (store_regs_lib):  Rename to store_regs_user_thread.
6258         (store_regs_kern): Rename to store_regs_kernel_thread.
6259
6260 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6261
6262         * aix-thread.c (ops_prepare_to_store): Eliminate.
6263         (init_ops): Don't initialize ops.prepare_to_store.
6264         (store_regs_kern): Pre-fetch register buffers from child, 
6265         because some registers may not be in the cache.  Copy
6266         regs from register cache only if they are cached.
6267         (store_regs_lib): Copy regs from register cache only
6268         if they are cached.
6269         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6270         fill_gprs64): Ditto.
6271
6272 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6273
6274         * aix-thread.c (gdb_assert.h): Include.
6275         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6276         register sizes (from register cache) match size of buffer holding
6277         register data.
6278         (fill_sprs32): Change parameter types to match those in the ptrace()
6279         buffer.
6280         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6281         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6282
6283 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6284
6285         * aix-thread.c (supply_sprs64): Cosmetic change.
6286         (supply_sprs32): Cosmetic change.
6287         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6288         (fill_sprs64): Use regcache_collect instead of read_register.
6289         (store_regs_lib): Use regcache_collect instead of 
6290         read_register.  Use fill_sprs32 instead of fill_sprs64,
6291         if debugging a 32-bit architecture.
6292         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6293         out of the register cache, instead of passing a pointer into
6294         the register cache directly to ptrace.  Use regcache_collect
6295         insteaad of read_register.
6296         (ops_prepare_to_store): Use target_read_registers instead
6297         of read_register_bytes.
6298
6299 2002-07-20  Aidan Skinner <aidan@velvet.net>
6300
6301         * MAINTAINERS: Add self under write after approval. 
6302                 
6303 2002-07-20  Aidan Skinner <aidan@velvet.net>
6304
6305         * ada-tasks.c: Change k&r style function definitions to prototyped
6306         form.
6307                 
6308 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6309
6310         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6311         * x86-64-tdep.c: Include "objfiles.h".
6312         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6313         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6314
6315 2002-07-17  Michal Ludvig  <michal@suse.cz>
6316
6317         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6318         (update_context): Initialise cfa variable.
6319
6320 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6321
6322         * aix-thread.c: Shorten some long lines.  
6323         Bring comments into line with code spec.
6324
6325 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6326
6327         * infrun.c: Re-indent using gdb_indent.sh.
6328
6329 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6330
6331         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6332         Leave the indentation temporarily untouched, to minimize the diffs.
6333
6334 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6335
6336         * stabsread.c: Make os9k sections of the code obsolete,
6337         for real this time.
6338         * stabsread.h: Make os9k sections of the code obsolete.
6339
6340 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6341
6342         * linux-low.c (regsets_store_inferior_registers): Add free()
6343         at the end of a loop to prevent memory leak.
6344         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6345         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6346         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6347         line a comment.
6348         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6349
6350 2002-07-17  Jim Blandy  <jimb@redhat.com>
6351
6352         * macrocmd.c (info_macro_command): Remove newline from error
6353         message.
6354
6355 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6356
6357         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6358         (sh_gdbarch_init): Use it for sh-dsp.
6359
6360 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6361
6362         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6363         64-bit DWARF2 format.
6364
6365 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6366
6367         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6368         <sys/proc.h> when not available.
6369
6370 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6371
6372         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6373         * stabsread.c: Make os9k sections of the code obsolete.
6374         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6375         * config/i386/i386os9k.mt: Make file obsolete.
6376         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6377         (COMMON_OBS): Remove os9kread.o
6378         (SFILES): Remove os9kread.c.
6379         (os9kread.o, remote-os9k.o): Make target obsolete.
6380         * remote-os9k.c: Make file obsolete.
6381         * os9kread.c: Make file obsolete.
6382         * Makefile.in
6383
6384 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6385
6386         * NEWS: Mention that the FR30 has been made obsolete.
6387         * fr30-tdep.c: Make file obsolete.
6388         * config/fr30/tm-fr30.h: Ditto.
6389         * config/fr30/fr30.mt: Ditto.
6390         * configure.tgt: Make fr30-*-elf obsolete.
6391         * MAINTAINERS: Make fr30-elf obsolete.
6392
6393 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6394
6395         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6396         found is not inside a section.
6397
6398 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6399
6400         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6401         strerror().
6402         (pdc_realloc): Use xrealloc() instead of realloc().
6403
6404 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6405
6406         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6407         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6408         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6409         macros.
6410
6411 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6412
6413         * aix-thread.c (ptrace_check): Eliminate goto.
6414         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6415         problem.
6416
6417 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6418
6419         * aix-thread.c (gdbcmd.h): Include.
6420         (DEBUG, DBG, DBG2, dbg): Eliminate.
6421         (debug_aix_thread): New static global.
6422         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6423         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6424         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6425         invocations to DBG and DBG2 macros to test against
6426         ``debug_aix_thread'' and call fprintf_unfiltered().
6427         (_initialize_aix_thread): Add new command "set debug aix-thread".
6428
6429 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6430
6431         From Gerhard Tonn <TON@de.ibm.com>:
6432         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6433         instead of supply_register.
6434
6435 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6436
6437         * dwarf2cfi.c: Include "gdb_assert.h".
6438         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6439         non-NULL.
6440         (update_context): Do not use __func__.  Add missing ``break''.
6441         (update_context): Do not use __func__.
6442
6443 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6444
6445         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6446         and its setting.  Set gdbarch instruction printing functions
6447         directly.  For non-rs6000 case use new function
6448         gdb_print_insn_powerpc.
6449         (gdb_print_insn_powerpc): New function.
6450
6451 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6452
6453         * NEWS: Mention that the d30v has been marked obsolete.
6454         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6455         * configure.tgt: Mark d30v-*-* as obsolete.
6456         * d30v-tdep.c: Mark file as obsolete.
6457         * config/d30v/d30v.mt: Ditto.
6458         * config/d30v/tm-d30v.h: Ditto.
6459
6460 2002-07-13  Aidan Skinner <aidan@velvet.net>
6461
6462         * ada-tasks.c (add_task_entry): replace calls to
6463         malloc() with xmalloc
6464         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6465         
6466         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6467         ada_finish_decode_line_1, all_sals_for_line
6468         ada_breakpoint_rewrite): replace calls to free() with xfree()
6469                 
6470 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6471
6472         From Nicholas Duffek (with minor changes by Martin Hunt, 
6473         Louis Hamilton, and Kevin Buettner):
6474         * aix-thread.c: New file.
6475
6476 2002-07-12  Petr Sorfa <petrs@caldera.com>
6477
6478         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6479         complaint for invalid attribute class or form.
6480         (read_func_scope): DW_AT_frame_base
6481         better handling of DW_AT_block*.
6482         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6483         better handling of DW_AT_block*.
6484         (read_common_block): DW_AT_location
6485         better handling of DW_AT_block*.
6486         (read_partial_die): DW_AT_location better handling
6487         of DW_AT_block*.
6488         (new_symbol): DW_AT_external better handling of
6489         DW_AT_block*. Proper initialization of variable
6490         "addr".
6491         (attr_form_is_block): New function that returns true
6492         if the attribute's form is of DW_FORM_block*.
6493
6494 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6495
6496         * valops.c (find_method_list): Remove comment about
6497         removed STATIC_MEMFUNCP argument.
6498         (value_find_oload_method_list): Likewise.
6499
6500 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6501
6502         From Nicholas Duffek:
6503         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6504         target_new_objfile_hook.
6505
6506 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6507
6508         From Nicholas Duffek:
6509         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6510         csect.
6511
6512 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6513
6514         * MAINTAINERS: Mention --enable-sim-build-warnings.
6515         (m68hc11-elf): Disable sim build warnings.
6516         (m32r-elf): Mark as broken obsolete candidate.
6517         (x86_64-linux-gnu): Mark as buildable with -Werror.
6518         (arm-elf): Change -w to ``,'' which enables warnings but not
6519         -Werror.
6520
6521 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6522
6523         * bcache.h: Update copyright.
6524         (struct bstring, struct bcache): Move definition to "bcache.c".
6525         Replaced by opaque declaration.
6526         (bcache_xfree): Replace free_bcache.
6527         (bcache_xmalloc, bcache_memory_used): Declare.
6528         
6529         * bcache.c: Update copyright.
6530         (struct bstring, struct bcache): Moved to here from "bcache.h".
6531         Update comments.
6532         (bcache_xmalloc, bcache_memory_used): New functions.
6533         (bcache_xfree): Replace function free_bcache.
6534         
6535         * Makefile.in (objfiles.o): Add $(bcache_h).
6536         (objfiles_h): Remove $(bcache_h).
6537         (symfile.o): Add $(bcache_h).
6538
6539         * symmisc.c: Update copyright.
6540         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6541         (print_objfile_statistics): Use bcache_memory_used.
6542
6543         * symfile.c: Include "bcache.h".
6544         (reread_symbols): Use bcache_xfree.
6545         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6546         (add_psymbol_to_list): Pass psymbol_cache by value.
6547         (add_psymbol_with_dem_name_to_list): Ditto.
6548
6549         * objfiles.h: Update copyright.
6550         (struct bcache): Declare opaque.  Do not include "bcache.h".
6551         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6552         bcache'' pointers.
6553         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6554
6555         * objfiles.c: Include "bcache.h".  Update copyright.
6556         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6557         macro_cache.
6558         (free_objfile): Use bcache_xfree.
6559
6560 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6561
6562         * monitor.c (monitor_fetch_register): Make name a constant.
6563         (monitor_store_register): Same.
6564
6565 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6566
6567         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6568         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6569         (finish_block) For non-function blocks, hash the symbol table.  For
6570         function blocks, mark the symbol table as unhashed.
6571         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6572         (msymbol_hash_iw): Likewise.
6573         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6574         value.
6575         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6576         (lookup_minimal_symbol): Likewise for both.
6577         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6578         hashtable.
6579         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6580         (ALL_BLOCK_SYMBOLS): Update.
6581         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6582         (struct symbol): Add `hash_next' pointer.
6583         * symtab.c (lookup_block_symbol): Search using the hash table when
6584         possible.
6585         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6586         (search_symbols, find_addr_symbol): Likewise.
6587
6588         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6589         (read_dst_symtab): Likewise.
6590         * jv-lang.c (get_java_class_symtab): Likewise.
6591         * mdebugread.c: Include "gdb_assert.h".
6592         (shrink_block): Assert that the block being modified is not hashed.
6593         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6594         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6595         symbols.
6596         (dump_symtab): Recognize hashed blocks.
6597         * printcmd.c (print_frame_args):  Assert that function blocks do not
6598         have hashed symbol tables.
6599         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6600         (fill_in_ada_prototype, debug_print_block): Likewise.
6601         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6602
6603 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6604
6605         * stack.c (print_frame): Use result of frame_address_in_block()
6606         instead of fi->pc when evaluating symbols.
6607         (backtrace_command_1): Ditto.
6608
6609 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6610
6611         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6612         Make static.
6613
6614         * arm-tdep.c (arm_register_name): Make return type constant.
6615
6616 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6617
6618         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6619         prototype.
6620         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6621         * s390-tdep.c (s390_fp_regnum): Ditto.
6622         (s390_read_fp): Ditto.
6623         (s390_pop_frame): Ditto.
6624         (_initialize_s390_tdep): Ditto.
6625         * remote.c (get_remote_state): Ditto.
6626         * procfs.c (mappingflags): Ditto.
6627         * memattr.c (_initialize_mem): Ditto.
6628         * mcore-tdep.c (mcore_pop_frame): Ditto.
6629         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6630         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6631         * language.c (set_case_str): Ditto.
6632         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6633         * frv-tdep.c (new_variant): Ditto.
6634         (frv_stopped_data_address): Ditto.
6635         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6636         (context_alloc): Ditto.
6637         (frame_state_alloc): Ditto.
6638         (unwind_tmp_obstack_init): Ditto.
6639         (unwind_tmp_obstack_free): Ditto.
6640         (cfi_read_fp): Ditto.
6641         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6642         (cris_pop_frame): Ditto.
6643         * c-lang.c (scanning_macro_expansion): Ditto.
6644         (finished_macro_expansion): Ditto.
6645         (c_preprocess_and_parse): Ditto.
6646         * gdbarch.sh: Ditto.
6647         * gdbarch.h, gdbarch.c: Regenerate.
6648         * config/mn10200/tm-mn10200.h: Adjust indentation.
6649         * target.c: Adjust indentation.
6650         * symtab.h: Adjust indentation.
6651         * stabsread.h: Adjust indentation.
6652         * remote-es.c: Adjust indentation.
6653         * os9kread.c: Adjust indentation.
6654
6655 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6656         
6657         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6658         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6659
6660 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6661         
6662         * NEWS: Mention m68k, mcore multi-arching.  
6663         * MAINTAINERS: Change status of m68k, mcore to reflect
6664         multi-arching.
6665
6666 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6667
6668         * valops.c (find_overload_match): Free oload_syms.
6669
6670 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6671
6672         Define HAVE_SYS_PROC_H if sys/proc.h exists
6673         * configure.in: Add check for sys/proc.h
6674         * config.in: Regenerate.
6675         * configure: Regenerate.
6676
6677 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6678
6679         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6680         #if !GDB_MULTI_ARCH. 
6681
6682 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6683
6684         * config.in, configure: Regenerate.
6685
6686 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6687
6688         * dwarf2cfi.c: Include "gcore.h".
6689         (execute_stack_op): Fix implementation of the
6690         DW_OP_deref and DW_OP_deref_size operators by letting do their
6691         lookup in the target.
6692
6693 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6694
6695         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6696         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6697         tdep->sc_sp_offset.
6698
6699 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6700
6701         Fix PR gdb/595, gdb/602
6702         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6703         Don't call value_cast, just read the vtable pointer; update comments
6704         to match.
6705
6706 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6707
6708         * config/mcore/tm-mcore.h: Remove file.
6709         * config/mcore/mcore.mt: Remove definition of TM_FILE
6710         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6711
6712 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6713
6714         * i386bsd-tdep.c: Include "gdb_string.h".
6715
6716 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6717
6718         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6719         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6720         mcore-tdep.
6721         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6722         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6723         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6724         (RETVAL_REGNUM): Move macros from tm-mcore.h
6725         (mcore_reg_struct_has_addr): New function.
6726         (mcore_gdbarch_init): Added initializations for the macros removed
6727         from tm-mcore.h.
6728
6729 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6730
6731         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6732         traditonal string branding within the ELF header.
6733
6734 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6735
6736         * symtab.c (remove_params): New function.
6737         (make_symbol_overload_list): Use it instead of cplus_demangle.
6738         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
6739
6740 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6741
6742         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6743
6744         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6745         New variables.
6746         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6747         and tdep->sigtramp_end.
6748         * i386obsd-nat.c: New file.
6749         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6750
6751         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6752         Don't call get_current_frame().
6753
6754 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6755
6756         * i386-nat.c (child_post_startup_inferior): New function
6757         calling i386_cleanup_dregs if
6758         I386_USE_GENERIC_WATCHPOINTS is defined.
6759         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6760         conditional to acknowledge that i386-nat.c has its
6761         own child_post_startup_inferior function.
6762
6763 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6764
6765         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6766         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6767         instead of MAX_REGISTER_RAW_SIZE.
6768         (i386_extract_return_value, i386_extract_struct_value_address):
6769         Convert to use regcache.
6770         (i386_gdbarch_init): Set max_register_raw_size and
6771         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6772         Set extract_return_value and extract_struct_value_address instead
6773         of their deprecated variants.
6774
6775         Convert i386 target to generic dummy frames.
6776         * i386-tdep.c: Include "symfile.h".
6777         (i386_frameless_signal_p): Consider a function to be frameless if
6778         the pc points at the first instruction of the function.
6779         (i386_frame_chain): Handle (generic) call dummies.
6780         (i386_frame_saved_pc): Likewise.
6781         (i386_frame_init_saved_regs): Remove code dealing with call
6782         dummies on the stack.
6783         (i386_push_dummy_frame): Removed.
6784         (i386_call_dummy_words): Removed.
6785         (i386_fix_call_dummy): Removed.
6786         (i386_push_return_address): New function.
6787         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
6788         parameter, and don't call get_current_frame.
6789         (i386_pop_frame): New function.
6790         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6791         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6792         entry_point_address, set call_dummy_breakpoint_offset to 0, set
6793         call_dummy_length to 0, set call_dummy_words to NULL, set
6794         sizeof_call_dummy_words to 0, set fix_call_dummy to
6795         generic_fix_call_dummy, set pc_in_call_dummy to
6796         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6797         generic_push_dummy_frame, set push_return_address to
6798         i386_push_return_address and set frame_chain_valid to
6799         generic_file_frame_chain_valid.
6800
6801 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6802
6803         * gdbarch.sh (struct regcache): Add opaque declaration.
6804         (EXTRACT_RETURN_VALUE): New architecture method.
6805         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6806         * gdbarch.h, gdbarch.c: Regenerate.
6807         * arch-utils.c (legacy_extract_return_value): New function.
6808         * arch-utils.h (legacy_extract_return_value): Declare.
6809         * values.c (value_being_returned): Re-enable code handling
6810         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
6811         deprecated_grub_regcache_for_registers call to block handling
6812         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6813         (EXTRACT_RETURN_VALUE): Do not define.
6814
6815 2002-07-03  Grace Sainsbury  <graces@redhat.com>
6816
6817         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6818         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6819         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6820         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6821         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6822         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6823         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6824         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6825         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6826         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6827         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6828         argument so the function fits the prototype in the architecture
6829         vector.
6830         (mcore_pop_frame): Remove argument so the function fits the
6831         prototype. Use get_current_frame instead of the argument.
6832         (mcore_push_arguments): Change type of struct_return so the
6833         function can be used in the architecture vector.
6834         (mcore_store_struct_return): Add.
6835         (mcore_frame_init_saved_regs): Add.
6836         (mcore_gdbarch_init): Add function calls to replace the macros
6837         removed from tm-mcore.h
6838
6839 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6840
6841         * infcmd.c (print_return_value): Remove compatibility code calling
6842         deprecated_grub_regcache_for_registers.
6843         
6844         * values.c: Include "regcache.h".
6845         (value_being_returned): Update.  Use
6846         deprecated_grub_regcache_for_registers to extract the register
6847         buffer address.  
6848         * value.h (value_being_returned): Change ``retbuf'' parameter to a
6849         ``struct regcache''.
6850         * Makefile.in (values.o): Add dependency on $(regcache_h).
6851
6852         * inferior.h (run_stack_dummy): Change type of second parameter to
6853         a ``struct regcache''.
6854         * valops.c (hand_function_call): Change type of retbuf to ``struct
6855         regcache''.  Allocate using regcache_xmalloc, clean using
6856         make_cleanup_regcache_xfree.
6857         * infcmd.c (run_stack_dummy): Update.  Use
6858         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6859
6860         * regcache.c (do_regcache_xfree): New function.
6861         (make_cleanup_regcache_xfree): New function.
6862         * regcache.h (make_cleanup_regcache_xfree): Declare.
6863
6864 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6865
6866         * event-top.c (command_line_handler): Don't read past
6867         beginning of buffer.
6868
6869 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6870         
6871         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
6872         struct frame_id. 
6873         (varobj_create): Store frame_id for root.
6874         (varobj_gen_name): Use xasprintf.
6875         (varobj_update): Save and restore frame using get_frame_id() and
6876         frame_find_by_id().
6877         (create_child): Use xasprintf.
6878         (new_root_variable): Initialize frame_id.
6879         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6880         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6881         to prevent memory leak.
6882
6883 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
6884
6885         * valops.c (hand_function_call): Move declaration of retbuf to
6886         start of function, allocate using malloc, add a cleanup but before
6887         the inf_status cleanup, cleanup the buffer.  Rename local variable
6888         old_chain to inf_status_cleanup.
6889
6890 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
6891
6892         * top.c (execute_command): Use cmd_func() and cmd_func_p().
6893
6894         * cli/cli-decode.c (cmd_func_p): New function.
6895         (cmd_func): New function.
6896
6897         * command.h: Add cmd_func() and cmd_func_p().   
6898         
6899 2002-07-03  Grace Sainsbury  <graces@redhat.com>
6900
6901         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6902         (REGISTER_SIZE): Remove.
6903         (MAX_REGISTER_RAW_SIZE): Remove.
6904         (REGISTER_VIRTUAL_TYPE): Remove.
6905         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6906         (REGISTER_NAME): Remove.
6907         (USE_GENERIC_DUMMY_FRAMES): Remove.
6908         (CALL_DUMMY): Remove.
6909         (CALL_DUMMY_START_OFFSET): Remove.
6910         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6911         (CALL_DUMMY_LOCATION): Remove.
6912         (FIX_CALL_DUMMY): Remove.
6913         (CALL_DUMMY_ADDRESS): Remove.
6914         (SIZEOF_CALL_DUMMY_WORDS): Remove.
6915         (SAVE_DUMMY_FRAME_TOS): Remove.
6916         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6917         (mcore_register_virtual_type): New function.
6918         (mcore_register_byte): New function.
6919         (mcore_register_size): New function.
6920         (mcore_register_name): New function.
6921         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6922         macros removed from tm-mcore.h.
6923         (mcore_dump_tdep): Add.
6924         (_initialize_mcore_tdep): Add gdbarch_register call.
6925
6926 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
6927
6928         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6929         frameless_look_for_prologue, such that we actually call this
6930         function.
6931
6932 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
6933
6934         * frame.h (frame_address_in_block): New function.
6935
6936         * blockframe.c (frame_address_in_block): New function extracted
6937         from get_frame_block().
6938         (get_frame_block): Use frame_address_in_block().
6939         (block_innermost_frame): Use frame_address_in_block() to match
6940         the frame pc address against the block boundaries rather than
6941         the frame pc directly. This prevents a failure when a frame pc
6942         is actually a return-address pointing immediately after the end
6943         of the given block. 
6944
6945 2002-07-02  Grace Sainsbury  <graces@redhat.com>
6946
6947         * MAINTAINERS: Add self under write after approval. 
6948
6949 2002-07-02  Grace Sainsbury  <graces@redhat.com>
6950
6951         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6952         used in architecture vector. The default is
6953         m68k_local_breakpoint_from_pc.
6954         (m68k_local_breakpoint_from_pc): Add.
6955         (enum): Add register numbers from tm-m68k.h.
6956         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6957         vector.  
6958         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6959         GDB_MULTI_ARCH_PARTIAL.
6960         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6961         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6962         m68k-tdep.c.
6963         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6964         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6965         to enum in m68k-tdep.c
6966
6967 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
6968
6969         * solib-osf.c (open_map): Compute the list of shared libraries
6970         loaded by the inferior, rather than the list of libraries loaded
6971         by GDB itself.  Otherwise, GDB ends up reading the symbols from
6972         the wrong shared libraries...
6973
6974 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
6975
6976         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6977         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6978         macros.
6979         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6980         Remove functions.
6981         (FRAMELESS_SIGNAL): Remove function.
6982         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6983         i386_linux_saved_pc_after_call): Removed.
6984         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6985         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
6986         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6987
6988         * i386-tdep.c (i386_frameless_signal_p): New function.
6989         (i386_frame_chain): Deal with frameless signals.
6990         (i386_sigtramp_saved_sp): New function.
6991         (i386_frame_saved_pc): Deal with frameless signals.
6992         (i386_saved_pc_after_call): Make sure the correct value is
6993         returned just after entry into a sigtramp.
6994         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6995         i386fbsd4_sc_sp_offset): New variables.
6996         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6997         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
6998         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6999         similiar to what we already did for sc_pc_offset.
7000         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7001         tdep->sc_sp_offset.
7002
7003         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7004
7005 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7006
7007         * config/i386/tm-x86-64linux.h: New.
7008         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7009         definitions.
7010         * config/i386/nm-x86-64.h: Rename to ...
7011         * config/i386/nm-x86-64linux.h: ... this one.
7012         * config/i386/x86-64linux.mh: Reflect the above change.
7013         
7014 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7015
7016         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7017         with sigcontext_addr.  Add sc_sp_offset.
7018         (i386bsd_sigtramp_saved_pc): Remove prototype.
7019         (i386bsd_sicontext_addr): Add prototype.
7020         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7021         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7022         (i386_svr4_sigtramp_saved_pc): Removed.
7023         (i386_svr4_sigcontext_addr): New function.
7024         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7025         Initialize tdep->sigcontext_addr instead.  Initialize
7026         tdep->sc_pc_offset and tdep->sc_sp_offset.
7027         (i386_gdbarch_init): Likewise.
7028         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7029         any more.
7030         (i386bsd_sigtramp_saved_pc): Remove function.
7031         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7032         Initialize tdep->sigcontext_addr instead.  Initialize
7033         tdep->sc_pc_offset.
7034         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7035         of tdep->sigtramp_saved_pc.
7036         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7037         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7038         instead.
7039
7040         * i386-tdep.c (i386_frameless_function_invocation,
7041         i386_frame_num_args, i386_frame_init_saved_regs,
7042         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7043         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7044         i386_extract_return_value, i386_store_return_value,
7045         i386_extract_struct_value_address, i386_register_virtual_type,
7046         i386_register_convertible, i386_register_convert_to_virtual,
7047         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7048         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7049         static.
7050
7051 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7052
7053         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7054
7055         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7056         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7057         this macro.  Include "value.h".
7058
7059 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7060
7061         * ada-exp.tab.c: remove as it's a generated file
7062         * ada-lex.c: remove as it's a generated file
7063                 
7064 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7065
7066         * config/i386/tm-i386.h (struct frame_info, struct
7067         frame_saved_regs, struct value, struct type): Remove forward
7068         declarations.
7069
7070         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7071         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7072         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7073         (FILL_FPXREGSET): Define.
7074
7075         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7076
7077         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7078         i[3456]86-*-netbsd* case.
7079         * config/i386/tm-obsd.h: Removed.
7080         * config/i386/obsd.mt: Removed.
7081         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7082         core-aout.o.
7083         (MH_CFLAGS): Add -DYYDEBUG=0.
7084
7085         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7086         i386nbsd_sc_pc_offset on OpenBSD too.
7087
7088         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7089         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7090         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7091         define.
7092         * i386bsd-tdep.c: Include "arch-utils.h".
7093         (i386bsd_aout_in_solib_call_trampoline): New function.
7094         (i386bsd_init_abi): Set in_solib_call_trampoline to
7095         i386bsd_aout_in_solib_call_trampoline.
7096         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7097         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7098
7099 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7100
7101         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7102         (struct obstack, struct bcache): Add opaque declarations.
7103         * Makefile.in (macrotab_h): Update
7104
7105 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7106
7107         * blockframe.c (generic_find_dummy_frame): Change return type to
7108         ``struct regcache''.
7109         (struct dummy_frame): Replace field ``registers'' with regcache, a
7110         struct regcache object.
7111         (generic_find_dummy_frame): Update.
7112         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7113         regcache_xmalloc and regcache_cpy.
7114         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7115         regcache_xfree.
7116         (deprecated_generic_find_dummy_frame): Update.
7117         (generic_read_register_dummy): Update.  Use
7118         regcache_read_as_address.
7119         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7120         (generic_get_saved_register): Update.  Use regcache_read.
7121
7122 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7123
7124         * Makefile.in (objfiles_h): Add $(bcache_h).
7125         * objfiles.h: Include "bcache.h".
7126
7127         * Makefile.in (symtab_h): Remove $(bcache_h).
7128         * symtab.h: Do not include "bcache.h".
7129
7130 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7131
7132         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7133         generic_func_frame_chain_valid.
7134
7135 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7136
7137         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7138         * config/i386/tm-fbsd.h: Likewise.
7139
7140 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7141
7142         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7143         generic_unwind_get_saved_register.
7144
7145 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7146
7147         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7148         * regcache.c (supply_register): Add missing argument to
7149         register_buffer call.
7150
7151 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7152
7153         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7154         Solaris /bin/grep does not not like it.  From Peter Schauer.
7155
7156 2002-06-26  Tom Tromey  <tromey@redhat.com>
7157
7158         * command.h (add_setshow_cmd): Declare.
7159         (add_setshow_cmd_full): Declare.
7160         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7161         returns void.  Use add_setshow_cmd_full.
7162         (add_setshow_cmd_full): New function.
7163         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7164         (add_setshow_boolean_cmd): Likewise.
7165
7166 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7167
7168         * config/vax/tm-vax.h: Protect from multiple inclusion.
7169         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7170         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7171         * config/vax/tm-vaxbsd.h: ...here.  New file.
7172         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7173
7174 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7175
7176         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7177         (BELIEVE_PCC_PROMOTION): Remove.
7178         (AP_REGNUM): Move to...
7179         * config/vax/nm-vax.h: ...here.
7180         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7181         (vax_breakpoint_from_pc): New function.
7182         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7183         and gdbarch_believe_pcc_promotion.
7184
7185 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7186
7187         * Makefile.in (vax_tdep_h): Define.  
7188         (vax-tdep.o): Use $(vax_tdep_h).
7189         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7190         (vax_dump_tdep): New function. 
7191         (_initialize_vax_tdep): Register vax_dump_tdep.
7192         * vax-tdep.h: Include osabi.h.     
7193         (struct gdbarch_tdep): New. 
7194
7195 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7196
7197         * frame.h (deprecated_generic_find_dummy_frame): Rename
7198         generic_find_dummy_frame.
7199         * blockframe.c (generic_find_dummy_frame): Make static.
7200         (deprecated_generic_find_dummy_frame): New function.
7201         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7202         generic_find_dummy_frame with deprecated_find_dummy_frame.
7203         (sh64_nofp_frame_init_saved_regs): Ditto.
7204         (sh_fp_frame_init_saved_regs): Ditto.
7205         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7206         (s390_frame_chain): Ditto.
7207         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7208
7209 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7210
7211         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7212         gdbarch vector are at the top.
7213         (NUM_REGS): Remove.
7214         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7215         (FRAME_ARGS_ADDRESS): Remove.
7216         (FRAME_LOCALS_ADDRESS): Remove.
7217         (FRAME_NUM_ARGS): Remove.
7218         (FRAME_ARGS_SKIP): Remove.  
7219         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7220         (m68k_gdbarch_init): Add gdbarch initializations for macros
7221         undefined in tm-m68k.h
7222
7223 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7224
7225         * monitor.h: Add the function regname to monitor_ops
7226         structure. This way NUM_REGS does not have to be a constant.
7227         * monitor.c (monitor_fetch_register): Added support for regname
7228         function. The function is called if the array regnames is NULL.
7229         (monitor_store_register): Same.
7230         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7231         regnames array.
7232         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7233         cpu32bug_cmds.regname to point to new function.
7234         * abug-rom.c (abug_regname): Same as above.
7235         (init_abug_cmds): Same.
7236         * dbug-rom.c (dbug_regname): Same as above.
7237         (init_dbug_cmds): Same.
7238         * remote-est.c (est_regname): Same. 
7239         (init_est_cmds): Same.
7240         * rom68k-rom.c (rom68k_regname): Same. 
7241         (init_rom68k_cmds): Same.
7242
7243 2002-06-25  Tom Tromey  <tromey@redhat.com>
7244
7245         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7246
7247 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7248
7249         * infrun.c (stop_registers): Change variable's type to ``struct
7250         regcache'''.
7251         (xmalloc_inferior_status): Delete function.
7252         (free_inferior_status): Delete function.
7253         (normal_stop): Use regcache_cpy.
7254         (struct inferior_status): Change type of fields ``stop_registers''
7255         and ``registers'' to ``struct regcache''.
7256         (write_inferior_status_register): Use regcache_write.
7257         (save_inferior_status): Instead of calling
7258         xmalloc_inferior_status, allocate the inf_status buffer directly.
7259         Use regcache_dup_no_passthrough and regcache_dup to save the
7260         buffers.
7261         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7262         Replace the stop_registers regcache instead of overriding it.  Use
7263         regcache_xfree.  Instead of calling free_inferior_status, xfree
7264         the buffer directly.
7265         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7266         free_inferior_status, xfree the buffer directly.
7267         (build_infrun): Use regcache_xmalloc.
7268         (_initialize_infrun): Delete redundant call to build_infrun.
7269
7270         * Makefile.in (infcmd.o): Add $(regcache_h).
7271
7272         * infcmd.c: Include "regcache.h".
7273         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7274         obtain the address of `stop_registers' register buffer.
7275         (print_return_value): Ditto.
7276
7277         * inferior.h (struct regcache): Add opaque declaration.
7278         (stop_registers): Change variable's declared type to ``struct
7279         regcache''.
7280
7281 2002-06-24  Tom Tromey  <tromey@redhat.com>
7282
7283         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7284         * target.c (initialize_targets): Fixed typo in
7285         trust-readonly-sections `show' documentation.
7286
7287         * main.c: Marked all strings with _().
7288
7289 2002-06-24  Don Howard  <dhoward@redhat.com>
7290
7291         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7292         that means max CORE_ADDR+1.
7293         (lookup_mem_region): Ditto.
7294         (mem_info_command): Ditto.
7295
7296 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7297
7298         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7299         (REGISTER_BYTES_OK): Remove.
7300         (REGISTER_BYTES): Remove.
7301         (STORE_STRUCT_RETURN): Remove.
7302         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7303         (STORE_RETURN_VALUE): Remove.
7304         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7305         (FRAME_CHAIN): Remove.
7306         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7307         (FRAME_SAVED_PC): Remove.  
7308         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7309         (m68k_store_struct_return): Add.
7310         (m68k_deprecated_extract_return_value): Add.
7311         (m68k_deprecated_extract_struct_value_address): Add.
7312         (m68k_store_return_value): Add.
7313         (m68k_frame_chain): Add.
7314         (m68k_frameless_function_invocation): Add.
7315         (m68k_frame_saved_pc): Add.
7316         (m68k_gdbarch_init): added set_gdbarch calls for new 
7317         functions and deleted macros.
7318
7319 2002-06-23  Tom Tromey  <tromey@redhat.com>
7320
7321         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7322         (ALLDEPFILES): Likewise.
7323         (udiheaders): Removed.
7324         (udip2soc.o): Likewise.
7325         (udi2go32.o): Likewise.
7326         (udr.o): Likewise.
7327         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7328
7329 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7330
7331         * infrun.c (_initialize_infrun): Delete unnecessary call to
7332         build_infrun.
7333
7334         * regcache.h: Update comments describing the regcache_cpy family
7335         of functions.
7336         (regcache_save, regcache_restore): Delete declaration.
7337         (regcache_save_no_passthrough): Delete declaration.
7338         (regcache_restore_no_passthrough): Delete declaration.
7339         * regcache.c (regcache_save): Delete function.
7340         (regcache_save_no_passthrough): Delete function.
7341         (regcache_restore): Delete function.
7342         (regcache_restore_no_passthrough): Delete function.
7343
7344 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7345
7346         * config/m68k/tm-m68k.h: Fix typo.
7347         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7348         (m68k_frame_init_saved_regs): Declare.
7349
7350 2002-06-21  Jim Blandy  <jimb@redhat.com>
7351
7352         Remove some vestiges of Harris 88k support.
7353         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7354         register numbering quirk.
7355         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7356         odd symbols occurring in Harris 88k ELF targets.
7357
7358 2002-06-21  Tom Tromey  <tromey@redhat.com>
7359
7360         * gdb_locale.h: New file.
7361         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7362         (defs_h): Added gdb_locale.h.
7363         * configure, config.in: Rebuilt.
7364         * configure.in (PACKAGE): Define.
7365         * defs.h: Include gdb_locale.h.
7366         * main.c (captured_main): Call setlocale, bindtextdomain,
7367         textdomain.
7368
7369 2002-06-21  Dave Brolley  <brolley@redhat.com>
7370
7371         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7372         * config/frv/frv.mt: New file.
7373         * config/frv/tm-frv.h: New file.
7374         * configure.tgt: Support frv-*-*.
7375         * Makefile.in (frv-tdep.o): New target.
7376         * frv-tdep.c: New file.
7377         * NEWS: Mention frv.
7378
7379 2002-06-21  Dave Brolley  <brolley@redhat.com>
7380
7381         * MAINTAINERS: Add self to "Write After Approval" list.
7382
7383 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7384
7385         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7386         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7387         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7388         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7389         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7390
7391         * m68k-tdep.c: Include arch-utils.h
7392         (m68k_register_raw_size): Add.
7393         (m68k_register_virtual_size): Add.
7394         (m68k_register_virtual_type): Add.
7395         (m68k_register_name): Add.
7396         (m68k_stack_align): Add.
7397         (m68k_register_byte): Add.
7398         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7399         tm-m68k.h.
7400
7401 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7402
7403         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7404         m68k_find_saved_regs.
7405         (m68k_pop_frame): Removed saved_regs structure, and replaced
7406         references to it with frame->saved_regs.
7407         (m68k_gdbarch_init): Added function calls to initialize the
7408         gdbarch structure.
7409         (m68k_fix_call_dummy): Add. 
7410         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7411         (CALL_DUMMY): Remove.
7412         (CALL_DUMMY_LENGTH): Remove.
7413         (CALL_DUMMY_START_OFFSET): Remove.
7414         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7415         (FIX_CALL_DUMMY): Remove.
7416         (PUSH_DUMMY_FRAME): Remove.
7417         (POP_FRAME): Remove.
7418
7419 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7420
7421         * parse.c (parse_fprintf): New function used to avoid calls to
7422         fprintf in bison parser generated debug code.
7423         * parser-defs.h: Declaration of new parse_fprintf function.
7424         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7425         Set YYDEBUG to 1 by default.
7426         Set YYFPRINTF as parse_fprintf.
7427
7428 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7429
7430         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7431         encoding anymore.
7432         (pointer_encoding, enum ptr_encoding): New.
7433         (execute_cfa_program): Take care about pointer encoding.        
7434         (dwarf2_build_frame_info): Only call parse_frame_info for 
7435         .debug_frame and .eh_frame.
7436         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7437         fixed augmentation handling, added relative addressing, 
7438         ignore duplicate FDEs. Added comments.
7439         * dwarf2cfi.c: Reindented.
7440         
7441 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7442
7443         * event-top.c (command_handler): Don't use space_at_cmd_start
7444         unless there is sbrk() on the host. Assign time and space data
7445         to union fields of the appropriate length.
7446
7447 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7448
7449         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7450         x86_64_register_name. Return type changed to 'const char *'.
7451         (x86_64_register_name2nr): Rename to x86_64_register_number.
7452         (x86_64_gdbarch_init): Update to reflect the change.
7453         * x86-64-tdep.h: Ditto.
7454         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7455         (supply_fpregset): Ditto.
7456
7457 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7458
7459         * regcache.h: Update copyright.
7460         (struct regcache, struct gdbarch): Add opaque declarations.
7461         (current_regcache): Declare global variable.
7462         (regcache_read, regcache_write): Add gdbarch parameter.
7463         (regcache_save, regcache_save_no_passthrough)
7464         (regcache_restore, regcache_restore_no_passthrough)
7465         (regcache_dup, regcache_dup_no_passthrough)
7466         (regcache_cpy, regcache_cpy_no_passthrough)
7467         (deprecated_grub_regcache_for_registers)
7468         (deprecated_grub_regcache_for_register_valid)
7469         (regcache_valid_p): Add function declarations.
7470         
7471         * regcache.c: Update copyright.
7472         (regcache_descr_handle): New global variable.
7473         (struct regcache_descr): Define.
7474         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7475         (regcache_descr, xfree_regcache_descr): New functions.
7476         (struct regcache): Define.
7477         (regcache_xmalloc, regcache_xfree): New functions.
7478         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7479         (regcache_dup, regcache_dup_no_passthrough): New functions.
7480         (regcache_valid_p, regcache_read_as_address): New functions.
7481         (deprecated_grub_regcache_for_registers): New function.
7482         (deprecated_grub_regcache_for_register_valid): New function.
7483         (current_regcache): New global variable.
7484         (register_buffer): Add regcache parameter.  Update calls.
7485         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7486         (read_register_gen, write_register_gen): Update register_buffer
7487         call.  Test for legacy_p instead of gdbarch_register_read_p or
7488         gdbarch_register_write_p.
7489         (regcache_collect): Update register_buffer call.
7490         (build_regcache): Rewrite.  Use deprecated grub functions.
7491         (regcache_save, regcache_save_no_passthrough): New functions.
7492         (regcache_restore, regcache_restore_no_passthrough): New
7493         functions.
7494         (_initialize_regcache): Create the regcache_data_handle. Swap
7495         current_regcache global variable.
7496         
7497         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7498         parameter to regcache_read and regcache_write calls.
7499         (sh4_register_read): Ditto.
7500         (sh64_pseudo_register_read): Ditto.
7501         (sh64_register_read): Ditto.
7502         (sh_pseudo_register_write): Ditto.
7503         (sh4_register_write): Ditto.
7504         (sh64_pseudo_register_write): Ditto.
7505         (sh64_register_write): Ditto.
7506
7507         * defs.h (XCALLOC): Define.
7508
7509 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7510
7511         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7512         * m68k-tdep.c (m68k_gdbarch_init): Added.
7513         (m68k_dump_tdep): Added.
7514
7515 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7516
7517         * ada-lang.c (fill_in_ada_prototype): Update comment.
7518
7519 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7520
7521         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7522         MIPS_ABI_LAST.
7523         (mips_abi_string, mips_abi_strings): New.
7524         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7525         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7526         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7527         O32 if no ABI is found.
7528         (mips_dump_tdep): Use mips_abi_strings.
7529         (mips_abi_update): New function.
7530         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7531         ``set mips abi'' and ``show mips abi''.  Check the size of
7532         mips_abi_strings.
7533
7534 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7535
7536         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7537         constant.
7538
7539 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7540
7541         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7542         current frame using only the first stack size adjustment. All
7543         subsequent size adjustments are not considered to be part of
7544         the "static" part of the current frame.
7545         Compute the address of the saved registers relative to the
7546         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7547         in use in this frame.
7548
7549 2002-06-18  Don Howard  <dhoward@redhat.com>
7550  
7551         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7552         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7553         suggesting this solution.
7554
7555 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7556
7557         * config/romp/xm-rtbsd.h: Delete file.
7558         * config/romp/rtbsd.mh: Delete file.
7559
7560 2002-06-18  Keith Seitz  <keiths@redhat.com>
7561
7562         * breakpoint.c (condition_command): Post breakpoint_modify
7563         when a condition is added to an existing breakpoint.
7564         (commands_command): Likewise for commands.
7565         (set_ignore_count): Likewise for ignore counts.
7566         If no tty, do not simply return, still need to send event
7567         notification.
7568         (ignore_command): Only print a newline if the command came
7569         from a tty.
7570         Don't call breakpoints_changed, since this is now properly
7571         handled by set_ignore_count.
7572
7573 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7574
7575         * MAINTAINERS: Note that cris-elf target can be compiled with
7576         -Werror.
7577         * cris-tdep.c (cris_register_name): Make return type constant.
7578         (cris_breakpoint_from_pc): Ditto.
7579
7580 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7581
7582         * frame.h (struct frame_info): Change type of context to 
7583         'struct context'.
7584
7585 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7586
7587         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7588         pointer.
7589         * gdbarch.h, gdbarch.c: Regenerate.
7590         * config/mips/tm-mips.h (mips_register_name): Update.
7591         * i386-tdep.h (i386_register_name): Update.
7592         * mips-tdep.c (mips_register_name): Update
7593         * alpha-tdep.c (alpha_register_name): Update.
7594         * arch-utils.c (legacy_register_name): Update.
7595         * arch-utils.h (legacy_register_name): Update.
7596         * avr-tdep.c (avr_register_name): Update.
7597         * ia64-tdep.c (ia64_register_name): Update.
7598         * i386-tdep.c (i386_register_name): Update.
7599         * sparc-tdep.c (sparc32_register_name): Update.
7600         (sparc64_register_name): Update.
7601         (sparclite_register_name): Update.
7602         (sparclet_register_name): Update.
7603         * sh-tdep.c (sh_generic_register_name): Update.
7604         (sh_sh_register_name): Update.
7605         (sh_sh3_register_name): Update.
7606         (sh_sh3e_register_name): Update.
7607         (sh_sh_dsp_register_name): Update.
7608         (sh_sh3_dsp_register_name): Update.
7609         (sh_sh4_register_name): Update.
7610         (sh_sh64_register_name): Update.
7611         * s390-tdep.c (s390_register_name): Update.
7612         * rs6000-tdep.c (rs6000_register_name): Update.
7613         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7614         (ns32k_register_name_32382): Update.
7615         * d10v-tdep.c (d10v_ts2_register_name): Update.
7616         (d10v_ts3_register_name): Update.
7617         * xstormy16-tdep.c (xstormy16_register_name): Update.
7618         * vax-tdep.c (vax_register_name): Update.
7619         * v850-tdep.c (v850_register_name): Update.
7620         * m68hc11-tdep.c (m68hc11_register_name): Update.
7621         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7622         (am33_register_name): Update.
7623
7624 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7625
7626         * m68k-tdep.c: Reindented.
7627
7628 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7629
7630         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7631         list of predefined types.
7632
7633 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7634
7635         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7636         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7637         REGISTER_CONVERT_TO_RAW): Remove defines.
7638         (i386_register_virtual_type, i386_register_convertible,
7639         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7640         Remove prototypes.
7641         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7642         macros mentioned above.
7643
7644         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7645         (i386lynx_saved_pc_after_call): Remove prototype.
7646         * i386ly-tdep.c: Include "i386-tdep.h".
7647         (i386lynx_saved_pc_after_call): Make static.  Use
7648         read_memory_nobpt instead of read_memory.  Use
7649         read_memory_unsigned_integer instead of read_memory_integer.
7650         (i386lynx_init_abi): New function.
7651         (i386lynx_coff_osabi_sniffer): New function.
7652         (_initialize_i386bsd_tdep): New function.
7653
7654         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7655         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7656         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7657         (i386_fix_call_dummy): Remove prototype.
7658         * i386-tdep.c (i386_call_dummy_words): New variable.
7659         (i386_gdbarch_init): Adjust for removal of the
7660         macros mentioned above.
7661
7662 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7663
7664         * command.h (add_setshow_auto_boolean_cmd): Replace
7665         add_set_auto_boolean_cmd.
7666         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7667         add_set_auto_boolean_cmd.
7668         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7669         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7670         mask-address'' command.
7671         (show_mask_address): Add cmd parameter.
7672         * remote.c (add_packet_config_cmd): Update.  Change type of
7673         set_func and show_func to cmd_sfunc_ftype.
7674         (_initialize_remote): Update `set remote Z-packet'
7675         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7676         (show_remote_protocol_e_packet_cmd): Ditto.
7677         (show_remote_protocol_E_packet_cmd): Ditto.
7678         (show_remote_protocol_P_packet_cmd): Ditto.
7679         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7680         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7681         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7682         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7683         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7684         (show_remote_protocol_Z_packet_cmd): Ditto.
7685         (show_remote_protocol_binary_download_cmd): Ditto.
7686         (show_remote_cmd): Pass NULL to all of above.
7687
7688 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7689
7690         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7691         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7692         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7693         POP_FRAME): Remove defines.
7694         (i386_push_arguments, i386_store_struct_return,
7695         i386_extract_return_value, i386_store_return_value,
7696         i386_extract_struct_value_address, i386_push_dummy_frame,
7697         i386_pop_frame): Renove prototypes.
7698         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7699         macros mentioned above.
7700
7701 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7702
7703         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7704         add_set_boolean_cmd.
7705         (add_setshow_cmd): New function.
7706         * command.h (add_setshow_boolean_cmd): Replace
7707         add_set_boolean_cmd.
7708         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7709         and ``set rdiromatzero''.
7710         * maint.c (_initialize_maint_cmds): Update commented out code.
7711         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7712         * target.c (initialize_targets): Update `set
7713         trust-readonly-sections'.
7714         * remote.c (_initialize_remote): Update `set remotebreak'.
7715
7716 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7717
7718         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7719         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7720         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7721         fit into multi-arch framework.
7722         (i386_breakpoint_from_pc): New function.
7723         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7724         above.
7725
7726         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7727         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7728         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7729         (i386_frameless_function_invocation, i386_frame_num_args,
7730         i386_frame_init_saved_regs): Remove prototypes.
7731         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7732         macros mentioned above.
7733
7734 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7735
7736         * cli/cli-decode.c (set_cmd_cfunc): Update.
7737         (set_cmd_sfunc): Update.
7738         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7739         (set_cmd_sfunc, set_cmd_cfunc): Update.
7740         * cli/cli-decode.h: Update.
7741
7742 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7743
7744         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7745         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7746
7747 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7748
7749         * defs.h (auto_boolean): Declare enum.
7750         * command.h (cmd_auto_boolean): Delete enum.
7751         * mips-tdep.c (mask_address_var): Update.
7752         (mips_mask_address_p): Update.
7753         (show_mask_address): Update.
7754         * remote.c (struct packet_config): Update.
7755         (update_packet_config): Update.
7756         (show_packet_config_cmd): Update.
7757         (packet_ok): Update.
7758         (add_packet_config_cmd): Update.
7759         (_initialize_remote): 
7760         * command.h: Update.
7761         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7762         (do_setshow_command): Update.
7763         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7764         * cli/cli-decode.h: Update.
7765
7766 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7767
7768         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7769         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7770         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7771         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7772         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7773         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7774
7775         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7776         list of DJGPP COFF targets.
7777
7778         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7779         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7780         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7781         (FP0_REGNUM): Remove define.
7782         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7783         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7784         (i386_register_virtual_size): Remove protoype.
7785         * i386-tdep.c (i386_register_virtual_size): Removed.
7786         (i386_extract_return_value, i386_store_return_value): Use
7787         FP0_REGNUM instead of NUM_FREGS to determine whether the
7788         floating-point registers are available.
7789         (i386_gdbarch_init): Tweak FIXME about FPU registers.
7790         Adjust for removal of macros mentioned above.
7791
7792 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7793
7794         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
7795         comments.
7796         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7797         Remove prototypes.
7798         (supply_gregset, fill_gregset): Remove use of register keyword and
7799         remove declaration for regmap.  Use I386_NUM_GREGS instead of
7800         NUM_REGS and NUM_FREGS.
7801         (FPREGSET_FSAVE_OFFSET): Remove.
7802         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7803         NUM_FREGS to determine whether the floating-point registers are
7804         available.
7805
7806         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7807         gnu_store_registers): Replace usage of NUM_GREGS with
7808         I386_NUM_GREGS.
7809
7810         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7811         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7812         usage of NUM_GREGS with I386_NUM_GREGS.
7813
7814         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7815
7816         * i386bsd-nat.c: Include "i386-tdep.h".
7817         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7818         I386_NUM_GREGS.
7819
7820         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7821         and associated comment.  They no longer make any sense, since we
7822         don't use this file anymore on Linux.
7823
7824         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7825         * i386-tdep.c (i386_register_offset, i386_register_size): Use
7826         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7827         elements in these arrays.
7828         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7829         MAX_NUM_REGS.
7830
7831 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7832
7833         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7834         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7835
7836 2002-06-14  Andrew Cagney  <cagney@redhat.com>
7837
7838         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7839         EXTRACT_RETURN_VALUE.
7840         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7841         EXTRACT_STRUCT_VALUE_ADDRESS.
7842         * gdbarch.h, gdbarch.c: Regenerate.
7843         
7844         * values.c (value_being_returned): Handle
7845         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7846         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7847
7848         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
7849         * arm-tdep.c (arm_gdbarch_init): Update.
7850         * avr-tdep.c (avr_gdbarch_init): Update.
7851         * cris-tdep.c (cris_gdbarch_init): Update.
7852         * d10v-tdep.c (d10v_gdbarch_init): Update.
7853         * ia64-tdep.c (ia64_gdbarch_init): Update.
7854         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7855         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7856         * s390-tdep.c (s390_gdbarch_init): Update.
7857         * sh-tdep.c (sh_gdbarch_init): Update.
7858         * s390-tdep.c (s390_gdbarch_init): Update.
7859         * sparc-tdep.c (sparc_gdbarch_init): Update.
7860         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7861         * v850-tdep.c (v850_gdbarch_init): Update.
7862         * vax-tdep.c (vax_gdbarch_init): Update.
7863         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7864         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7865
7866         * config/arc/tm-arc.h: Update.
7867         * config/d30v/tm-d30v.h: Update.
7868         * config/fr30/tm-fr30.h: Update.
7869         * config/h8300/tm-h8300.h: Update.
7870         * config/h8500/tm-h8500.h: Update.
7871         * config/i386/tm-i386.h: Update.
7872         * config/i386/tm-ptx.h: Update.
7873         * config/i386/tm-symmetry.h: Update.
7874         * config/i960/tm-i960.h: Update.
7875         * config/m32r/tm-m32r.h: Update.
7876         * config/m68k/tm-delta68.h: Update.
7877         * config/m68k/tm-linux.h: Update.
7878         * config/m68k/tm-m68k.h: Update.
7879         * config/m88k/tm-m88k.h: Update.
7880         * config/mcore/tm-mcore.h: Update.
7881         * config/mips/tm-mips.h: Update.
7882         * config/mn10200/tm-mn10200.h: Update.
7883         * config/pa/tm-hppa.h: Update.
7884         * config/pa/tm-hppa64.h: Update.
7885         * config/sparc/tm-sp64.h: Update.
7886         * config/sparc/tm-sparc.h: Update.
7887         * config/sparc/tm-sparclet.h: Update.
7888         * config/z8k/tm-z8k.h: Update.
7889
7890 2002-06-14  Andrew Cagney  <cagney@redhat.com>
7891
7892         * Makefile.in (i386_linux_tdep_h): Define.
7893         (i386_tdep_h, i387_tdep_h): Define.
7894         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7895         $(i386_tdep_h) and $(i387_tdep_h).
7896         * i386-linux-nat.c: Include "i386-linux-tdep.h".
7897
7898 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
7899
7900         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7901         Already covered by the default.
7902
7903         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7904         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
7905         (i386_gdbarch_init): Initialize long_double_format and long_double
7906         bit.
7907
7908         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7909         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
7910         Move these to ...
7911         * config/i386/i386sol2.mh: ... here.
7912         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7913         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7914         (SIGCONTEXT_PC_OFFSET): Remove define.
7915         (IN_SIGTRAMP): Remove define.
7916         * i386-sol2-tdep.c: New file.
7917         
7918         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7919         * config/i386/tm-i386nw.h: Removed.
7920
7921         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7922         USE_STRUCT_CONVENTION): Remove defines.
7923         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7924         (get_longjmp_target): Remove prototype.
7925         (IN_SIGTRAMP): Remove define.
7926         (i386bsd_in_sigtramp): Remove prototype.
7927         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7928         function.  Update comment accordingly
7929         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7930         (FRAME_SAVED_PC): Remove define.
7931         (i386bsd_frame_saved_pc): Remove prototype.
7932         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7933         GET_LONGJMP_TARGET): Remove defines.
7934         (get_longjmp_target): Remove prototype.
7935         (IN_SIGTRAMP): Remove define.
7936         (i386bsd_in_sigtramp): Remove prototype.
7937         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7938         function.  Update comment accordingly
7939         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7940         (FRAME_SAVED_PC): Remove define.
7941         (i386bsd_frame_saved_pc): Remove prototype.
7942         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7943         Remove prototype.
7944         (USE_STRUCT_CONVENTION): Remove prototype.
7945         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7946         declaration.
7947         (_initialize_i386bsd_nat): Revise logic to determine some
7948         constants at compile time when compiling a native GDB.  Warn if
7949         things don't match up with what we expect.
7950         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7951         Remove variables.
7952         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
7953         to use date stored in `struct gdbarch_tdep'.
7954         (i386bsd_sigcontext_offset): Remove varaible.
7955         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
7956         stored in `struct gdbarch_tdep'.
7957         (i386bsd_frame_saved_pc): Make static.
7958         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7959         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7960         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7961         i386fbsd4_sc_pc_offset): New variables.
7962         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7963         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7964         functions.
7965         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7966         functions.
7967         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7968         Modify the value of i386fbsd_sigtramp_start and
7969         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7970         i386fbsd_sigtramp_end.
7971         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7972         function.
7973
7974         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7975         define to i386-linux-tdep.h.
7976         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7977         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7978         defines.
7979         (i386_linux_register_name, i386_linux_register_byte,
7980         i386_linux_register_raw_size): Remove prototypes.
7981         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7982         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7983         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7984         TARGET_WRITE_PC): Remove defines.
7985         (i386_linux_in_sigtramp, i386_linux_frame_chain,
7986         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7987         i386_linux_write_pc): Remove prototypes.
7988         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7989         (get_longjmp_target): Remove prototype.
7990         * i386-linux-tdep.h: New file.
7991         * i386-linux-nat.c: Include "i386-linux-tdep.h".
7992         * i386-linux-tdep.c: Include "i386-tdep.h" and
7993         "i386-linux-tdep.h".
7994         (i386_linux_register_name, i386_linux_register_byte,
7995         i386_linux_register_raw_size, i386_linux_in_sigtramp,
7996         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7997         Make static.
7998         (i386_linux_init_abi): New function.
7999         (_initialize_i386_linux_tdep): New function.
8000
8001         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8002         (i386_saved_pc_after_call): Remove prototype.
8003         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8004         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8005         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8006         (i386_register_name, i386_stab_reg_to_regnum,
8007         i386_dwarf_reg_to_regnum): Remove prototypes.
8008         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8009         SIZEOF_SSE_REGS): Remove defines.
8010         (REGISTER_BYTES): Remove define.
8011         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8012         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8013         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8014         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8015         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8016         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8017         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8018         (get_longjmp_target): Remove prototype.
8019         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8020         (sigtramp_saved_pc): Remove define.
8021         (i386v4_sigtramp_saved_pc): Remove prototype.
8022         * config/i386/tm-go32.h (FRAME_CHAIN,
8023         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8024         (i386go32_frame_saved_pc): Remove prototype.
8025         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8026         (get_longjmp_target): Remove prototype.
8027         * i386-tdep.h: Include "osabi.h".
8028         (enum i386_abi): Removed.
8029         (enum struct_return): New enum.
8030         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8031         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8032         sc_pc_offset members.
8033         (i386_gdbarch_register_os_abi): Remove prototype.
8034         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8035         I386_SSE_NUM_REGS): New defines.
8036         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8037         I386_SSE_SIZEOF_REGS): New defines.
8038         (i386_register_name, i386_register_byte, i386_register_raw_size):
8039         New prototypes.
8040         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8041         (i386bsd_sigtramp_saved_pc): New prototype.
8042         * i386-tdep.c: Don't include "elf-bfd.h".
8043         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8044         i386_frame_chain, i386_saved_pc_after_call): Make static.
8045         (i386_frame_saved_pc): Rewrite to call architecture dependent
8046         function to deal with signal handlers.  Make static.
8047         (i386go32_frame_saved_pc): Removed.
8048         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8049         Removed.
8050         (i386_get_longjmp_target): New function.
8051         (default_struct_convention, pcc_struct_convention,
8052         reg_struct_convention, valid_conventions, struct_convention): New
8053         variables.
8054         (i386_use_struct_convention): New function.
8055         (i386v4_sigtramp_saved_pc): Renamed to
8056         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8057         (i386_pc_in_sigtramp): New function.
8058         (i386_abi_names): Removed.
8059         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8060         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8061         Removed.
8062         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8063         i386_gdbarch_register_os_abi): Removed.
8064         (struct i386_abi_handler): Removed.
8065         (i386_abi_handler_list): Removed.
8066         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8067         functions.
8068         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8069         i386_nw_init_abi): New functions.
8070         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8071         Use set_gdbarch_xxx() calls instead of relying on macros for a
8072         number of calls.
8073         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8074         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8075         Register the various architecture variants defined in this file.
8076
8077 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8078
8079         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8080         (struct main_type): Remove arg_types member.  Update comments for
8081         struct field.
8082         (TYPE_ARG_TYPES): Remove.
8083         (TYPE_FN_FIELD_ARGS): Update.
8084         (smash_to_method_type): Update prototype.
8085
8086         * c-typeprint.c (cp_type_print_method_args): Take method type
8087         instead of argument list.  Use new argument layout.  Simplify.
8088         (c_type_print_args): Use new argument layout.  Simplify.
8089         (c_type_print_base): Update call to cp_type_print_method_args.
8090         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8091         argument; use die->type instead.  Update call to
8092         smash_to_method_type.
8093         (read_structure_scope): Update call to dwarf2_add_member_fn.
8094         * gdbtypes.c (allocate_stub_method): Update comment.
8095         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8096         Use new argument layout.
8097         (check_stub_method): Use new argument layout.  Don't count
8098         void as an argument.
8099         (print_arg_types): Update comments.  Use new argument layout.
8100         (recursive_dump_type): Don't print arg_types member.
8101         * hpread.c (hpread_read_struct_type): Use new argument layout.
8102         (fixup_class_method_type): Likewise.
8103         (hpread_type_lookup): Likewise.
8104         * stabsread.c (read_type): Update calls to read_args and
8105         smash_to_method_type.
8106         (read_args): Use new argument layout.  Simplify.
8107         * valops.c (typecmp): Use new argument layout.  Update parameters
8108         and comments.  Simplify.
8109         (hand_function_call): Use new argument layout.
8110         (search_struct_method): Update call to typecmp.
8111         (find_overload_match): Use new argument layout.
8112
8113 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8114
8115         * NEWS: Mention multithreaded debug support for gdbserver.
8116
8117 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8118
8119         * MAINTAINERS: Mention NEWS.
8120
8121 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8122
8123         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8124         (struct mips_objfile_private, compare_pdr_entries): New.
8125         (non_heuristic_proc_desc): Read the ".pdr" section if it
8126         is present.
8127
8128 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8129
8130         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8131         (arm_debug): New static variable.
8132         (_initialize_arm_tdep): Add ``set debug arm'' command.
8133
8134 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8135
8136         * Makefile.in (sim_arm_h): Define.
8137         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8138         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8139         (arm_register_sim_regno): New function, map an internal REGNUM
8140         onto a simulator register number.
8141         (arm_gdbarch_init): Set register_sim_regno.
8142
8143 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8144
8145         * MAINTAINERS: Add self.
8146
8147 2002-06-11  Jim Blandy  <jimb@redhat.com>
8148
8149         * source.c (source_info): Mention whether the symtab has
8150         information about preprocessor macros.
8151
8152         Call the command `info macro', not `show macro'.
8153         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8154         Fix error message.
8155         (_initialize_macrocmd): Register `info_macro_command' in
8156         `infolist', not `showlist'.
8157
8158 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8159
8160         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8161         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8162         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8163         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8164         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8165         unconditionally.
8166         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8167         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8168         (_initialize_mips_tdep): Remove dead code.
8169         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8170         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8171         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8172         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8173         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8174         MIPS_LAST_FP_ARG_REGNUM): Remove.
8175
8176 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8177
8178         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8179         (unwind_tmp_obstack_free, parse_frame_info)
8180         (update_context, cfi_read_fp, cfi_write_fp)
8181         (cfi_frame_chain, cfi_init_extra_frame_info)
8182         (cfi_virtual_frame_pointer): Use the above function.
8183         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8184
8185 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8186
8187         * v850-tdep.c (v850_type_is_scalar): New function.
8188         (v850_use_struct_convention): Match current gcc implementation
8189         as close as possible.
8190         (v850_push_arguments): Fix stack_offset handling.  Don't write
8191         struct_addr into register.  This is done by v850_store_struct_return.
8192         (v850_extract_return_value): Care for structs.
8193         (v850_store_return_value): Ditto.
8194         (v850_store_struct_return): Actually write address.
8195
8196 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8197
8198         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8199         without debug information too.
8200
8201 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8202
8203         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8204         Make multi-arch pure.
8205         * gdbarch.h, gdbarch.c: Re-generate.
8206         * arm-tdep.c (arm_print_float_info): Update.
8207         * arch-utils.h (default_print_float_info): Update.
8208         * arch-utils.c (default_print_float_info): Update.
8209         * infcmd.c (float_info): Update call.
8210
8211 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8212
8213         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8214         the front of the initialize list.
8215
8216 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8217
8218         * infrun.c (struct inferior_status): Replace fields
8219         selected_frame_address and selected_level with field
8220         selected_frame_id.
8221         (save_inferior_status): Update.  Use get_frame_id.
8222         (struct restore_selected_frame_args): Delete.
8223         (restore_selected_frame): Update.  Use frame_find_by_id.
8224         (restore_inferior_status): Update.
8225
8226         * breakpoint.h (struct breakpoint): Change type of
8227         watchpoint_frame to frame_id.
8228         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8229         call to get_current_frame.
8230         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8231         get_current_frame.
8232         (watchpoint_check): Use frame_find_by_id.
8233
8234         * frame.h (record_selected_frame): Delete declaration.
8235         * stack.c (record_selected_frame): Delete function.
8236         
8237         * frame.h (struct frame_id): Define.
8238         (get_frame_id): Declare.
8239         (frame_find_by_id): Declare.
8240         * frame.c (frame_find_by_id): New function.
8241         (get_frame_id): New function.
8242
8243 2002-06-10  Andrey Volkov <avolkov@transas.com>
8244
8245         * ser-e7kpc.c: Fix duplicated define and call of 
8246         _initialize_ser_e7000pc
8247             
8248 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8249
8250         * signals/signals.c (target_signal_from_host): Fix #ifdef
8251         SIGRTMIN case.
8252         (do_target_signal_to_host): Likewise.
8253
8254 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8255
8256         * mips-tdep.c (mips_find_abi_section): New function.
8257         (mips_gdbarch_init): Call it.
8258
8259 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8260
8261         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8262         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8263         after Andrew's 2002-06-08 gdbarch change.
8264
8265 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8266
8267         * i386-linux-nat.c (suppy_gregset): Don't supply
8268         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8269         register cache.
8270         (fill_gregset): Don't fetch it under the same circumstances.
8271
8272 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8273
8274         * Makefile.in (callback_h): Define.
8275         (remote_sim_h): Update path to remote-sim.h.
8276         (remote-rdp.o): Add $(callback_h).
8277         (remote-sim.o): Use $(callback_h).
8278         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8279         * remote-rdp.c: Include "gdb/callback.h".
8280
8281 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8282
8283         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8284         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8285
8286 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8287
8288         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8289         * rdi-share/serpardr.c: Ditto.
8290         * rdi-share/unixcomm.c: Ditto.
8291         * rdi-share/serdrv.c: Ditto.
8292         * rdi-share/hostchan.h: Ditto.
8293         * rdi-share/hostchan.c: Ditto.
8294         * rdi-share/host.h: Ditto.
8295         * rdi-share/devsw.c: Ditto.
8296
8297         * objfiles.h: Change type of obj_private to void pointer.
8298         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8299         strcmp instead of STREQ, use LONGEST, do not use PTR
8300         * somsolib.c: Ditto.
8301
8302         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8303         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8304         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8305
8306 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8307
8308         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8309         (default_get_saved_register): Delete function.
8310         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8311         generic_unwind_get_saved_register.
8312         * gdbarch.h, gdbarch.c: Re-generate.
8313         
8314 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8315
8316         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8317         generic_func_frame_chain_valid.
8318         * gdbarch.h, gdbarch.c: Re-generate.
8319         * blockframe.c (generic_func_frame_chain_valid): Only check
8320         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8321         passing FP to PC_IN_CALL_DUMMY.
8322         Fix PR gdb/360.
8323
8324 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8325
8326         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8327         (register_gdbarch_data): Initialize init_p.
8328         (gdbarch_data): Initialize data pointer using the init function.
8329         (init_gdbarch_data): Delete function.
8330         (gdbarch_update_p): Update.
8331         (initialize_non_multiarch): Update.
8332         (struct gdbarch): Add field initialized_p.
8333         * gdbarch.h, gdbarch.c: Re-generate.
8334
8335 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8336
8337         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8338         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8339         better do the things actually here.
8340         * x86-64-tdep.c (x86_64_register_name2nr): New.
8341         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8342         (x86_64_gdbarch_init): Respect the above change.
8343         * x86-64-tdep.h (x86_64_register_name2nr)
8344         (x86_64_register_nr2name): Add prototypes.
8345         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8346
8347 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8348
8349         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8350         Delete extra braces and re-indent.
8351         (d10v_store_return_value): Char return values
8352         must be shifted over by one byte in R0.
8353         (d10v_extract_return_value): Delete extra braces, re-indent.
8354
8355 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8356
8357         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8358         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8359         (d10v_integer_to_address): Rewrite.
8360         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8361         the d10v specific functions which take care of converting to the
8362         correct space.
8363
8364 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8365
8366         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8367         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8368
8369 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8370
8371         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8372         includes.
8373         * config/tm-linux.h: Ditto.
8374         * config/alpha/tm-alphalinux.h: Ditto.
8375         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8376         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8377         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8378         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8379         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8380         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8381         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8382         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8383         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8384         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8385         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8386         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8387         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8388         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8389         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8390         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8391         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8392         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8393         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8394         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8395         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8396         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8397         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8398         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8399         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8400         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8401         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8402         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8403         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8404         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8405         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8406         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8407         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8408         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8409         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8410         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8411         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8412
8413 2002-05-04  Aidan Skinner <aidan@velvet.net>
8414
8415         * ada-exp.tab.c: New file
8416         * ada-exp.y: New file
8417         * ada-lang.c: New file
8418         * ada-lang.h: New file
8419         * ada-lex.c: New file
8420         * ada-lex.l: New file
8421         * ada-tasks.c: New file
8422         * ada-typeprint.c: New file
8423         * ada-valprint.c: New file
8424         
8425 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8426
8427         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8428         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8429
8430 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8431
8432         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8433         insetead of ppc-linux-tdep.o.
8434         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8435         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8436
8437 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8438
8439         2002-05-07 Christian Groessler <chris@groessler.org>
8440         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8441         bit register contents for little endian hosts.
8442
8443 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8444
8445         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8446         any maintainer.
8447
8448 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8449
8450         * gdbarch.h: Regenerate.
8451
8452 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8453
8454         * MAINTAINERS: Add everyone to write-after-approval list.
8455
8456 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8457
8458         * stack.c (frame_info): Use frame_register_unwind instead of
8459         saved_regs.  Mention when the SP is on the stack or in a register.
8460
8461         * frame.h (frame_register_unwind_ftype): Define.  Document.
8462         (struct frame_info): Add field register_unwind and
8463         register_unwind_cache.
8464         (frame_register_unwind): Declare.
8465         (generic_unwind_get_saved_register): Declare.
8466
8467         * frame.c (frame_register_unwind): New function.
8468         (generic_unwind_get_saved_register): New function.
8469
8470         * blockframe.c (generic_call_dummy_register_unwind): New function.
8471         (frame_saved_regs_register_unwind): New function.
8472         (set_unwind_by_pc): New function.
8473         (create_new_frame): New function.
8474         (get_prev_frame): New function.
8475
8476 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8477
8478         * a29k-share/: Delete directory.
8479         * remote-vx29k.c: Delete file.
8480
8481 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8482
8483         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8484         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8485
8486 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8487
8488         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8489         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8490         (sparc64nbsd-nat.o)
8491         (sparcnbsd-nat.o)
8492         (sparcnbsd-tdep.o): New dependency lists.
8493         * NEWS: Note new UltraSPARC NetBSD native configuration.
8494         * configure.host (sparc64-*-netbsd*): New host.
8495         * configure.tgt (sparc-*-netbsdelf*)
8496         (sparc-*-netbsd*): Set gdb_target to nbsd.
8497         (sparc64-*-netbsd*): New target.
8498         * sparc64nbsd-nat.c: New file.
8499         * sparcnbsd-nat.c: New file.
8500         * sparcnbsd-tdep.c: New file.
8501         * sparcnbsd-tdep.h: New file.
8502         * config/sparc/nbsd.mt: New file.
8503         * config/sparc/nbsd64.mh: New file.
8504         * config/sparc/nbsd64.mt: New file.
8505         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8506         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8507         (HOST_IPC): Remove.
8508         * config/sparc/nbsdaout.mt: Remove.
8509         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8510         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8511         (HOST_IPC): Remove.
8512         * config/sparc/nbsdelf.mt: Remove.
8513         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8514         sparc-nat.c compatiblity defines.
8515         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8516         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8517         * config/sparc/tm-nbsd64.h: New file.
8518         * config/sparc/tm-nbsdaout.h: Remove.
8519         * config/sparc/xm-nbsd.h: Remove.
8520
8521 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8522
8523         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8524         * sparc-tdep.c: Include osabi.h.
8525         (gdbarch_tdep): Add osabi member.
8526         (_initialize_sparc_tdep): Use gdbarch_register.
8527         (sparc_gdbarch_init): Use generic OS ABI framework.
8528         (sparc_dump_tdep): New function.
8529
8530 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8531
8532         * corefile.c (do_captured_read_memory_integer): Return non-zero
8533         result.
8534         (safe_read_memory_integer): Copy result of memory read when
8535         status is non-zero.  Also, add comments.
8536
8537 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8538
8539         * Makefile.in (ppc_tdep_h): Define.
8540         (ppc-linux-nat.o)
8541         (ppc-linux-tdep.o)
8542         (rs6000-tdep.o): Use $(ppc_tdep_h).
8543         (ppc-sysv-tdep.o)
8544         (ppcnbsd-nat.o)
8545         (ppcnbsd-tdep.o): New dependency lists.
8546         * ppc-tdep.h: Use generic OS ABI framework.
8547         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8548         (ppc_linux_init_abi): New functions.
8549         (ppc_sysv_abi_broken_use_struct_convention)
8550         (ppc_sysv_abi_use_struct_convention)
8551         (ppc_sysv_abi_push_arguments): Move to...
8552         * ppc-sysv-tdep.c: ...here.
8553         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8554         * rs6000-tdep.c (process_note_abi_tag_sections)
8555         (get_elfosabi): Remove.
8556         (rs6000_gdbarch_init): Use generic OS ABI framework.
8557         (rs6000_dump_tdep): New function.
8558         (_initialize_rs6000_tdep): Use gdbarch_register.
8559         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8560         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8561         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8562         of ppc-linux-tdep.o.
8563         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8564         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8565         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8566         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8567         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8568         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8569
8570 2002-05-29  Jim Blandy  <jimb@redhat.com>
8571
8572         * macroscope.c (default_macro_scope): Put `void' in empty argument
8573         list.
8574
8575 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8576
8577         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8578         * arch-utils.c: Include "sim-regno.h".
8579         * gdbarch.sh: Don't include "sim-regno.h".
8580         * gdbarch.h, gdbarch.c: Regenerate.
8581         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8582         here.
8583         * arch-utils.h (legacy_register_sim_regno): To here.
8584         * remote-sim.c (legacy_register_sim_regno): Move function from
8585         here.
8586         * arch-utils.c (legacy_register_sim_regno): To here.
8587
8588 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8589
8590         * sim-regno.h: New file.
8591         * Makefile.in (sim_regno_h): Define.
8592         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8593         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8594         (legacy_register_sim_regno): New function.
8595         (one2one_register_sim_regno): New function.
8596         (gdbsim_fetch_register): Rewrite.
8597         (gdbsim_store_register): Only store a register when
8598         REGISTER_SIM_REGNO is valid.
8599         * d10v-tdep.c: Include "sim-regno.h".
8600         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8601         (d10v_ts3_register_sim_regno): Ditto.
8602         * gdbarch.sh: Include "sim-regno.h".
8603         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8604         * gdbarch.h, gdbarch.c: Regenerate.
8605         * arch-utils.h (default_register_sim_regno): Delete declaration.
8606         * arch-utils.c (default_register_sim_regno): Delete function.
8607
8608 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8609
8610         * ppcnbsd-nat.c: Rewrite.
8611         * ppcnbsd-tdep.c: New file.
8612         * ppcnbsd-tdep.h: New file.
8613         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8614         solib.o, and solib-svr4.o.
8615         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8616         nbsd-tdep.o, and corelow.o.
8617
8618 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8619
8620         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8621         `tr' and `sed'.  Mention that `broken' targets are not expected to
8622         build.
8623
8624 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8625
8626         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8627         Let PC point right after the prologue before looking up symbols.
8628         
8629 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8630
8631         * i386-tdep.c (i386_register_virtual_type): Return 
8632         builtin_type_vec128i for SSE registers.
8633
8634         * gdbtypes.h (builtin_type_vec128i): Declare.
8635
8636         * gdbtypes.c (build_builtin_type_vec128i): New function.
8637         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8638         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8639         (build_gdbtypes): Initialize new builtin vector types.
8640         (_initialize_gdbtypes): Register new vector types with gdbarch.
8641
8642 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8643
8644         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8645         since it has been multi-arch'd.
8646         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8647         Move Alpha and VAX multi-arch news entries to same section
8648         as other multi-arch news.
8649
8650 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8651
8652         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8653         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8654         static.  Rename some register numbers to put them in ns32k-tdep
8655         private namespace.
8656         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8657         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8658         functions.
8659         (_initialize_ns32k_tdep): Use gdbarch_register.
8660         * ns32k-tdep.h: New file.
8661         * ns32knbsd-tdep.c: New file.
8662         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8663         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8664         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8665         REGISTER_BYTES, REGISTER_BYTE): Remove.
8666         * config/ns32k/tm-ns32k.h: New file.
8667         * config/ns32k/tm-umax.h: Remove.
8668
8669 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8670
8671         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8672         ns32k_store_struct_return, ns32k_extract_return_value,
8673         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8674         functions.
8675         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8676         ns32k_saved_pc_after_call.
8677         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8678         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8679         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8680         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8681         ns32k_extract_struct_value_address.
8682
8683 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8684
8685         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8686         ns32k_fix_call_dummy): New.
8687         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8688         ns32k_call_dummy_words.
8689         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8690         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8691         CALL_DUMMY_NARGS): Remove.
8692         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8693
8694 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8695
8696         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8697         ns32k_frame_saved_pc, ns32k_frame_args_address,
8698         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8699         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8700         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8701         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8702         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8703         (BREAKPOINT): Remove..
8704         (FRAME_CHAIN): Define as ns32k_frame_chain.
8705         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8706         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8707         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8708         (FRAME_FIND_SAVED_REGS): Remove.
8709         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8710         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8711         (POP_FRAME): Define as ns32k_pop_frame.
8712
8713 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8714
8715         * ns32k-tdep.c (ns32k_register_byte_32082,
8716         ns32k_register_byte_32382, ns32k_register_raw_size,
8717         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8718         functions.
8719         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8720         ns32k_register_byte_32382.
8721         * config/ns32k/tm-umax.h: Update copyright years.
8722         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8723         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8724         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8725         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8726         (ns32k_get_enter_addr): Fix prototype.
8727
8728 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8729
8730         * ns32k-tdep.c: Update copyright years.
8731         (ns32k_register_name_32082): New function.
8732         (ns32k_register_name_32382): Ditto.
8733         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8734         (REGISTER_NAME): Define as ns32k_register_name_32382.
8735         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8736         (REGISTER_NAME): Define as ns32k_register_name_32082.
8737
8738 2002-05-24  Jim Blandy  <jimb@redhat.com>
8739
8740         * dwarf2read.c (free_line_header): Use xfree, not free.
8741
8742 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
8743
8744         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8745         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8746
8747 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8748
8749         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8750
8751 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8752
8753         From Ross Alexander at NEC Europe:
8754         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8755
8756 2002-05-23  Michael Snyder  <msnyder@redhat.com>
8757
8758         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8759         for input, rather than parse_and_eval_address.  
8760
8761 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8762
8763         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8764         * Makefile.in (sim_d10v_h): Update definition.
8765
8766 2002-05-24  Andrew Cagney  <cagney@redhat.com>
8767
8768         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8769         change `2002-05-22 Michael Snyder' below.
8770         (d10v_push_arguments): Ditto.
8771         (d10v_extract_return_value): Ditto.
8772
8773 2002-05-23  Jim Blandy  <jimb@redhat.com>
8774
8775         * macrotab.c (check_for_redefinition): Don't complain if the new
8776         definition is the same as the previous one.  Take more arguments
8777         to allow the comparison.
8778         (macro_define_object, macro_define_function): Pass more arguments
8779         to check_for_redefinition.
8780
8781 2002-05-22  Michael Snyder  <msnyder@redhat.com>
8782
8783         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8784         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8785         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8786         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8787         Don't bail if return_pc is PC_IN_CALL_DUMMY.
8788         Add a temp variable to save a call (and a memory read).
8789         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8790         if possible (so that PC_IN_CALL_DUMMY will work).
8791
8792 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
8793
8794         * MAINTAINERS: Remove status `OBSOLETE' from v850.
8795
8796 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
8797
8798         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8799         fde->cie_ptr.
8800         (dwarf2_build_frame_info): Corrected handling of eh_frame.
8801         (dwarf2_build_frame_info): Add offset to fde->initial_location 
8802         so that frames of shared libraries are mapped correctly.
8803         (execute_stack_op): Change type of 'result' from ULONGEST to
8804         CORE_ADDR.
8805         
8806 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8807
8808         * config/alpha/tm-nbsd.h: Include solib.h.
8809
8810 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8811
8812         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8813         assumptions about the host's byte order.
8814
8815 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8816
8817         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8818         to dependency list.
8819         * alphanbsd-tdep.c: Include solib-svr4.h.
8820         * shnbsd-tdep.c: Ditto.
8821
8822 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8823
8824         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8825         nbsd-tdep.h to dependency list.
8826         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8827         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8828         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8829         nbsdaout.mh and nbsdelf.mh consistently.
8830         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8831         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8832         nbsdaout.mt and nbsdelf.mh consistently.
8833         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
8834         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8835         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8836         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
8837         a.out shared library stuff from here...
8838         * config/nm-nbsdaout.h: ...to here.
8839         * config/tm-nbsd.h: Remove.
8840         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8841         * config/arm/nbsd.mh: Remove.
8842         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8843         nbsd-tdep.o.
8844         * config/arm/nbsdaout.mh: New file. 
8845         * config/arm/nbsdelf.mh: New file.
8846         * config/arm/nm-nbsdaout.h: New file.
8847         * config/i386/nbsd.mh: Remove.
8848         * config/i386/nbsd.mt: Remove.
8849         * config/i386/nbsdaout.mh: New file.
8850         * config/i386/nbsdaout.mt: New file.
8851         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8852         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8853         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
8854         i386_register_u_addr): Remove.
8855         * config/i386/nm-nbsdaout.h: New file.
8856         * config/i386/nm-nbsdelf.h: Remove.
8857         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8858         (USE_STRUCT_CONVENTION): Remove.
8859         * config/i386/tm-nbsdaout.h: New file.
8860         * config/i386/tm-nbsdelf.h: Remove.
8861         * config/m68k/nbsd.mh: Remove.
8862         * config/m68k/nbsd.mt: Remove.
8863         * config/m68k/nbsdaout.mh: New file.
8864         * config/m68k/nbsdaout.mt: New file. 
8865         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8866         * config/m68k/nm-nbsdaout.h: New file.
8867         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8868         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8869         * config/ns32k/nbsd.mh: Remove.
8870         * config/ns32k/nbsd.mt: Remove. 
8871         * config/ns32k/nbsdaout.mh: New file.
8872         * config/ns32k/nbsdaout.mt: New file.
8873         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
8874         * config/ns32k/nm-nbsdaout.h: New file.
8875         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
8876         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8877         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8878         (SVR4_SHARED_LIBS): Remove.
8879         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8880         * config/sparc/nbsd.mh: Remove.
8881         * config/sparc/nbsd.mt: Remove.
8882         * config/sparc/nbsdaout.mh: New file.
8883         * config/sparc/nbsdaout.mt: New file.
8884         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8885         * config/sparc/nbsdelf.mt: New file.
8886         * config/sparc/nm-nbsdaout.h: New file.   
8887         * config/sparc/nm-nbsdelf.h: Remove.
8888         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8889         * config/sparc/tm-nbsdaout.h: New file.
8890
8891 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8892
8893         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8894         mipsnbsd-tdep.c
8895         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8896
8897 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8898
8899         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8900         shnbsd-nat.c.
8901         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8902
8903 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8904
8905         * NEWS: Note new MIPS NetBSD native configuration. 
8906         * configure.host (mips*-*-netbsd*): New host. 
8907         * configure.tgt (mips*-*-netbsd*): New target. 
8908         * mipsnbsd-nat.c: New file.
8909         * mipsnbsd-tdep.c: New file.
8910         * mipsnbsd-tdep.h: New file.
8911         * config/mips/nbsd.mh: New file.
8912         * config/mips/nbsd.mt: New file.
8913         * config/mips/nm-nbsd.h: New file.
8914         * config/mips/tm-nbsd.h: New file.
8915
8916 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
8917
8918         * Makefile.in (SFILES): Add osabi.c.
8919         (COMMON_OBS): Add osabi.o.
8920         (osabi.o): New dependency list.
8921         * osabi.c: New file.
8922         * osabi.h: New file.
8923         * doc/gdbint.texinfo: Document new generic OS ABI framework.
8924
8925         * Makefile.in (alpha_tdep_h): Define and use instead of
8926         alpha-tdep.h.
8927         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8928         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8929         Remove.
8930         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8931         * alpha-tdep.h: Include osabi.h.
8932         (alpha_abi): Remove.
8933         (gdbarch_tdep): Use generic OS ABI framework.
8934         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8935         gdbarch_register_osabi.
8936         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8937         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8938         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8939
8940         * Makefile.in (sh_tdep_h): Add osabi.h.
8941         * sh-tdep.h (sh_osabi): Remove.
8942         (gdbarch_tdep): Use generic OS ABI framework.
8943         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8944         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8945         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8946         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8947
8948         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8949         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8950         gdbarch_register_osabi.
8951         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8952         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8953         (get_elfosabi): Rename to...
8954         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
8955         ABI framework support routines.
8956         (arm_gdbarch_init): Use generic OS ABI framework.
8957         (arm_dump_tdep): Likewise.
8958         (_initialize_arm_tdep): Likewise.
8959         * arm-tdep.h: Include osabi.h.
8960         (arm_abi): Remove.
8961         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
8962         osabi member.
8963         (arm_gdbarch_register_os_abi): Remove prototype.
8964         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8965         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8966
8967         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8968         * mips-tdep.c: Include osabi.h.
8969         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8970         OS ABI framework.
8971
8972 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
8973
8974         * h8300-tdep.c: Fix formatting.
8975
8976 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
8977
8978         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8979         printing vector registers.
8980
8981 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
8982
8983         From Fernando Nasser:
8984         * remote.c (remote_async_open_1): Re-throw the exception when the
8985         connection fails.
8986         (remote_cisco_open): Ditto.
8987         (remote_open_1): Ditto.
8988
8989 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
8990
8991         * remote.c (remote_start_remote_dummy): Add uiout parameter.
8992         (remote_start_remote): Add uiout parameter.  Pass through to
8993         remote_start_remote_dummy.
8994         (remote_open_1): Use catch_exception instead of catch_errors.
8995         (remote_async_open_1): Ditto.
8996         (remote_cisco_open): Ditto.
8997
8998 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
8999
9000         * remote.c (remote_start_remote): Replace PTR with void pointer.
9001         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9002         static.
9003
9004 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9005
9006         * gdb_indent.sh: Allow the script to be run in the sim directory.
9007
9008 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9009
9010         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9011         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9012
9013         * corelow.c (core_open): Only call set_gdbarch_from_file if
9014         exec_bfd is NULL.
9015
9016 2002-05-17  Andrey Volkov <avolkov@transas.com>
9017
9018         * h8300-tdep.c: Add support of EXR register
9019         * config/h8300/tm-h8300.h: Ditto. 
9020         
9021 2002-05-17  Andrey Volkov <avolkov@transas.com>
9022
9023         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9024         
9025 2002-05-17  Andrey Volkov <avolkov@transas.com>
9026
9027         * h8300-tdep.c: Change literal regnums to REGNO.
9028         
9029 2002-05-17  Jim Blandy  <jimb@redhat.com>
9030
9031         * NEWS: Note addition of macro support.
9032
9033         Expand preprocessor macros in C expressions.
9034         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9035         (scan_macro_expansion, scanning_macro_expansion,
9036         finished_macro_expansion): New function declarations.
9037         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9038         variable declarations.
9039         * parser-defs.h (expression_context_pc): New declaration.
9040         * parse.c (expression_context_pc): New variable.
9041         (parse_exp_1): Set expression_context_pc, as well as
9042         expression_context_block.
9043         * c-exp.y (yylex): If we're not already reading the result of a
9044         macro expansion, try to macro-expand the next token.  When we're
9045         done scanning a macro expansion, switch back to the mainline text.
9046         Commas and `if's in a macro's expansion don't terminate the input.
9047         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9048         (macro_original_text, macro_expanded_text,
9049         expression_macro_lookup_func, expression_macro_lookup_baton): New
9050         variables.
9051         (scan_macro_expansion, scanning_macro_expansion,
9052         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9053         c_preprocess_and_parse): New functions.
9054         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9055         c_preprocess_and_parse, instead of c_parse.
9056         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9057         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9058
9059 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9060
9061         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9062         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9063         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9064
9065 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9066
9067         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9068
9069 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9070
9071         * Makefile.in (sh_tdep_h): Define and use.
9072         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9073         register enum): Move to...
9074         * * sh-tdep.h: ...here.
9075         * sh-tdep.c: Include sh-tdep.h.
9076         * sh3-rom.c: Likewise.
9077         * shnbsd-tdep.c: Likewise.
9078
9079 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9080
9081         * arm-tdep.c: Spelling fix in comment.
9082
9083 2002-05-16  Jim Blandy  <jimb@redhat.com>
9084
9085         Add commands for manually expanding macros and showing their
9086         definitions.
9087         * macrocmd.c, macroscope.c, macroscope.h: New files.
9088         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9089         (macroscope_h): New variable.
9090         (HFILES_NO_SRCDIR): Add macroscope.h.
9091         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9092         (macroscope.o, macrocmd.o): New rules.
9093
9094         Teach the Dwarf 2 reader to read macro information.
9095         * dwarf2read.c: #include "macrotab.h".
9096         (dwarf_macinfo_buffer): New variable.
9097         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9098         dwarf_macinfo_size.
9099         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9100         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9101         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9102         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9103         dwarf2_macro_spaces_in_definition): New complaints.
9104         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9105         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9106         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9107         the partial symbol table.
9108         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9109         from what's recorded in the partial symbol table.
9110         (read_file_scope): If the compilation unit has a
9111         `DW_AT_macro_info' attribute, read its macro information.
9112         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9113
9114 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9115
9116         Fix PR gdb/546
9117         * ser-tcp.c: Don't include <netinet/udp.h>.
9118
9119 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9120
9121         * MAINTAINERS: Update my email address.
9122
9123 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9124
9125         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9126         include file of the same name.
9127
9128 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9129
9130         * configure.tgt: Mark v850 as multi-arched.
9131         * config/v850/tm-v850.h: Remove file.
9132         * config/v850/v850.mt: Eliminate TM_FILE.
9133
9134 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9135
9136         * v850-tdep.c: Full multi-arch.
9137         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9138         Define GDB_MULTI_ARCH to 2.
9139
9140 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9141
9142         * p-exp.y (current_type): New static variable.
9143         Carries the type of the expression at the position that is parsed.
9144         (push_current_type, pop_current_type): Two new functions. Used
9145         to store/restore current_type in expression on specific tokens.
9146         (search_field): New static variable. Set to one after parsing a point
9147         as at that point only a FIELDNAME token should be searched.
9148         (FIELDNAME): New token. After a point only a token belonging to 
9149         current_type type definition is allowed.
9150         (all over token rules): reset and change current_type according
9151         to rules.
9152         (exp '[' rule): insert implicit array index field if
9153         exp is a pascal string type.
9154
9155 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9156
9157         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9158         frame info.  Use frame_info's saved_regs instead of matching member
9159         in extra_frame_info throughout.
9160         (v850_frame_init_saved_regs): New function.
9161         (v850_init_extra_frame_info): Move most functionality into
9162         v850_frame_init_saved_regs().
9163         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9164         (v850_frame_find_saved_regs): Remove declaration.
9165         (FRAME_FIND_SAVED_REGS): Remove definition.
9166         (v850_frame_init_saved_regs): Add declaration.
9167         (FRAME_INIT_SAVED_REGS): Add definition.
9168
9169 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9170
9171         * v850-tdep.c: Begin multi-arch'ing v850.
9172         (v850_target_architecture_hook): Remove function.
9173         (v850_gdbarch_init): New function.  Add code previously in
9174         v850_target_architecture_hook().
9175         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9176         Call register_gdbarch_init() instead.
9177
9178 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9179
9180         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9181         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9182         (fixup_class_method_type): Likewise.
9183
9184 2002-05-15  Jim Blandy  <jimb@redhat.com>
9185
9186         Add macro structures to GDB's symbol tables.  Nobody puts anything
9187         in them yet.
9188         * symtab.h (struct symtab): New member: `macro_table'.
9189         * buildsym.h (pending_macros): New global variable.
9190         * buildsym.c: #include "macrotab.h".
9191         (buildsym_init): Initialize `pending_macros'.
9192         (end_symtab): If we found macro information while reading a CU's
9193         debugging info, do build a symtab structure for it.  Make the
9194         symtab point to the macro information, and clear the
9195         `pending_macros' pointer which held it while we were reading the
9196         debug info.
9197         (really_free_pendings): Free any pending macro table.
9198         * objfiles.h (struct objfile): New member: `macro_cache'.
9199         * objfiles.c (allocate_objfile): Set allocate and free functions
9200         for the macro cache's objstack.
9201         (free_objfile): Empty the macro cache's obstack.
9202         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9203         set new allocate and free functions for it.
9204         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9205         free functions for the macro cache's objstack.  (Why is this
9206         function building its own objfile?)
9207         * symmisc.c (print_objfile_statistics): Print statistics on the
9208         macro bcache.
9209         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9210
9211 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9212
9213         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9214         (REGISTER_U_ADDR): Delete definition.
9215         (arm_register_u_addr): Delete declaration.
9216
9217 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9218
9219         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9220         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9221
9222 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9223
9224         * regcache.c (register_valid): Revise comments refering to "Not
9225         available" and "unavailable".
9226         * frame.c (frame_register_read): Ditto.
9227         * findvar.c (value_of_register): Ditto.
9228
9229 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9230
9231         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9232         (remote-sim.o): Update dependencies.
9233         (d10v-tdep.o): Specify dependencies.
9234         (sim_d10v_h): Define.
9235
9236 2002-05-14  Jim Blandy  <jimb@redhat.com>
9237
9238         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9239         * macrotab.c (macro_lookup_inclusion, find_definition,
9240         new_macro_table): Same.
9241         
9242         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9243         not `! strcmp ()'.  This is a dubious improvement.
9244         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9245
9246         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9247         although it's not necessary, to avoid a warning.
9248
9249 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9250
9251         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9252         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9253         TYPE_INSTANCE_FLAGS.
9254         (struct main_type): New.
9255         (struct type): Move most members to struct main_type.  Change
9256         cv_type and as_type to new type_chain member.  Add instance_flags.
9257         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9258         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9259         (finish_cv_type): Remove prototype.
9260         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9261         Set TYPE_CHAIN.
9262         (alloc_type_instance): New function.
9263         (smash_type): New function.
9264         (make_pointer_type, make_reference_type, make_function_type)
9265         (smash_to_member_type, smash_to_method_type): Call smash_type.
9266         (make_qualified_type): New function.
9267         (make_type_with_address_space): Call make_qualified_type.
9268         (make_cv_type): Likewise.
9269         (finish_cv_type): Remove unnecessary function.
9270         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9271         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9272         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9273         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9274         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9275         * hpread.c (hpread_read_struct_type): Likewise.
9276         * stabsread.c (read_struct_type): Likewise.
9277
9278 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9279
9280         * configure.tgt: Add a catch all sh* target, for cases like
9281         sh[2,3,4]-elf and sh-hms.
9282
9283 2002-05-14  Keith Seitz  <keiths@redhat.com>
9284
9285         * event-loop.c (create_file_handler): Don't do anything but
9286         update data when we are given a fd which we are already
9287         monitoring.
9288
9289 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9290
9291         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9292         (update_context): Use __func__ in warnings.
9293         
9294 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9295
9296         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9297         and tcp_close to net_open and net_close.
9298         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9299         using UDP if requested.  Don't try to disable Nagle on UDP
9300         sockets.
9301         * remote.c (remote_serial_open): New function.  Warn about UDP.
9302         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9303
9304 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9305
9306         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9307
9308 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9309
9310         * configure.tgt: Remove sh-hms target.
9311         * MAINTAINERS: Don't list sh-hms as a separate target.
9312
9313 2002-05-13  Jim Blandy  <jimb@redhat.com>
9314
9315         Add first preprocessor macro-expansion files.
9316         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9317         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9318         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9319         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9320         (COMMON_OBS): Add macrotab.o, macroexp.o.
9321         (macroexp.o, macrotab.o): New rules.
9322
9323 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9324
9325         * config/m88k/tm-m88k.h: Update copyright.
9326         (m88k_target_write_pc): Declare
9327         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9328         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9329         (SHIFT_INST_REGS): Update definition.
9330         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9331         using old definition of TARGET_WRITE_PC.
9332         * regcache.c (generic_target_write_pc): Delete code handling
9333         NNPC_REGNUM.
9334         * gdbarch.sh (NNPC_REGNUM): Delete.
9335         * gdbarch.h, gdbarch.c: Regenerate.
9336
9337 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9338
9339         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9340         builtin reg number.
9341
9342 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9343
9344         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9345         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9346         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9347         access macros.
9348         * c-typeprint.c (cp_type_print_method_args): Likewise.
9349         (c_type_print_args): Likewise.
9350         * d10v-tdep.c (d10v_push_arguments): Likewise.
9351         (d10v_extract_return_value): Likewise.
9352         * expprint.c (print_subexp): Likewise.
9353         * gdbtypes.c (lookup_primitive_typename): Likewise.
9354         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9355         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9356         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9357         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9358         (TYPE_VECTOR): Likewise.
9359         * hpread.c (hpread_read_struct_type)
9360         (fix_static_member_physnames, fixup_class_method_type)
9361         (hpread_type_lookup): Likewise.
9362         * mdebugread.c (parse_symbol, parse_type): Likewise.
9363         * p-lang.c (is_pascal_string_type): Likewise.
9364         * valops.c (hand_function_call): Likewise.
9365         * x86-64-tdep.c (classify_argument): Likewise.
9366
9367         * hpread.c (hpread_read_function_type)
9368         (hpread_read_doc_function_type): Call replace_type.
9369         * dstread.c (create_new_type): Delete.
9370         (decode_dst_structure, process_dst_function): Call alloc_type.
9371         Use type access macros.
9372
9373 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9374
9375         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9376         the're not supported by the current architecture.
9377         (i387_fill_fxsave): Likewise.
9378
9379 2002-05-12  Fred Fish  <fnf@redhat.com>
9380
9381         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9382         sect_index_xxx members to index the first slot in section_offsets
9383         if all of the section_offsets are zero.
9384
9385 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9386
9387         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9388         checked in with last change.
9389
9390 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9391
9392         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9393         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9394         config.sub.
9395
9396 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9397
9398         * Makefile.in: Update dependencies.
9399
9400 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9401
9402         * language.c (local_hex_string_custom): Simplify.  Do not depend
9403         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9404
9405         * memattr.c (mem_info_command): Replace calls to
9406         longest_local_hex_string and longest_local_hex_string_custom.
9407         * buildsym.c (make_blockvector): Ditto.
9408         * solib.c (info_sharedlibrary_command): Ditto.
9409         * tracepoint.c (tracepoints_info): Ditto.
9410         * symtab.c (print_msymbol_info): Ditto.
9411
9412         * language.c (local_hex_string): Delete.
9413         (local_hex_string_custom): Delete.
9414         (longest_local_hex_string): Rename to local_hex_string.
9415         (longest_local_hex_string_custom): Rename to
9416         local_hex_string_custom.
9417         * language.h (local_hex_string): Change parameter type to LONGEST.
9418         (local_hex_string_custom): Ditto.
9419         (longest_local_hex_string): Delete declaration.
9420         (longest_local_hex_string_custom): Ditto.
9421
9422         * solib.c: Update copyright.
9423         * memattr.c: Update copyright.
9424         
9425 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9426
9427         * arch-utils.h (legacy_register_to_value): Declare.
9428         (legacy_value_to_register): Declare.
9429         (legacy_convert_register_p): Declare.
9430         * arch-utils.c (legacy_register_to_value): New function.
9431         (legacy_value_to_register): New function.
9432         (legacy_convert_register_p): New function.
9433
9434         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9435         (VALUE_TO_REGISTER): Define.
9436         (CONVERT_REGISTER_P): Define.
9437         * gdbarch.h, gdbarch.c: Regenerate.
9438
9439         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9440         VALUE_TO_REGISTER.
9441         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9442         CONVERT_REGISTER_P.
9443
9444 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9445             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9446
9447         * Makefile.in: Update dependencies for valops.c.
9448         * valops.c: Include "gdb_assert.h".
9449         (typecmp): Skip THIS parameter to methods.
9450         (find_method_list): Remove static_memfuncp argument,
9451         update callers.  Check for stub methods.
9452         (find_value_oload_method_list): Don't set *static_memfuncp.
9453         (find_overload_match): Don't check for stub methods.  Assert
9454         that methods are not stubbed.  Handle static methods.
9455         (value_find_oload_method_list): Remove static_memfuncp argument.
9456         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9457         to the argument list for static stub methods.
9458         * value.h (value_find_oload_method_list): Update prototype.
9459
9460 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9461
9462         * arch-utils.h (generic_register_size): Declare.
9463         (generic_register_raw_size, generic_register_virtual_size): Delete
9464         declarations.
9465         * arch-utils.c (generic_register_raw_size): Delete.
9466         (generic_register_size): New function.
9467         (generic_register_virtual_size): Delete.
9468
9469         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9470         default generic_register_size.
9471         * gdbarch.h, gdbarch.c: Re-generate.
9472         
9473         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9474         register_virtual_size.
9475         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9476         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9477
9478 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9479
9480         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9481         * gdbarch.h, gdbarch.c: Regenerate.
9482         * gnu-v3-abi.c: Update copyright.
9483         (vtable_address_point_offset): Update.
9484         (gnuv3_rtti_type): Update.
9485         (gnuv3_baseclass_offset): Update.
9486         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9487         (init_fetch_link_map_offsets): Update.
9488         * remote.c (get_remote_state): Update.
9489         
9490 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9491
9492         * TODO: Remove value_headof/value_from_vtable_info comment.
9493         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9494         * values.c (value_headof, value_from_vtable_info): Delete.
9495         * value.h (value_from_vtable_info): Delete prototype.
9496
9497 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9498
9499         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9500         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9501         $(gdb_regex_h).
9502         (gdb_assert_h): Define.
9503         (gdb_wait_h): Define.
9504         (gdb_regex_h): Define.
9505
9506 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9507
9508         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9509         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9510
9511 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9512
9513         * nbsd-tdep.c: Fix comment.
9514
9515 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9516
9517         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9518         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9519         (nbsd-tdep.o): New dependency list.
9520         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9521         nbsd-tdep.h.
9522         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9523         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9524         * nbsd-tdep.c: New file.
9525         * nbsd-tdep.h: New file.
9526         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9527         nbsd-tdep.h.
9528         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9529         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9530         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9531         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9532
9533 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9534
9535         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9536         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9537         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9538         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9539         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9540         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9541
9542 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9543
9544         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9545         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9546         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9547         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9548         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9549         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9550         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9551
9552 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9553
9554         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9555         fetch_elfcore_registers to...
9556         * i386nbsd-tdep.c: ...here.
9557         (i386nbsd_use_struct_convention): Rename to...
9558         (i386nbsd_aout_use_struct_convention): ...this.
9559         (i386nbsd_supply_reg): New function.
9560         (i386nbsd_fill_reg): New function.
9561         (fetch_core_registers): Use i386nbsd_supply_reg.
9562         (fetch_elfcore_registers): Likewise.
9563         (_initialize_i386nbsd_tdep): New function.
9564         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9565         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9566         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9567         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9568         (i386nbsd_aout_use_struct_convention): ...this.
9569
9570 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9571
9572         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9573         (store_inferior_registers): Use shnbsd_fill_reg.
9574         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9575         sh_nbsd_supply_register): Collapse into...
9576         (shnbsd_supply_reg): ...this.
9577         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9578         (shnbsd_fill_reg): ...this.
9579         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9580         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9581         (fetch_core_registers): Use shnbsd_supply_reg.
9582         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9583         (sh_nbsd_core_fns): Rename to...
9584         (shnbsd_core_fns): ...this.
9585         (sh_nbsd_elfcore_fns): Rename to...
9586         (shnbsd_elfcore_fns): ...this.
9587         (sh_nbsd_init_abi): Rename to...
9588         (shnbsd_init_abi): ...this.
9589         (_initialize_sh_nbsd_tdep): Rename to...
9590         (_initialize_shnbsd_tdep): ...this.
9591         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9592         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9593         sh_nbsd_fill_register): Remove prototypes.
9594         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9595
9596 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9597
9598         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9599         (i387-nat.o): Delete dependency list.
9600         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9601         (x86-64-linux-nat.o): Likewise.
9602         * i387-nat.c: Delete file, moving contents to...
9603         * i387-tdep.c: ...here.
9604         * i387-nat.h: Rename...
9605         * i387-tdep.h: ...to this.
9606         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9607         * i386-linux-nat.c: Likewise.
9608         * i386bsd-nat.c: Likewise.
9609         * i386gnu-nat.c: Likewise.
9610         * i386nbsd-nat.c: Likewise.
9611         * i386v4-nat.c: Likewise.
9612         * x86-64-linux-nat.c: Likewise.
9613         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9614         * config/i386/go32.mh (NATDEPFILES): Likewise.
9615         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9616         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9617         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9618         * config/i386/linux.mh (NATDEPFILES): Likewise.
9619         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9620         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9621         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9622         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9623
9624 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9625
9626         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9627         (alphanbsd-nat.o): Remove dependency list.
9628         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9629         * alphanbsd-nat.c: Delete.  Contents moved to...
9630         * alphanbsd-tdep.c: ...here.
9631         (_initialize_alphanbsd_tdep): Register core functions.
9632         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9633
9634 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9635
9636         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9637         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9638         (alphanbsd-nat.o): Likewise.
9639         (alphabsd-tdep.o): New dependency list.
9640         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9641         (fill_gregset): Use alphabsd_fill_reg.
9642         (supply_fpregset): Use alphabsd_supply_fpreg.
9643         (fill_fpregset): Use alphabsd_fill_fpreg.
9644         (fetch_inferior_registers): Use struct reg and struct fpreg
9645         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9646         and alphabsd_supply_fpreg.
9647         (store_inferior_registers): Use struct reg and struct fpreg
9648         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9649         and alphabsd_fill_fpreg.
9650         * alphabsd-tdep.c: New file.
9651         * alphabsd-tdep.h: New file.
9652         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9653         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9654         alphabsd_supply_fpreg.
9655         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9656         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9657
9658 2002-05-11  Eric Christopher  <echristo@redhat.com>
9659
9660         * mips-tdep.c (mips_double_register_type): Fix thinko.
9661         (mips_single_register_type): Ditto.
9662         * MAINTAINERS: Add self.
9663
9664 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9665
9666         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9667         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9668         right thing on architectures with different endianness and/or
9669         integer sizes.
9670
9671 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9672
9673         From Christian Limpach <chris@Pin.LU>
9674         * configure.in: Change sed expression which comments out
9675         NATDEPFILES to also comment out continuation lines.
9676         * configure: Regenerate.
9677
9678 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9679
9680         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9681         big patch.
9682
9683 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9684
9685         * sh-tdep.c: Include correct file.
9686
9687 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9688
9689         New support for sh64-elf (sh5) target.
9690
9691         * configure.tgt: For sh64-elf target, default to sh-elf.
9692
9693         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9694         (struct gdbarch_tdep): Add new fields for new registers and ABI
9695         info.
9696
9697         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9698         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9699         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9700         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9701         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9702         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9703         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9704         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9705         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9706         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9707         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9708         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9709         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9710         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9711         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9712         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9713         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9714         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9715         sign_extend, sh64_nofp_frame_init_saved_regs,
9716         sh64_init_extra_frame_info, sh64_get_saved_register,
9717         sh64_extract_struct_value_address, sh64_pop_frame,
9718         sh64_push_arguments, sh64_extract_return_value,
9719         sh64_store_return_value, sh64_show_media_regs,
9720         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9721         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9722         sh_sh64_register_virtual_type,
9723         sh_sh64_register_convert_to_virtual,
9724         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9725         sh64_register_read, sh64_pseudo_register_write,
9726         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9727         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9728         sh64_do_pseudo_register, sh_compact_do_registers_info,
9729         sh64_do_registers_info, sh_gdbarch_init): New functions.
9730
9731 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9732
9733         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9734
9735 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
9736
9737         * linespec.c (decode_line_1): Check for a double quote after
9738         a filename correctly.
9739
9740 2002-05-10  Jim Blandy  <jimb@redhat.com>
9741
9742         Properly track the size of the current objfile's .debug_line section.
9743         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9744         (DWARF_LINE_SIZE): New macro.
9745         (dwarf2_build_psymtabs_hard): Record the line section's size in
9746         the partial symbol table.
9747         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9748         symbol table.
9749
9750 2002-05-10  Petr Sorfa  <petrs@caldera.com>
9751
9752         * ia64-tdep.c: Handle breakpoints on L instruction type
9753         in MLX instruction bundle by moving the breakpoint to
9754         the third slot (X instruction type) as L holds only data.
9755
9756 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
9757
9758         * dbxread.c (discarding_local_symbols_complaint): New complaint.
9759         (process_one_symbol): Complain about discarding local symbols
9760         due to a misplaced N_LBRAC entry.
9761
9762 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
9763
9764         From Daniel Berlin <dan@cgsoftware.com>
9765         * linespec.c (find_toplevel_char): '<' and '>' also increase and
9766         decrease the depth we are at, in the case of templates.
9767
9768 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9769
9770         * mips-tdep.c (mips_float_register_type): New function.
9771         (mips_double_register_type): New function.
9772         (mips_print_register): Use them.
9773         (do_fp_register_row): Likewise.
9774
9775 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9776
9777         * signals/signals.c (signals): Remove conditional compilation around
9778         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
9779         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9780
9781 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9782
9783         * remote-rdp.c (remote_rdp_can_run): Remove.
9784
9785 2002-05-09  Tom Tromey  <tromey@redhat.com>
9786
9787         * jv-valprint.c (java_val_print): Handle `char' as a special case
9788         of TYPE_CODE_INT.
9789
9790 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9791
9792         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9793         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9794         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9795         str r(0123),[sp,#nn].
9796         (arm_skip_prologue): Ditto.  Also make disassembly
9797         order-independent by placing it in a loop.
9798
9799 2002-05-06  Michael Snyder  <msnyder@redhat.com>
9800
9801         * stabsread.c (read_type): Add recognition for new attribute:
9802         "@V;" means that an array type is actually a vector.
9803         This is analogous to the vector flag that's been added to dwarf2.
9804
9805 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
9806
9807         * i386-tdep.h (i386_abi): New enum.
9808         (struct gdbarch_tdep): Replace os_ident member with abi.
9809         (i386_gdbarch_register_os_abi): New prototype.
9810         * i386-tdep.c (i386_abi_names): New array.
9811         (process_note_abi_tag_sections): Removed.
9812         (process_note_sections): New function.
9813         (i386_elf_abi_from_note, i386_elf_abi): New functions.
9814         (struct i386_abi_handler): New struct.
9815         (i386_abi_handler_list): New variable.
9816         (i386_gdbarch_register_os_abi): New function.
9817         (i386_gdbarch_init): Adapt for the changes given above.
9818
9819 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
9820
9821         * gregset.h: Say "GNU/Linux".
9822
9823 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
9824
9825         * gdbtypes.c : Add new builtin type for 64 bit vectors.
9826         (build_gdbtypes): Build builtin_type_v2_float.
9827         (_initialize_gdbtypes): Register new builtin type.
9828
9829 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
9830
9831         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9832         (clear_gdbarch_swap): New function.
9833         (initialize_non_multiarch): Call.
9834         (gdbarch_update_p): Before calling init(), swap out and clear the
9835         existing architecture.
9836         * gdbarch.c: Regenerate.
9837
9838 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9839
9840         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9841         alphanbsd-tdep.c.
9842
9843 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9844
9845         * sh-nbsd-nat.c: Rename to...
9846         * shnbsd-nat.c: ...this.
9847         * sh-nbsd-tdep.c: Rename to...
9848         * shnbsd-tdep.c: ...this.
9849         * sh-nbsd-tdep.h: Rename to...
9850         * shnbsd-tdep.h: ...this.
9851         * config/sh/nbsd.mh: Use shnbsd-nat.o.
9852         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9853
9854 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
9855
9856         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9857         concatenation for command help messages.
9858
9859 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9860
9861         * NEWS: Note new sh*-*-netbsdelf* configuration.
9862         * configure.host: Set gdb_host_cpu to sh for all sh*.
9863         (sh*-*-netbsdelf*): New host.
9864         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9865         (sh*-*-netbsdelf*): New target.
9866         * sh-nbsd-nat.c: New file.
9867         * sh-nbsd-tdep.c: New file.
9868         * sh-nbsd-tdep.h: New file.
9869         * config/sh/nbsd.mh: New file.
9870         * config/sh/nbsd.mt: New file.
9871         * config/sh/nm-nbsd.h: New file.
9872         * config/sh/tm-nbsd.h: New file.
9873
9874 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9875
9876         * sh-tdep.c (sh_osabi_names): Declare.
9877         (process_note_abi_tag_sections): New function.
9878         (get_elfosabi): Ditto.
9879         (sh_gdbarch_register_os_abi): Ditto.
9880         (sh_dump_tdep): Ditto.
9881         _initialize_sh_tdep): Use gdbarch_register to register
9882         sh_gdbarch_init and sh_dump_tdep.
9883         * config/sh/tm-sh.h (sh_osabi): Declare.
9884         (gdbarch_tdep): Add sh_osabi and osabi_name members.
9885
9886 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
9887
9888         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9889         (thumb_scan_prologue): Ditto.
9890         (arm_find_callers_reg): Ditto.
9891         (arm_frame_chain): Ditto.
9892         (arm_init_extra_frame_info): Ditto.
9893         (arm_frame_saved_pc): Ditto.
9894         (arm_pop_frame): Ditto.
9895         (arm_push_return_address): New function.
9896         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9897         call_dummy_location, call_dummy_breakpoint_offset_p,
9898         call_dummy_breakpoint_offset, call_dummy_p,
9899         call_dummy_stack_adjust_p, call_dummy_words,
9900         sizeof_call_dummy_words, call_dummy_start_offset,
9901         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9902         call_dummy_address, push_return_address and push_dummy_frame for
9903         generic dummy frames.
9904
9905 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
9906
9907         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9908         size computation for alloca.
9909         (sh_fp_frame_init_saved_regs): Likewise.
9910
9911 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
9912
9913         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9914         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9915         * arm-tdep.c (arm_store_return_value): Use them.
9916         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9917         * remote-rdp.c (remote_rdp_fetch_register): Use
9918         ARM_MAX_REGISTER_RAW_SIZE.
9919         (remote_rdp_store_register): Likewise.
9920
9921 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
9922
9923         * dwarf2cfi.c: Code cleanup, removed unused variables,
9924         added default labels to switch {} statements.
9925         * x86-64-tdep.c: Ditto.
9926         * x86-64-linux-nat.c: Ditto.
9927
9928 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
9929
9930         * solib.h: Protect against multiple inclusion.
9931
9932 2002-05-06  Jim Blandy  <jimb@redhat.com>
9933
9934         Add first preprocessor macro-expansion files.
9935         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9936         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9937         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9938         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9939         (COMMON_OBS): Add macrotab.o, macroexp.o.
9940         (macroexp.o, macrotab.o): New rules.
9941
9942         Separate the job of reading the line number info statement program
9943         header (...expialidocious) out into its own function.
9944         * dwarf2read.c (struct line_head, struct filenames, struct
9945         directories): Replace with...
9946         (struct line_header): New structure, containing the full
9947         contents of the statement program header, including the
9948         include directory and file name tables.
9949         (read_file_scope): If we have line number info, instead of just
9950         calling dwarf_decode_lines to do all the work, call
9951         dwarf_decode_line_header first to get a `struct line_header'
9952         containing the data in the statement program header, and then
9953         pass that to dwarf_decode_lines, which will pick up where that
9954         left off.  Be sure to clean up the `struct line_header' object.
9955         (dwarf_decode_line_header, free_line_header, add_include_dir,
9956         add_file_name): New functions.
9957         (dwarf_decode_lines): Move all the code to read the statement
9958         program header into dwarf_decode_line_header.  Take the line
9959         header it built as the first argument, instead of the offset to
9960         the compilation unit's line number info.  Use the new `struct
9961         line_header' type instead of the old structures.  No need to do
9962         cleanups here now, since we don't allocate anything.
9963         (dwarf2_statement_list_fits_in_line_number_section,
9964         dwarf2_line_header_too_long): New complaints.
9965
9966 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
9967
9968         * gdbtypes.c (init_vector_type): New function.
9969         (build_builtin_type_vec128): Simplify the representation of SIMD
9970         registers.
9971         (build_gdbtypes): Initialize new builtin vector types.
9972         (_initialize_gdbtypes): Register new vector types with gdbarch.
9973         (builtin_type_v4_float, builtin_type_v4_int32,
9974         builtin_type_v8_int16, builtin_type_v16_int8,
9975         builtin_type_v2_int32, builtin_type_v4_int16,
9976         builtin_type_v8_int8): New (renamed) SIMD types.
9977
9978 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
9979
9980         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9981         (i387_fill_fxsave): Likewise.
9982
9983 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
9984
9985         * alpha-tdep.c (alpha_extract_return_value): Don't use
9986         non-constant array size in prototype.
9987
9988 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
9989
9990         From Brian Taylor <briant at model dot com>:
9991         * ui-out.c (ui_out_field_core_addr): Use the function
9992         longest_local_hex_string_custom'to format addresses > 32 bits
9993         wide.
9994
9995         * ui-out.c (ui_out_field_core_addr): Update comment.
9996
9997 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
9998
9999         * stack.c (select_and_print_frame): Make static.  Delete the
10000         parameter `level'.
10001         (func_command): Update call.
10002         (select_frame_command): Delete code computing the frame level.
10003         * frame.h (select_and_print_frame): Delete declaration.
10004
10005 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10006
10007         * sparc-tdep.c (sparc_get_saved_register): Comment why
10008         get_prev_frame call is safe.
10009
10010 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10011
10012         * frame.h (select_frame): Delete level parameter.
10013         * stack.c (select_frame): Update.  Use frame_relative_level to
10014         obtain the frame's level.
10015         (select_and_print_frame): Update call.
10016         (select_frame_command): Ditto.
10017         (up_silently_base): Ditto.
10018         (down_silently_base): Ditto.
10019         * ocd.c (ocd_start_remote): Ditto.
10020         * remote-rdp.c (remote_rdp_open): Ditto.
10021         * remote-mips.c (mips_initialize): Ditto.
10022         (common_open): Ditto.
10023         * remote-e7000.c (e7000_start_remote): Ditto.
10024         * m3-nat.c (select_thread): Ditto.
10025         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10026         (child_get_current_exception_event): Ditto.
10027         * varobj.c (varobj_create): Ditto.
10028         (varobj_update): Ditto.
10029         (c_value_of_root): Ditto.
10030         * tracepoint.c (finish_tfind_command): Ditto.
10031         * corelow.c (core_open): Ditto.
10032         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10033         * thread.c (info_threads_command): Ditto.
10034         (switch_to_thread): Ditto.
10035         * infrun.c (normal_stop): Ditto.
10036         (restore_selected_frame): Ditto.
10037         (restore_inferior_status): Ditto.
10038         * breakpoint.c (insert_breakpoints): Ditto.
10039         (watchpoint_check): Ditto.
10040         (bpstat_stop_status): Ditto.
10041         (do_enable_breakpoint): Ditto.
10042         * blockframe.c (flush_cached_frames): Ditto.
10043         (reinit_frame_cache): Ditto.
10044
10045 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10046
10047         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10048         maintainer.
10049
10050 2002-05-04  Jim Blandy  <jimb@redhat.com>
10051
10052         * gdbtypes.c (replace_type): Doc fix.
10053
10054 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10055
10056         * valprint.c (strcat_longest): Delete commented out function.
10057         Update copyright.
10058
10059 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10060
10061         * MAINTAINERS: Mark a29k as deleted.
10062         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10063         Move new configurations to the top.
10064         * configure.tgt: Remove a29k.
10065         * config/a29k/tm-vx29k.h: Delete.
10066         * config/a29k/vx29k.mt: Delete.
10067         * config/a29k/tm-a29k.h: Delete.
10068         * config/a29k/a29k-udi.mt: Delete.
10069         * config/a29k/a29k.mt: Delete.
10070         * a29k-tdep.c: Delete.
10071         * remote-udi.c: Delete.
10072         * remote-mm.c: Delete.
10073         * remote-eb.c: Delete.
10074         * remote-adapt.c: Delete.
10075         * Makefile.in: Remove obsolete code.
10076         * config/s390/s390x.mt: Ditto.
10077         * config/s390/s390.mt: Ditto.
10078         * config/sparc/sparclynx.mh: Ditto.
10079         * config/sparc/linux.mh: Ditto.
10080         * config/pa/hppaosf.mh: Ditto.
10081         * config/pa/hppabsd.mh: Ditto.
10082         * config/ns32k/nbsd.mt: Ditto.
10083         * config/mips/vr5000.mt: Ditto.
10084         * config/m68k/sun3os4.mh: Ditto.
10085         * config/m68k/nbsd.mt: Ditto.
10086         * config/m68k/m68klynx.mh: Ditto.
10087         * config/m32r/m32r.mt: Ditto.
10088         * config/i386/x86-64linux.mt: Ditto.
10089         * config/i386/nbsdelf.mt: Ditto.
10090         * config/i386/nbsd.mt: Ditto.
10091         * config/i386/i386lynx.mh: Ditto.
10092
10093 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10094
10095         * target.c (debug_print_register): New function.  Handle oversize
10096         registers.
10097         (debug_to_fetch_registers): Call.
10098         (debug_to_store_registers): Call.
10099
10100 2002-05-03  Jim Blandy  <jimb@redhat.com>
10101
10102         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10103         (read_type): Doc fix.
10104         * gdbtypes.c (replace_type): Doc fix.
10105
10106         * stabsread.c (multiply_defined_struct): New complaint.
10107         (read_struct_type): If the type we were passed isn't empty, or
10108         incomplete, don't read the new struct type into it; complain,
10109         and return the original type unchanged.  Take a new `type_code'
10110         argument, which is the type code for the new type.
10111         (read_type): Rather than storing the type's type code here, pass
10112         it as an argument to read_struct_type, and let that take care of
10113         storing it.  That way, we don't overwrite the original type code,
10114         so read_struct_type can use it to decide whether we're overwriting
10115         something we shouldn't.
10116         (complain_about_struct_wipeout): New function.
10117
10118 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10119
10120         * gdbarch.sh: Assert that gdbarch is non-NULL.
10121         * gdbarch.c: Regenerate.
10122
10123 2002-05-03  Jason Merrill  <jason@redhat.com>
10124
10125         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10126         and return NULL.
10127
10128 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10129
10130         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10131         (x86_64_dwarf2gdb_regno_map_length),
10132         (x86_64_dwarf2_reg_to_regnum): Added.
10133         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10134         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10135         (_initialize_x86_64_tdep): Synced with the change above.
10136         (x86_64_skip_prologue): Reformulated message.
10137
10138 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10139
10140         * f-exp.y: Also use new prev_lexptr variable
10141         to improve error reporting. Based on Michael Snyder
10142         2002-04-24 dated patch to c-exp.y.
10143         * jv-exp.y: Likewise.
10144         * m2-exp.y: Likewise.
10145
10146 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10147
10148         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10149         we are dealing with vectors.
10150
10151 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10152
10153         * config/m68k/tm-nbsd.h: Obvious fix,
10154         correct machine name.
10155
10156 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10157
10158         * p-typeprint.c (pascal_type_print_base): Add support
10159         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10160
10161 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10162
10163         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10164         for fondamental pascal 'char' type.
10165
10166 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10167
10168         * p-lang.h (is_pascal_string_type): Declaration changed,
10169         new sixth argument of type char ** added.
10170         * p-lang.c (is_pascal_string_type): Implementation
10171         changed. Args length_pos, length_size, string_pos, char_size
10172         can now be NULL. New argument arrayname set to the field
10173         name of the char array. Return value set to char array
10174         field index plus one.
10175         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10176         is_pascal_string_type function.
10177
10178 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10179
10180         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10181         <cagney@redhat.com> change.
10182         * gdbarch.c: Regenerate.
10183
10184 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10185
10186         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10187         before probing for a new one.  Detect errorenous gdbarch_init
10188         functions.
10189         * gdbarch.c: Regenerate.
10190
10191 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10192
10193         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10194         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10195         * config/v850/tm-v850.h: Ditto.  Update copyright.
10196
10197 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10198
10199         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10200         current_gdbarch.
10201
10202 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10203
10204         * arm-tdep.c: Whitespace clean-ups.
10205         (arm_skip_prologue): Fix thinko; two lines
10206         should have been removed as part of 4/24 change.
10207
10208 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10209
10210         * rs6000-tdep.c: Added comment describing how fpscr register
10211         numbers were chosen.
10212
10213 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10214
10215         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10216
10217 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10218
10219         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10220         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10221         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10222
10223 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10224
10225         From Louis Hamilton <hamilton@redhat.com>:
10226         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10227         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10228         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10229         not bfd-private xcoff data, to determine wordsize.
10230         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10231
10232 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10233
10234         GDB 5.2 released from 5.2 branch.
10235
10236 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10237
10238         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10239         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10240         (x86_64_register_info_table): Added comments with register numbers.
10241
10242 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10243
10244         * rs6000-tdep.c (rs6000_extract_return_value,
10245         rs6000_store_return_value): Handle returning vectors.
10246         (rs6000_gdbarch_init): Use
10247         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10248         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10249         New function.
10250         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10251         vectors.
10252         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10253         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10254
10255 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10256
10257         * hpread.c (hpread_psymtab_to_symtab_1,
10258         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10259         with fprintf_unfiltered (gdb_stderr,...).
10260
10261 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10262
10263         * remote-array.c (printf_monitor, write_monitor,
10264         array_insert_breakpoint, array_remove_breakpoint ):
10265         Replace fprintf (stderr,...
10266         with fprintf_unfiltered (gdb_stderr,....
10267         * remote-es.c: Likewise.
10268         * remote-os9k.c: Likewise.
10269         * remote-st.c: Likewise.
10270
10271 2002-04-28  Andreas Schwab  <schwab@suse.de>
10272
10273         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10274         linux-proc.o and gcore.o.
10275
10276 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10277
10278         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10279         code without frame pointers.
10280
10281 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10282
10283         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10284         ON_STACK is needed.
10285
10286 2002-04-26  Ben Elliston  <bje@redhat.com>
10287
10288         * target.c (do_xfer_memory): Correct reference to the new option
10289         "trust-readonly-sections".
10290
10291 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10292
10293         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10294         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10295         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10296         vectors.
10297         (read_array_type): Record the fact that this array type is really a
10298         vector (i.e. are passed in by value).
10299
10300 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10301
10302         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10303         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10304         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10305         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10306         * alpha-linux-tdep.c: Include frame.h.
10307         (alpha_linux_sigcontext_addr): New function.
10308         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10309         alpha_linux_sigcontext_addr.
10310         * alpha-osf1-tdep.c: Include gdbcore.h.
10311         (alpha_osf1_sigcontext_addr): New function.
10312         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10313         alpha_osf1_sigcontext_addr.
10314         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10315         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10316
10317 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10318
10319         * stack.c (selected_frame_level):
10320         (select_frame): Do not set selected_frame_level.
10321         * frame.h (selected_frame_level): Delete declaration.
10322
10323 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10324
10325         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10326         convert_from_func_ptr-addr when AIX / PowerOpen.
10327
10328 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10329
10330         * valops.c (hand_function_call): Call
10331         generic_save_call_dummy_addr.
10332         * frame.h (generic_save_call_dummy_addr): Declare.
10333         * blockframe.c (struct dummy_frame): Add fields call_lo and
10334         call_hi.
10335         (generic_find_dummy_frame): Check for PC in range call_lo to
10336         call_hi instead of entry_point_address.
10337         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10338         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10339         (generic_save_call_dummy_addr): New function.
10340
10341 2002-04-24  David S. Miller  <davem@redhat.com>
10342
10343         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10344         sparc_skip_prologue.
10345         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10346         information to find prologue when possible.
10347         (sparc_prologue_frameless_p): Call examine_prologue directly.
10348         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10349         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10350         second argument.
10351         (SKIP_PROLOGUE): Likewise.
10352
10353 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10354
10355         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10356         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10357         indicate that the condition it was testing is always true.
10358         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10359         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10360         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10361
10362 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10363
10364         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10365         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10366         tdep->jb_pc and tdep->jb_elt_size.
10367         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10368         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10369         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10370         * alpha-nat.c (get_longjmp_target): Remove.
10371         (JB_ELEMENT_SIZE): Ditto.
10372         (JB_PC): Ditto.
10373         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10374         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10375         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10376         to alpha_get_longjmp_target.
10377         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10378         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10379         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10380
10381 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10382
10383         * README: Update to GDB 5.2.
10384
10385 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10386
10387         * gdbarch.sh (LC_ALL): Set to `c'.
10388
10389 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10390
10391         * avr-tdep.c: Ran through gdb_indent.sh.
10392
10393 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10394
10395         * MAINTAINERS: Add myself as AVR maintainer.
10396         * NEWS: Note new target avr.
10397
10398 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10399
10400         * Makefile.in: Add support for AVR target.
10401         * configure.tgt: Add support for AVR target.
10402         * avr-tdep.c: New file
10403         * config/avr/avr.mt: New file.
10404
10405 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10406
10407         * MAINTAINERS: Add myself to write-after-approval.
10408
10409 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10410
10411         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10412         with fprintf_unfiltered (gdb_stderr,....
10413
10414 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10415
10416         Fix PR gdb/508.
10417         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10418
10419 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10420
10421         * p-exp.y: Also use new prev_lexptr variable
10422         to improve error reporting. Based on Michael Snyder
10423         2002-04-24 dated patch to c-exp.y.
10424
10425 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10426
10427         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10428         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10429         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10430         to 0.
10431         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10432         and struct value.
10433         (FUNCTION_START_OFFSET): Remove.
10434         (BREAKPOINT): Ditto.
10435
10436 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10437
10438         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10439         * NEWS: Ditto.
10440
10441 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10442
10443         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10444         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10445         alpha_linux_pc_in_sigtramp.
10446         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10447         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10448         alpha_osf1_pc_in_sigtramp.
10449         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10450         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10451         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10452         alphafbsd_pc_in_sigtramp.
10453         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10454         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10455         alphanbsd_pc_in_sigtramp.
10456         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10457         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10458
10459 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10460
10461         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10462
10463 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10464
10465         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10466         alphanbsd-tdep.c.
10467         (alphanbsd-nat.o): New dependency list.
10468         (alphanbsd-tdep.o): Ditto.
10469         * NEWS: Note new native NetBSD/alpha configuration.
10470         * alphanbsd-nat.c: New file.
10471         * alphanbsd-tdep.c: Ditto.
10472         * configure.host (alpha*-*-netbsd*): New host.
10473         * configure.tgt (alpha*-*-netbsd*): New target.
10474         * config/alpha/nbsd.mh: New file.
10475         * config/alpha/nbsd.mt: Ditto.
10476         * config/alpha/nm-nbsd.h: Ditto.
10477         * config/alpha/tm-nbsd.h: Ditto.
10478
10479 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10480
10481         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10482         (alpha-osf1-tdep.o): New dependency list.
10483         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10484         and skip_sigtramp_frame members.
10485         * alpha-linux-tdep.c: Include gdbcore.h.
10486         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10487         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10488         * alpha-osf1-tdep.c: New file.
10489         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10490         alpha-osf1-dep.c.
10491         (alpha_frame_past_sigtramp_frame): New function.
10492         (alpha_dynamic_sigtramp_offset): Ditto.
10493         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10494         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10495         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10496         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10497         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10498         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10499         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10500         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10501         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10502         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10503         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10504         to find_solib_trampoline_target.
10505         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10506         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10507         (SKIP_TRAMPOLINE_CODE): Remove.
10508         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10509         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10510         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10511         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10512         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10513         (PROC_SIGTRAMP_MAGIC): Ditto.
10514         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10515         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10516         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10517         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10518         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10519
10520 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10521
10522         * NEWS: Note that Alpha targets are now multi-arch.
10523
10524 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10525
10526         * parser-defs.h (prev_lexptr): New external variable.
10527         * parse.c (parse_exp_1): Set prev_lexptr to null before
10528         calling the language-specific parser.
10529         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10530         (yyerror): Use prev_lexptr in error reporting.
10531
10532 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10533
10534         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10535         * gregset.h: If FILL_FPXREGSET is defined, provide
10536         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10537         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10538         is defined, call fill_fpxregset.
10539
10540 2002-04-24  Roland McGrath  <roland@frob.com>
10541
10542         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10543         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10544         (supply_gregset, supply_fpregset): New functions.
10545
10546         * gnu-nat.c (gnu_find_memory_regions): New function.
10547         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10548         (gnu_xfer_memory): Add a cast.
10549
10550 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10551
10552         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10553         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10554         of argument regs ("str r(0123), [r11, #-nn"]).
10555         (arm_skip_prologue): Better handling for frameless functions.
10556         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10557         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10558
10559 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10560
10561         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10562         NUM_PSEUDO_REGS can be used.
10563
10564 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10565
10566         * arch-utils.h: Update copyright.
10567
10568         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10569         * gdbarch.h, gdbarch.c: Re-generate.
10570
10571         * inferior.h (IN_SIGTRAMP): Delete definition.
10572         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10573         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10574
10575         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10576         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10577         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10578         (find_proc_framesize): Ditto.
10579         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10580         (alpha_init_extra_frame_info): Ditto.
10581         * infrun.c (handle_inferior_event): Ditto.
10582         (handle_inferior_event): Ditto.
10583         (check_sigtramp2): Ditto.
10584         * blockframe.c (create_new_frame): Ditto.
10585         (get_prev_frame): Ditto.
10586         * ppc-linux-tdep.c: Update comments.
10587         * i386-linux-tdep.c: Update comments.
10588         * breakpoint.c (bpstat_what): Update comment.
10589
10590 2002-04-24  David S. Miller  <davem@redhat.com>
10591
10592         * i960-tdep.c (register_in_window_p): New function.
10593         (i960_find_saved_register): Use it instead of
10594         REGISTER_IN_WINDOW_P.
10595         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10596
10597         * symtab.h (find_stab_function_addr): Kill extern.
10598         * minsyms.c (find_stab_function_addr): Remove from here...
10599         * dbxread.c: ... to here, and mark it static.
10600
10601 2002-04-20  David S. Miller  <davem@redhat.com>
10602
10603         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10604         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10605
10606 2002-04-21  David S. Miller  <davem@redhat.com>
10607
10608         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10609         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10610         (vx_write_register): Likewise.
10611
10612 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10613
10614         * source.c (is_regular_file): New function.
10615         (openp): Check wether file to open is a regular file
10616         to avoid opening directories.
10617
10618 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10619
10620         * findvar.c (extract_signed_integer): Cast printf argument
10621         to suppress format warning.
10622         (extract_unsigned_integer): Likewise.
10623         * infcmd.c (registers_info): Likewise.
10624         * top.c (get_prompt_1): Likewise.
10625         * valops.c (value_assign): Likewise.
10626         * valprint.c (print_decimal): Likewise.
10627
10628 2002-04-22  H.J. Lu  (hjl@gnu.org)
10629
10630         * c-exp.y (typebase): Support
10631
10632         [long|long long|short] [signed|unsigned] [int|]
10633
10634         and
10635
10636         signed [long|long long|short] int
10637
10638 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10639
10640         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10641         and vax-tdep.h.
10642         * vax-tdep.h: New file.
10643         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10644         Make several routines static.
10645         (vax_get_saved_register): New function.
10646         (vax_gdbarch_init): New function.
10647         (_initialize_vax_tdep): Register vax_gdbarch_init.
10648         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10649         Remove macros now under the control of gdbarch.
10650
10651 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10652
10653         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10654         Some whitespace and coding standards tweaks.
10655
10656 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10657
10658         * vax-tdep.c: Include regcache.h.
10659         (vax_call_dummy_words): New.
10660         (sizeof_vax_call_dummy_words): New.
10661         (vax_fix_call_dummy): New function.
10662         (vax_saved_pc_after_call): Ditto.
10663         * config/vax/tm-vax.h: Don't include regcache.h.
10664         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10665         (CALL_DUMMY): Remove.
10666         (CALL_DUMMY_WORDS): Define.
10667         (SIZEOF_CALL_DUMMY_WORDS): Define.
10668         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10669
10670 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10671
10672         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10673
10674 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10675
10676         * vax-tdep.c (vax_frame_chain): New function.
10677         (vax_push_dummy_frame): Ditto.
10678         (vax_pop_frame): Ditto.
10679         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10680         (FRAMELESS_FUNCTION_INVOCATION): Use
10681         generic_frameless_function_invocation_not.
10682         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10683         (POP_FRAME): Use vax_pop_frame.
10684
10685 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10686
10687         * vax-tdep.c (vax_store_struct_return): New function.
10688         (vax_extract_return_value): Ditto.
10689         (vax_store_return_value): Ditto.
10690         (vax_extract_struct_value_address): Ditto.
10691         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10692         vax_store_struct_return.
10693         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10694         (STORE_RETURN_VALUE): Use vax_store_return_value.
10695         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10696
10697 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10698
10699         * vax-tdep.c (vax_frame_saved_pc): New function.
10700         (vax_frame_args_address_correct): Ditto.
10701         (vax_frame_args_address): Ditto.
10702         (vax_frame_locals_address): Ditto.
10703         (vax_frame_num_args): Move code to be in proximity to
10704         other frame-related functions.
10705         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10706         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10707         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10708         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10709         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10710
10711 2002-04-22  H.J. Lu  (hjl@gnu.org)
10712
10713         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10714         includedir.
10715
10716 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10717
10718         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10719         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10720         (FRAME_INIT_SAVED_REGS): New macro.
10721
10722 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10723
10724         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10725
10726 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10727
10728         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10729         where needed.
10730         (fetch_osf_core_registers): Likewise.
10731         (supply_gregset): Likewise.
10732
10733 2002-04-22  J. Brobecker  <brobecker@gnat.com>
10734
10735         * symfile.h (get_section_index): Define.
10736         * symfile.c (get_section_index): New function.
10737         * mdebugread.c (SC_IS_SBSS): New macro.
10738         (SC_IS_BSS): Return true for the scBss storage class only, as
10739         the scSBss storage class refers to the .sbss section.
10740         (parse_partial_symbols): Discard the symbols which associated
10741         section does not exist.
10742         Make sure to use the .sbss section index for symbols which
10743         storage class is scBss, rather than using the .bss section index.
10744
10745 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10746
10747         * vax-tdep.c: Update copyright years.
10748         (vax_register_name): New function.
10749         (vax_register_byte): Ditto.
10750         (vax_register_raw_size): Ditto.
10751         (vax_register_virtual_size): Ditto.
10752         (vax_register_virtual_type): Ditto.
10753         * config/vax/tm-vax.h: Update copyright years.
10754         (REGISTER_NAMES): Remove.
10755         (REGISTER_NAME): Define.
10756         (REGISTER_BYTE): Use vax_register_byte.
10757         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10758         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10759         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10760
10761 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10762
10763         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10764         declaration
10765         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10766
10767 2002-04-21  David S. Miller  <davem@redhat.com>
10768
10769         * arch-utils.c (generic_prologue_frameless_p): Kill
10770         SKIP_PROLOGUE_FRAMELESS_P code.
10771         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10772         references.
10773         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10774         * arc-tdep.c (arc_prologue_frameless_p): Implement.
10775         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10776         references.
10777         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10778         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10779         (sparc_gdbarch_init): Pass it to
10780         set_gdbarch_prologue_frameless_p.
10781
10782 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10783
10784         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10785         (alphabsd-nat.o): New dependency list.
10786
10787 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10788
10789         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10790         alphafbsd-tdep.c.
10791         (alpha-linux-tdep.o): New dependency list.
10792         (alphafbsd-tdep.o): Likewise.
10793
10794 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10795
10796         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
10797         to here...
10798         * alpha-tdep.c: ...from here.
10799         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10800
10801 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10802
10803         * config/alpha/tm-alpha.h: Move alpha_software_single_step
10804         prototype from here...
10805         * alpha-tdep.h: ...to here.
10806
10807 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10808
10809         * frame.h (selected_frame_level): Document as deprecated.
10810         (frame_relative_level): Declare.
10811         * stack.c (frame_relative_level): New function.
10812         (selected_frame_level): Document as deprecated.
10813         (select_frame): Do not set the selected_frame_level.
10814
10815         * stack.c (frame_info, record_selected_frame): Update.
10816         (frame_command, current_frame_command): Update.
10817         (up_silently_base, up_command, down_silently_base): Update.
10818         (down_command): Update.
10819         * inflow.c (kill_command): Update.
10820         * tracepoint.c (finish_tfind_command): Update.
10821         * corelow.c (core_open): Update.
10822         * thread.c (info_threads_command): Update.
10823         (do_captured_thread_select): Update.
10824         * infcmd.c (finish_command): Update.
10825         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10826
10827 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10828
10829         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10830
10831 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10832
10833         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
10834         type const.
10835
10836 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10837
10838         * alphafbsd-tdep.c: Update copyright years.  Include
10839         alpha-tdep.h.
10840         (alphafbsd_use_struct_convention): Make static.
10841         (alphafbsd_init_abi): New function.
10842         (_initialize_alphafbsd_tdep): New function.
10843         * config/alpha/tm-fbsd.h: Update copyright years.
10844         (USE_STRUCT_CONVENTION): Remove.
10845
10846 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10847
10848         * alpha-tdep.c (alpha_abi_handler): New structure to describe
10849         an Alpha ABI variant.
10850         (alpha_abi_handler_list): Declare.
10851         (alpha_gdbarch_register_os_abi): New function.
10852         (alpha_gdbarch_init): Give registered ABI variant handlers a
10853         chance to tweak the gdbarch once we have set up defaults.
10854         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10855
10856 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10857
10858         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10859         to standard_coerce_float_to_double.
10860         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10861
10862 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10863
10864         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10865         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10866         from gdbarch_tdep rather than a constant.
10867         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10868         the default text address for all Alpha Unix ABIs.
10869         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10870         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10871
10872 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10873
10874         * alpha-tdep.h: New file.  Includes several Alpha target constants
10875         taken from...
10876         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
10877         let gdbarch deal with.
10878         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10879         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10880         to dependency list.
10881         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
10882         Alpha target register names.
10883         * alphabsd-nat.c: Likewise.
10884         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
10885         Alpha target register names.  Make serveral routines static.
10886         (alpha_get_saved_register): New function.
10887         (alpha_abi_names): New.
10888         (process_note_abi_tag_sections): New function.
10889         (get_elfosabi): New function.
10890         (alpha_gdbarch_init): New function.
10891         (alpha_dump_tdep): New function.
10892         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10893
10894 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10895
10896         * frame.c (find_saved_register): Delete #ifdef
10897         HAVE_REGISTER_WINDOWS code.
10898         * config/sparc/tm-sparc.h: Update comments.
10899         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10900
10901 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10902
10903         * i960-tdep.c (i960_find_saved_register): New function.
10904         (i960_get_saved_register): New function.
10905         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10906         (i960_get_saved_register): Declare.
10907         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10908
10909 2002-04-20  David S. Miller  <davem@redhat.com>
10910
10911         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10912
10913 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
10914
10915         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10916         instead of NUM_PSEUDO_REGS.
10917
10918 2002-04-20  David S. Miller  <davem@redhat.com>
10919
10920         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10921         GDB_MULTI_ARCH_PARTIAL
10922         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10923         define, let tm-sp64.h do it.
10924
10925 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
10926
10927         * frame.c (find_saved_register): Avoid a NULL pointer
10928         dereference and actually walk the frame list.
10929
10930 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
10931
10932         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10933         sorted in most most-recent-used order.  Document.
10934         * gdbarch.h, gdbarch.c: Regenerate.
10935
10936 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
10937
10938         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10939         instead of ->prev.
10940         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10941         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10942         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10943         instead of ->prev.
10944
10945 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
10946
10947         Fix PR gdb/471.
10948         * gdbtypes.c (init_simd_type): Rewrite using new functions.
10949         (build_builtin_type_vec128): Ditto.
10950         (append_composite_type_field): Fix calculation of type length in
10951         union case.
10952
10953 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
10954
10955         * config/djgpp/README: Update.
10956
10957         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10958         compiler warnings.
10959
10960 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
10961
10962         * alpha-tdep.c (setup_arbitrary_frame): Rename...
10963         (alpha_setup_arbitrary_frame): ...to this.
10964         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10965         for alpha_setup_arbitrary_frame.
10966
10967 2002-04-18  Andrew Cagney  <cagney@redhat.com>
10968
10969         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10970         * gdbarch.h, gdbarch.c: Regenerate.
10971
10972         * defs.h (breakpoint_from_pc_fn): Delete type definition.
10973         * target.h (memory_breakpoint_from_pc): Update declaration.
10974         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10975
10976         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10977         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10978         * mem-break.c (memory_breakpoint_from_pc): Ditto.
10979         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10980         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10981         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10982         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10983         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10984         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10985         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10986         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10987         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10988
10989         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10990         const pointer.
10991         * monitor.c (monitor_insert_breakpoint): Ditto.
10992         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10993
10994         * config/mcore/tm-mcore.h: Update copyright.
10995         * mem-break.c: Ditto.
10996         * xstormy16-tdep.c: Ditto.
10997
10998 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10999
11000         * p-exp.y: Add precedence rule for '^' token.
11001         This removes the shift/reduce conflicts.
11002         Remove the comment concerning these shift/reduce conflicts.
11003
11004 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11005
11006         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11007         (registers_powerpc_nofp): New register set for processors
11008         without floating point unit.
11009
11010 2002-04-18  David S. Miller  <davem@redhat.com>
11011
11012         * MAINTAINERS: Add myself to write-after-approval.
11013
11014 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11015
11016         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11017
11018 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11019
11020         * rs6000-tdep.c (frame_initial_stack_address): Use
11021         frame_register_read to read the alloca_reg.
11022
11023 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11024
11025         * frame.c (find_saved_register): Find saved registers in the next
11026         not prev frame.
11027         Fix PR gdb/365.
11028
11029 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11030
11031         * gdbarch.sh (LANG): Set to ``c''.
11032
11033 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11034
11035         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11036
11037 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11038
11039         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11040         Update copyright.
11041
11042         * hpread.c (hpread_get_lntt): Add declaration.
11043         Also fix PR gdb/391.
11044
11045 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11046
11047         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11048         * aclocal.m4, configure: Re-generate.
11049         Fix PR gdb/391.
11050
11051 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11052
11053         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11054         instead of tm_print_insn.
11055
11056 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11057
11058         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11059
11060 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11061
11062         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11063         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11064         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11065
11066 2002-04-12  Don Howard  <dhoward@redhat.com>
11067
11068         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11069         max_user_call_depth.
11070         (init_cmd_lists): Initialize the new value;
11071         * cli/cli-script.c (execute_user_command): Limit the call depth of
11072         user defined commands.  This avoids a core-dump when user commands
11073         are infinitly recursive.
11074
11075 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11076
11077         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11078         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11079         from tdep struct instead of DEFAULT_LR_SAVE.
11080         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11081         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11082         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11083
11084 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11085
11086         * Remote.c: Spelling fix.
11087         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11088         If no symbol found for "sbrk", try "_sbrk".
11089         (make_output_phdrs): Use bfd_section_name.
11090         (gcore_copy_callback): Use bfd_section_name.
11091         * eval.c: Indentation fix-ups.
11092         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11093         in case it gets applied to an address that is already
11094         in the instruction space.
11095         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11096         * symfile.c: Fix indentation, long lines.
11097         * source.c: White space fix-up.
11098
11099 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11100
11101         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11102         * frame.c (frame_register_read): New function.  Return non-zero on
11103         success.
11104         (read_relative_register_raw_bytes_for_frame): Delete.
11105         (read_relative_register_raw_bytes): Delete.
11106         * frame.h (frame_register_read): Declare.
11107         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11108         * sh-tdep.c: Ditto.
11109         * infcmd.c (do_registers_info): Ditto.
11110         * hppa-tdep.c: Ditto.
11111         * rs6000-tdep.c: Ditto.
11112         * h8500-tdep.c: Ditto.
11113         * mips-tdep.c: Ditto.
11114         * h8300-tdep.c: Ditto.
11115         * z8k-tdep.c: Ditto.
11116
11117 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11118
11119         From Jimi X <jimix@watson.ibm.com>:
11120         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11121         64-bit SysV ABI.
11122
11123 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11124
11125         From Jimi X <jimix@watson.ibm.com>:
11126         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11127         bfd info.
11128
11129 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11130
11131         From Jimi X <jimix@watson.ibm.com>:
11132         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11133         register sets for these processor variants.
11134
11135 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11136
11137         * regformats/reg-ppc.dat: Support FPSCR.
11138
11139 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11140
11141         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11142         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11143         Add fpscr as an invalid/unfetchable register.
11144         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11145         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11146         (fill_fpregset): Add support for register fpscr.
11147         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11148         (fill_gregset): Account for the fact that register ``mq'' might
11149         not exist.
11150         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11151         (registers_power): Add fpscr to register set at slot 71.
11152         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11153         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11154
11155 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11156
11157         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11158         * configure: Regenerate.
11159         * config.in: Regenerate.
11160         * acconfig.h: Add define for _SYSCALL32.
11161         * core-sol2.c: Remove #define _SYSCALL32.
11162         * solib-legacy.c: Remove #define _SYSCALL32.
11163
11164 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11165
11166         * stack.c (select_frame): Cleanup internal error message, do not
11167         use %p.
11168
11169 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11170
11171         * stack.c (select_frame): Check that selected_frame and the
11172         specified level are as expected.
11173         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11174         Update copyright.
11175         * frame.h (struct frame_info): Add field `level'.  Update
11176         copyright.
11177         Work-in-progress PR gdb/464.
11178
11179 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11180
11181         * maint.c (maint_print_section_info): Rename print_section_info.
11182         (print_bfd_section_info, print_objfile_section_info): Update.
11183         * inferior.h (struct gdbarch): Add opaque declaration.
11184         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11185         * gdbarch.h: Regenerate.
11186
11187 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11188
11189         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11190         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11191         (kernel_u_size): Added.
11192         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11193         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11194
11195 2002-04-04  Jim Ingham  <jingham@apple.com>
11196
11197        * valarith.c (find_size_for_pointer_math): New function, either returns
11198        the size for a pointer's target, returns 1 for void *, or errors for
11199        incomplete types.
11200        (value_add, value_sub): use find_size_for_pointer_math.
11201
11202 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11203
11204         * linux-low.c (linux_look_up_symbols): New hook.
11205         (linux_target_ops): Add linux_look_up_symbols.
11206         * remote-utils.c (decode_address): New function.
11207         (look_up_one_symbol): New function.
11208         * server.c (handle_query): Call target look_up_symbols hook.
11209         * server.h (look_up_one_symbol): Add prototype.
11210         * target.h (struct target_ops): Add look_up_symbols hook.
11211
11212 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11213
11214         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11215         override FP_REGNUM with frame->fp.  Update copyright.
11216         * parse.c (num_std_regs, std_regs): Delete.
11217         (target_map_name_to_register): Do not search std_regs.  Update
11218         function description.
11219         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11220         declarations.  Update copyright.
11221         Fix PR gdb/251.
11222
11223 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11224
11225         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11226         after the last symbol in a block.
11227
11228 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11229
11230         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11231         is non zero as a found symbol.
11232
11233 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11234
11235         * findvar.c: Include "builtin-regs.h".
11236         (value_of_register): Call value_of_builtin_reg when applicable.
11237         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11238         (target_map_name_to_register): Call
11239         builtin_reg_map_name_to_regnum.
11240         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11241         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11242         (builtin_regs_h): Define.
11243         (builtin-regs.o): New target.
11244         (findvar.o): Add $(builtin_regs_h).
11245         * builtin-regs.c, builtin-regs.h: New files.
11246         * std-regs.c: New file.
11247         Partial fix for PR gdb/251.
11248
11249 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11250
11251         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11252         it's no longer required.
11253
11254 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11255
11256         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11257
11258 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11259
11260         From Jimi X <jimix@watson.ibm.com>:
11261         * rs6000-tdep.c (rs6000_software_single_step): Use
11262         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11263         and size.  Use target_insert_breakpoint() and
11264         target_remove_breakpoint() to insert and remove breakpoints
11265         instead of explicit memory reads and writes.
11266
11267 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11268
11269         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11270         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11271         ELF_OBJECT_FORMAT ifdef.
11272
11273 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11274
11275         From Jimi X <jimix@watson.ibm.com>:
11276         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11277
11278 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11279
11280         From Jimi X <jimix@watson.ibm.com>:
11281         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11282         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11283
11284 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11285
11286         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11287         s/asprintf/xasprintf/.
11288         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11289
11290 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11291
11292         I believe Jeff Law denies responsability for this one:
11293         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11294         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11295         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11296         Work-around for PR gdb/366.
11297
11298 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11299
11300         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11301         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11302         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11303
11304 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11305
11306         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11307         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11308         information.
11309
11310 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11311
11312         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11313         maintainer.
11314
11315 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11316
11317         * README (Reporting Bugs in GDB): Document the bug web page as the
11318         prefered way of submitting bugs.
11319         Fix PR gdb/402.
11320
11321 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11322
11323         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11324         -1.  Update comment.
11325         * gdbarch.h, gdbarch.c: Re-generate.
11326
11327 2002-04-07  Andreas Schwab  <schwab@suse.de>
11328
11329         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11330         buffer to regcache_collect.
11331
11332 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11333
11334         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11335         * gdbarch.c, gdbarch.h: Re-generate.
11336
11337 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11338
11339         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11340         declaration.  Fix -Werror.
11341
11342 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11343
11344         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11345         * gdbarch.c: Regenerate.
11346
11347 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11348
11349         * breakpoint.c (clear_command): Rewrite middle section to
11350         combine two loops with identical control conditions.
11351         Add a cleanup to eliminate a memory leak.
11352         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11353
11354 2002-04-05  H.J. Lu  (hjl@gnu.org)
11355
11356         * solib-svr4.c (bkpt_names): Add "__start".
11357
11358 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11359
11360         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11361         as test for 64 bit target.
11362
11363 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11364
11365         * h8500-tdep.c (h8500_write_fp): Delete function.
11366         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11367         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11368         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11369         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11370         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11371         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11372         (s390_write_fp):
11373         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11374         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11375         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11376         (d10v_write_fp): Delete function.
11377         * inferior.h (write_fp, generic_target_write_fp): Delete
11378         declarations.
11379         * regcache.c (generic_target_write_fp): Delete function.
11380         (write_fp): Delete function.
11381         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11382         * gdbarch.h, gdbarch.c: Regenerate.
11383         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11384         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11385         (sparc64_write_fp): Delete declaration.
11386         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11387         (h8500_write_fp): Delete declaration.
11388
11389 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11390
11391         * sparc-tdep.c (sparc64_write_fp): Delete.
11392         (sparc_push_dummy_frame): Replace write_fp call with code to store
11393         the FP directly.
11394         (sparc_gdbarch_init): Do not initialize write_fp.
11395
11396 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11397
11398         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11399         clause.
11400
11401 2002-03-29  Jim Blandy  <jimb@redhat.com>
11402
11403         * stack.c (get_selected_block): Add new argument `addr_in_block',
11404         used to return the exact code address we used to select the block,
11405         not just the block.
11406         * blockframe.c (get_frame_block, get_current_block): Same.
11407         * frame.h (get_frame_block, get_current_block,
11408         get_selected_block): Update declarations.
11409         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11410         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11411
11412 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11413
11414         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11415         warning message.
11416
11417 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11418
11419         * utils.c (xfullpath): New function.
11420         * defs.h (xfullpath): Add declaration.
11421         * source.c (openp): Use xfullpath in place of gdb_realpath to
11422         avoid resolving the basename part of filenames when the
11423         associated file is a symbolic link. This fixes a potential
11424         inconsistency between the filenames known to GDB and the
11425         filenames it prints in the annotations.
11426         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11427         to be able to match a filename with either the real filename, or
11428         the name of any symbolic link to this file.
11429         (lookup_partial_symtab): Ditto.
11430
11431 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11432
11433         * breakpoint.c: Add support for hardware breakpoints in overlays.
11434         (overlay_events_enabled): New state variable.
11435         (insert_breakpoints): Use overlay_events_enabled to decide
11436         whether to attempt to set a breakpoint at the overlay load addr.
11437         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11438         (remove_breakpoint): Use overlay_events_enabled to decide
11439         whether breakpoints need to be removed from overlay load addr.
11440         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11441         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11442         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11443         disable_overlay_breakpoints): Update overlay_events_enabled.
11444
11445 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11446
11447         * dwarf2read.c (struct function_range): New.
11448         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11449         (check_cu_functions): New.
11450         (read_file_scope): Initialize global function lists.
11451         Call dwarf_decode_line after processing children.
11452         (read_func_scope): Add to global function list.
11453         (dwarf_decode_lines): Call check_cu_functions everywhere
11454         record_line is called.  Call record_line with a linenumber
11455         of 0 to mark sequence ends.
11456
11457 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11458
11459         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11460         change sync with glibc.
11461
11462 2002-04-03  Jim Blandy  <jimb@redhat.com>
11463
11464         * configure.in: Call AC_C_INLINE.
11465         * configure: Regenerated.
11466
11467 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11468
11469         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11470         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11471
11472 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11473
11474         * NEWS: Mention gcore support on FreeBSD/i386.
11475
11476         * fbsd-proc.c: New file.
11477         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11478         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11479
11480         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11481         while statement.
11482
11483 2002-03-29  Jim Blandy  <jimb@redhat.com>
11484
11485         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11486         unescaped newlines in string literals, but newer ones don't.  So
11487         escape them.
11488
11489 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11490             Andrew Cagney <cagney@redhat.com>
11491
11492         * cli/cli-dump.c: New file.  Dump memory to file,
11493         restore file to memory.
11494         * cli/cli-dump.h: New file.
11495         * Makefile.in: Add rules, dependencies for cli-dump.o.
11496         * NEWS: Mention new commands.
11497
11498 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11499
11500         * symfile.c (symbol_file_add): Move test for null symbols to later.
11501
11502 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11503
11504         From veksler at il.ibm.com:
11505         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11506         the xstrduped original path.
11507         Fix PR gdb/417.
11508
11509 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11510
11511         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11512         * infcmd.c (_initialize_infcmd): Ditto.
11513         * language.c (_initialize_language): Ditto.
11514         * symfile.c (_initialize_symfile): Ditto.
11515         * top.c (_init_main): Ditto.
11516         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11517
11518 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11519
11520         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11521         vector registers handling.
11522         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11523         fields of frame data.
11524         (frame_get_saved_regs): Fill in information for AltiVec registers.
11525
11526 2002-03-27  Jim Blandy  <jimb@redhat.com>
11527
11528         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11529         a function; leave this macro here to invoke that function.
11530         (symbol_init_mangled_name): Declaration for that function.
11531         * symtab.c (symbol_init_mangled_name): New function.
11532
11533 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11534
11535         * valarith.c: Replace strerror with safe_strerror.
11536         * tracepoint.c: Ditto.
11537         * lin-lwp.c: Ditto.
11538         * go32-nat.c: Ditto.
11539         * inflow.c: Ditto.
11540         * gnu-nat.c: Ditto.
11541
11542 2002-03-27  Andreas Schwab  <schwab@suse.de>
11543
11544         * event-top.c (command_line_handler): Remove useless if.
11545
11546 2002-03-27  Andreas Jaeger  <aj@suse.de>
11547
11548         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11549         comment.
11550
11551 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11552
11553         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11554         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11555         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11556         (x86_64_linux_dr_get_status, supply_gregset),
11557         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11558         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11559         (x86_64_register_info_table): Add.
11560         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11561         (x86_64_register_raw_size, x86_64_register_virtual_type),
11562         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11563         general x86_64_register_info_table.
11564         (i386_gdbarch_init): gdbarch_register_bytes is now set
11565         dynamicaly during initialization.
11566         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11567         * gdbserver/linux-x86-64-low.c: Ditto.
11568
11569 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11570
11571         * gdbserver/server.c (main): Call target_signal_to_host_p
11572         and target_signal_to_host on signals received from the remote.
11573         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11574         target_signal_from_host on signals sent to the remote.
11575         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11576         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11577
11578 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11579
11580         * signals/signals.c: Include "server.h" in gdbserver build.
11581         (target_signal_from_name): Don't use STREQ.
11582         (_initialize_signals): Likewise.  Don't include function in
11583         gdbserver build.
11584
11585 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11586
11587         * signals.c: Moved to...
11588         * signals/signals.c: Here.
11589         * Makefile (signals.o): Update.
11590
11591 2002-03-26  Jeff Law (law@redhat.com)
11592
11593         * somread.c (som_symtab_read): Remove some commented out code and
11594         updated related comments.  Do not set the minimal symbol table to
11595         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11596         in a dynamic executable.
11597         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11598         where we are unable to find the minimal symbol for the given
11599         PC value.
11600
11601 2002-03-25  Jeff Law (law@redhat.com)
11602
11603         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11604
11605 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11606
11607         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11608
11609 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11610
11611         * command.h: Update copyright.
11612         (struct cmd_list_element): Replace definition with opaque
11613         declaration.
11614         (enum cmd_types): Document that it will eventually be moved to
11615         cli/cli-decode.h
11616         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11617         (MALLOCED_REPLACEMENT): Delete macro.
11618         * Makefile.in (cli_decode_h): Add $(command_h).
11619         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11620         * top.c: Include "cli/cli-decode.h".
11621         * completer.c: Include "cli/cli-decode.h".
11622         * maint.c: Include "cli/cli-decode.h".
11623         * cli/cli-decode.h: Include "command.h".
11624         (enum command_class): Delete.
11625         (enum cmd_types): Comment out.
11626         (enum cmd_auto_boolean): Delete.
11627         (enum var_types): Delete.
11628
11629 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11630
11631         * cli/cli-decode.c: Include "gdb_assert.h".
11632         (add_set_or_show_cmd): New static function.
11633         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11634         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11635         all fields, such as func, from the set command.
11636
11637 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11638
11639         * MAINTAINERS (sh-elf): Change warning flag to -w.
11640
11641 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11642
11643         * defs.h (error): Add printf format attribute.
11644         * thread-db.c (thread_from_lwp): Fix error format string.
11645         * stack.c (parse_frame_specification): Ditto.
11646         * cli/cli-decode.c (undef_cmd_error): Ditto.
11647         * scm-lang.c (scm_lookup_name): Ditto.
11648         * tracepoint.c (trace_error): Ditto.
11649         * remote-utils.c (usage): Ditto.
11650         * remote.c (compare_sections_command): Ditto.
11651         Fix PR gdb/328.
11652
11653 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11654
11655         * gdbtypes.c (append_composite_type_field): New function.
11656         (init_composite_type): New function.
11657         * gdbtypes.h (append_composite_type_field): Declare.
11658         (init_composite_type): Ditto.
11659
11660 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11661
11662         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11663         function.
11664         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11665         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11666         structure returning convention for SYSV ABI case, but not
11667         for GNU/Linux, FreeBSD, or NetBSD.
11668
11669 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11670
11671         * symtab.h (lookup_block_symbol): Add mangled_name argument
11672         to prototype.
11673
11674         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11675         with new mangled_name argument.
11676         * linespec.c (decode_line_1): Likewise.
11677         * valops (value_of_this): Likewise.
11678         * symtab.c (lookup_transparent_type): Likewise.
11679         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11680         (lookup_symbol): If we are given a mangled name, pass it down
11681         to lookup_symbol_aux.
11682         (lookup_block_symbol): If we are given a mangled name to check
11683         against, only return symbols which match it.
11684
11685 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11686
11687         * win32-nat.c (child_create_inferior): Check for proper shell to use
11688         here, in case the user changes it on the fly.
11689         (_initialize_inftarg): Remove shell path considerations.
11690
11691 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11692
11693         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11694         for gdbarch_max_register_raw_size and max_register_virtual_size.
11695         Adjust copyright year.
11696
11697 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11698
11699          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11700          in a function to cover the entire beginning of the function
11701          as well if it does not already.
11702
11703 2002-03-21  Tom Rix  <trix@redhat.com>
11704
11705         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11706         (rs6000_ptrace64): Renamed from ptrace64.
11707
11708 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11709
11710         * gdbserver/remote-utils.c (remote_open): Don't call
11711         getprotobyname, we're all using TCP here so just use
11712         IPPROTO_TCP.
11713         * gdbserver/gdbreplay.c (remote_open): Ditto.
11714
11715 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11716
11717         * regcache.c (_initialize_regcache): No need to call
11718         build_regcache() at this time; it gets called whenever
11719         the gdbarch changes.
11720
11721 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11722
11723         * sparc-nat.c:  Include sys/param.h where possible.
11724
11725 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11726
11727         Fix PR gdb/422.
11728         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11729         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11730         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11731         complex types.
11732         * stabsread.c (rs6000_builtin_type): Likewise.
11733         (read_sun_floating_type): Likewise.
11734
11735 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11736
11737         * stabsread.c (read_member_functions): Remove skip code for duplicate
11738         constructor/destructor methods.  Use standard parsing for these
11739         methods and just do not chain them to the list of methods after
11740         parsing.
11741
11742 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
11743
11744         * coffread.c: Remove redundant static declarations.  Replace
11745         occurrences of `PTR' with `void *'.
11746         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11747         * top.h (quit_cover): Likewise.
11748         * defs.h (catch_errors): Likewise.
11749
11750 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11751
11752         * defs.h (XMALLOC): Define.
11753         * gdb-events.sh (XMALLOC): Delete macro.
11754         * gdb-events.c, gdb-events.h: Regenerate.
11755         * gdbarch.sh (XMALLOC): Delete macro.
11756         * gdbarch.c: Regenerate.
11757         * serial.c (XMALLOC): Delete macro.
11758         * ui-file.c (XMALLOC): Ditto.
11759         * ser-unix.h (XMALLOC): Ditto.
11760         * sh-tdep.c (XMALLOC): Ditto.
11761         * ui-out.c (XMALLOC): Ditto.
11762         * utils.c (XMALLOC): Ditto.
11763         * i386-tdep.c (XMALLOC): Ditto.
11764         * gdb-events.c (XMALLOC): Ditto.
11765         * d10v-tdep.c (XMALLOC): Ditto.
11766         * cli-out.c (XMALLOC): Ditto.
11767
11768         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11769         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11770         * ui-file.c, ui-out.c: Ditto.
11771
11772 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11773
11774         * command.h (struct cmd_list_element): Add field context.
11775         (set_cmd_context, get_cmd_context): Declare.
11776         * cli/cli-decode.h: Ditto.
11777         * cli/cli-decode.c (get_cmd_context): New function.
11778         (set_cmd_context): New function.
11779         (add_cmd): Initialize context.
11780         Part of fixing PR gdb/145 and PR gdb/146.
11781
11782 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11783
11784         * cli/cli-decode.c (cmd_type): New function.
11785         * command.h (cmd_type): Declare.
11786         * infrun.c (set_schedlock_func): Call function cmd_type.
11787         * kod.c (kod_set_os): Call cmd_type.
11788         * cris-tdep.c (cris_version_update): Use function cmd_type.
11789         (cris_mode_update, cris_abi_update): Ditto.
11790
11791         * command.h: (execute_cmd_post_hook): Declare.
11792         (execute_cmd_pre_hook): Declare.
11793         * cli/cli-script.c (clear_hook_in_cleanup): New function.
11794         (execute_cmd_post_hook, execute_cmd_pre_hook): New
11795         functions. Execute pre/post hook while ensuring that afterwords
11796         hook_in is cleared.
11797         * top.c (execute_command): Use execute_cmd_post_hook, and
11798         execute_cmd_pre_hook to execute pre/post commands.
11799         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11800         hook_stop_stub.
11801         (hook_stop_stub): Call execute_cmd_pre_hook.
11802
11803 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11804
11805         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
11806         set'' and this leads to a core dump.  Move xstrdup of
11807         operating_system to after check that it is not NULL.
11808
11809 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11810
11811         * kod.c (kod_set_os): Remove unnecessary check that
11812         ``command->type'' is set_cmd.
11813
11814         * valprint.c (set_input_radix): Use input_radix.
11815         (set_output_radix): Use output_radix.
11816         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11817         isn't reverted.
11818
11819 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
11820
11821         * value.h (struct value): Delete field ``substring_addr''.  Change
11822         aligner fields to force_doublest_align, force_longest_align,
11823         force_core_addr_align and force_pointer_aligh.
11824
11825         * value.h (struct value): Fix typo in above change.
11826
11827 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11828
11829         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11830         to fix internal_error from ``maintenance print architecture''.
11831
11832 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11833
11834         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11835         for gcc versions after gcc-2.8.1.
11836
11837 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11838
11839         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11840         for method resolution.  Restore adjustment of ``this'' pointer after
11841         calling value_struct_elt, which was accidentally removed during the
11842         HP merge.
11843
11844 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
11845
11846         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11847         value_of_register.
11848         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
11849         get_saved_register.
11850         * value.h (value_of_register): Update.
11851
11852 2002-03-14  Richard Henderson  <rth@redhat.com>
11853
11854         * configure.in: Detect declaration for canonicalize_file_name.
11855         * utils.c (canonicalize_file_name): Declare, if needed.
11856         (gdb_realpath): Prefer realpath if available and usable.
11857         * config.in, configure: Rebuild.
11858
11859 2002-03-14  Richard Henderson  <rth@redhat.com>
11860
11861         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11862         a constant array bound.
11863
11864         * MAINTAINERS: Add myself to write-after-approval.
11865
11866 2002-03-14  Michael Snyder  <msnyder@redhat.com>
11867
11868         * symfile.c (syms_from_objfile): Return immediately if no syms.
11869         (symbol_file_add): Return immediately if no syms.
11870         (find_sym_fns): Return immediately if no syms.
11871
11872 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
11873
11874         * gdbserver/remote-util.c (remote_open): Print remote-side's
11875         IP address when remote debugging over the network.
11876
11877 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
11878
11879         * config/sparc/fbsd.mh: Fix copyright.
11880         * config/sparc/fbsd.mt: Likewise.
11881
11882 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
11883
11884         * MAINTAINERS: Fix typo in name of gdb warnings option.
11885         (x86-64): Fix formating so that this can be parsed by awk.
11886
11887 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
11888
11889         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11890         * defs.h: Include "gdb/signals.h".
11891         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11892
11893 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
11894
11895         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11896         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11897         from x86-64-tdep.h
11898
11899 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
11900             Don Howard <dhoward@redhat.com>
11901
11902         * mips-tdep.c (ST0_FR): Define.
11903         (mips2_fp_compat): New function, temporarily disabled.
11904         (mips_read_fp_register_single): New function.
11905         (mips_read_fp_register_double): New function.
11906         (mips_print_register): Use them.
11907         (do_fp_register_row): Likewise.
11908
11909 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
11910
11911         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11912         approval''.
11913
11914 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11915
11916         * stabsread.c (read_member_functions): Fix is_stub test for
11917         static member functions, improve comment.
11918
11919 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
11920
11921         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11922         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11923         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11924         commands that set boolean values.
11925         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11926         (arm_rdi_resume): Always initialize PC.
11927         (arm_rdi_open): Don't use rslt as a boolean.
11928         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11929         (arm_rdi_fetch_registers, arm_rdi_store_registers)
11930         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11931         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11932
11933 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
11934
11935         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11936         * configure: Rebuilt.
11937
11938 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11939
11940         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11941         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11942
11943 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
11944
11945         * cli/cli-decode.c (set_cmd_completer): New function.
11946         * command.h (set_cmd_completer): Declare.
11947         * cli/cli-decode.h (set_cmd_completer): Ditto.
11948
11949         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11950         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11951         * win32-nat.c (_initialize_inftarg): Ditto.
11952         * remote-rdi.c (_initialize_remote_rdi): Ditto.
11953         * proc-api.c (_initialize_proc_api): Ditto.
11954         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11955         * source.c (_initialize_source): Ditto.
11956         * exec.c (_initialize_exec): Ditto.
11957         * solib.c (_initialize_solib): Ditto.
11958         * top.c (init_main): Ditto.
11959         * tracepoint.c (_initialize_tracepoint): Ditto.
11960         * symfile.c (_initialize_symfile): Ditto.
11961         * printcmd.c (_initialize_printcmd): Ditto.
11962         * infcmd.c (_initialize_infcmd): Ditto.
11963         * corefile.c (_initialize_core): Ditto.
11964
11965 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
11966
11967         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11968
11969 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
11970
11971         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11972
11973 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
11974
11975         * NEWS: Update headings, 5.2 has branched.
11976
11977 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
11978
11979         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11980         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11981         (register_addr, REGISTER_RAW_SIZE): Likewise.
11982         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11983         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11984
11985 2002-03-03  Michal Ludvig <mludvig@suse.cz>
11986
11987         * MAINTAINERS (x86-64): Add myself.
11988         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11989         changed value_ptr -> struct value *
11990
11991 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
11992
11993         * configure.host (sparc64-*-freebsd): Add.
11994         * configure.tgt: Likewise.
11995         * config/sparc/fbsd.mh: New file.
11996         * config/sparc/fbsd.mt: Likewise.
11997         * config/sparc/nm-fbsd.h: Likewise.
11998         * config/sparc/tm-fbsd.h: Likewise.
11999
12000 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12001
12002         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12003         regformats/reg-s390x.dat.
12004
12005 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12006
12007         * utils.c: Add FIXME explaining true/false problem.
12008
12009 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12010
12011         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12012
12013 2002-02-28  Michael Chastain  <mec@shout.net>
12014
12015         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12016
12017 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12018
12019         * gdbserver/linux-s390-low.c: New file.
12020         * regformats/reg-s390.dat: New file.
12021         * regformats/reg-s390x.dat: New file.
12022         * gdbserver/configure.srv: Add S/390.
12023         * gdbserver/Makefile.in: Add S/390.
12024         * configure.tgt: Enable gdbserver for S/390.
12025
12026 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12027
12028         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12029         first line of the doc string for "info dos", except at the end of
12030         the sentence, since the short help stops at the first period.
12031
12032 2002-02-28  Jason Merrill  <jason@redhat.com>
12033
12034         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12035
12036 2002-02-27  Fred Fish  <fnf@redhat.com>
12037
12038         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12039         comment (dumy -> dummy).
12040
12041 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12042
12043         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12044
12045 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12046
12047       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12048
12049 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12050
12051         * gdbserver/acconfig.h: New file.
12052         * gdbserver/i387-fp.c: New file.
12053         * gdbserver/i387-fp.h: New file.
12054         * gdbserver/linux-x86-64.c: New file.
12055         * regformats/reg-x86-64.dat: New file.
12056         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12057         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12058         * gdbserver/configure.in: Add support for regsets.
12059         * gdbserver/config.in: Regenerate.
12060         * gdbserver/configure: Regenerate.
12061         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12062         * gdbserver/linux-low.h: New file.
12063         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12064         for regsets.
12065         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12066         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12067         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12068         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12069         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12070         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12071         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12072         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12073         * gdbserver/regcache.c (supply_register): New function.
12074         (supply_register_by_name): New function.
12075         (collect_register): New function.
12076         (collect_register_by_name): New function.
12077
12078 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12079
12080         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12081         (config.status): Add configure.srv dependency.
12082         (server_h): Add config.h dependency.
12083
12084 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12085
12086         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12087         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12088         * gdbserver/configure.srv: Change i386-*-linux* to use
12089         reg-i386-linux.o.
12090
12091 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12092
12093         * x86-64-tdep.c: Re-indent.  Update copyright date.
12094
12095 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12096
12097         From Michal Ludvig <mludvig@suse.cz>:
12098         * x86-64-tdep.c (value.h): Delete.
12099         (gdb_assert.h): Include.
12100         (x86_64_register_convert_to_virtual,
12101         x86_64_register_convert_to_raw ): Add check which lets only
12102         floating-point values to be converted.
12103         (value_push): Delete.
12104         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12105         (i386_gdbarch_init): Number of register_bytes fixed.
12106
12107 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12108
12109         * MAINTAINERS: Add x86-64 target.
12110
12111 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12112
12113         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12114         * osfsolib.c (solib_map_sections): Ditto.
12115         * irix5-nat.c (solib_map_sections): Ditto.
12116         * corelow.c (gdb_check_format): Ditto.
12117         * symfile.c (symfile_bfd_open): Ditto.
12118         * solib.c (solib_map_sections): Ditto.
12119         Fix PR gdb/354.
12120
12121 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12122
12123         * remote.c (_initialize_remote): By default, disable ``e'' and
12124         ``E'' step out-of-range packets.
12125
12126 2002-02-26  Andreas Schwab  <schwab@suse.de>
12127
12128         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12129         m68k_linux_frame_saved_pc.
12130         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12131         in_sigtramp.
12132         (SIGCONTEXT_PC_OFFSET): Remove.
12133         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12134         m68k_linux_sigtramp_saved_pc): New functions.
12135         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12136         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12137         (UCONTEXT_PC_OFFSET): Define.
12138         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12139         non-RT and RT signal trampolines.
12140
12141 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12142
12143         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12144         (TARGET_NBPG, STACK_END_ADDR): Delete
12145         (VARIABLES_INSIDE_BLOCK): Delete.
12146
12147 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12148
12149         * utils.c (perror_with_name): Make string parameter constant.
12150         (print_sys_errmsg): Ditto.
12151         (query): Ditto.
12152         * defs.h (perror_with_name): Update.
12153         (print_sys_errmsg): Update.
12154         (query): Update.
12155
12156 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12157
12158         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12159         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12160
12161 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12162
12163         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12164         if it already matches the current architecture from the exec file.
12165         Include arch-utils.h for gdbarch_info_init prototype.
12166         * Makefile.in (rs6000-nat.o): Update dependencies.
12167
12168 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12169
12170         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12171          list of exported variables.
12172
12173 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12174
12175         * gdbserver/configure.srv: New file.
12176         * gdbserver/configure.in: Use configure.srv instead
12177         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12178         from it.
12179         * gdbserver/configure: Regenerated.
12180         * gdbserver/terminal.h: New file.
12181         * gdbserver/Makefile.in: Update for configure changes.  Remove
12182         more unneeded include paths.
12183
12184 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12185
12186         From wiz at danbala:
12187         * config/sparc/tm-sp64.h: Fix grammar and typos.
12188         Fix PR gdb/287.
12189
12190 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12191
12192         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12193         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12194         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12195         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12196         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12197         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12198         * s390-tdep.c: Ditto.
12199         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12200         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12201         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12202         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12203         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12204         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12205         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12206         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12207         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12208         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12209         Fix PR gdb/378.
12210
12211 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12212
12213         * lin-thread.c: Delete file.
12214         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12215         to gdb_proc_service.h.
12216         * configure: Re-generate.
12217
12218         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12219         * serial.c (serial_open): Delete check for "ocd".
12220         Fix PR gdb/349.
12221
12222         * Makefile.in (linux-thread.o): Delete target.
12223         * linux-thread.c: Delete file.
12224
12225         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12226         renamed SH files to be consistent.
12227
12228         * symtab.c (sort_search_symbols): Use xfree.
12229
12230 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12231
12232         * arm-linux-tdep.c (arm_linux_init_abi): Register
12233         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12234         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12235         definition with undef, since we don't want the sysvr4 definition.
12236         (SKIP_TRAMPOLINE_CODE): Likewise.
12237
12238 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12239
12240         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12241
12242         * configure.in: (AC_CHECK_FUNCS) Added test for
12243         canonicalize_file_name Regenerated.
12244         * config.in, configure: Regenerated.
12245         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12246         defined use canonicalize_file_name.
12247
12248 2002-02-23  Michael Chastain  <mec@shout.net>
12249
12250         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12251
12252 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12253
12254         * README: Remove references to cygnus.com.
12255         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12256         dot com'' form.  Remove references to cygnus.com and sourceware.
12257
12258 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12259
12260         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12261         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12262         1003.1-2001 no longer allows "head -1".
12263         * gdb/Makefile.in (version.c): Likewise.
12264         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12265         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12266         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12267
12268 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12269
12270         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12271         * command.h (cmd_cfunc_eq): Declare.
12272         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12273
12274         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12275         ``struct cmd_list_element *''.
12276         * cli/cli-cmds.c (is_complete_command): Update.  Use
12277         cmd_cfunc_eq.
12278         * top.c (execute_command): Pass the command to
12279         is_complete_command.
12280         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12281
12282 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12283
12284         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12285         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12286         architecture defines.
12287         * s390-tdep.c (s390_gdbarch_init): Likewise.
12288
12289 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12290
12291         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12292         (arm_linux_push_arguments): Likewise.
12293         (arm_linux_init_abi): Register them.  Also register linux-specific
12294         call_dummy_words.
12295         (find_minsym_and_objfile): Use strcmp, not STREQ.
12296         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12297         (arm_linux_call_dummy_words): Delete declaration.
12298         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12299         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12300         declarations.
12301         (LOWEST_PC): Delete.
12302
12303 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12304
12305         * maint.c (print_section_info): Do not prepend `0x' to filepos
12306         output, it will be handled by local_hex_string_custom.
12307
12308 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12309
12310         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12311         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12312         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12313
12314 2002-02-22  Jim Blandy  <jimb@redhat.com>
12315
12316         Indicate that the bcache functions don't change the strings
12317         they're passed.
12318         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12319         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12320
12321 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12322
12323         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12324
12325 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12326
12327         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12328         find the complete path to a loaded DLL.
12329
12330 2002-02-21  Fred Fish  <fnf@redhat.com>
12331
12332         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12333         that marks the end of the range of a function, enter a line number
12334         entry that has a line number of zero and a PC offset that matches
12335         the end of the function.  This starts a range of PC's for which no
12336         line number information is known.
12337         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12338         PC's for which no line number info is found (line number is zero)
12339         then we didn't find any valid line information.
12340         * symtab.h: Document use of zero line number entry.
12341
12342 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12343
12344         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12345         (have_ptrace_getvrregs): Define for run time checks.
12346         (gdb_vrregset_t): New type for Altivec register handling.
12347         (fetch_register, store_register): Fetch/store altivec register
12348         when needed.
12349         (fetch_altivec_register, store_altivec_register): New functions.
12350         (supply_vrregset, fill_vrregset): New functions.
12351         (fetch_altivec_registers, store_altivec_registers): New functions.
12352         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12353         registers as well.
12354
12355 2002-02-21  Jiri Smid  <smid@suse.cz>
12356
12357         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12358
12359 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12360
12361         * Makefile.in (armnbsd-nat.o): Update dependencies.
12362         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12363         supply the integer register set.
12364         (supply_fparegset): New function.  Similar for FPA registers.
12365         (fetch_regs, fetch_fp_regs): Use them.
12366         (fetch_core_registers): Likewise.
12367         (fetch_elfcore_registers): New function.
12368         (arm_netbsd_elfcore_fns): New core-file type specification.
12369         (_initialize_arm_netbsd_nat): Register it.
12370
12371 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12372
12373         * armnbsd-nat.c: Include gdbcore.h.
12374         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12375         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12376         'void' to declaration, to shut up ARI.
12377         (fetch_core_registers): Make static.  Rewrite using supply_register.
12378         (arm_netbsd_core_fns): New core-file type specification.
12379         (_initialize_arm_netbsd_nat): New function.
12380
12381 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12382
12383         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12384         value.
12385
12386 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12387
12388         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12389         fails.
12390
12391 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12392
12393         * jv-exp.y (parse_number): Change type of implicit longs
12394         to builtin_type_uint64.
12395
12396 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12397
12398         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12399         to be an integer instead of a `union wait'.
12400
12401 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12402
12403         * mips-linux-nat.c: Call the operating system GNU/Linux.
12404         * mips-linux-tdep.c: Likewise.
12405         * mips-tdep.c: Likewise.
12406
12407 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12408
12409         Fix PR gdb/265.
12410         * jv-exp.y (parse_number): Handle 64-bit integers.
12411
12412 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12413
12414         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12415         AC_STDC_HEADERS to AC_HEADER_STDC.
12416         * gdbserver/configure: Regenerated.
12417
12418 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12419
12420         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12421         is defined.
12422         * sparc-tdep.c (get_longjmp_target): Likewise.
12423
12424 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12425
12426         * News: Add news about ARM and Multi-arch.  Mention the new target
12427         arm*-*-netbsd*.
12428
12429 2002-02-19  Jim Blandy  <jimb@redhat.com>
12430
12431         * stabsread.c (error_type_complaint): Improve error message.
12432
12433 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12434
12435         * gdbserver/README: Update documentation.
12436         * gdbserver/configure.in: Update configury to match documentation.
12437         * gdbserver/Makefile.in: Likewise.
12438         * gdbserver/configure: Regenerated.
12439         * gdbserver/aclocal.m4: New file, generated by aclocal.
12440         * gdbserver/config.in: New file, generated by autoheader.
12441
12442 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12443
12444         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12445         armnbsd-nat.c.
12446
12447 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12448
12449         * arm-tdep.h (enum arm_float_model): New enum.
12450         (struct gdbarch_tdep): Add fp_model.
12451         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12452         up floating-point conversions until we know the floating-point model
12453         in use by the inferior.  Don't complain about being unable to
12454         determine the ABI of the inferior when we don't have one.
12455         (arm_extract_return_value): Support different floating-point models.
12456         (arm_store_return_value): Likewise.
12457         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12458         ARM_FLOAT_SOFT.
12459         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12460
12461 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12462
12463         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12464         of ``current_gdbarch''.
12465
12466 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12467
12468         * armnbsd-nat.c : ANSIfy all function declarations.
12469         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12470         (fetch_inferior_registers): Re-implement in terms of above.
12471         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12472         (store_inferior_registers): Re-implement in terms of above.
12473
12474 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12475
12476         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12477         kernel.
12478         * arm-linux-tdep.c: Likewise.
12479         * config/arm/tm-linux.h: Likewise.
12480
12481 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12482
12483         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12484         * config/arm/nbsd.mt (TM_FILE): Delete.
12485         * config/arm/tm-nbsd.h: Delete.
12486
12487 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12488
12489         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12490         Initialize CALL_DUMMY_LENGTH.
12491
12492 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12493
12494         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12495         function.
12496         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12497         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12498         defines one thing and that is incorrect for this port.
12499         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12500
12501 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12502
12503         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12504
12505 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12506
12507         * win32-nat.c (display_selector): New function. Displays information
12508         about the information returned by GetThreadSelectorEntry API function.
12509         (display_selectors): New function. Displays the infomation of
12510         the selector given as argument, or of CS, DS ans FS selectors
12511         if no argument is given.
12512         ( _initialize_inftarg): Add "w32" as info prefix command.
12513         Add "info w32 selector" as command calling display_selectors.
12514
12515 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12516
12517         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12518         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12519         if not defined.
12520
12521 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12522
12523         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12524
12525 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12526
12527         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12528         (arm_fix_call_dummy): Call it.
12529         (arm_call_dummy_breakpoint_offset): Delete.
12530         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12531         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12532
12533 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12534
12535         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12536         Default to func_frame_chain_valid.
12537         * gdbarch.h, gdbarch.c: Re-generate.
12538         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12539
12540 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12541
12542         * ppc-linux-nat.c: Update copyright.
12543         (fetch_register, store_register): Add tid parameter, don't compute
12544         tid here.
12545         (fetch_ppc_registers, store_ppc_registers): Add tid
12546         parameter. Pass it along to callees.
12547         (fetch_inferior_registers, store_inferior_registers): Compute tid
12548         here, and pass it to calleed functions.
12549         (fill_gregset, supply_fpregset): Clean up formatting.
12550
12551 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12552
12553         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12554         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12555
12556 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12557
12558         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12559         * gdbarch.c gdbarch.h: Regenerate.
12560         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12561         function.
12562         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12563         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12564         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12565
12566         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12567         * arm-tdep.c (arm_get_longjmp_target): New function.
12568         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12569         this to a positive value register arm_get_longjmp_target as the
12570         longjmp handler.
12571         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12572         (arm_linux_init_abi): Set up longjmp description in tdep.
12573         * armnbsd-nat.c (get_longjmp_target): Delete.
12574         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12575         description in tdep.
12576         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12577         (get_longjmp_target): Delete declaration.
12578         (GET_LONGJMP_TARGET): Delete.
12579         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12580         (GET_LONGJMP_TARGET): Delete.
12581
12582 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12583
12584         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12585         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12586         of ``current_gdbarch''.
12587
12588 2002-02-17  Tom Tromey  <tromey@redhat.com>
12589
12590         * cli/cli-cmds.c (compare_strings): New function.
12591         (complete_command): Only print each unique item once.
12592         * completer.h (complete_line): Declare.
12593         * completer.c (complete_line): New function.
12594         (line_completion_function): Use it.
12595
12596 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12597
12598         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12599         * gdbarch.h, gdbarch.c: Re-generate.
12600
12601 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12602
12603         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12604
12605 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12606
12607         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12608         * valops.c (value_arg_coerce): Don't take the address of a reference
12609         to convert an argument to a reference.
12610
12611 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12612
12613         * win32-nat.c (get_image_name): New function.
12614         (handle_load_dll): Use get_image_name function.
12615         (get_child_debug_event): Avoid registering debug events until possibly
12616         execed process is started.
12617         (child_create_inferior): Allow invocation via shell so that command
12618         line redirection, etc.  works ok.
12619         (_initialize_inftarg): Add new command: "set shell" to control whether
12620         a shell is used to start a process.
12621
12622 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12623
12624         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12625         instead of find_register_by_number.
12626         (cannot_store_register): Likewise.
12627
12628 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12629
12630         * dwarf2read.c: Replace fprintf (stderr, ...) by
12631         fprintf_unfiltered (gdb_stderr, ...).
12632
12633 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12634
12635         * gdbserver/gdbserver.1: Document --attach.
12636
12637 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12638
12639         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12640         descriptions.
12641         * arm-tdep.c (arm_default_arm_le_breakpoint)
12642         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12643         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12644         traditional breakpoint defines.
12645         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12646         (arm_gdbarch_init): Initialize new breakpoint variables.
12647         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12648         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12649         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12650         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12651         code out to ...
12652         (arm_netbsd_init_abi_common): ... here; new function.
12653         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12654         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12655         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12656         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12657
12658 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12659
12660         * arm-tdep.h (enum arm_abi): New enum.
12661         (struct gdbarch_tdep): New structure.
12662         (LOWEST_PC): Provide a default.
12663         (arm_gdbarch_register_os_abi): Declare new function.
12664         * arm-tdep.c (arm_abi_names): New array.
12665         (process_note_abi_tag_sections): New function.
12666         (get_elfosabi): New function.
12667         (arm_gdbarch_register_os_abi): New function.
12668         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12669         support for that ABI has been built in, then call the appropriate
12670         configuration routine.  Use gdbarch_num_regs() to get the number
12671         of registers.
12672         (arm_dump_tdep): New function.
12673         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12674         place-holder functions.
12675         (_initialize_arm_tdep): Register them.
12676         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12677
12678         * armnbsd-tdep.c: New file.
12679         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12680         * config/arm/nbsd.mt (TDEPFILES): Add it.
12681         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12682
12683         * armnbsd-nat.c: Include regcache.h.
12684         * Makefile.in (armnbsd-nat.o): Update dependency list.
12685
12686         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12687
12688 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12689
12690         * gdbserver/Makefile.in: Fix typos in target rules.
12691
12692 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12693
12694         Fix part of PR gdb/267.
12695         * linespec.c (find_methods): Handle constructors specially for now.
12696
12697 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12698
12699         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12700         handling.
12701         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12702         standard_coerce_float_to_double().
12703
12704 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12705
12706         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12707         GDBINIT_FILENAME.
12708
12709 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12710
12711         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12712         find_variant_by_name, because it confuses the multiarch
12713         framework. Return NULL if there isn't an architecture with the
12714         user supplied name, instead of forcing a different one without
12715         recording the change with the multiarch machinery.
12716         (find_variant_by_name): Delete.
12717
12718 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12719
12720         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12721         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12722
12723 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12724
12725         * stack.c (print_frame_info_base): When calling
12726         print_frame_info_listing_hook, set current_source_symtab.
12727
12728 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12729
12730         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12731         and remove unused $(INCLUDE_DIR).
12732         Add regcache.c to OBS.
12733         Add generated register protocol files to clean target.
12734         Update dependencies for new objects, obsolete old target code.
12735
12736         * gdbserver/linux-low.c: Remove all platform-specific code to
12737         new files.  Remove various dead code.  Update to use regcache
12738         functionality.
12739         * gdbserver/remote-utils.c (fromhex): Add return statement
12740         to quiet warning.
12741         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12742         constant.
12743         (input_interrupt): Add integer parameter to match prototype
12744         of a signal handler.
12745         (outreg): Use register_data ().
12746         (prepare_resume_reply): Use gdbserver_expedite_regs.
12747         * gdbserver/server.c (main): Dynamically allocate own_buf because
12748         PBUFSIZ is no longer constant.  Use registers_to_string () and
12749         registers_from_string ().
12750         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
12751         for error (), fatal (), and warning ().  Update definition of
12752         PBUFSIZ to use regcache functionality.  Add include guard.
12753         * gdbserver/utils.c (fatal): Add missing ``const''.
12754         (warning): New function.
12755
12756         * regformats/regdat.sh: Include "regcache.h" in generated files.
12757         Provide init_registers () function.
12758         * regformats/regdef.h: Add prototype for set_register_cache ().
12759         Add include guard.
12760
12761         * gdbserver/linux-arm-low.c: New file.
12762         * gdbserver/linux-i386-low.c: New file.
12763         * gdbserver/linux-ia64-low.c: New file.
12764         * gdbserver/linux-m68k-low.c: New file.
12765         * gdbserver/linux-mips-low.c: New file.
12766         * gdbserver/linux-ppc-low.c: New file.
12767         * gdbserver/linux-sh-low.c: New file.
12768
12769         * gdbserver/regcache.c: New file.
12770         * gdbserver/regcache.h: New file.
12771
12772         * gdbserver/low-linux.c: Removed obsolete file.
12773
12774 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12775
12776         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12777         * config/i386/linux.mt: Likewise.
12778         * config/ia64/linux.mt: Likewise.
12779         * config/m68k/linux.mh: Likewise.
12780         * config/powerpc/linux.mh: Likewise.
12781         * config/mips/linux.mt: Likewise.
12782
12783         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12784
12785         * config/i386/i386lynx.mh: Mark gdbserver variables
12786         as (currently) obsolete for this target.
12787         * config/i386/nbsd.mt: Likewise.
12788         * config/i386/nbsdelf.mt: Likewise.
12789         * config/m32r/m32r.mt: Likewise.
12790         * config/m68k/m68klynx.mh: Likewise.
12791         * config/m68k/nbsd.mt: Likewise.
12792         * config/m68k/sun3os4.mh: Likewise.
12793         * config/mips/vr5000.mt: Likewise.
12794         * config/ns32k/nbsd.mt: Likewise.
12795         * config/pa/hppabsd.mh: Likewise.
12796         * config/pa/hppaosf.mh: Likewise.
12797         * config/powerpc/nbsd.mt: Likewise.
12798         * config/rs6000/rs6000lynx.mh: Likewise.
12799         * config/s390/s390.mt: Likewise.
12800         * config/s390/s390x.mt: Likewise.
12801         * config/sparc/sparclynx.mh: Likewise.
12802         * config/sparc/sun4os4.mh: Likewise.
12803         * config/i386/x86-64linux.mt: Likewise.
12804         * config/sparc/linux.mh: Likewise.
12805
12806 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12807
12808         * configure.tgt: Configure gdbserver only for known working
12809         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
12810         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
12811         SUBDIRS if it is configured.  Update comment for ${nativefile}.
12812         * configure: Regenerated.
12813
12814 2002-02-13  Michael Snyder  <msnyder@redhat.com>
12815
12816         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12817
12818         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12819         (default_gcore_mach): Just return 0, work around a problem in bfd.
12820         (default_gcore_target): OK to return NULL if exec_bfd is null.
12821         (make_mem_sec): Use a cast, avoid a warning.
12822
12823         * procfs.c (find_memory_regions_callback): Use a cast instead of
12824         calling host_pointer_to_address (which complains if
12825         sizeof (host pointer) != sizeof (target pointer)).
12826         (procfs_make_note_section): Avoid overflow in psargs string.
12827
12828         * procfs.c (procfs_make_note_section): Make the default
12829         implementation return an error.
12830
12831 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
12832
12833         * procfs.c (procfs_make_note_section): Provide a default definition
12834         (for alpha-dec-osf4.0f). Fix typos.
12835
12836 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
12837
12838         * linux-proc.c: Add include of regcache.h.
12839         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12840
12841 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
12842
12843         From 2002-01-18 Greg McGary <greg@mcgary.org>:
12844         * memattr.c (create_mem_region): Disallow useless empty region.
12845         Regions are half-open intervals, so allow [A..B) [B..C) as
12846         non-overlapping.
12847
12848 2002-02-13  Michael Chastain <mec@shout.net>
12849
12850         * defs.h: Kill CONST_PTR.
12851         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12852         * c-lang.c (c_builtin_types): Likewise.
12853         * ch-lang.c (ch_builtin_types): Likewise.
12854         * f-lang.c (f_builtin_types): Likewise.
12855         * language.c (unknown_builtin_types): Likewise.
12856         * m2-lang.c (m2_builtin_types): Likewise.
12857         * p-lang.c (pascal_builtin_types): Likewise.
12858         * scm-lang.c (c_builtin_types): Likewise.
12859
12860 2002-02-13  Keith Seitz  <keiths@redhat.com>
12861
12862         * arm-tdep.h (arm_get_next_pc): Add declaration.
12863
12864 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
12865
12866         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
12867         with other related struct-returning functions.
12868         (arm_extract_struct_value_address): New function.
12869         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
12870         initialize float_format, double_format and long_double_format as
12871         appropriate to the endianness of the target.
12872         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12873         (arm_use_struct_convention): Delete declaration.
12874         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12875
12876 2002-02-13  Keith Seitz  <keiths@redhat.com>
12877
12878         * defs.h (core_addr_to_string_nz): New function.
12879
12880 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
12881
12882         Apply missing bits of 2002-01-15 patch.
12883         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12884         (fill_fpregset): Use i387_fill_fsave.
12885
12886 2002-02-12  Keith Seitz  <keiths@redhat.com>
12887
12888         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12889         (core_addr_to_string_nz): New function.
12890
12891 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
12892
12893         * arm-linux-nat.c: Really include arm-tdep.h.
12894         * config/arm/tm-linux.h (struct type, struct value): Declare.
12895
12896 2002-02-11  Michael Snyder  <msnyder@redhat.com>
12897
12898         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12899         (gcore section): Ifdef for Solaris and Unixware only.
12900         (procfs_do_thread_registers): Unixware needs one lwpstatus
12901         per thread (not one prstatus or pstatus).
12902         (procfs_make_note_section): Iterate only over kernel threads (lwps),
12903         not over all gdb threads.  For unixware, call elfcore_write_pstatus
12904         once before iterating over threads.
12905
12906 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
12907
12908         * arm-tdep.h: New file.
12909         * arm-tdep.c: Include arm-tdep.h.
12910         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12911         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12912         (arm_print_float_info, arm_register_type, convert_to_extended)
12913         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12914         (arm_extract_return_value, arm_register_name): Make static.
12915         (arm_software_single_step): Similarly.  Fix types in declaration.
12916         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12917         (arm_store_return_value, arm_store_struct_return): New functions.
12918         (arm_gdbarch_init): Register the above functions.  Also register
12919         call_dummy_start_offset, sizeof_call_dummy_words,
12920         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12921         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12922         max_register_virtual_size, register_size.  Set up
12923         prologue_cache.saved_regs here, rather than ...
12924         (_initialize_arm_tdep): ... here.
12925         * config/arm/tm-arm.h (struct type, struct value): Delete forward
12926         declarations.
12927         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12928         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12929         (arm_print_float_info, arm_register_type, convert_to_extended)
12930         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12931         (arm_extract_return_value, arm_register_name): Delete declarations.
12932         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12933         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12934         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12935         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12936         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12937         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12938         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12939         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12940         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12941         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12942         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12943         (arm_get_next_pc): No-longer static -- these are needed by the RDI
12944         interface.
12945         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12946         * remote-rdi.c remote-rdp.c: Likewise.
12947         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12948         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12949         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12950         definition.
12951
12952         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12953         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12954         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12955         from non-ARM_ prefixed definitions.
12956         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12957         all uses of above.
12958         * remote-rdi.c remote-rdp.c: Likewise.
12959         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12960
12961 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
12962
12963         * arm-tdep.c (arm_frameless_function_invocation)
12964         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12965         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12966         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12967         (arm_pop_frame, arm_get_next_pc): Make static.
12968         (arm_gdbarch_init): Register above in gdbarch structure.
12969         (arm_read_fp): Renamed from arm_target_read_fp.
12970         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12971         * config/arm/tm-arm.h (arm_frameless_function_invocation)
12972         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12973         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12974         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12975         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12976         (arm_pc_is_thumb_dummy): Delete declarations.
12977         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12978         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12979         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12980         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12981
12982 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
12983
12984         * symtab.c (compare_search_syms): New function.
12985         (sort_search_symbols): New function.
12986         (search_symbols): Sort symbols after searching rather than
12987         before.
12988
12989 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
12990
12991         * NEWS: Linux -> GNU/Linux.
12992
12993 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
12994
12995         * gdbarch.sh: For for level one methods, disallow a definition
12996         when partially multi-arched.  Add comments explaining rationale.
12997         * gdbarch.h: Re-generate.
12998
12999 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13000
13001         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13002         multi-arch partial.
13003
13004 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13005
13006         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13007         field.  Use diff -u.
13008         * gdbarch.c: Re-generate.
13009
13010 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13011
13012         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13013         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13014         partial.
13015
13016 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13017
13018         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13019         multi-arch partial.
13020         (PUSH_ARGUMENTS): Switch to using predefault.
13021         * gdbarch.c: Regenerate.
13022
13023 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13024
13025         * valops.c (PUSH_ARGUMENTS): Delete definition.
13026         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13027         partial.  Default to default_push_arguments.
13028         * gdbarch.h, gdbarch.c: Regenerate.
13029
13030 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13031
13032         * defs.h (throw_exception): Rename return_to_top_level.  Update
13033         comments.
13034         * utils.c (error_stream, internal_verror, quit): Ditto.
13035         * top.c (throw_exception, catcher): Ditto.
13036         * sparclet-rom.c (sparclet_load): Ditto.
13037         * remote.c (interrupt_query, minitelnet): Ditto.
13038         * remote-sds.c (interrupt_query): Ditto.
13039         * remote-mips.c (mips_error, mips_kill): Ditto.
13040         * ocd.c (interrupt_query): Ditto.
13041         * monitor.c (monitor_interrupt_query): Ditto.
13042         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13043         * target.h: Update comment.
13044
13045         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13046
13047 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13048
13049         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13050         default_double_format.
13051         * gdbarch.h, gdbarch.c: Re-generate.
13052         * findvar.c (floatformat_unknown): Delete variable definition.
13053         * doublest.h (floatformat_unknown): Delete variable declaration.
13054
13055 2002-02-09  Jim Blandy  <jimb@redhat.com>
13056
13057         * stabsread.c (read_type): Add code to parse Sun's syntax for
13058         prototyped function types.
13059
13060 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13061
13062         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13063         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13064
13065 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13066
13067         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13068         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13069         now _initialize_xcoffsolib gets called again and overrides the
13070         commands from solib.c in a native configuration.
13071
13072 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13073
13074         * doublest.c (store_typed_floating): Don't try to return a value.
13075         Fixes PR gdb/290.
13076
13077 2002-02-08  Jim Blandy  <jimb@redhat.com>
13078
13079         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13080         is prototyped and has no arguments, print its argument list as
13081         `(void)'.
13082
13083 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13084
13085         * MAINTAINERS (write-after-approval): Add myself.
13086         (paper-trail): I've escaped!
13087
13088 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13089
13090         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13091         changes.
13092         (_initialize_check_for_gdb_ini): Ditto.
13093
13094 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13095
13096         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13097         xaprintf -> xasprintf.
13098
13099 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13100
13101         * win32-nat.c: Remove use of printf and sprintf functions.
13102
13103 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13104
13105         * arm-tdep.c (arm_frame_chain_valid): Make static.
13106         (arm_push_arguments): Likewise.
13107         (arm_gdbarch_init): New function.
13108         (_initialize_arm_tdep): Call it.
13109         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13110         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13111         (FRAME_CHAIN_VALID): Delete.
13112         (arm_frame_chain_valid): Delete declaration.
13113         (PUSH_ARGUMENTS): Delete.
13114         (arm_push_arguments): Delete declaration.
13115         (CALL_DUMMY_P): Delete.
13116
13117 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13118             Corinna Vinschen  <vinschen@redhat.com>
13119
13120         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13121         on builtin float types.
13122
13123 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13124
13125         * utils.c: Include <curses.h> before "bfd.h".
13126         * tui/tui-hooks.c: Likewise.
13127         * tui/tui.c: Likewise.
13128         * tui/tuiCommand.c: Likewise.
13129         * tui/tuiData.c: Likewise.
13130         * tui/tuiDataWin.c: Likewise.
13131         * tui/tuiDisassem.c: Likewise.
13132         * tui/tuiGeneralWin.c: Likewise.
13133         * tui/tuiIO.c: Likewise.
13134         * tui/tuiLayout.c: Likewise.
13135         * tui/tuiRegs.c: Likewise.
13136         * tui/tuiSource.c: Likewise.
13137         * tui/tuiSourceWin.c: Likewise.
13138         * tui/tuiStack.c: Likewise.
13139         * tui/tuiWin.c: Likewise.
13140
13141 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13142
13143         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13144         to include space for pseudoregs as well. Update loops accordingly.
13145         (sh_fp_frame_init_saved_regs): Ditto.
13146         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13147
13148 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13149
13150         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13151         Add Richard Earnshaw to Arm maintainers.
13152
13153 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13154
13155         * defs.h (warning_begin): Delete declaration.
13156
13157         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13158         Delete macro.
13159
13160 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13161
13162         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13163         Logic bug, remove misplaced else.
13164
13165 2002-02-07  Klee Dienes  <klee@apple.com>
13166
13167         * fork-inferior.c (fork_inferior): Add '!' to the list of
13168         characters that need to be quoted when building a string for the
13169         shell.  Quote '!' specifically with a backslash, since CSH chokes
13170         when trying to evaluate "str!str".
13171
13172 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13173
13174         * rdi-share/host.h: Only provide a typedef for bool if it is not
13175         defined.
13176
13177 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13178
13179         * breakpoint.h (enum bptype): Add new overlay event bp type.
13180         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13181
13182         * breakpoint.c (create_internal_breakpoint): New function.
13183         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13184         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13185         (create_thread_event_breakpoint): Ditto.
13186         (create_solib_event_breakpoint): Ditto.
13187         (create_overlay_event_breakpoint): New function.
13188         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13189         (update_breakpoints_after_exec): Delete and re-initialize
13190         overlay event breakpoints after an exec.  Add FIXME comment
13191         about longjmp breakpoint.
13192         (print_it_typical): Ignore overlay event breakpoints.
13193         (print_one_breakpoint): Ditto.
13194         (mention): Ditto.
13195         (bpstat_what): Do not stop for overlay event breakpoints.
13196         (delete_breakpoint): Don't delete overlay event breakpoints.
13197         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13198         (breakpoint_re_set): Re-create overlay event breakpoint.
13199
13200         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13201         (overlay_manual_command): Disable overlay breakpoints.
13202         (overlay_off_command): Disable overlay breakpoints.
13203
13204 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13205
13206         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13207         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13208         to here from config/tm-arm.h.
13209         (coff_sym_is_thumb): Make static.
13210         (arm_elf_make_msymbol_special): New function.
13211         (arm_coff_make_msymbol_special): New function.
13212         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13213         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13214         (coff_sym_is_thumb): Delete declaration.
13215         (arm_elf_make_msymbol_special): Declare.
13216         (arm_coff_make_msymbol_special): Declare.
13217         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13218         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13219
13220 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13221
13222         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13223
13224 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13225
13226         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13227         * gdbarch.c gdbarch.h: Regenerate.
13228         * arch-utils.c (default_print_float_info): New function.
13229         * arch-utils.h (default_print_float_info): Prototype it.
13230         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13231         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13232         (PRINT_FLOAT_INFO): Document it.
13233
13234         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13235         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13236         (PRINT_FLOAT_INFO): Define.
13237
13238 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13239
13240         * win32-nat.c (_initialize_check_for_gdb_ini):
13241         Add typecast to sprintf argument to suppress a warning.
13242
13243 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13244
13245         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13246         to allow easier handling of pass state.
13247         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13248         that gives exception name and address.
13249         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13250         and set last_sig value to ourstatus->value.sig. Some missing
13251         exceptions added.
13252         (child_continue): Correctly report continue_status.
13253         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13254         TARGET_SIGNAL_0 (new default value).
13255         (child_resume): consider sig argument passed to decide if
13256         the exception should be passed to debuggee or not.
13257
13258 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13259
13260         * regcache.c (fetch_register): Call target_fetch_register
13261         only if we don't call FETCH_PSEUDO_REGISTER.
13262         (store_register): Call target_store_register only if we
13263         don't call STORE_PSEUDO_REGISTER.
13264
13265 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13266
13267         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13268         ELF_MAKE_MSYMBOL_SPECIAL.
13269         * gdbarch.c, gdbarch.h: Regenerate.
13270         * arch-utils.c (default_make_msymbol_special): New function.
13271         * arch-utils.h (default_make_msymbol_special): Export.
13272         * elfread.c (elf_symtab_read): Compile use of
13273         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13274         multiarched.
13275         * coffread.c (coff_symtab_read): Ditto, for
13276         COFF_MAKE_MSYMBOL_SPECIAL.
13277
13278 2002-02-05  Jim Blandy  <jimb@redhat.com>
13279
13280         * solib-svr4.c (svr4_truncate_ptr): New function.
13281         (svr4_relocate_section_addresses): Do the address arithmetic with
13282         the appropriate truncation for target addresses, even when
13283         CORE_ADDR is larger than a target address.
13284
13285 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13286
13287         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13288         to (int *).
13289
13290 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13291
13292         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13293         code.
13294
13295 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13296
13297         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13298
13299 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13300
13301         * gdbserver/linux-low.c: Remove unused include files.
13302
13303 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13304
13305         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13306         (read_inferior_memory): Use it.
13307         (write_inferior_memory): Likewise.
13308
13309 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13310
13311         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13312         grubbing through sys_errlist.
13313
13314 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13315
13316         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13317
13318 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13319         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13320
13321 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13322
13323         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13324         (do_sfunc, set_cmd_sfunc): New functions.
13325
13326         * command.h (struct cmd_list_element): Add field func.
13327         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13328         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13329         * cli/cli-decode.h: Ditto.
13330
13331         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13332         (help_all, help_cmd_list): Ditto.
13333         (find_cmd, complete_on_cmdlist): Ditto.
13334         * top.c (execute_command): Ditto.
13335
13336         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13337         function.sfunc.
13338
13339         * infcmd.c (notice_args_read): Fix function signature.
13340
13341         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13342         * cli/cli-decode.c (add_set_cmd): Ditto.
13343         * utils.c (initialize_utils): Ditto.
13344         * maint.c (_initialize_maint_cmds): Ditto.
13345         * infrun.c (_initialize_infrun): Ditto.
13346         * demangle.c (_initialize_demangler): Ditto.
13347         * remote.c (add_packet_config_cmd): Ditto.
13348         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13349         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13350         * proc-api.c (_initialize_proc_api): Ditto.
13351         * kod.c (_initialize_kod): Ditto.
13352         * valprint.c (_initialize_valprint): Ditto.
13353         * top.c (init_main): Ditto.
13354         * infcmd.c (_initialize_infcmd): Ditto.
13355         * corefile.c (_initialize_core): Ditto.
13356         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13357         * arch-utils.c (initialize_current_architecture): Ditto.
13358         (_initialize_gdbarch_utils): Ditto.
13359         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13360
13361         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13362         * wince.c (_initialize_inftarg): Ditto.
13363         * symfile.c (_initialize_symfile): Ditto.
13364         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13365         * language.c (_initialize_language): Ditto.
13366         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13367
13368 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13369
13370         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13371
13372 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13373
13374         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13375         Add rules for building the register data files.
13376
13377 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13378
13379         * regformats/regdat.sh: Add braces to the definition of
13380         expedite_regs_${arch}.
13381
13382 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13383
13384         * regformats/regdef.h (struct reg): Add comment describing the
13385         requirements for offset and size fields.
13386
13387 2002-02-04  Andreas Schwab  <schwab@suse.de>
13388
13389         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13390         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13391
13392 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13393
13394         * gdbarch.sh (copyright): Update years in generated header.
13395         (SMASH_TEXT_ADDRESS): Add rule.
13396         * gdbarch.h, gdbarch.c: Re-generate.
13397         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13398         * dbxread.c: Likewise.
13399         * dwarfread.c: Likewise.
13400         * elfread.c: Likewise.
13401         * somread.c: Likewise.
13402
13403         * arm-tdep.c (arm_smash_text_address): New function.
13404         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13405
13406 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13407
13408         Add support for hardware watchpoints on win32 native.
13409         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13410         CONTEXT_DEBUG_REGISTERS.
13411         (dr variable): New variable. Static array containing a local copy
13412         of debug registers.
13413         (debug_registers_changed): New variable.  Reflects when debug registers
13414         are changed and need to be written to inferior.
13415         (debug_registers_used): New variable. Reflects when any debug register
13416         was set, used when new threads are created.
13417         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13418         i386-nat code.
13419         (thread_rec): Set dr array if id is the thread of current_event .
13420         (child_continue, child_resume): Change the debug registers for all
13421         threads if debug_registers_changed.
13422         (child_add_thread): Change the debug registers if debug_registers_used.
13423         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13424         Link nm.h to new nm-cygwin.h file.
13425         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13426         of hardware registers.
13427
13428 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13429
13430         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13431         Restore behavour broken by 2002-01-20 Andrew Cagney
13432         <ac131313@redhat.com> IEEE_FLOAT removal.
13433
13434 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13435
13436         * c-valprint.c (c_val_print): Pass a proper valaddr to
13437         cp_print_class_method.
13438         * valops.c (search_struct_method): If there is only one method
13439         and args is NULL, return that method.
13440
13441 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13442
13443         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13444         accessing tag_name directly.
13445
13446 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13447
13448         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13449         of accessing tag_name directly.
13450
13451 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13452
13453         PR gdb/280
13454         * gdbtypes.c (replace_type): New function.
13455         * gdbtypes.h (replace_type): Add prototype.
13456         * stabsread.c (read_type): Use replace_type.
13457
13458 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13459
13460         * Makefile.in (memattr.o): Add missing dependencies rule.
13461
13462 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13463
13464         * breakpoint.c (break_at_finish_command): Really export.
13465         (break_at_finish_at_depth_command): Ditto.
13466         (tbreak_at_finish_command): Ditto.
13467         * hppa-tdep.c: Include completer.h.
13468         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13469         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13470
13471 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13472
13473         * utils.c (do_write): New function.
13474         (error_stream): Rewrite combining the code from error_begin and
13475         verror.
13476         (verror): Rewrite using error_stream.
13477         (error_begin): Delete function.
13478
13479 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13480
13481         * utils.c (error_begin): Make static.
13482         * defs.h (error_begin): Delete declaration.
13483
13484         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13485         (decode_line_1): Use cplusplus_error instead of error_begin,
13486         cplusplus_hint and return_to_top_level.
13487         * coffread.c (coff_symfile_read): Use error instead of error_begin
13488         and return_to_top_level.
13489         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13490
13491 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13492
13493         * language.h (type_error, range_error): Make string parameter
13494         constant.
13495         * language.c (warning_pre_print): Delete extern declaration.
13496         * dwarfread.c (warning_pre_print): Ditto.
13497         * language.c (type_error, range_error): Rewrite to use verror and
13498         vwarning instead of warning_begin.
13499
13500 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13501
13502         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13503         (set_ignore_count): Move misplaced comment back where it belongs.
13504
13505 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13506
13507         * command.h (NO_FUNCTION): Delete macro.
13508         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13509         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13510         * tracepoint.c (_initialize_tracepoint): Ditto.
13511         * cli/cli-decode.c (add_set_cmd): Ditto.
13512         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13513
13514 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13515
13516         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13517         Update ``this'' pointer when calling virtual functions.
13518
13519 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13520
13521         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13522         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13523
13524 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13525
13526         * regformats/reg-arm.dat: New file.
13527         * regformats/reg-i386.dat: New file.
13528         * regformats/reg-ia64.dat: New file.
13529         * regformats/reg-m68k.dat: New file.
13530         * regformats/reg-mips.dat: New file.
13531         * regformats/reg-ppc.dat: New file.
13532         * regformats/reg-sh.dat: New file.
13533         * regformats/regdef.h: New file.
13534         * regformats/regdat.sh: New file.
13535
13536 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13537
13538         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13539         (arm_frame_args_address, arm_frame_locals_address): New functions.
13540         (arm_frame_num_args): New function.
13541         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13542         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13543         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13544
13545 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13546
13547         * breakpoint.c (break_at_finish_command): Export.
13548         (break_at_finish_at_depth_command): Export.
13549         (tbreak_at_finish_command): Export.
13550         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13551         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13552         "txbreak" commands, which are HPPA specific.
13553
13554         * printcmd.c (disassemble_command): Remove an ancient
13555         artifact of an old merge.
13556
13557         * symfile.h (enum overlay_debugging_state):
13558         Define enum constant values for overlay mode.
13559         * symfile.c (overlay_debugging): Use enums instead of literals.
13560         (overlay_is_mapped, overlay_auto_command,
13561         overlay_manual_command): Ditto.
13562
13563         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13564         breakpoint_here_p, breakpoint_inserted_here_p,
13565         breakpoint_thread_match, bpstat_stop_status,
13566         describe_other_breakpoints, check_duplicates, clear_command):
13567         Coding standard fixes.
13568
13569         * target.c (target_xfer_memory): Add spaces, coding standard.
13570         (do_xfer_memory): Add missing line to trust-readonly
13571         code: check bfd SEC_READONLY flag for section.
13572
13573 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13574
13575         * PROBLEMS: Fix typo, 5.1->5.1.1.
13576
13577 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13578
13579         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13580         data symbols, since we search based on textlow and texthigh.
13581         (find_pc_sect_symtab): Likewise.
13582
13583 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13584
13585         * defs.h (vwarning): Declare.
13586         * utils.c (vwarning): New function.
13587         (warning): Call vwarning.
13588         (warning_begin): Delete function.
13589
13590         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13591         the warning message.
13592         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13593         warning_begin.
13594
13595 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13596
13597         * NEWS: Mention "set trust-readonly-sections" command.
13598         Mention generate-core-file command.
13599
13600 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13601
13602         * target.c: New command, "set trust-readonly-sections on".
13603         (do_xfer_memory): Honor the suggestion to trust readonly sections
13604         by reading them from the object file instead of from the target.
13605         (initialize_targets): Register command "set trust-readonly-sections".
13606
13607 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13608
13609         * parse.c (target_map_name_to_register): Simplify, search regs and
13610         pseudo-regs using a single loop.
13611
13612 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13613
13614         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13615
13616 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13617
13618         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13619         * config/i386/i386v42mp.mh: Add i387-nat.o .
13620         * i386v4-nat.c: Include i387-nat.h.
13621         (supply_fpregset): Use i387_supply_fsave.
13622         (fill_fpregset): Use i387_fill_fsave.
13623
13624 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13625
13626         * arm-tdep.c (arm_call_dummy_words): Define.
13627         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13628         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13629         (CALL_DUMMY_WORDS): Define.
13630         (arm_call_dummy_words): Declare.
13631         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13632         (arm_linux_call_dummy_words): Declare.
13633
13634 2002-01-30  Andreas Schwab  <schwab@suse.de>
13635
13636         * m68klinux-nat.c: Fix last change to use regcache_collect
13637         instead of referencing registers[] directly.
13638
13639 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13640
13641         * parse.c (target_map_name_to_register): Delete code wrapped in
13642         #ifdef REGISTER_NAME_ALIAS_HOOK.
13643
13644 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13645
13646         * regcache.c (legacy_read_register_gen): Need to be able to
13647         read pseudo-register as well as real register.
13648         (legacy_write_register_gen): Ditto.
13649
13650 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13651
13652         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13653         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13654         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13655         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13656         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13657         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13658         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13659         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13660         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13661         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13662         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13663         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13664         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13665         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13666         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13667         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13668         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13669         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13670         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13671         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13672
13673 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13674
13675         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13676         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13677         (initialize_current_architecture): Update target_byte_order using
13678         information from BFD.
13679         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13680         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13681
13682 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13683
13684         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13685         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13686
13687         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13688         #ifdef INVALID_FLOAT.
13689         * infcmd.c (do_registers_info): Ditto.
13690         * values.c (unpack_double): Ditto.  Add comment.
13691
13692         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13693         already commented out.
13694
13695 2002-01-26  Andreas Schwab  <schwab@suse.de>
13696
13697         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13698         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13699         registers and add support for PTRACE_GETREGS.
13700
13701 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13702
13703         GDB 5.1.1 released from 5.1 branch.
13704         * NEWS: Add 5.1.1 news.
13705         * README: Sync with 5.1 branch.
13706
13707 2002-01-23  Fred Fish  <fnf@redhat.com>
13708
13709         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13710         stabstring on initial malloc.  Reallocing will copy it for us,
13711         if necessary.
13712
13713 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13714
13715         * Makefile.in (hpread_h): Delete.
13716         (HFILES_NO_SRCDIR): Remove hpread.h.
13717         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13718         (hpread.o): Update dependencies.
13719         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13720
13721         * hp-psymtab-read.c: Remove file.
13722         * hp-symtab-read.c: Remove file.
13723         * hpread.h: Remove file.
13724
13725         * hpread.c: Merge all contents of hp-psymtab-read.c,
13726         hp-symtab-read.c and hpread.h into this file, as it was prior to
13727         January 1999.
13728
13729         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13730         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13731         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13732         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13733
13734 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13735
13736         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13737         fill_gregset): Call gdbarch_tdep() just once, assign result to
13738         variable and use that, instead of calling the function several
13739         times.
13740
13741 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
13742
13743         * configure.host: Accept sparcv9 as alias for sparc64.
13744         * configure.tgt: Likewise.
13745
13746 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
13747
13748         * solib-aix5.c (build_so_list_from_mapfile)
13749         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13750         arguments is not reversed.
13751         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13752         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13753
13754 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
13755
13756         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13757         modified version of obsolete sh_fetch_pseudo_register.
13758         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13759         (sh4_register_read): New function.
13760         (sh_pseudo_register_write): New function. Renamed and modified
13761         version of obsolete sh_store_pseudo_register.
13762         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13763         (sh4_register_write): New function.
13764         (sh_gdbarch_init): Remove setting of gdbarch function
13765         fetch_pseudo_register and store_pseudo_register. Remove setting of
13766         register_convert_to_raw, register_convert_to_virtual,
13767         register_convertible.
13768         (sh_sh4_register_convertible): Delete. No longer needed. All is
13769         taken care by architecture specific functions
13770         register_read/register_write.
13771         (sh_sh4_register_convert_to_virtual): Make static.
13772         (sh_sh4_register_convert_to_raw): Ditto.
13773
13774 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
13775
13776         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13777         (floatformat_is_nan, floatformat_mantissa): Ditto.
13778
13779         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13780         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13781         builtin_type_ieee_double_little,
13782         builtin_type_ieee_double_littlebyte_bigword,
13783         builtin_type_m68881_ext, builtin_type_i960_ext,
13784         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13785         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13786         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13787         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13788
13789 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
13790
13791         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13792         parameter.  Set frameless flag if it exists and depended of
13793         whether the scanned function is frameless or not.
13794         (xstormy16_skip_prologue): If function is frameless, return
13795         result of xstormy16_scan_prologue().
13796         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13797         call.
13798
13799 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
13800
13801         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13802         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13803         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13804         sh_sh4_register_byte, sh_sh4_register_raw_size,
13805         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13806         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13807         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13808         sh_store_pseudo_register, sh_do_pseudo_register): Call
13809         gdbarch_tdep() just once, assign result to variable and use that,
13810         instead of calling the function several times.
13811
13812 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
13813
13814         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13815         macros instead of LAST_FPU_CTRL_REGNUM.
13816         (store_register): Likewise.
13817
13818 2002-01-21  Jim Blandy  <jimb@redhat.com>
13819
13820         * infcmd.c (run_command): Check that the `exec' target layer's BFD
13821         is up-to-date before running the program, not just when a program
13822         exits.
13823
13824 2002-01-21  Fred Fish  <fnf@redhat.com>
13825
13826         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13827         when we have found all instructions we are looking for.
13828
13829 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13830
13831         * arm-tdep.c (arm_register_name): New function.
13832         (arm_registers_names): Make static.
13833         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13834         (arm_register_name): Declare.
13835         (REGISTER_NAME): Use it.
13836
13837 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13838             Kevin Buettner  <kevinb@redhat.com>
13839
13840         Convert arm targets to new FRAME interface.
13841         * arm-tdep.c (struct frame_extra_info): Remove fsr.
13842         (arm_frame_find_save_regs): Delete.
13843         (arm_frame_init_saved_regs): New.
13844         (arm_init_extra_frame_info): Alloacte saved_regs as required.
13845         Allocate extra_info as required.  Convert all uses of fsr.regs
13846         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13847         to use extra_info.
13848         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13849         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13850         (check_prologue_cache, save_prologue_cache): Likewise.
13851         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13852         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13853         (FRAME_FIND_SAVED_REGS): Delete.
13854         (arm_frame_find_saved_regs): Delete prototype.
13855         (arm_frame_init_saved_regs): New prototype.
13856         (FRAME_INIT_SAVED_REGS): Define.
13857
13858 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13859
13860         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13861
13862 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13863
13864         From Jeff Law <law@redhat.com>:
13865         * infttrace.c: Include <sys/pstat.h>.
13866         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
13867         exec file if the ttrace equivalent fails.
13868
13869 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13870
13871         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13872         (closeLogFile): Ditto.
13873
13874 2002-01-20  Michael Chastain  <mec@shout.net>
13875
13876         * top.c (print_gdb_version): Bump copyright year to 2002.
13877
13878 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13879
13880         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13881         Zannoni and Eli Zaretskii.
13882
13883 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13884
13885         * buildsym.c: Update copyright years.
13886         * c-typeprint.c: Likewise.
13887         * dwarf2read.c: Likewise.
13888         * f-typeprint.c: Likewise.
13889         * gdbtypes.c: Likewise.
13890         * gdbtypes.h: Likewise.
13891         * hp-symtab-read.c: Likewise.
13892         * hpread.c: Likewise.
13893         * mdebugread.c: Likewise.
13894         * p-typeprint.c: Likewise.
13895
13896 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13897
13898         * remote-sim.c (gdbsim_open): Simplify code testing the macro
13899         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
13900         byte-order selectable.
13901         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13902         * arch-utils.c: Ditto.
13903         (set_endian): Ditto.
13904         (set_endian_from_file): Ditto.
13905         * gdbserver/low-sim.c (create_inferior): Ditto.
13906         * gdbarch.sh: Ditto.
13907         * gdbarch.h: Re-generate.
13908         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13909         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13910         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13911         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13912         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13913         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13914         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13915         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13916         macro definition.
13917         * config/mips/tm-wince.h: Remove #undef of macro
13918         TARGET_BYTE_ORDER_SELECTABLE.
13919         * config/sh/tm-wince.h: Ditto.
13920
13921 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13922
13923         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13924         member function fields.  Add accessor macro
13925         TYPE_FN_FIELD_ARTIFICIAL.
13926         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13927         * c-typeprint.c (c_type_print_base): Skip artificial member
13928         functions.
13929
13930 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13931
13932         * f-typeprint.c: Delete unused function f_type_print_args.
13933         * p-typeprint.c: Delete unused function pascal_type_print_args.
13934
13935 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
13936
13937         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
13938         comment.  Add ``artificial'' to ``union field_location''.
13939
13940         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13941
13942         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13943         * mdebugread.c (parse_symbol): Likewise.
13944         * stabsread.c (define_symbol): Likewise.
13945         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13946         initializing TYPE_FIELD_BITPOS to n (obsolete).
13947         (hpread_doc_function_type): Likewise.
13948         * hpread.c (hpread_function_type): Likewise.
13949
13950 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13951
13952         * configure.in (host_makefile_frag): Only require a host makefile
13953         fragment when a native build.
13954         * configure: Re-generate.
13955
13956 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
13957
13958         * doublest.h (floatformat_from_type): Declare.
13959         * doublest.c (floatformat_from_type): New function.
13960         (convert_typed_floating): Use.
13961
13962         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13963         call to function floatformat_from_type.
13964
13965         * gdbarch.sh (IEEE_FLOAT): Delete.
13966         * gdbarch.h, gdbarch.c: Re-generate.
13967         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13968         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13969         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13970         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13971         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13972         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13973         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13974         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13975         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13976         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13977         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13978         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13979
13980         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13981         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13982         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13983         * sh-tdep.c (sh_gdbarch_init): Ditto.
13984         * mips-tdep.c (mips_gdbarch_init): Ditto.
13985         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13986         * cris-tdep.c (cris_gdbarch_init): Ditto.
13987
13988 2002-01-20  Jiri Smid  <smid@suse.cz>
13989
13990         * configure.host, configure.tgt: Support x86-64.
13991         * NEWS: Note new target x86-64.
13992
13993         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13994         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13995         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13996         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13997         x86-64-linux-nat.o): Fix dependencies.
13998
13999 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14000
14001         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14002         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14003         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14004         * config/sparc/xm-sun4os4.h: Delete file.
14005         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14006
14007 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14008
14009         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14010         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14011         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14012         * config/i386/i386lynx.mh (XM_FILE): Delete.
14013         * config/rs6000/xm-rs6000ly.h: Delete file.
14014         * config/sparc/xm-sparclynx.h: Delete file.
14015         * config/m68k/xm-m68klynx.h: Delete file.
14016         * config/i386/xm-i386lynx.h: Delete file.
14017         * config/xm-lynx.h: Delete file.
14018         * config/djgpp/fnchange.lst: Update.
14019
14020 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14021
14022         * alpha-tdep.c (alpha_register_byte): New function.
14023         (alpha_register_raw_size): Ditto.
14024         (alpha_register_virtual_size): Ditto.
14025         (alpha_skip_prologue_internal): Renamed from
14026         alpha_skip_prologue.
14027         (alpha_skip_prologue): New version that calls
14028         alpha_skip_prologue_internal.
14029         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14030         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14031         second argument from alpha_skip_prologue.
14032         (REGISTER_BYTE): Use alpha_register_byte.
14033         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14034         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14035         (FRAMELESS_FUNCTION_INVOCATION): Use
14036         generic_frameless_function_invocation_not.
14037         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14038         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14039
14040 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14041
14042         * config/mips/xm-news-mips.h: Delete file.
14043         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14044
14045         * config/m88k/xm-m88k.h: Delete file.
14046         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14047         * config/m88k/xm-delta88v4.h: Ditto.
14048         * config/m88k/xm-delta88.h: Ditto.
14049
14050         * config/alpha/xm-fbsd.h: Delete file.
14051         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14052
14053         * config/sparc/xm-sparc.h: Delete file.
14054         * Makefile.in (xm-sun4os4.h): Delete dependency.
14055         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14056         * config/sparc/xm-sun4os4.h: Ditto.
14057         * config/sparc/xm-linux.h: Ditto.
14058
14059         * config/i386/xm-windows.h: Delete file.
14060
14061 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14062
14063         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14064         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14065
14066 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14067
14068         * alpha-tdep.c (alpha_call_dummy_words): New.
14069         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14070         (CALL_DUMMY_P): Define.
14071         (CALL_DUMMY_WORDS): Define.
14072         (SIZEOF_CALL_DUMMY_WORDS): Define.
14073
14074 2002-01-19  Per Bothner  <per@bothner.com>
14075
14076         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14077         isn't NULL, which can happen with some gcj-3.x-produced code.
14078
14079 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14080
14081         * alpha-tdep.c (alpha_register_virtual_type): New function.
14082         (alpha_init_frame_pc_first): Ditto.
14083         (alpha_fix_call_dummy): Ditto.
14084         (alpha_store_struct_return): Ditto.
14085         (alpha_extract_struct_value_address): Ditto.
14086         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14087         alpha_register_virtual_type.
14088         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14089         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14090         alpha_extract_struct_value_address.
14091         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14092         (INIT_FRAME_PC): Use init_frame_pc_noop.
14093         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14094
14095 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14096
14097         * i386gnu-nat.c: Include "i386-tdep.h".
14098         (fetch_fpregs): Simplify code dealing with uninitialized floating
14099         point states such that it doesn't require FP7_REGNUM.
14100
14101 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14102
14103         * alpha-tdep.c (frame_extra_info): New.
14104         (alpha_find_saved_regs): Make static.  Use
14105         frame->extra_info.
14106         (alpha_frame_init_saved_regs): New function.
14107         (alpha_frame_saved_pc): Use frame->extra_info.
14108         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14109         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14110         (init_extra_frame_info): Rename to...
14111         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14112         (alpha_print_extra_frame_info): New function.
14113         (alpha_frame_locals_address): Ditto.
14114         (alpha_frame_args_address): Ditto.
14115         (alpha_pop_frame): Use frame->extra_info.
14116         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14117         alpha_frame_args_address.
14118         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14119         (alpha_find_saved_regs): Remove prototype.
14120         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14121         (EXTRA_FRAME_INFO): Remove.
14122         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14123         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14124
14125 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14126
14127         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14128         (alpha_cannot_fetch_register): Ditto.
14129         (alpha_cannot_store_register): Ditto.
14130         (alpha_register_convertible): Ditto.
14131         (alpha_use_struct_convention): Ditto.
14132         * config/alpha/tm-alpha.h: Update copyright years.
14133         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14134         (INNER_THAN): Use core_addr_lessthan.
14135         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14136         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14137         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14138         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14139         (FRAME_CHAIN): Remove unnecessary cast.
14140
14141 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14142
14143         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14144         obsolete.
14145
14146 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14147
14148         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14149         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14150         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14151         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14152         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14153         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14154         * x86-64-linux-nat.c: Ditto.
14155
14156 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14157
14158         * alpha-tdep.c (alpha_register_name): New function.
14159         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14160         (REGISTER_NAME): Define.
14161
14162 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14163
14164         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14165
14166 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14167
14168         * alpha-tdep.c: Update copyright years.
14169         (alpha_next_pc): New function.
14170         (alpha_software_single_step): Ditto.
14171         * config/alpha/tm-alpha.h: Add prototype for
14172         alpha_software_single_step.
14173
14174 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14175
14176         * alphabsd-nat.c: Update copyright years.
14177         (fill_gregset): Use regcache_collect.
14178         (fill_fpregset): Likewise.
14179         (fetch_inferior_registers): Only fetch integer registers
14180         if requested to do so.
14181         (store_inferior_registers): Only store integer registers
14182         if requested to do so.
14183
14184 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14185
14186         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14187         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14188         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14189         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14190         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14191         * config/arm/linux.mh (XDEPFILES): Delete.
14192         * config/arm/nbsd.mh (XDEPFILES): Delete.
14193         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14194         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14195         * config/i386/i386m3.mh (XDEPFILES): Delete.
14196         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14197         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14198         * config/i386/fbsd.mh (XDEPFILES): Delete.
14199         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14200         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14201         * config/i386/i386v4.mh (XDEPFILES): Delete.
14202         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14203         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14204         * config/i386/i386aix.mh (XDEPFILES): Delete.
14205         * config/i386/go32.mh (XDEPFILES): Delete.
14206         * config/i386/cygwin.mh (XDEPFILES): Delete.
14207         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14208         * config/i386/i386mach.mh (XDEPFILES): Delete.
14209         * config/i386/i386v32.mh (XDEPFILES): Delete.
14210         * config/i386/linux.mh (XDEPFILES): Delete.
14211         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14212         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14213         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14214         * config/i386/i386sco.mh (XDEPFILES): Delete.
14215         * config/i386/i386v.mh (XDEPFILES): Delete.
14216         * config/i386/nbsd.mh (XDEPFILES): Delete.
14217         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14218         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14219         * config/i386/symmetry.mh (XDEPFILES): Delete.
14220         * config/i386/obsd.mh (XDEPFILES): Delete.
14221         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14222         * config/ia64/linux.mh (XDEPFILES): Delete.
14223         * config/ia64/aix.mh (XDEPFILES): Delete.
14224         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14225         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14226         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14227         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14228         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14229         * config/m68k/linux.mh (XDEPFILES): Delete.
14230         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14231         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14232         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14233         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14234         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14235         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14236         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14237         * config/m88k/delta88.mh (XDEPFILES): Delete.
14238         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14239         * config/m88k/m88k.mh (XDEPFILES): Delete.
14240         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14241         * config/mips/linux.mh (XDEPFILES): Delete.
14242         * config/mips/irix6.mh (XDEPFILES): Delete.
14243         * config/mips/irix5.mh (XDEPFILES): Delete.
14244         * config/mips/irix4.mh (XDEPFILES): Delete.
14245         * config/mips/irix3.mh (XDEPFILES): Delete.
14246         * config/mips/decstation.mh (XDEPFILES): Delete.
14247         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14248         (NATDEPFILES): Move core-aout.o to here.
14249         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14250         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14251         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14252         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14253         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14254         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14255         * config/pa/hpux11.mh (XDEPFILES): Delete.
14256         * config/powerpc/aix.mh (XDEPFILES): Delete.
14257         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14258         * config/powerpc/linux.mh (XDEPFILES): Delete.
14259         * config/romp/rtbsd.mh: Rename XDEPFILES.
14260         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14261         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14262         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14263         * config/s390/s390.mh (XDEPFILES): Delete.
14264         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14265         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14266         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14267         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14268         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14269         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14270         * config/sparc/linux.mh (XDEPFILES): Delete.
14271         * config/vax/vaxult.mh (XDEPFILES): Delete.
14272         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14273         * Makefile.in (DEPFILES): Remove XDEPFILES.
14274
14275 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14276
14277         * utils.c (internal_verror): Fix comments, default is yes not no.
14278         Update queries to match.  Default to quit and dump core.
14279
14280 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14281
14282         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14283         copyright.
14284         * defs.h, event-top.c, gdbcmd.h: Ditto.
14285         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14286         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14287         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14288         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14289         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14290         * mi/mi-main.c:Ditto.
14291
14292         * stack.c, symfile.c: Update copyright.
14293
14294 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14295
14296         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14297         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14298         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14299         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14300
14301 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14302
14303         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14304         * gdbserver/low-lynx.c (myattach): Likewise.
14305         * gdbserver/low-nbsd.c (myattach): Likewise.
14306         * gdbserver/low-sim.c (myattach): Likewise.
14307         * gdbserver/low-sparc.c (myattach): Likewise.
14308         * gdbserver/low-sun3.c (myattach): Likewise.
14309
14310         * gdbserver/low-linux.c (myattach): New function.
14311
14312         * gdbserver/server.c (attach_inferior): New function.
14313         (main): Handle "--attach".
14314
14315 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14316
14317         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14318         maintainer.
14319
14320 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14321
14322         * c-typeprint.c (is_type_conversion_operator): Add additional
14323         check for non-conversion operators.
14324
14325 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14326
14327         * linux-proc.c: Add "info proc" command, a la procfs.c.
14328         (read_mapping): New function, abstract and re-use code.
14329         (linux_find_memory_regions): Use new func read_mapping.
14330         (linux_info_proc_cmd): New function, implement "info proc".
14331         (_initialize_linux_proc): Add new command "info proc".
14332
14333 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14334
14335         * symfile.c (generic_load): Use bfd_map_over_sections method
14336         instead of manipulating bfd structure members directly.
14337         (add_section_size_callback): New function, bfd sections callback
14338         used by generic_load.
14339         (load_sections_callback): New function, bfd sections callback
14340         used by generic_load.
14341
14342 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14343
14344         [Based on work by Jim Blandy]
14345         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14346         (builtin_type_vec128): Export.
14347         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14348         types.
14349         (builtin_type_vec128): New builtin type for 128 bit vector
14350         registers.
14351         (build_gdbtypes): Initialize builtin_type_v16qi and
14352         builtin_type_v8hi. Create the vec128 register builtin type
14353         structure.
14354         (build_builtin_type_vec128): New function.
14355         (_initialize_gdbtypes): Register builtin_type_v16qi and
14356         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14357         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14358         AltiVec register to new builtin type.
14359
14360 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14361
14362         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14363         to make_cv_type.
14364
14365 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14366
14367         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14368         CLEAN_UP_REGISTER_VALUE.
14369         * regcache.c (supply_register): Update only call.
14370
14371 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14372
14373         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14374         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14375         a29k-*-vxworks* targets as obsolete.
14376
14377 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14378
14379         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14380         until we can resolve portability issues.
14381         * gregset.h: Remove references to fpxregs.
14382         * gcore.c (gcore_command): Initialize note_sec to NULL.
14383
14384 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14385
14386         * signals.c (target_signal_to_name): Rewrite.  Only use
14387         signals[].name when in bounds and non-NULL.
14388
14389 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14390
14391         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14392         * signals.c (target_signal_to_name): Verify that SIG is within the
14393         bounds of the signals array.
14394
14395 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14396
14397         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14398
14399 2002-01-13  Keith Seitz  <keiths@redhat.com>
14400
14401         * stack.c (print_frame_info_base): Print the frame's pc
14402         only if when print_frame_info_listing_hook is not defined.
14403
14404 2002-01-13  Keith Seitz  <keiths@redhat.com>
14405
14406         * varobj.c (varobj_set_value): Make sure that there were no
14407         errors evaluating the object before attempting to set its
14408         value.
14409         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14410         so this offset adjustment is no longer necessary.
14411         (create_child): Don't set the error flag if the child is
14412         a CPLUS_FAKE_CHILD.
14413         (value_of_child): If value_fetch_lazy fails, return NULL
14414         so that callers will be notified that an error occurred.
14415         (c_value_of_variable): Delay check of variable's validity
14416         until later. We actually want all structs and unions to have
14417         the value "{...}".
14418         Do not return "???" for variables which could not be evaluated.
14419         This error condition must be returned to the caller so that it
14420         can get the error condition from gdb.
14421         (cplus_name_of_child): Adjust index for vptr before figuring
14422         out the name of the child.
14423         (cplus_value_of_child): If a child's (real) parent is not valid,
14424         don't even bother trying to give a value for it. Just return
14425         an error. Change all instances in this function.
14426         (cplus_type_of_child): If our parent is one of the "fake"
14427         parents, we need to get at the type of the real parent, and
14428         derive the child's true type using this information.
14429
14430 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14431
14432         From 2002-01-09 John Marshall <johnm@falch.net>:
14433         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14434         sources.redhat.com, and tweak some related URLs which had
14435         suffered from linkrot.
14436
14437 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14438
14439         From Jeff law:
14440         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14441         structures passed in registers.
14442
14443 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14444
14445         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14446         white space which prevented compilation.  Reported by DSK
14447         <dsk@student.unsw.edu.au>.
14448
14449 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14450
14451         * symfile.c (build_section_addr_info_from_section_tab):
14452         Use bfd access method instead of manipulating bfd directly.
14453         (syms_from_objfile): Ditto.
14454         (simple_overlay_update_1): Ditto.
14455         (simple_overlay_update): Ditto.
14456         (generic_load): Ditto.
14457         (overlay_unmapped_address): FIXME comment, bfd access methods.
14458         (sections_overlap): FIXME comment, bfd access methods.
14459         (pc_in_mapped_range): FIXME comment, bfd access methods.
14460         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14461         (section_is_mapped): FIXME comment, bfd access methods.
14462         (section_is_overlay): FIXME comment, bfd access methods.
14463
14464         * symfile.c (generic_load): Whitespace and long line cleanups.
14465         Remove duplicate variable, change several local variables to
14466         more appropriate data types.
14467         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14468
14469 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14470
14471         From Peter Schauer:
14472         * language.c (longest_local_hex_string_custom): Use phex_nz to
14473         convert NUM to a hex string.
14474
14475 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14476
14477         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14478         the function.
14479         Update Copyright year.
14480
14481 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14482
14483         * language.c (longest_raw_hex_string): Delete unused function.
14484
14485 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14486
14487         * MAINTAINERS (write-after-approval): Add myself.
14488         * dwarf2read.c (read_tag_string_type): Handling of
14489         DW_AT_byte_size.
14490         (read_tag_string_type): FORTRAN fix to prevent propagation of
14491         first string size.
14492         (set_cu_language): Handling of DW_LANG_Fortran95
14493
14494 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14495
14496         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14497         GETPID(inferior_ptid).
14498         (store_inferior_registers): Likewise.
14499
14500 2002-01-10  Jason Merrill  <jason@redhat.com>
14501
14502         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14503         Fix DW_OP_minus.
14504
14505 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14506
14507         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14508         and bfd/elf32-sh-nbsd.c.
14509
14510 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14511
14512         * NEWS: Mention --pid and corefile/proc-id behavior change.
14513
14514         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14515         * gcore.c: Include cli/cli-decode.h instead of command.h.
14516
14517         * main.c (captured_main): Add new command line option "--pid".
14518         If the second command line argument (following the symbol-file)
14519         begins with a digit, try to attach to it before trying to open
14520         it as a corefile.
14521         (print_gdb_help): Document the "--pid" argument.
14522
14523 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14524
14525         * completer.c (command_completer): New function.
14526
14527         * completer.h <command_completer>: Add prototype.
14528
14529         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14530         completer for the "help" command.
14531
14532 2002-01-09  Jason Merrill  <jason@redhat.com>
14533
14534         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14535
14536 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14537
14538         * i386-linux-nat.c (fill_fpxregset): Make global.
14539         (store_fpxregset): Ditto.
14540
14541         * gregset.h (gdb_fpxregset_t): Define.
14542         (supply_fpxregset): Prototype.
14543         (fill_fpxregset): Prototype.
14544
14545         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14546
14547 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14548
14549         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14550         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14551         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14552
14553 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14554
14555         * MAINTAINERS: Update target maintainer rules so that any
14556         Maintainer can approve a tested patch for a maintenance-only
14557         target.
14558
14559 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14560
14561         * MAINTAINERS (write-after-approval): Add myself.
14562
14563         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14564         IN_SIGTRAMP.
14565
14566 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14567
14568         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14569         real name of the executable, rather than the /proc name.
14570
14571 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14572
14573         Implement a "generate-core-file" command in gdb, save target state.
14574         * gcore.c: New file.  Implement new command 'generate-core-file'.
14575         Save a corefile image of the current state of the inferior.
14576         * linux-proc.c: Add linux-specific code for saving corefiles.
14577         * target.h (struct target_ops): Add new target vectors for saving
14578         corefiles; to_find_memory_regions and to_make_corefile_notes.
14579         (target_find_memory_regions): New macro.
14580         (target_make_corefile_notes): New macro.
14581         * target.c (update_current_target): Inherit new target methods.
14582         (dummy_find_memory_regions): New place-holder method.
14583         (dummy_make_corefile_notes): New place-holder method.
14584         (init_dummy_target): Initialize new dummy target vectors.
14585         * exec.c (exec_set_find_memory_regions): New function.
14586         Allow the exec_ops vector for memory regions to be taken over.
14587         (exec_make_note_section): New function, target vector method.
14588         * defs.h (exec_set_find_memory_regions): Export prototype.
14589         * procfs.c (proc_find_memory_regions): New function, corefile method.
14590         (procfs_make_note_section): New function, corefile method.
14591         (init_procfs_ops): Set new target vector pointers.
14592         (find_memory_regions_callback): New function.
14593         (procfs_do_thread_registers): New function.
14594         (procfs_corefile_thread_callback): New function.
14595         * sol-thread.c (sol_find_memory_regions): New function.
14596         (sol_make_note_section): New function.
14597         (init_sol_thread_ops): Initialize new target vectors.
14598         * inftarg.c (inftarg_set_find_memory_regions): New function.
14599         Allow to_find_memory_regions vector to be taken over.
14600         (inftarg_set_make_corefile_notes): New function.
14601         Allow to_make_corefile_notes vector to be taken over.
14602         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14603         interface layer if not target_has_execution (may be a corefile).
14604         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14605         * config/sparc/sun4sol2.mh: Ditto.
14606         * config/alpha/alpha-linux.mh: Ditto.
14607         * config/arm/linux.mh: Ditto.
14608         * config/i386/x86-64linux.mh: Ditto.
14609         * config/ia64/linux.mh: Ditto.
14610         * config/m68k/linux.mh: Ditto.
14611         * config/mips/linux.mh: Ditto.
14612         * config/powerpc/linux.mh: Ditto.
14613         * config/sparc/linux.mh: Ditto.
14614
14615 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14616
14617         * arm-linux-nat.c: Remove references to regcache.c internal data
14618         (registers[] and register_valid[]).
14619
14620 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14621
14622         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14623         so that attaching to a pid will automatically read the process's
14624         symbol file and shlibs.
14625         * Makefile.in: Add rule for linux-proc.o.
14626         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14627         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14628         * config/arm/linux.mh: Ditto.
14629         * config/i386/linux.mh: Ditto.
14630         * config/i386/x86-64linux.mh: Ditto.
14631         * config/ia64/linux.mh: Ditto.
14632         * config/m68k/linux.mh: Ditto.
14633         * config/mips/linux.mh: Ditto.
14634         * config/powerpc/linux.mh: Ditto.
14635         * config/sparc/linux.mh: Ditto.
14636
14637 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14638
14639         * win32-nat.c: Add i386-tdep.h dependency.
14640
14641 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14642
14643         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14644         instead of bfd_get_arch_size.  Don't bail out just because
14645         there's no exec_bfd.
14646
14647         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14648         * p-valprint.c (pascal_object_print_value): Ditto.
14649         * somread.c (som_symtab_read): Ditto.
14650         * symfile.c (simple_free_overlay_region_table): Ditto.
14651         * valops.c (value_assign): Ditto.
14652
14653         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14654         use tilde_expand and strerror for opening save-tracepoints file.
14655
14656         * thread-db.c (thread_db_new_objfile): Indendation fix.
14657
14658         * infptrace.c (GDB_MAX_ALLOCA): New define.
14659         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14660         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14661         can be overridden with whatever value is appropriate to the host).
14662         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14663         alloca to allocate potentially large buffer.
14664         * rs6000-nat.c (child_xfer_memory): Ditto.
14665         * symm-nat.c (child_xfer_memory): Ditto.
14666         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14667
14668 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14669
14670         From Nick Clifton  <nickc@redhat.com>
14671         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14672
14673 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14674
14675         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14676         Don't use exec_bfd if it's NULL.
14677
14678 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14679
14680         * valops.c (value_arg_coerce): Fix formatting.
14681
14682 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14683
14684         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14685         * gnu-nat.c: Ditto.
14686
14687 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14688
14689         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14690         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14691         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14692         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14693         z8k-coff have not been multi-arched.  Update z8k-coff build
14694         status.
14695
14696 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14697
14698         * MAINTAINERS: Mark a29k target as obsolete.
14699         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14700         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14701         comments.
14702         * NEWS: Note that a29k targets are obsolete.
14703         * a29k-tdep.c: Mark as obsolete.
14704         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14705         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14706         a29k-*-vxworks* targets as obsolete.
14707         * remote-adapt.c: Obsolete.
14708         * remote-eb.c: Obsolete.
14709         * remote-mm.c: Obsolete.
14710         * remote-udi.c: Obsolete.
14711         * config/a29k/a29k-udi.mt: Obsolete.
14712         * config/a29k/a29k.mt: Obsolete.
14713         * config/a29k/tm-a29k.h: Obsolete.
14714         * config/a29k/tm-vx29k.h: Obsolete.
14715         * config/a29k/vx29k.mt: Obsolete.
14716
14717 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14718
14719         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14720         with BFD_ENDIAN_BIG.
14721
14722 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14723
14724         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14725         * configure, config.in: Re-generate.
14726         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14727         * defs.h: Do not include <endian.h>.
14728
14729 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
14730
14731         * acconfig.h (HAVE_PT_GETXMMREGS): New.
14732         * config.in: Regenerate.
14733         * configure.in: Update copyright years.
14734         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14735         * configure: Regenerate.
14736         * i386bsd-nat.c: Update copyright years.
14737         (fill_gregset): Use regcache_collect.
14738         (fetch_inferior_registers): Only fetch integer registers
14739         if requested to do so.  Add support for XMM registers
14740         using PT_GETXMMREGS.
14741         (store_inferior_registers): Only store integer registers
14742         if requested to do so.  Add support for XMM registers
14743         using PT_SETXMMREGS.
14744         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14745         (store_inferior_registers): Remove.
14746         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14747         (fetch_elfcore_registers): New function.
14748         (i386nbsd_elfcore_fns): New.
14749         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14750         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14751         i386bsd-nat.o.
14752         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14753         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14754         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14755         * config/i386/tm-nbsd.h: Update copyright years.
14756         (HAVE_SSE_REGS): Define.
14757         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14758         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14759         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14760         (SIGCONTEXT_PC_OFFSET): Remove.
14761         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14762
14763 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14764
14765         * configure.tgt: Remove powerpc-*-macos* target.
14766         * config/m68k/xm-mpw.h: Delete file.
14767         * config/xm-mpw.h: Delete file.
14768         * ser-mac.c: Delete file.
14769         * mpw-make.sed: Delete file.
14770         * mpw-config.in: Delete file.
14771         * mac-xdep.c: Delete file.
14772         * mac-gdb.r: Delete file.
14773         * mac-defs.h: Delete file.
14774         * mac-nat.c: Delete file.
14775         * config/powerpc/macos.mh: Delete file.
14776         * config/powerpc/macos.mt: Delete file.
14777         * config/powerpc/nm-macos.h: Delete file.
14778         * config/powerpc/tm-macos.h: Delete file.
14779         * source.c (openp, open_source_file): Remove obsolete code.
14780         * top.c (gdb_readline): Ditto.
14781         * utils.c (query): Ditto.
14782         * event-top.c (display_gdb_prompt): Ditto.
14783         * Makefile.in (ser-mac.o): Delete obsolete target.
14784         * NEWS: Update.
14785
14786 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14787
14788         * defs.h (BIG_ENDIAN): Delete macro definition.
14789         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14790         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14791         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14792         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14793         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14794         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14795         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14796         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14797         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14798         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14799         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14800         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14801         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14802         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14803         * gdbarch.c: Re-generate.
14804
14805 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14806
14807         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14808         for core files.
14809
14810 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14811
14812         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14813
14814 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14815
14816         * value.h (value_ptr): Delete typedef.
14817
14818 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14819
14820         * i386nbsd-nat.c: Update copyright years.
14821         Include i386-tdep.h.
14822
14823 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
14824
14825         * stabsread.c: Update copyright years.
14826
14827         From Debashis Mahata <debashis.mahata@wipro.com>:
14828         (read_struct_fields): Deal with Sun C compiler erroneous stab
14829         output for structs and unions.
14830         Fix PR gdb/269.
14831
14832 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14833
14834         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14835         prototype.
14836
14837 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14838
14839         * cp-abi.c: Fix whitespace.
14840         (baseclass_offset): New wrapper function.
14841         * cp-abi.h (baseclass_offset): Add prototype.
14842         (struct cp_abi_ops): Add baseclass_offset pointer.
14843
14844         * valops.c (vb_match): Move to...
14845         * gnu-v2-abi.c (vb_match): here.
14846         * valops.c (baseclass_offset): Move to...
14847         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14848
14849         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14850
14851         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14852         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14853         * hpacc-abi.c (init_hpacc_ops): Likewise.
14854
14855 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14856
14857         * valops.c (find_overload_match): Accept obj as a
14858         reference parameter.  Update it before returning.
14859         * value.h (find_overload_match): Update prototype.
14860         * eval.c (evaluate_subexp_standard): Pass object to
14861         find_overload_match by reference.
14862
14863 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
14864
14865         * valarith.c: Replace value_ptr with struct value pointer.  Remove
14866         register attribute from value declarations.
14867         * valops.c: Ditto.
14868         * value.h: Ditto.
14869         * scm-lang.c (scm_lookup_name): Ditto.
14870
14871 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14872
14873         Abstract the functionality of iterating over mapped memory
14874         regions into a general purpose iterator function.
14875         * procfs.c (iterate_over_mappings): New function, general purpose
14876         iterator for memory sections.
14877         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14878         (solib_mappings_callback): New function, callback for above.
14879         (info_proc_mappings): Reimpliment using iterate_over_mappings.
14880         (info_mappings_callback): New function, callback for above.
14881
14882         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14883
14884 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
14885
14886         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14887         * i386-tdep.c: Include "elf-bfd.h".
14888         (process_note_abi_tag_sections): New function.
14889         (i386_gdbarch_init): Add code to recognize various OS/ABI
14890         combinations.
14891
14892         * maint.c (_initialize_maint_cmds): Add missing \ in
14893         string-literal.
14894
14895 For older changes see ChangeLog-2001
14896 \f
14897 Local Variables:
14898 mode: change-log
14899 left-margin: 8
14900 fill-column: 74
14901 version-control: never
14902 End: