1 2002-12-18 Andrew Cagney <ac131313@redhat.com>
3 * frame.c (deprecated_update_current_frame_pc_hack): Replace
4 deprecated_update_current_frame_pc_hack.
5 (deprecated_update_frame_base_hack): New function.
6 * frame.h (deprecated_update_frame_pc_hack): Replace
7 (deprecated_update_frame_base_hack): Declare.
8 * infrun.c (normal_stop): Update.
10 2002-12-18 Andrew Cagney <ac131313@redhat.com>
12 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
13 frame_extra_info_zalloc.
14 (rs6000_frame_args_address): Use get_frame_extra_info.
15 (frame_get_saved_regs): Use get_frame_saved_regs.
16 (frame_initial_stack_address): Use get_frame_saved_regs and
18 (frame_initial_stack_address): Use get_frame_extra_info.
20 2002-12-17 Kevin Buettner <kevinb@redhat.com>
22 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
24 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
25 checks for r3900_regnames[].
27 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
29 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
31 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
33 2002-12-17 David Carlton <carlton@math.stanford.edu>
35 * symtab.c (lookup_partial_symbol): Don't search past the end of
38 2002-12-17 Andrew Cagney <ac131313@redhat.com>
40 * stack.c (frame_info): Use get_frame_saved_regs.
41 * breakpoint.c (until_break_command): Use get_frame_pc.
43 2002-12-16 Kevin Buettner <kevinb@redhat.com>
45 * buildsym.c (block_end_complaint, anon_block_end_complaint)
46 (innerblock_complaint, innerblock_anon_complaint)
47 (blockvector_complaint): Delete deprecated complaint structs.
48 (finish_block, make_blockvector, end_symtab): Replace calls
49 to complain() with calls to complaint().
50 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
51 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
52 (unexpected_type_complaint, bad_sclass_complaint)
53 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
54 Delete deprecated complaint structs.
55 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
56 Replace calls to complain() with calls to complaint().
57 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
58 (unknown_symtype_complaint, unknown_symchar_complaint)
59 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
60 (lbrac_mismatch_complaint, repeated_header_complaint)
61 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
62 Delete deprecated complaint structs.
63 (unknown_symtype_complaint, lbrac_mismatch_complaint)
64 (repeated_header_complaint)
65 (function_outside_compiliation_unit_complaint): New functions.
66 (add_old_header_file, find_corresponding_bincl_psymtab)
67 (set_namestring, find_stab_function_addr, read_dbx_symtab)
68 (process_one_symbol): Replace calls to complain() with, possibly
69 indirect, calls to complaint().
70 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
71 (unknown_attribute_form, unknown_attribute_length)
72 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
73 (const_ignored, botched_modified_type, op_deref2, op_deref4)
74 (basereg_not_handled, dup_user_type_allocation)
75 (dup_user_type_definition, missing_tag, bad_array_element_type)
76 (subscript_data_items, unhandled_array_subscript_format)
77 (unknown_array_subscript_format, not_row_major)
78 (missing_at_name): Delete deprecated complaint structs.
79 (bad_die_ref_complaint, unknown_attribute_form_complaint)
80 (dup_user_type_definition_complaint)
81 (bad_array_element_type_complaint): New functions.
82 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
83 (decode_subscript_data_item, dwarf_read_array_type)
84 (read_tag_string_type, read_subroutine_type, read_func_scope)
85 (locval, scan_partial_symbols, decode_modified_type)
86 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
87 (attribute_size): Replace calls to complain() with, possibly
88 indirect, calls to complaint().
89 * elfread.c (section_info_complaint, section_info_dup_complaint)
90 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
91 Delete deprecated complaint structs.
92 (elf_symtab_read, elfstab_offset_sections): Replace calls to
93 complain() with calls to complaint().
94 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
96 (stub_noname_complaint): New function.
97 (check_typedef, add_mangled_type): Replace calls to complain()
98 with calls to complaint().
99 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
100 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
101 (hpread_unhandled_type_complaint, hpread_struct_complaint)
102 (hpread_array_complaint, hpread_type_lookup_complaint)
103 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
104 (hpread_unhandled_common_complaint)
105 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
106 struct definitions and declarations.
107 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
108 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
109 Replace calls to complain() with, possibly indirect, calls to
111 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
113 * mdebugread.c (bad_file_number_complaint, index_complaint)
114 (aux_index_complaint, block_index_complaint)
115 (unknown_ext_complaint, unknown_sym_complaint)
116 (unknown_st_complaint, block_overflow_complaint)
117 (basic_type_complaint, unknown_type_qual_complaint)
118 (array_index_type_complaint, bad_tag_guess_complaint)
119 (block_member_complaint, stEnd_complaint)
120 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
121 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
122 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
123 (bad_continued_complaint, bad_rfd_entry_complaint)
124 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
125 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
126 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
127 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
129 (index_complaint, unknown_ext_complaint, basic_type_complaint)
130 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
131 (unexpected_type_code_complaint)
132 (function_outside_compilation_unit_complaint): New functions.
133 (parse_symbol, parse_type, upgrade_type, parse_procedure)
134 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
135 Replace calls to complain() with, possibly indirect calls to
137 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
138 Delete deprecated complaint structs.
139 (lookup__objc_class, lookup_child_selector): Replace complain()
141 * remote-vx.c (cant_contact_target): Delete deprecated complaint
143 (vx_lookup_symbol): Replace complain() with complaint().
144 * stabsread.c (invalid_cpp_abbrev_complaint)
145 (invalid_cpp_type_complaint, member_fn_complaint)
146 (const_vol_complaint, error_type_complaint)
147 (invalid_member_complaint, range_type_base_complaint)
148 (reg_value_complaint, vtbl_notfound_complaint)
149 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
150 (unresolved_sym_chain_complaint, stabs_general_complaint)
151 (lrs_general_complaint, multiply_defined_struct): Delete
152 deprecated complaint structs.
153 (invalid_cpp_abbrev_complaint, ref_value_complaint)
154 (stabs_general_complaint, lrs_general_complaint)
155 (msg_unknown_complaint): New functions.
156 (dbx_lookup_type, read_cfront_baseclasses)
157 (read_cfront_member_functions, resolve_symbol_reference)
158 (define_symbol, resolve_live_range, add_live_range, read_type)
159 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
160 (read_one_struct_field, read_baseclasses, read_tilde_fields)
161 (read_cfront_static_fields, attach_fields_to_type)
162 (complain_about_struct_wipeout, read_range_type)
163 (common_block_start, common_block_end, cleanup_undefined_types)
164 (scan_file_globals): Replace complain() with complaint().
165 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
166 Delete deprecated complaint struct declarations.
167 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
168 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
169 (bf_not_found_complaint, ef_complaint, eb_complaint)
170 (function_outside_compilation_unit_complaint): New functions.
171 (record_include_begin, record_include_end, enter_line_range)
172 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
173 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
174 complain() with complaint().
176 2002-12-16 Andrew Cagney <ac131313@redhat.com>
178 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
179 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
180 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
181 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
182 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
183 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
184 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
185 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
186 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
187 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
188 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
189 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
190 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
191 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
192 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
193 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
194 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
195 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
196 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
197 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
198 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
199 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
200 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
201 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
202 * config/m88k/xm-dgux.h: Delete.
203 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
204 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
205 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
206 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
207 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
208 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
209 * ch-valprint.c: Delete.
211 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
213 * infrun.c (handle_inferior_event): Rearrange code to resume if
214 no catchpoint triggers for an event.
216 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
218 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
219 and TARGET_WAITKIND_VFORKED cases.
221 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
223 * infrun.c (handle_inferior_event): Assume that catchpoints
224 are not affected by DECR_PC_AFTER_BREAK.
226 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
228 * target.c (update_current_target): Don't inherit DONT_USE.
229 * target.h (struct target_ops): Remove DONT_USE.
230 (target_next): Remove macro.
232 2002-12-15 Mark Kettenis <kettenis@gnu.org>
234 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
236 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
238 * arm-tdep.c (convert_from_extended): New argument to hold the
239 type of floating point result we want to convert to. Make input
240 argument const. Fix all callers.
241 (convert_to_extended): Similarly.
242 (arm_extract_return_value): Now takes a regcache argument. Change
243 code to use regcache accessor functions. Correctly extract
244 smaller-than-word results on big-endian machines.
245 (arm_store_return_value): Now takes a regcache argument. Change
246 code to use regcache accessor functions. Correctly zero/sign extend
247 smaller than word results before storing into r0.
248 (arm_gdbarch_init): Register new-style extract_return_value and
249 store_return_value functions.
251 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
253 * thread-db.c (thread_from_lwp): Uniquify error msg.
254 (lwp_from_thread): Ditto.
255 (check_event): Ditto.
256 (find_new_threads_callback): Ditto.
257 (thread_db_pid_to_str): Ditto.
259 2002-12-13 Andrew Cagney <ac131313@redhat.com>
261 * frame.h (get_frame_saved_regs): Declare.
262 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
264 * frame.c (get_frame_saved_regs): New function.
265 (frame_saved_regs_zalloc): Return the allocated saved_regs.
267 2002-12-13 Andrew Cagney <ac131313@redhat.com>
269 * frame.c (deprecated_update_current_frame_pc_hack): New
271 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
272 * infrun.c (normal_stop): Use said function instead of directly
273 modifying the frame's PC.
275 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
277 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
279 2002-12-13 Kevin Buettner <kevinb@redhat.com>
281 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
282 config/mips/tm-irix6.h (NUM_REGS): Delete.
283 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
284 (temp_saved_regs): Declare as a pointer rather than an array.
285 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
286 that ``temp_saved_regs'' has storage allocated to it and that
287 it's the correct size.
289 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
291 * defs.h (init_last_source_visited): New prototype.
293 * source.c (add_path): New function that adds to a specified path.
294 (mod_path): Change to call add_path.
295 (init_last_source_visited): New function to allow interfaces to
296 initialize static variable: last_source_visited. Part of fix
298 * Makefile.in: Add support for mi/mi-cmd-env.c.
300 2002-12-13 Andrew Cagney <ac131313@redhat.com>
302 * frame.h (frame_id_unwind): Declare.
303 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
305 (frame_id_unwind_ftype): Declare.
306 * frame.c (frame_id_unwind): New function.
307 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
308 (create_new_frame, get_prev_frame): Pass id_unwind to
310 (frame_saved_regs_id_unwind): New function.
311 (frame_saved_regs_id_unwind): New function.
312 * dummy-frame.c (dummy_frame_id_unwind): New function.
313 (struct dummy_frame): Add field id.
314 (generic_push_dummy_frame): Initialize `id'.
315 * dummy-frame.h (dummy_frame_id_unwind): Declare.
317 2002-12-13 Andrew Cagney <ac131313@redhat.com>
319 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
320 pass that to set_momentary_breakpoint. Move comments to where they
322 * frame.h (set_current_frame): Delete declaration.
323 * frame.c (set_current_frame): Delete function.
325 2002-12-13 Andrew Cagney <ac131313@redhat.com>
327 * frame.c (frame_extra_info_zalloc): New function.
328 * frame.h (frame_extra_info_zalloc): Declare.
330 2002-12-13 Joel Brobecker <brobecker@gnat.com>
332 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
333 in the previous prototype change to set_momentary_breakpoint.
335 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
337 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
339 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
340 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
341 (stop_stepping): Remove outdated check for child vfork events.
343 2002-12-12 Andrew Cagney <ac131313@redhat.com>
345 * GDB 5.3 released from gdb_5_3-branch.
347 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
349 * corelow.c (init_core_ops): Delete references to to_require_attach
350 and to_require_detach.
351 * exec.c (init_exec_ops): Likewise.
352 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
353 hppa_require_detach directly.
354 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
355 * inftarg.c (child_detach): Remove.
356 (child_detach_from_process): Rename to child_detach, remove
358 (child_attach): Remove.
359 (child_attach_to_process): Rename to child_attach, remove after_fork
361 (init_child_ops): Delete references to to_require_attach
362 and to_require_detach.
363 * infttrace.c (hppa_require_attach): Update comment.
364 * target.c (cleanup_target, update_current_target)
365 (init_dummy_target, setup_target_debug): Delete references to
366 to_require_attach and to_require_detach.
367 (find_default_require_detach, find_default_require_attach)
368 (debug_to_require_attach, debug_to_require_detach): Remove
370 * target.h (struct target_ops): Remove to_require_attach
371 and to_require_detach.
372 (target_require_attach, target_require_detach): Delete macros.
373 (find_default_require_detach, find_default_require_attach): Delete
375 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
377 2002-12-11 Andrew Cagney <ac131313@redhat.com>
379 * frame.c (get_frame_extra_info): New function.
380 * frame.h (get_frame_extra_info): Declare.
382 2002-12-11 Andrew Cagney <ac131313@redhat.com>
384 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
385 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
386 with `struct frame_id'.
387 (set_longjmp_resume_breakpoint): Ditto.
388 * infrun.c (handle_inferior_event): Update.
389 * breakpoint.c (watch_command_1, until_break_command): Update.
390 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
391 (handle_inferior_event, step_over_function): Update.
392 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
393 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
394 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
395 * infcmd.c (finish_command, run_stack_dummy): Update.
397 2002-12-11 Kevin Buettner <kevinb@redhat.com>
399 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
400 (dwarf2_non_const_array_bound_ignored)
401 (dwarf2_missing_line_number_section)
402 (dwarf2_statement_list_fits_in_line_number_section)
403 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
404 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
405 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
406 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
407 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
408 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
409 (dwarf2_missing_member_fn_type_complaint)
410 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
411 (dwarf2_const_value_length_mismatch)
412 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
413 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
414 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
415 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
416 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
417 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
418 complaints using deprecated struct..
419 (dwarf2_non_const_array_bound_ignored_complaint)
420 (dwarf2_complex_location_expr_complaint)
421 (dwarf2_unsupported_at_frame_base_complaint)
422 (dwarf2_const_value_length_mismatch_complaint)
423 (dwarf2_macros_too_long_complaint)
424 (dwarf2_macro_malformed_definition_complaint)
425 (dwarf2_invalid_attrib_class_complaint): New functions.
426 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
427 (read_structure_scope, read_array_type, read_common_block)
428 (read_tag_pointer_type, read_base_type, read_partial_die)
429 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
430 (new_symbol, dwarf2_const_value, read_type_die)
431 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
432 (parse_macro_definition, dwarf_decode_macros): Replace calls to
433 complain() with, possibly indirect, calls to complaint().
435 2002-12-11 Andrew Cagney <cagney@redhat.com>
437 * frame.c (deprecated_get_frame_saved_regs): Rename
438 get_frame_saved_regs.
439 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
440 * sparc-tdep.c: Update.
441 * hppa-tdep.c: Update.
442 * h8500-tdep.c: Update.
444 2002-12-11 Kevin Buettner <kevinb@redhat.com>
446 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
447 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
448 ``char *'' for return and parameter types.
449 * gdbarch.h, gdbarch.c: Regenerate.
450 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
451 return type from ``char *'' to ``const char *''.
452 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
455 2002-12-11 Mark Kettenis <kettenis@gnu.org>
457 * i386-tdep.c: Include "dummy-frame.h".
458 (i386_frame_chain, i386_frame_saved_pc): Replace
459 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
460 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
462 2002-12-10 Andrew Cagney <cagney@redhat.com>
464 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
465 Change to a function with predicate.
466 * gdbarch.h, gdbarch.c: Re-generate.
467 * frame.c (get_prev_frame): Update. Test
468 DEPRECATED_INIT_FRAME_PC_P.
469 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
470 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
471 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
472 * alpha-tdep.c (alpha_gdbarch_init): Update.
473 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
474 * mips-tdep.c (mips_gdbarch_init): Update.
475 * i386-interix-tdep.c (i386_interix_init_abi): Update.
476 * arm-tdep.c: Update comments.
477 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
478 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
479 * frv-tdep.c (frv_gdbarch_init): Ditto.
480 * x86-64-tdep.c (x86_64_init_abi): Ditto.
481 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
482 * s390-tdep.c (s390_gdbarch_init): Ditto.
483 * v850-tdep.c (v850_gdbarch_init): Ditto.
484 * vax-tdep.c (vax_gdbarch_init): Ditto.
485 * sh-tdep.c (sh_gdbarch_init): Ditto.
486 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
488 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
490 * i386-tdep.c (i386_gdbarch_init): Ditto.
491 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
492 * cris-tdep.c (cris_gdbarch_init): Ditto.
493 * avr-tdep.c (avr_gdbarch_init): Ditto.
494 * arm-tdep.c (arm_gdbarch_init): Ditto.
495 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
496 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
498 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
500 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
502 * hppah-nat.c (saved_vfork_pid): Add.
503 (child_post_follow_vfork): Remove.
504 (child_follow_fork): New function.
505 (child_wait): Call detach_breakpoints after receiving the child vfork.
506 Call child_resume directly instead of going through resume ().
507 Make sure we have the exec before reporting the vfork.
508 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
509 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
510 (follow_fork): New function. Call target_follow_fork.
511 (follow_inferior_reset_breakpoints): New function broken out from
512 old follow_inferior_fork.
513 (resume): Remove hack to follow exec after vfork.
514 * inftarg.c (child_post_follow_vfork): Remove.
515 (child_follow_fork): New function.
516 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
517 * target.c (cleanup_target): Replace to_post_follow_vfork with
519 (update_current_target): Likewise.
520 (setup_target_debug): Likewise.
521 (debug_to_post_follow_vfork): Remove.
522 (debug_to_follow_fork): New function.
523 * target.h (struct target_ops): Replace to_post_folow_vfork with
525 (child_post_follow_vfork): Remove prototype.
526 (child_follow_fork): Add prototype.
527 (target_post_follow_vfork): Remove macro.
528 (target_follow_fork): Add macro.
530 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
532 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
533 (child_post_follow_vfork): Cancel pending exec event if we follow
535 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
536 events have been processed. Return a fake TARGET_WAITKIND_EXECD
537 event at the following wait call if necessary.
538 * infrun.c (follow_vfork): Don't follow_exec here.
539 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
540 case about HP/UX 10.20. Remove code pushed down to
541 hppah-nat.c:child_wait.
542 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
543 vfork_in_flight is set.
545 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
547 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
548 for the parent's fork event.
549 * infrun.c (handle_inferior_event): Only expect one fork event.
550 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
551 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
553 2002-12-10 Andrew Cagney <ac131313@redhat.com>
555 * PROBLEMS: Delete reference to PR gdb/725.
557 * MAINTAINERS (gdb.c++): Add David Carlton.
559 2002-12-09 David Carlton <carlton@math.stanford.edu>
561 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
562 * cli/cli-cmds.c: Ditto.
564 2002-12-09 Andrew Cagney <cagney@redhat.com>
566 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
567 function address in <>.
568 * gdbarch.c: Re-generate.
570 2002-12-09 David Carlton <carlton@math.stanford.edu>
572 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
574 2002-12-09 David Carlton <carlton@math.stanford.edu>
576 * linespec.c (symtab_from_filename): New function.
577 (decode_line_1): Move code into symtab_from_filename.
579 2002-12-09 Kevin Buettner <kevinb@redhat.com>
581 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
583 2002-12-07 Andrew Cagney <ac131313@redhat.com>
585 * f-valprint.c (info_common_command): Use get_frame_pc.
586 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
587 * ax-gdb.c (agent_command): Ditto.
588 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
589 (rs6000_pop_frame): Ditto.
590 (rs6000_frameless_function_invocation): Ditto.
591 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
592 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
593 * macroscope.c (default_macro_scope): Ditto.
594 * stack.c (print_frame_info_base): Ditto.
595 (print_frame, frame_info, print_frame_label_vars): Ditto.
596 (return_command, func_command, get_frame_language): Ditto.
597 * infcmd.c (finish_command): Ditto.
598 * dummy-frame.c (cached_find_dummy_frame): Ditto.
599 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
600 (break_at_finish_at_depth_command_1): Ditto.
601 (break_at_finish_command_1): Ditto.
602 (until_break_command, get_catch_sals): Ditto.
603 * blockframe.c (func_frame_chain_valid): Ditto.
604 (frameless_look_for_prologue): Ditto.
605 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
607 2002-12-08 Andrew Cagney <ac131313@redhat.com>
609 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
610 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
612 2002-12-08 Andrew Cagney <ac131313@redhat.com>
614 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
616 * gdbarch.h, gdbarch.c: Re-generate.
617 * frame.c (get_prev_frame): Explictly assign prev's pc with value
618 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
620 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
621 declaration to a function returning a CORE_ADDR.
622 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
623 * arch-utils.c (init_frame_pc_noop): Return the PC value.
624 (init_frame_pc_default): Ditto.
625 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
626 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
627 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
628 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
629 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
630 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
632 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
633 to init_frame_pc_noop.
634 (i386_interix_init_frame_pc): Delete function.
635 * z8k-tdep.c (init_frame_pc): Delete function.
636 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
637 (INIT_FRAME_PC_FIRST): Ditto.
638 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
639 (INIT_FRAME_PC_FIRST): Ditto.
640 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
641 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
643 (INIT_FRAME_PC_FIRST): Convert to an expression.
644 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
646 2002-12-08 Andrew Cagney <ac131313@redhat.com>
648 * blockframe.c: Use get_frame_base instead of directly accessing
649 the `struct frame_info' member frame.
650 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
651 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
653 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
655 * Makefile.in (readline_h): Define.
656 (completer.o): Depend on readline_h.
658 (event-top.o): Ditto.
665 (tracepoint.o): Ditto.
668 (tui-hooks.o): Ditto.
671 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
673 More cleanup from import of readline 4.3.
674 * completer.h (complete_line, readline_line_completion_function):
676 (line_completion_function): Removed, not used outside of completer.c.
677 * completer.c (readline_line_completion_function,
678 complete_function, line_completion_function): Use const for first
680 (line_completion_function): Make static.
681 (filename_completer): filename_completion_function is now called
682 rl_filename_completion_function
683 * corelow.c: Include <readline/readline.h>.
689 * top.c (init_main): No need to coerce
690 readline_line_completion_function anymore.
691 * cli/cli-dump.c: Include <readline/readline.h>.
693 2002-12-08 Andrew Cagney <ac131313@redhat.com>
695 * stack.c (frame_info): Use get_prev_frame.
696 * blockframe.c (frame_address_in_block): Ditto.
697 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
698 (rs6000_frameless_function_invocation): Ditto.
699 (rs6000_frame_saved_pc): Ditto.
700 (rs6000_frame_chain): Ditto.
701 * arch-utils.c (init_frame_pc_default): Ditto.
703 2002-12-08 Andrew Cagney <ac131313@redhat.com>
705 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
706 Delete redundant definition.
708 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
710 Import of readline 4.3:
711 * cli/cli-cmds.c: Include readline/tilde.h.
712 * cli/cli-setshow.c: Ditto.
713 * defs.h: Don't declare tilde_expand anymore, since readline
716 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
718 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
719 -Werror on this file.
721 2002-12-07 Andrew Cagney <ac131313@redhat.com>
723 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
725 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
726 * gdbarch.c: Regenerate.
728 2002-12-06 Andrew Cagney <ac131313@redhat.com>
730 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
731 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
732 provide a default value.
733 * gdbarch.h, gdbarch.c: Regenerate.
734 * frame.c (get_prev_frame): Update. Check
735 DEPRECATED_INIT_FRAME_PC_FIRST_P.
736 * s390-tdep.c (s390_gdbarch_init): Update.
737 * mips-tdep.c (mips_gdbarch_init): Update.
738 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
739 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
740 * alpha-tdep.c (alpha_gdbarch_init): Update.
742 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
744 * ia64-linux-nat.c: Include gdb_string.h.
745 * alpha-nat.c: Ditto.
746 * ppc-linux-nat.c: Ditto.
747 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
750 2002-12-05 Andrew Cagney <ac131313@redhat.com>
752 * gdbthread.h: Include "frame.h".
753 (struct thread_info): Replace step_frame_address with
755 * inferior.h: Include "frame.h".
756 (step_frame_id): Replace external variable step_frame_address.
757 * gdbthread.h (save_infrun_state): Replace step_frame_address
758 parameter with step_frame_id parameter.
759 (load_infrun_state): Ditto.
760 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
761 * infcmd.c (step_frame_id, step_1, step_once): Update.
762 * thread.c (load_infrun_state, save_infrun_state): Update.
763 * infrun.c (clear_proceed_status, save_inferior_status): Update.
764 (handle_inferior_event, step_over_function): Update.
765 (normal_stop, context_switch, restore_inferior_status): Update.
766 (struct inferior_status): Replace step_frame_address with
769 2002-12-05 David Carlton <carlton@math.stanford.edu>
771 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
772 DW_TAG_member as well as a declaration as being a C++ static data
774 (read_structure_scope): Combine tests for DW_TAG_member and
777 2002-12-05 David Carlton <carlton@math.stanford.edu>
779 * linespec.c (decode_compound): New function.
780 (decode_line_1): Move code into decode_compound.
782 2002-12-05 David Carlton <carlton@math.stanford.edu>
784 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
786 (lookup_symbol_aux): Do the 'field_of_this' check before checking
787 the static block. See PR gdb/804.
789 2002-12-05 David Carlton <carlton@math.stanford.edu>
791 * symtab.c (lookup_symbol_aux_block): New function.
792 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
794 2002-12-05 Andrew Cagney <ac131313@redhat.com>
796 * gdbarch.sh: Dump the predicate function and macro values.
797 (read): Print error on standard error.
798 * gdbarch.c: Regenerate.
800 2002-12-04 Kevin Buettner <kevinb@redhat.com>
802 * Makefile.in (mips_tdep_h): Define.
803 (mips-tdep.o): Add mips_tdep_h to dependency list.
804 * mips-tdep.h: New file.
805 * mips-tdep.c (mips-tdep.h): Include.
806 (enum mips_abi): Move to mips-tdep.h.
807 (mips_abi): New function.
809 2002-12-04 David Carlton <carlton@math.stanford.edu>
811 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
813 2002-12-04 David Carlton <carlton@math.stanford.edu>
815 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
817 (lookup_symbol_aux_minsyms): New function.
819 2002-12-04 J. Brobecker <brobecker@gnat.com>
821 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
823 2002-12-04 J. Brobecker <brobecker@gnat.com>
825 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
826 which is an obsolete macro name.
828 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
830 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
831 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
833 2002-12-03 H.J. Lu (hjl@gnu.org)
835 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
836 (create_breakpoints): Make sure the addr_string field is not
839 2002-12-03 Andrew Cagney <ac131313@redhat.com>
841 * sparc-nat.c (fetch_inferior_registers)
842 (store_inferior_registers): Add comment on problem of LWP vs
845 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
846 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
847 (lin_lwp_store_registers): Remove.
848 (init_lin_lwp_ops): Use fetch_inferior_registers
849 and store_inferior_registers directly.
850 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
851 (store_inferior_registers): Likewise.
854 2002-12-03 Andrew Cagney <ac131313@redhat.com>
856 * frame.h (get_frame_id): Convert to a function.
857 (null_frame_id, frame_id_p): Declare.
858 (frame_id_eq, frame_id_inner): Declare.
859 (frame_id_build): New function.
860 * frame.c (get_frame_id): Update. Use null_frame_id.
861 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
863 (null_frame_id, frame_id_p): Define.
864 (frame_id_eq, frame_id_inner): Define.
865 (frame_id_build): New function.
866 * varobj.c (varobj_create): Update.
867 (varobj_update): Update.
868 * valops.c (value_assign): Update.
869 (new_root_variable): Update.
870 * infrun.c (save_inferior_status): Update.
871 * breakpoint.c (watch_command_1): Update.
873 2002-12-03 J. Brobecker <brobecker@gnat.com>
875 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
878 2002-12-03 Andrew Cagney <cagney@redhat.com>
880 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
883 * PROBLEMS: Mention PR gdb/725.
885 2002-12-03 Andreas Schwab <schwab@suse.de>
887 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
889 2002-12-02 Adam Fedor <fedor@gnu.org>
890 Klee Dienes <kdienes@apple.com>
892 * objc-lang.c (objc_printstr): Add width arg to match
894 (compare_selectors): Add 'const' to arg types.
895 (compare_classes): Likewise.
896 (find_imps): Cast msym pointer to avoid compiler warning.
897 (print_object_command): Validate the address before
898 passing it to the print routine.
899 (find_objc_msgcall_submethod): Change function argument to
901 * objc-lang.h: Add 'extern' to all function declarations.
902 (value_nsstring): Add declaration.
904 2002-12-02 J. Brobecker <brobecker@gnat.com>
906 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
907 Fixes a build failure on HP/UX.
909 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
911 (hpread_has_name): Advance declaration to avoid a compilation warning.
912 (pst_syms_count): Add missing variable type. By change, the compiler
913 was defaulting to int, which seems a good choice. Fixes a compilation
915 (pst_syms_size): Likewise.
917 2002-12-02 J. Brobecker <brobecker@gnat.com>
919 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
920 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
921 later to set the proper gdbarch methods depending on the osabi.
922 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
924 2002-12-02 J. Brobecker <brobecker@gnat.com>
926 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
927 * osabi.c (gdb_osabi_name): Add strings images for the two new
929 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
931 2002-12-02 Andrew Cagney <ac131313@redhat.com>
933 * MAINTAINERS (Java): Global maintainers are responible for Java.
934 (Past Maintainers): Mention both Anthony Green and Per Bothner as
935 part Java maintainers.
937 2002-12-02 J. Brobecker <brobecker@gnat.com>
939 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
940 Fixes a compilation failure on AiX.
942 2002-12-02 J. Brobecker <brobecker@gnat.com>
944 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
945 why aix-thread.o is not listed.
947 2002-12-01 Andrew Cagney <ac131313@redhat.com>
949 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
950 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
951 * gdbarch.h, gdbarch.c: Re-generate.
952 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
953 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
954 * config/pa/tm-hppa.h, frame.h: Update.
955 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
956 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
957 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
958 * cris-tdep.c, alpha-tdep.c: Update.
959 * frame.c (set_unwind_by_pc, create_new_frame): Use either
960 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
961 (get_prev_frame): Ditto.
963 2002-11-30 Andrew Cagney <cagney@redhat.com>
965 * exec.c (xfer_memory): Replace boolean with int.
966 * p-exp.y: Use 0 instead of false.
967 * corelow.c (gdb_check_format): Change return type to int from
969 * utils.c: Don't include <curses.h> or <term.h> first.
971 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
973 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
974 (m68hc11_register_byte): Remove.
975 (m68hc11_gdbarch_init): Don't set the above.
977 2002-11-29 Andrew Cagney <cagney@redhat.com>
979 * remote-mips.c (mips_initialize): Force a selected frame rebuild
980 by calling get_selected_frame.
981 * ocd.c (ocd_start_remote): Use get_selected frame instead of
982 set_current_frame, create_new_frame, select_frame and
984 * remote-e7000.c (e7000_start_remote): Ditto.
985 * remote-mips.c (common_open): Ditto
986 * remote-rdp.c (remote_rdp_open): Ditto.
988 2002-11-29 Andreas Schwab <schwab@suse.de>
990 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
991 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
992 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
993 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
994 read_memory_unsigned_integer instead of read_memory_integer when
995 dealing with addresses and instruction opcodes.
996 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
997 (m68k_linux_frame_saved_pc): Likewise.
999 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1001 * stack.c (selected_frame, select_frame): Move from here ...
1002 * frame.c (selected_frame, select_frame): ... to here. Include
1004 * Makefile.in (frame.o): Update dependencies.
1005 * frame.c (get_selected_frame): New function.
1006 * frame.h (get_selected_frame): Declare.
1007 (deprecated_selected_frame): Rename selected_frame.
1008 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1009 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1010 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1011 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1012 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1013 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1014 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1015 * z8k-tdep.c, cli/cli-cmds.c: Update.
1017 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1019 * frame.h (get_selected_block): Add comments.
1021 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1023 * frame.c (pc_notcurrent): New function.
1024 (find_frame_sal): New function.
1025 * frame.h (find_frame_sal): Declare.
1026 (struct symtab_and_line): Add opaque declaration.
1027 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1029 (frame_info): Ditto.
1030 * ada-lang.c (find_printable_frame): Ditto.
1032 2002-11-28 J. Brobecker <brobecker@gnat.com>
1034 * configure.in: Check that the pthdebug library is recent enough
1035 before enabling thread support on native AiX.
1036 * configure: Regenerate.
1038 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1039 from the list of object files as it is now appended by configure
1040 if thread support is enabled.
1041 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1042 if thread support is enabled.
1044 2002-11-28 Andrew Cagney <cagney@redhat.com>
1046 * stack.c (get_selected_block): In-line get_current_block.
1047 * frame.h (get_current_block): Delete declaration.
1048 * blockframe.c (get_current_block): Delete function.
1050 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1052 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1053 USE_GENERIC_DUMMY_FRAMES.
1054 * gdbarch.h, gdbarch.c: Regenerate.
1055 * valops.c, frame.c: Update.
1056 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1057 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1058 * config/pa/tm-hppa.h, blockframe.c: Update.
1059 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1060 * m68k-tdep.c, alpha-tdep.c: Ditto.
1062 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1063 * mips-tdep.c: Ditto.
1065 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1067 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1068 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1069 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1070 * gdbarch.c, gdbarch.h: Re-generate.
1071 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1072 (CALL_DUMMY_LOCATION): Delete macro definition.
1073 (PC_IN_CALL_DUMMY): Delete macro definitions.
1075 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1076 default is already generic_pc_in_call_dummy.
1077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1078 * v850-tdep.c (v850_gdbarch_init): Ditto.
1079 * sh-tdep.c (sh_gdbarch_init): Ditto.
1080 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1081 * mips-tdep.c (mips_gdbarch_init): Ditto.
1082 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1084 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1085 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1086 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1087 * avr-tdep.c (avr_gdbarch_init): Ditto.
1089 * arm-tdep.c (arm_gdbarch_init): Do not set
1090 use_generic_dummy_frames, default is already 1.
1091 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1092 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1093 * v850-tdep.c (v850_gdbarch_init): Ditto.
1094 * sh-tdep.c (sh_gdbarch_init): Ditto.
1095 * s390-tdep.c (s390_gdbarch_init): Ditto.
1096 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1097 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1098 * mips-tdep.c (mips_gdbarch_init): Ditto.
1099 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1100 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1101 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1102 * i386-tdep.c (i386_gdbarch_init): Ditto.
1103 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1104 * frv-tdep.c (frv_gdbarch_init): Ditto.
1105 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1106 * cris-tdep.c (cris_gdbarch_init): Ditto.
1107 * avr-tdep.c (avr_gdbarch_init): Ditto.
1109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1110 call_dummy_location, default is already AT_ENTRY_POINT.
1111 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1112 * v850-tdep.c (v850_gdbarch_init): Ditto.
1113 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1114 * sh-tdep.c (sh_gdbarch_init): Ditto.
1115 * s390-tdep.c (s390_gdbarch_init): Ditto.
1116 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1117 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1118 * mips-tdep.c (mips_gdbarch_init): Ditto.
1119 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1120 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1121 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1122 * i386-tdep.c (i386_gdbarch_init): Ditto.
1123 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1124 * frv-tdep.c (frv_gdbarch_init): Ditto.
1125 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1126 * cris-tdep.c (cris_gdbarch_init): Ditto.
1127 * avr-tdep.c (avr_gdbarch_init): Ditto.
1128 * arm-tdep.c (arm_gdbarch_init): Ditto.
1129 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1131 2002-11-28 Andrew Cagney <cagney@redhat.com>
1133 * frame.h: Update comments on set_current_frame, create_new_frame,
1134 flush_cached_frames, reinit_frame_cache, select_frame and
1137 2002-11-27 Andrew Cagney <cagney@redhat.com>
1139 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1140 deprecated pc_in_call_dummy function.
1141 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1142 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1143 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1144 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1145 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1147 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1149 * Makefile.in: Remove Tix dependencies.
1150 * acinclude.m4: Ditto.
1151 * aclocal.m4: Ditto.
1152 * configure.in: Ditto.
1153 * configure: Regenerated.
1155 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1157 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1158 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1159 * gdbarch.c: Re-generate.
1161 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1163 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1164 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1165 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1166 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1167 pc_in_call_dummy_at_entry_point.
1168 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1169 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1170 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1171 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1172 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1173 pc_in_call_dummy_on_stack.
1174 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1175 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1176 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1177 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1178 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1180 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1182 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1183 pc_in_call_dummy_before_text_end
1184 (deprecated_pc_in_call_dummy_after_text_end): Rename
1185 pc_in_call_dummy_after_text_end.
1186 (deprecated_pc_in_call_dummy_on_stack): Rename
1187 pc_in_call_dummy_on_stack.
1188 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1189 pc_in_call_dummy_at_entry_point.
1190 * m68k-tdep.c (m68k_gdbarch_init): Update.
1191 * s390-tdep.c (s390_gdbarch_init): Update.
1192 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1193 * vax-tdep.c (vax_gdbarch_init): Update.
1194 * sparc-tdep.c (sparc_gdbarch_init): Update.
1195 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1196 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1197 * i386-tdep.c (i386_gdbarch_init): Update.
1198 * frv-tdep.c (frv_gdbarch_init): Update.
1199 * cris-tdep.c (cris_gdbarch_init): Update.
1200 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1201 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1202 (deprecated_pc_in_call_dummy_after_text_end)
1203 (deprecated_pc_in_call_dummy_on_stack)
1204 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1205 * alpha-tdep.c (alpha_gdbarch_init): Update.
1207 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1209 * acconfig.h (HAVE_PREAD64): Add.
1210 * configure.in: Check for pread64.
1211 * config.in: Regenerated.
1212 * configure: Regenerated.
1213 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1214 * linux-proc.c (linux_proc_xfer_memory): New function.
1215 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1217 2002-11-25 David Carlton <carlton@math.stanford.edu>
1219 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1222 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1224 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1225 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1227 2002-11-25 Jim Blandy <jimb@redhat.com>
1229 * symfile.c (init_objfile_sect_indices): New function.
1230 (default_symfile_offsets): Move the section-index-initializing
1231 stuff into init_objfile_sect_indices, and call that.
1233 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1234 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1236 * symfile.c (syms_from_objfile): Adjust indentation.
1238 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1239 || info_verbose isn't true.
1241 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1243 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1244 default to get_frame_base.
1245 * gdbarch.h, gdbarch.c: Regenerate.
1246 * arch-utils.c (default_frame_address): Delete function.
1247 * arch-utils.h (default_frame_address): Delete declaration
1249 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1251 * varobj.c (find_frame_addr_in_frame_chain):
1252 Use get_frame_base instead of FRAME_FP,
1255 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1257 * frame.h (FRAME_FP): Delete macro.
1258 (get_frame_base): New function declaration.
1259 * frame.c (get_frame_base): New function.
1260 (get_frame_id): Use ->frame.
1261 (frame_find_by_id): Rewrite to use get_frame_id.
1262 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1263 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1264 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1265 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1266 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1267 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1268 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1270 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1272 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1274 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1276 * frame.c (set_unwind_by_pc): Revert change below, use
1278 (get_prev_frame): Ditto.
1280 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1282 * dummy-frame.c (pc_in_dummy_frame): New function.
1283 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1284 (find_dummy_frame): Update comment.
1285 (generic_pop_current_frame): Use get_frame_type.
1286 * dummy-frame.h (pc_in_dummy_frame): Declare.
1287 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1288 (create_new_frame): Use pc_in_dummy_frame.
1289 (get_prev_frame): Use pc_in_dummy_frame.
1290 (frame_saved_regs_register_unwind): Use get_prev_frame.
1291 (deprecated_generic_get_saved_register): Use get_prev_frame.
1293 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1295 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1297 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1298 (varobj_create): Note that frame ID should be used.
1299 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1301 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1303 * breakpoint.c: Include "gdb_assert.h".
1304 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1306 * Makefile.in (breakpoint.o): Update dependencies.
1307 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1308 deprecated_frame_in_dummy.
1309 * stack.c (print_frame_info_base): Ditto.
1310 (frame_info): Ditto.
1311 (print_frame_info_base): Ditto. Delete dead code.
1313 2002-11-23 Andreas Schwab <schwab@suse.de>
1315 * Makefile.in (m68k_tdep_h): Define.
1316 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1317 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1318 * m68k-tdep.c: Move register number enum ...
1319 * m68k-tdep.h: ... to this new file and rename the constants from
1320 E_* to M68K_*. All uses changed.
1321 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1322 * abug-rom.c: Include "m68k-tdep.h". Use
1323 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1324 * cpu32bug-rom.c: Likewise.
1325 * dbug-rom.c: Likewise.
1326 * m68k-tdep.c: Likewise.
1327 * m68klinux-nat.c: Likewise.
1328 * remote-est.c: Likewise.
1329 * rom68k-rom.c: Likewise.
1330 * config/m68k/tm-linux.h: Likewise.
1332 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1334 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1335 dummy frame initialization code.
1336 * mips-tdep.c (mips_gdbarch_init): Ditto.
1338 2002-11-22 Christopher Faylor <cgf@redhat.com>
1340 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1343 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1345 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1346 to default_frame_address.
1347 * gdbarch.h, gdbarch.c: Re-generate.
1349 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1350 or frame_locals_address to default_frame_address.
1351 * m68k-tdep.c (m68k_gdbarch_init): Update.
1352 * i386-tdep.c (i386_gdbarch_init): Update.
1353 * frv-tdep.c (frv_gdbarch_init): Update.
1354 * sh-tdep.c (sh_gdbarch_init): Update.
1355 * v850-tdep.c (v850_gdbarch_init): Update.
1356 * sparc-tdep.c (sparc_gdbarch_init): Update.
1357 * mips-tdep.c (mips_gdbarch_init): Update.
1358 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1359 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1362 * cris-tdep.c (cris_frame_args_address): Delete function.
1363 (cris_frame_locals_address): Delete function.
1364 (cris_gdbarch_init): Do not set frame_args_address or
1365 frame_locals_address.
1367 2002-11-22 Michael Snyder <msnyder@redhat.com>
1369 * thread-db.c (thread_db_load): Tell the user what's going on
1370 if dlopen fails on libthread_db.
1372 2002-11-23 Andreas Schwab <schwab@suse.de>
1374 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1375 invariant return values.
1377 2002-11-22 Andreas Schwab <schwab@suse.de>
1379 * valops.c (value_slice): Move declaration of `offset' to avoid
1382 2002-11-22 Christopher Faylor <cgf@redhat.com>
1384 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1385 (struct so_stuff): Add end_addr field.
1386 (register_loaded_dll): Calculate and store end address of loaded dll.
1387 (solib_address): New function.
1388 (child_solib_loaded_library_pathname): Pass carefully constructed
1389 section info to safe_symbol_file_add rather than ignoring it.
1390 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1392 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1393 (child_create_inferior): Fix a compiler warning.
1394 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1395 (solib_address): Declare new function.
1397 2002-11-22 Andreas Schwab <schwab@suse.de>
1399 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1402 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1404 * maint.c (_initialize_maint_cmds): Fix typo. From
1405 Francesco Potorti` <pot@gnu.org>.
1407 2002-11-21 Andrew Cagney <cagney@redhat.com>
1409 * mips-tdep.c (mips_dump_tdep): Delete references to
1410 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1411 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1412 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1413 * printcmd.c (build_address_symbolic): Delete calls to
1414 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1415 (address_info): Ditto.
1418 2002-11-19 Klee Dienes <kdienes@apple.com>
1419 Adam Fedor <fedor@gnu.org>
1421 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1422 the ability to explicitly specify the quote characters and word
1423 break characters; if NULL is specified for either, use the old
1424 behavior of using the characters used by the completer.
1425 (skip_chars): New function. Convenience wrapper around
1426 skip_quoted_chars to provide the original skip_chars behavior.
1427 * completer.h (skip_quoted_chars): Add prototype.
1429 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1431 Problems reported by Paul Eggert.
1432 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1434 2002-11-19 Andreas Schwab <schwab@suse.de>
1436 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1437 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1438 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1439 (m68k_linux_frame_saved_pc): Move to ...
1440 * m68klinux-tdep.c: ... here. New file.
1441 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1442 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1444 2002-11-19 Adam Fedor <fedor@gnu.org>
1446 * objc-exp.y: Revert to old skip_quoted usage.
1448 2002-11-19 Adam Fedor <fedor@gnu.org>
1450 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1451 (objc_lang_h): Define.
1452 (YYFILES): Add objc-exp.tab.c.
1453 (local-maintainer-clean): Remove objc-exp.tab.c.
1454 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1456 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1458 * p-exp.y (typecast rule): Add automatic dereference of
1459 pascal classes if needed.
1460 (THIS): Set current_type.
1461 Automatically dereference pascal classes.
1462 (typebase rule): Add ^typebase recognition.
1464 2002-11-18 Adam Fedor <fedor@gnu.org>
1466 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1467 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1468 (op_name): Handle OP_OBJC_SELF.
1469 * Makefile.in (expprint.o): Add additional depends.
1471 2002-11-18 Adam Fedor <fedor@gnu.org>
1473 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1474 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1475 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1476 * objc-exp.y: Likewise.
1478 2002-11-18 Adam Fedor <fedor@gnu.org>
1480 * gdb/parser-defs.h: (struct objc_class_str): New structure
1481 for parsing ObjC classes.
1483 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1485 * stack.c (frame_relative_level): Copy function from here ...
1486 * frame.c (frame_relative_level): ...to here.
1488 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1490 * frame.h (enum frame_type): Define.
1491 (get_frame_type): Declare.
1492 (struct frame_info): Add field `type'. Delete field
1493 signal_handler_caller.
1494 (deprecated_set_frame_signal_handler_caller): Declare.
1495 * frame.c (get_frame_type): New function.
1496 (deprecated_set_frame_type): New function.
1497 (create_new_frame): Set the frame's type.
1498 (get_prev_frame): Similar.
1499 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1500 * s390-tdep.c: Ditto.
1501 * m68klinux-nat.c: Ditto.
1502 * ns32k-tdep.c: Ditto.
1503 * x86-64-linux-tdep.c: Ditto.
1504 * vax-tdep.c: Ditto.
1505 * rs6000-tdep.c: Ditto.
1506 * ppc-linux-tdep.c: Ditto.
1507 * i386-interix-tdep.c: Ditto.
1508 * mips-tdep.c: Ditto.
1509 * m68k-tdep.c: Ditto.
1510 * hppa-tdep.c: Ditto.
1511 * ia64-tdep.c: Ditto.
1512 * cris-tdep.c: Ditto.
1513 * arm-tdep.c: Ditto.
1514 * alpha-tdep.c: Ditto.
1515 * i386-tdep.c: Ditto.
1517 * ada-lang.c: Ditto.
1518 * blockframe.c: Update.
1519 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1520 deprecated_set_frame_type instead of signal_handler_caller.
1521 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1522 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1523 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1525 2002-11-18 Klee Dienes <kdienes@apple.com>
1527 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1529 2002-11-18 Klee Dienes <kdienes@apple.com>
1531 * buildsym.c (pop_context): Add comment.
1533 2002-11-18 Klee Dienes <kdienes@apple.com>
1535 * buildsym.h (pop_context): Convert to function, defined in
1537 * buildsym.c: Include gdb_assert.h.
1538 (pop_context): Implement as C function. Add check for stack
1540 * dbxread.c (process_one_symbol): Complain and stop processing
1541 that symbol if we are already at the top of the context stack for
1542 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1543 when processing N_RBRAC.
1545 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1547 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1549 (struct target_waitstatus): Add opaque definition.
1550 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1551 * exec.c (init_exec_ops): Likewise.
1552 * fork-child.c (clone_and_follow_inferior): Remove.
1553 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1554 * inferior.h (clone_and_follow_inferior): Remove prototype.
1555 * infrun.c (follow_fork_mode_both): Remove.
1556 (follow_fork_mode_kind_names): Remove commented out "both".
1557 (follow_inferior_fork): Remove follow_fork_mode_both support.
1558 * inftarg.c (child_clone_and_follow_inferior): Remove.
1559 (child_post_follow_inferior_by_clone): Remove.
1560 (init_child_ops): Don't set to_clone_and_follow_inferior
1561 or to_post_follow_inferior_by_clone.
1562 * target.c (default_clone_and_follow_inferior): Remove.
1563 (cleanup_target): Don't set to_clone_and_follow_inferior
1564 or to_post_follow_inferior_by_clone.
1565 (find_default_clone_and_follow_inferior): Remove.
1566 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1567 (debug_to_clone_and_follow_inferior): Remove.
1568 (debug_to_post_follow_inferior_by_clone): Remove.
1569 (setup_target_debug): Don't set to_clone_and_follow_inferior
1570 or to_post_follow_inferior_by_clone.
1571 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1572 and to_post_follow_inferior_by_clone.
1573 (child_clone_and_follow_inferior): Remove prototype.
1574 (child_post_follow_inferior_by_clone): Remove prototype.
1575 (target_clone_and_follow_inferior): Remove macro.
1576 (target_post_follow_inferior_by_clone): Remove macro.
1577 (find_default_clone_and_follow_inferior): Remove prototype.
1579 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1581 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1582 inferior_has_vforked, and inferior_has_execd instead of
1583 target_has_forked, target_has_vforked, and target_has_execd.
1584 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1585 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1586 (CHILD_WAIT): Define.
1587 (child_wait): Add prototype.
1588 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1590 (hpux_has_vforked): Likewise, from child_has_vforked.
1591 (hpux_has_execd): Likewise, from child_has_execd.
1592 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1593 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1594 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1595 and hpux_has_syscall_event instead of the target hooks.
1596 * infrun.c (inferior_has_forked, inferior_has_vforked)
1597 (inferior_has_execd): New functions.
1598 * inftarg.c (not_same_real_pid): Remove.
1599 (child_wait): Remove references to not_same_real_pid,
1600 target_has_forked, target_has_vforked, target_has_execd,
1601 and target_has_syscall_event.
1602 (child_has_forked, child_has_vforked, child_has_execd)
1603 (child_has_syscall_event): Remove.
1604 (init_child_ops): Remove references to child_has_forked,
1605 child_has_vforked, child_has_execd, and child_has_syscall_event.
1606 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1607 (hpux_has_vforked): Likewise, from child_has_vforked.
1608 (hpux_has_execd): Likewise, from child_has_execd.
1609 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1610 * target.c (cleanup_target): Remove references to
1611 to_has_forked, to_has_vforked, to_has_execd, and
1612 to_has_syscall_event.
1613 (update_current_target): Likewise.
1614 (setup_target_debug): Likewise.
1615 (debug_to_has_forked): Remove.
1616 (debug_to_has_vforked): Remove.
1617 (debug_to_has_execd): Remove.
1618 (debug_to_has_syscall_event): Remove.
1619 * target.h (struct target_ops): Remove to_has_forked.
1620 to_has_vforked, to_has_execd, and to_has_syscall_event.
1621 (child_has_forked, child_has_vforked, child_has_execd)
1622 (child_has_syscall_event): Remove prototypes.
1623 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1625 (target_has_forked, target_has_vforked, target_has_execd)
1626 (target_has_syscall_event): Remove macros.
1628 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1630 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1631 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1632 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1633 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1634 * target.c (cleanup_target): Remove reference to
1635 to_can_follow_vfork_prior_to_exec.
1636 (update_current_target): Likewise.
1637 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1638 (setup_target_debug): Remove reference to
1639 to_can_follow_vfork_prior_to_exec.
1640 * target.h (struct target_ops): Remove
1641 to_can_follow_vfork_prior_to_exec.
1642 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1643 (target_can_follow_vfork_prior_to_exec): Remove definition.
1644 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1646 * infrun.c (follow_vfork_when_exec): Remove.
1647 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1648 (follow_exec): Likewise.
1649 (handle_inferior_event): Likewise.
1650 (keep_going): Likewise.
1652 2002-11-15 Andrew Cagney <cagney@redhat.com>
1654 * frame.c (generic_unwind_get_saved_register): Make static.
1655 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1656 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1657 defaults to generic_unwind_get_saved_register.
1658 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1659 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1660 * frv-tdep.c (frv_gdbarch_init): Ditto.
1661 * i386-tdep.c (i386_gdbarch_init): Ditto.
1662 * s390-tdep.c (s390_gdbarch_init): Ditto.
1663 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1664 * v850-tdep.c (v850_gdbarch_init): Ditto.
1665 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1666 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1667 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1669 2002-11-15 Andrew Cagney <cagney@redhat.com>
1671 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1674 2002-11-15 Andrew Cagney <cagney@redhat.com>
1676 * frame.h (sigtramp_saved_pc): Delete declaration.
1677 * blockframe.c (sigtramp_saved_pc): Delete function.
1678 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1679 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1680 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1681 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1683 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1685 * frame.c (frame_pc_unwind): New function.
1686 (frame_saved_regs_pc_unwind): New function.
1687 (frame_register_unwind): Pass unwind_cache instead of
1688 register_unwind_cache.
1689 (set_unwind_by_pc): Add unwind_pc parameter, set.
1690 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1691 (get_prev_frame): Ditto.
1692 * frame.h (frame_pc_unwind_ftype): Declare.
1693 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1694 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1695 (frame_pc_unwind): Declare.
1696 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1697 (struct dummy_frame): Add comment mentioning that values are for
1699 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1700 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1701 (generic_file_frame_chain_valid): Ditto.
1702 * stack.c (frame_info): Ditto.
1704 2002-11-15 David Carlton <carlton@math.stanford.edu>
1706 * linespec.c (locate_first_half): New function.
1707 (decode_line_1): Move code into locate_first_half.
1709 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1711 * complaints.h: Add comment explaining how to eliminate a
1712 deprecated_complain call.
1713 * complaints.h: Fix spelling errors.
1715 2002-11-15 David Carlton <carlton@math.stanford.edu>
1717 * printcmd.c: Remove #include "disasm.h".
1719 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1721 * frame.h: Move the most relevant interface functions to the start
1724 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1726 * regcache.h (deprecated_registers): Rename registers.
1727 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1728 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1729 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1730 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1731 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1732 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1733 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1734 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1735 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1736 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1737 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1738 * v850ice.c: Update.
1740 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1742 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1745 2002-11-13 Andrew Cagney <cagney@redhat.com>
1747 * regcache.h (deprecated_read_register_bytes): Rename
1748 read_register_bytes.
1749 (deprecated_write_register_bytes): Rename write_register_bytes.
1750 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1751 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1752 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1753 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1754 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1755 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1756 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1757 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1758 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1759 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1760 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1761 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1762 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1763 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1765 2002-11-13 Jim Blandy <jimb@redhat.com>
1767 * findvar.c (read_var_value): Doc fix.
1769 2002-11-13 Andrew Cagney <cagney@redhat.com>
1771 * regcache.c (struct regcache): Replace passthough_p with
1773 (regcache_xmalloc): Initialize readonly_p.
1774 (build_regcache): Initialize readonly_p.
1775 (regcache_save): New function.
1776 (regcache_restore): New function.
1777 (regcache_cpy): Re-implement using regcache_save and
1779 (regcache_raw_read): Update.
1780 (regcache_cooked_read): When a read-only cache, checked for cached
1781 pseudo register values.
1782 (regcache_raw_write): Assert that the cache is not read-only.
1783 Remove code handling a non-passthrough cache.
1784 * regcache.h (regcache_save): Declare.
1785 (regcache_restore): Declare.
1787 2002-11-13 Andrew Cagney <cagney@redhat.com>
1789 * regcache.c (struct regcache_descr): Add fields
1790 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1791 (init_legacy_regcache_descr): Compute the size of a cooked
1792 register cache and then assign that to sizeof_raw_registers. Set
1793 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1794 (init_legacy_regcache_descr): Ditto.
1796 2002-11-13 Andrew Cagney <cagney@redhat.com>
1798 * regcache.c (register_buffer): Move to near start of file, update
1800 (regcache_raw_read): Use.
1801 (regcache_raw_write): Use.
1802 (struct regcache): Rename raw_registers to registers and
1803 raw_register_valid_p to register_valid_p.
1804 (regcache_xmalloc): Update.
1805 (regcache_xfree): Update.
1806 (register_buffer): Update.
1807 (regcache_cpy): Update.
1808 (regcache_cpy_no_passthrough): Update.
1809 (regcache_valid_p): Update.
1810 (deprecated_grub_regcache_for_registers): Update.
1811 (deprecated_grub_regcache_for_register_valid): Update.
1812 (set_register_cached): Update.
1813 (regcache_raw_write): Update.
1815 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1817 * p-exp.y (name_not_typename): Use copy_name to
1818 set current_type variable for fields of THIS.
1820 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1822 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1823 * monitor.c (init_base_monitor_ops): Likewise.
1824 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1825 * remote-array.c (init_array_ops): Likewise.
1826 * remote-e7000.c (init_e7000_ops): Likewise.
1827 * remote-es.c (init_es1800_ops): Likewise.
1828 (init_es1800_child_ops): Likewise.
1829 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1830 * remote-sim.c (init_gdbsim_ops): Likewise.
1831 * remote-st.c (init_st2000_ops): Likewise.
1832 * sol-thread.c (init_sol_core_ops): Likewise.
1833 (init_sol_thread_ops): Likewise.
1834 * v850ice.c (init_850ice_ops): Likewise.
1835 * win32-nat.c (init_child_ops): Likewise.
1836 * wince.c (init_child_ops): Likewise.
1838 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1840 * utils.c (gdb_realpath): Make rp a constant pointer.
1842 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1844 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1845 a constant buffer; cannonicalize_file_name(); realpath() with a
1846 pathconf() defined buffer, xstrdup().
1848 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1850 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1851 to hang2.C; hang3.c to hang3.C.
1853 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1855 * findvar.c (read_var_value): Reenable TLS code.
1857 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1858 Jim Blandy <jimb@redhat.com>
1860 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1861 * target.c (update_current_target): Add
1862 to_get_thread_local_address.
1863 * target.h (to_get_thread_local_address): Export.
1864 (target_get_thread_local_address): Define.
1865 (target_get_thread_local_address_p): Define.
1866 * thread-db.c: Include solib-svr4.h.
1867 (td_thr_tls_get_addr_p): Define.
1868 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1869 (thread_db_get_thread_local_address): New function.
1870 (init_thread_db_ops): Initialize to_get_thread_local_address.
1871 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1872 * configure: Regenerate.
1873 * config.in: Regenerate.
1875 2002-11-11 David Carlton <carlton@math.stanford.edu>
1877 * linespec.c (set_flags): New function.
1878 (decode_line_1): Move code into set_flags.
1880 2002-11-11 David Carlton <carlton@math.stanford.edu>
1882 * linespec.c (decode_line_1): Move chunks of code to separate
1884 (initialize_defaults): New function.
1885 (decode_indirect): New function.
1887 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1889 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1890 instead of void_code_ptr.
1891 (sigtramp_saved_pc): Ditto.
1893 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1896 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1898 * gdbtypes.h (struct main_type): Move artificial flag out of
1899 loc. New member of ``struct field'' named static_kind. Reduce
1900 overloaded meaning of bitsize.
1901 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1902 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1903 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1905 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1907 (template_to_fixed_record_type, template_to_static_fixed_type)
1908 (to_record_with_fixed_variant_part): Likewise.
1909 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1910 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1911 * dwarfread.c (struct_type, enum_type): Likewise.
1912 * hpread.c (hpread_read_enum_type)
1913 (hpread_read_function_type, hpread_read_doc_function_type)
1914 (hpread_read_struct_type): Likewise.
1915 * mdebugread.c (parse_symbol): Likewise.
1917 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1919 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1920 * stack.c (print_frame_info_base): Update.
1921 (print_frame_info_base, frame_info): Update.
1922 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1923 (sparc_frame_saved_pc): Update.
1924 * ada-lang.c (find_printable_frame): Update.
1925 * breakpoint.c (deprecated_frame_in_dummy): Update.
1927 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1929 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1931 (regmap): Extend to cover all registers.
1932 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1933 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1935 (fetch_register, sore_register): Simplify.
1936 (old_fetch_inferior_registers, old_store_inferior_registers):
1938 (cannot_fetch_register, cannot_store_register): Change
1939 implementation to use regmap array to decide which registers
1940 cannot be fetched/stored. This removes $orig_eax from the
1941 registers that cannot be fetched/stored.
1942 (fetch_inferior_registers): Call fetch_register directly instead
1943 of calling old_fetch_inferior_registers.
1944 (store_inferior_registers): Call store_register directly instead
1945 of calling old_store_inferior_registers.
1946 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1947 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1948 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1950 2002-11-09 Klee Dienes <kdienes@apple.com>
1952 * i387-tdep.c (i387_supply_register): When called with NULL as a
1953 buffer, mark the register as not provided (to mirror the behavior
1954 of supply_register).
1955 (i387_supply_fxsave): Ditto.
1956 (i387_supply_fsave): Ditto (inherits the behavior from
1957 i387_supply_register).
1959 2002-11-09 Klee Dienes <kdienes@apple.com>
1961 * blockframe.c (sigtramp_saved_pc): Use
1962 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1963 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1964 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1966 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1968 * frame.c (get_prev_frame): Test prev_p to identify a previously
1969 unwound frame. Initialize prev_p.
1970 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1973 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1975 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1976 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1977 more comments. Zap dead code.
1979 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1981 * infcmd.c (print_vector_info, print_float_info): Move code that
1982 checks whether the target has any registers and whether there is a
1983 selected frame up, such that it is also used if a target provides
1984 multi-arch definitions of these functions.
1986 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1988 * Makefile.in (DESTDIR): Define.
1989 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1992 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1993 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1995 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1997 * i386-linux-tdep.c: Include "reggroups.h".
1998 (i386_linux_register_reggroup_p): New function.
1999 (i386_linux_init_abi): Set register_reggroup_p to
2000 i386_linux_register_reggroup_p.
2001 * i386-tdep.h (i386_register_reggroup_p): Declare.
2002 * i386-tdep.c: Include "reggroups.h".
2003 (i386_init_reggroups): New function.
2004 (i386_add_reggroups): New function.
2005 (i386_register_reggroup_p): New function.
2006 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2007 (_initialize_i386_tdep): Call i386_init_reggroups.
2008 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2011 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2013 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2014 request that's available in *BSD.
2016 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2018 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2021 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2023 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2024 * dummy-frame.c (find_dummy_frame): Rename
2025 generic_find_dummy_frame, make static. Return the dummy frame
2026 instead of the regcache.
2027 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2028 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2029 (dummy_frame_register_unwind): Rename
2030 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2031 * dummy-frame.h (dummy_frame_register_unwind): Rename
2032 generic_call_dummy_register_unwind.
2034 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2036 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2037 except the inclusion of "i386/tm-i386.h", to...
2038 * config/i386/nm-i386v42mp.h: ...here.
2039 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2041 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2043 * Makefile.in (frame.o): Update dependencies.
2044 * blockframe.c (current_frame, frame_obstack_alloc)
2045 (frame_saved_regs_zalloc, get_current_frame)
2046 (set_current_frame, create_new_frame)
2047 (set_unwind_by_pc, get_next_frame)
2048 (flush_cached_frames, reinit_frame_cache)
2049 (frame_saved_regs_register_unwind)
2050 (deprecated_generic_get_saved_register)
2051 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2052 (_initialize_blockframe): Move frame code from here...
2053 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2054 "annotate.h" and "dummy-frame.h".
2055 (_initialize_frame): New function.
2057 2002-11-08 Jim Blandy <jimb@redhat.com>
2059 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2060 when we finish a function a context.
2061 * buildsym.h (outermost_context_p): New macro.
2062 (Bug analyzed by David Edelsohn.)
2064 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2066 * blockframe.c: Include "dummy-frame.h".
2067 (struct dummy_frame, dummy_frame_stack)
2068 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2069 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2070 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2071 (generic_save_call_dummy_addr, generic_pop_current_frame)
2072 (generic_pop_dummy_frame, generic_fix_call_dummy)
2073 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2074 dummy frame code from here...
2075 * dummy-frame.c: ...to here. New file.
2076 * dummy-frame.h: New file.
2077 (generic_call_dummy_register_unwind): Declare.
2078 (generic_find_dummy_frame): Declare.
2079 * Makefile.in (SFILES): Add dummy-frame.c.
2080 (dummy-frame.o): Specify dependencies.
2081 (dummy_frame_h): Define.
2082 (COMMON_OBS): Add dummy-frame.o.
2083 (blockframe.o): Update dependencies.
2085 2002-11-08 Jim Blandy <jimb@redhat.com>
2087 * dwarf2read.c (read_func_scope): Restore local_symbols and
2088 param_symbols after we finish the function context. (Based on a
2089 patch from David Edelsohn.)
2091 2002-11-08 David Carlton <carlton@math.stanford.edu>
2093 * linespec.c (symbol_found): New function.
2094 (minsym_found): New function.
2095 (decode_line_1): Separate out some code into separate functions.
2097 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2099 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2100 the benefit of the interix target.
2101 * i386-tdep.h (i386_frameless_signal_p): Declare.
2103 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2105 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2106 declaration that snuck in from change below.
2108 2002-11-06 Andrew Cagney <cagney@redhat.com>
2110 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2112 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2113 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2114 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2115 (i386_mxcsr_regnum_p): new function. Use instead of
2117 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2118 (i386_sse_regnum_p): Declare.
2119 (i386_mxcsr_regnum_p): Declare.
2120 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2121 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2122 (IS_FP_REGNUM): Update definition.
2123 (IS_FPU_CTRL_REGNUM): Update definition..
2124 (IS_SSE_REGNUM): Update definition..
2125 * i386v-nat.c (register_u_addr): Update.
2126 * go32-nat.c (fetch_register): Update.
2127 (store_register): Update.
2129 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2131 Preparation work to convert the hppa targets to multiarch partial.
2133 * hppa-tdep.c: Add new functions replacing macro bodies from
2134 config/pa/tm-hppa.h. These function will be used to initialize
2135 the gdbarch structure. Import some comments from tm-hppa.h,
2136 and place them where appropriate, to avoid loosing them when
2137 we cleanup this file.
2138 (hppa_reg_struct_has_addr): New function.
2139 (hppa_inner_than): New function.
2140 (hppa_stack_align): New function.
2141 (hppa_pc_requires_run_before_use): New function.
2142 (hppa_instruction_nullified): New function.
2143 (hppa_register_byte): New function.
2144 (hppa_register_virtual_type): New function.
2145 (hppa_store_struct_return): New function.
2146 (hppa_cannot_store_register): New function.
2147 (hppa_frame_args_address): New function.
2148 (hppa_frame_locals_address): New function.
2149 (hppa_smash_text_address): New function.
2150 (hppa_coerce_float_to_double): New function. Requires the inclusion
2153 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2155 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2156 gdbarch-eligible macro to a call to the new associated function
2157 created in hppa-tdep.c.
2158 (INNER_THAN): Likewise.
2159 (STACK_ALIGN): Likewise.
2160 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2161 (INSTRUCTION_NULLIFIED): Likewise.
2162 (REGISTER_BYTE): Likewise.
2163 (REGISTER_VIRTUAL_TYPE): Likewise.
2164 (STORE_STRUCT_RETURN): Likewise.
2165 (CANNOT_STORE_REGISTER): Likewise.
2166 (FRAME_ARGS_ADDRESS): Likewise.
2167 (FRAME_LOCALS_ADDRESS): Likewise.
2168 (SMASH_TEXT_ADDRESS): Likewise.
2169 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2170 (ABOUT_TO_RETURN): Delete, as no longer used.
2172 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2174 * printcmd.c (disassemble_command): Remove obsolete function.
2175 (_initialize_printcmd): Do not create disassemble command here.
2176 * cli/cli-cmds.c (disassemble_command): New function. Implements
2177 disassemble command.
2178 (init_cli_cmds): Create disassemble command here instead.
2180 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2182 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2184 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2186 * regcache.h (regcache_cooked_read_using_offset_hack)
2187 (regcache_cooked_write_using_offset_hack): Delete declarations.
2188 (register_changed): Delete declaration.
2189 * regcache.c (regcache_cooked_read_using_offset_hack)
2190 (regcache_cooked_write_using_offset_hack): Delete functions.
2191 (cooked_xfer_using_offset_hack): Delete function.
2192 (register_changed): Delete function.
2194 2002-11-07 Jim Blandy <jimb@redhat.com>
2196 * macroscope.c: #include "complaints.h".
2197 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2198 but not in the macro table.
2199 * Makefile.in (macroscope.o): Record dependency.
2201 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2203 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2205 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2207 * regcache.c (deprecated_registers_fetched): Update.
2208 * regcache.h (deprecated_registers_fetched): Rename
2210 * remote-vxsparc.c (vx_read_register): Update.
2211 * remote-vxmips.c (vx_read_register): Update.
2212 * remote-vx68.c (vx_read_register): Update.
2213 * irix5-nat.c (fetch_core_registers): Update.
2214 * mipsm3-nat.c (fetch_inferior_registers): Update.
2215 * sun3-nat.c (fetch_inferior_registers): Update.
2216 * symm-nat.c (fetch_inferior_registers): Update.
2217 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2218 (fetch_core_registers): Update.
2219 (fetch_kcore_registers): Update.
2220 * mips-nat.c (fetch_inferior_registers): Update.
2221 * corelow.c (get_core_registers): Update.
2222 * a68v-nat.c (fetch_inferior_registers): Update.
2224 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2226 Put in place the framework necessary for multiarching the hppa targets.
2227 * hppa-tdep.c (hppa_gdbarch_init): New function.
2228 (hppa_dump_tdep): New function.
2229 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2230 tdep structure dumper.
2231 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2232 until the multi-arching conversion has partially been completed.
2234 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2236 * valops.c (value_assign): Merge lval_register case into
2237 lval_reg_frame_relative. Use frame_register and
2238 regcache_cooked_write instead of get_saved_register and
2239 write_register_bytes. After flushing the register cache, try to
2240 re-select the selected frame.
2242 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2244 * regcache.h (deprecated_register_valid): Rename register_valid.
2245 * regcache.c: Update.
2246 * ia64-aix-nat.c: Update.
2247 * i386gnu-nat.c: Update.
2248 * alpha-nat.c: Update.
2249 * sparc-nat.c: Update.
2250 * lynx-nat.c: Update.
2251 * remote-mips.c: Update.
2253 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2255 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2256 to end of file, to be more consistent with the pratice followed
2259 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2261 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2262 (print_float_info): Print registers in float_reggroup.
2263 (print_vector_info): Print registers in vector_reggroup.
2264 (default_print_registers_info): When all, print registers in
2265 all_reggroup. Otherwize, print registers in general_reggroup.
2266 (registers_info): Rewrite. Add support for register groups.
2269 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2271 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2273 (symtab_symbol_info): Remove eons old ifdeffed out code.
2274 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2277 2002-11-06 Theodore A. Roth <troth@openavr.org>
2279 * c-exp.y: Add missing semi-colons.
2280 * f-exp.y: Add missing semi-colons.
2281 * m2-exp.y: Add missing semi-colons.
2282 * p-exp.y: Add missing semi-colons.
2283 Add empty action to start rule to avoid a type clash error when
2284 building with bison >= 1.50.
2286 2002-11-06 Jim Blandy <jimb@redhat.com>
2288 * macrotab.h (struct macro_source_file): Doc fix.
2290 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2292 * varobj.c (child_exists, cplus_number_of_children): Change
2293 STREQ macro references to strcmp.
2294 (cplus_name_of_child): Change code to handle the fact that
2295 fields are not necessarily contiguous with regards to their
2296 access control. This is a fix for PR gdb/792.
2298 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2300 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2301 * gdbarch.h, gdbarch.c: Regnerate.
2302 * frame.h (frame_register): Declare.
2303 * frame.c (frame_register): New function.
2304 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2305 GET_SAVED_REGISTER, otherwize call
2306 generic_unwind_get_saved_register.
2307 (frame_register_read): Use frame_register instead of
2310 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2312 From Jim Ingham <jingham@apple.com>:
2313 * event-top.c (gdb_disable_readline): New function.
2314 (_initialize_event_loop): Move comment.
2316 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2318 * event-loop.c (start_event_loop): Add comment.
2321 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2323 * infcmd.c (default_print_registers_info): Do not call
2324 PRINT_REGISTER_HOOK.
2326 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2328 * sparc-tdep.c (sparc_print_register_hook): Make static.
2329 (sparc_print_registers_info): New function.
2330 (sparc_do_registers_info): New function.
2331 (sparclet_print_registers_info): New function.
2332 (sparclet_do_registers_info): New function.
2333 (do_sparc_print_registers_info): New function.
2334 (sparc_print_registers): New static function, clone of infcmd.c's
2335 default_print_registers_info.
2336 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2337 (sparclet_do_registers_info): Declare.
2338 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2339 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2341 (sparc_do_registers_info): Declare.
2342 (PRINT_REGISTER_HOOK): Delete macro.
2343 (sparc_print_register_hook): Delete declaration.
2345 2002-11-05 David Carlton <carlton@math.stanford.edu>
2347 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2349 (lookup_symbol_aux_local): New function.
2350 (lookup_symbol_aux_symtabs): New function.
2351 (lookup_symbol_aux_psymtabs): New function.
2353 2002-11-05 David Carlton <carlton@math.stanford.edu>
2355 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2356 previous values of 'objfile' and 'block'.
2358 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2360 * values.c (value_change_enclosing_type): Set
2361 enclosing_type field correctly also for the case where
2362 more memory needs to be allocated.
2364 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2366 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2369 * i387-tdep.c (i387_print_float_info): Replace calls to
2370 register_read and deprecated_read_register_gen with calls to
2371 frame_register_read, and make the necessary adjustments to the
2374 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2376 * gdbarch.sh (register_reggroup_p): Allow default value.
2377 * gdbarch.h, gdbarch.c: Regenerate.
2379 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2381 * regcache.h: Add coment indicating replacements for deprecated
2384 2002-11-02 Andrew Cagney <cagney@redhat.com>
2386 * reggroups.h, reggroups.c: New files.
2387 * regcache.c: Include "reggroups.h".
2388 (enum regcache_dump_what): Add `regcache_dump_groups'.
2389 (regcache_dump): Contract size of the "Type" column. When
2390 specified, dump the register's groups.
2391 (maintenance_print_register_groups): New function.
2392 (_initialize_regcache): Add command `maint print register-groups'.
2393 * Makefile.in (COMMON_OBS): Add reggroups.o
2394 (SFILES): Add reggroups.c.
2395 (reggroups_h): Define.
2396 (regcache.o, gdbarch.o): Update dependencies.
2397 (reggroups.o): Specify dependencies.
2398 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2399 Add opaque declaration for `struct reggroup' in generated .h file.
2400 Include "reggroups.h" in generated .c file.
2401 gdbarch.h, gdbarch.c: Re-generate.
2403 2002-11-02 Andrew Cagney <cagney@redhat.com>
2405 * regcache.h (deprecated_read_register_gen): Rename
2407 (deprecated_write_register_gen): Rename write_register_gen.
2408 * i387-tdep.c: Update.
2409 * x86-64-linux-nat.c: Update
2411 * thread-db.c: Update.
2412 * win32-nat.c: Update.
2413 * mips-tdep.c: Update.
2414 * d10v-tdep.c: Update.
2415 * cris-tdep.c: Update.
2416 * remote-sim.c: Update.
2417 * remote-rdi.c: Update.
2418 * remote-rdp.c: Update.
2421 * blockframe.c: Update.
2422 * x86-64-tdep.c: Update.
2423 * xstormy16-tdep.c: Update.
2424 * sh-tdep.c: Update.
2425 * s390-tdep.c: Update.
2426 * rs6000-tdep.c: Update.
2427 * sparc-tdep.c: Update.
2428 * i386-tdep.c: Update.
2429 * dwarf2cfi.c: Update.
2430 * regcache.c: Update.
2432 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2434 New interix-specific files:
2435 * config/i386/nm-interix.h: New file.
2436 * config/i386/interix.mh: New file.
2437 * config/i386/interix.mt: New file.
2438 * i386-interix-nat.c: New file.
2439 * i386-interix-tdep.c: New file.
2441 2002-11-01 Andrew Cagney <cagney@redhat.com>
2443 * frame.h (deprecated_generic_get_saved_register): Rename
2444 generic_get_saved_register.
2445 * blockframe.c (deprecated_generic_get_saved_register): Update.
2446 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2447 (xstormy16_frame_saved_register): Update.
2448 * sh-tdep.c (sh_gdbarch_init): Update.
2449 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2450 * ia64-tdep.c (ia64_get_saved_register): Update.
2451 * cris-tdep.c (cris_gdbarch_init): Update.
2452 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2453 * arm-tdep.c (arm_gdbarch_init): Update.
2455 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2457 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2459 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2461 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2462 trampolines in sigaction.
2464 2002-10-31 Andrew Cagney <cagney@redhat.com>
2466 * h8300-tdep.c: Include "gdb_assert.h".
2467 (h8300_print_register): Add gdbarch, file and frame parameters.
2468 Use frame_read_unsigned_register to read the register's value.
2469 Use fprintf_filtered to display output.
2470 (h8300_print_registers_info): Replace h8300_do_registers_info.
2471 (h8300_gdbarch_init): Set print_registers_info.
2473 2002-10-31 Andrew Cagney <cagney@redhat.com>
2475 * frame.c (frame_read_unsigned_register): New function.
2476 (frame_read_signed_register): New function.
2477 * frame.h (frame_read_unsigned_register): Declare.
2478 (frame_read_signed_register): Declare.
2480 2002-10-31 Andrew Cagney <cagney@redhat.com>
2482 * h8500-tdep.c (h8500_print_registers_info): New static function,
2483 clone of infcmd.c's default_print_registers_info.
2484 (h8500_do_registers_info): New funtion.
2485 (h8500_print_register_hook): Rename print_register_hook, make
2488 * config/h8500/tm-h8500.h: Update copyright.
2489 (DEPRECATED_DO_REGISTERS_INFO): Define.
2490 (h8500_do_registers_info: Declare.
2491 (PRINT_REGISTER_HOOK): Delete macro.
2492 (print_register_hook): Delete function.
2494 2002-10-31 Andrew Cagney <cagney@redhat.com>
2496 * z8k-tdep.c (z8k_print_register_hook): Make static.
2497 (z8k_print_registers_info): New static function, clone of
2498 infcmd.c's default_print_registers_info.
2499 (z8k_do_registers_info): New function. Wrap
2500 z8k_print_registers_info.
2501 * config/z8k/tm-z8k.h: Update copyright.
2502 (PRINT_REGISTER_HOOK): Delete macro.
2503 (z8k_print_register_hook): Delete declaration.
2504 (DEPRECATED_DO_REGISTERS_INFO): Define.
2505 (z8k_do_registers_info): Declare.
2507 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2509 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2510 as this is already provided by value.h, and was actually causing
2511 a compilation error because of a conflict in parameter type
2512 declaration due to a missing const keyword.
2513 (low_text_segment_addres): Fix a compilation warning.
2515 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2517 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2518 registers without a name.
2519 (mips_linux_cannot_store_register): Don't store registers without
2522 2002-10-28 David Carlton <carlton@math.stanford.edu>
2524 * symtab.c (find_addr_symbol): Delete. (It was already commented
2526 * symtab.h: Delete prototype for find_addr_symbol.
2528 2002-10-26 Andrew Cagney <cagney@redhat.com>
2530 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2532 gdbarch.h, gdbarch.c: Re-generate.
2533 * infcmd.c (default_print_registers_info): Update reference.
2534 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2535 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2536 * sh-tdep.c (sh_gdbarch_init): Ditto.
2537 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2538 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2540 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2542 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2543 cfi_init_extra_frame_info.
2544 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2545 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2547 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2548 target where necessary. Add more comments and remove the ones
2549 that don't provide any useful information.
2551 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2552 deprecated_read_register_dummy with
2553 frame_unwind_unsigned_register.
2555 * i386-tdep.c (i386_extract_struct_value_address): Use
2556 regcache_raw_read_unsigned instead of
2557 regcache_cooked_read_unsigned since we know that the register
2558 we're reading isn't a pseudo register. Rename variable 'val' into
2559 the more descriptive 'addr'.
2561 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2562 (x86_64_push_return_address): Add comment.
2563 (x86_64_pop_frame): Make static.
2564 (examine_argument): Clarify comment.
2565 (x86_64_skip_prologue): Make prolog_expact variable static.
2567 * dwarf2cfi.c: Fix some formatting problems.
2568 (context_cpy, read_encoded_pointer): Clarify comments.
2570 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2571 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2572 i386 target back into x86_64_gdbarch_init. Add some comments and
2573 remove meaningless ones.
2575 2002-10-25 Andrew Cagney <cagney@redhat.com>
2577 * complaints.h (struct deprecated_complaint): Rename `struct
2579 * complaints.c (complain): Update.
2580 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2581 incorrect comment indicating that "symfile.h" was being included
2582 for the `struct complaint' definition.
2583 * remote-vx.c: Update.
2584 * objc-lang.c: Update.
2585 * xcoffread.c: Update.
2587 * mdebugread.c: Update.
2588 * stabsread.c: Update.
2589 * dwarf2read.c: Update.
2590 * dwarfread.c: Update.
2591 * elfread.c: Update.
2592 * coffread.c: Update.
2593 * stabsread.h: Update.
2594 * dbxread.c: Update.
2595 * buildsym.c: Update.
2596 * gdbtypes.c: Update.
2597 * macrotab.c: Update.
2599 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2601 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2602 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2603 (x86_64_init_abi): ...new function.
2605 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2606 * i386v-nat.c: Include "i386-tdep.h".
2608 2002-10-25 Andrew Cagney <cagney@redhat.com>
2610 * gdbtypes.c (address_space_name_to_int): Update.
2611 (address_space_int_to_name): Update.
2612 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2613 multi-arch predicate.
2614 (address_class_name_to_type_flags): Ditto.
2615 * gdbarch.h, gdbarch.c: Re-generate.
2617 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2619 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2621 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2623 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2625 * symtab.h (INIT_SAL): Delete macro.
2627 * symtab.c (init_sal): New function.
2629 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2630 to init_sal function call.
2631 (find_sal_from_funcs_and_line): Ditto.
2632 (all_sals_for_line): Ditto.
2633 * breakpoint.c (create_internal_breakpoint): Ditto.
2634 (create_fork_vfork_event_catchpoint): Ditto.
2635 (create_exec_event_catchpoint): Ditto.
2636 (parse_breakpoint_sals): Ditto.
2637 (watch_command_1): Ditto.
2638 (handle_gnu_4_16_catch_command): Ditto.
2639 (clear_command): Ditto.
2640 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2641 * infcmd.c (run_stack_dummy): Ditto.
2642 * infrun.c (process_event_stop_test): Ditto.
2643 (check_sigtramp2): Ditto.
2644 (step_over_function): Ditto.
2645 * linespec.c (decode_line_2): Ditto.
2646 (decode_line_1): Ditto.
2647 * source.c (line_info): Ditto.
2648 * symtab.c (find_pc_sect_line): Ditto.
2650 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2652 * dwarf2cfi.c (struct context)
2653 (struct context_reg): Moved to dwarf2cfi.h
2654 (context_alloc, frame_state_alloc, context_cpy):
2655 Made extern instead of static, removed prototypes.
2656 * dwarf2cfi.h (struct context)
2657 (struct context_reg): New, moved from dwarf2cfi.c
2658 (context_alloc, frame_state_alloc, context_cpy):
2660 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2661 Changed from static to extern.
2662 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2663 (LINUX_SIGCONTEXT_FP_OFFSET)
2664 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2665 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2666 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2667 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2668 set_gdbarch_*() calls now use x86-64 specific functions
2669 instead of DWARF2 CFI ones.
2670 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2671 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2672 (x86_64_init_extra_frame_info): New prototypes.
2674 2002-10-23 David Carlton <carlton@math.stanford.edu>
2676 * linespec.c: #include "parser-defs.h".
2677 Delete prototype for find_template_name_end.
2678 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2680 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2682 * NEWS: add recent mi fixes.
2683 * varobj.c (struct varobj): Add new "updated" flag.
2684 (new_variable): Default "updated" flag to 0.
2685 (varobj_set_value): Set "updated" flag to 1 if value
2687 (varobj_update): Check varobj "updated" flag before
2688 comparing old and refreshed values. Fix for
2691 2002-10-23 David Carlton <carlton@math.stanford.edu>
2693 * parse.c (parse_exp_1): Use BLOCK_START.
2694 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2696 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2698 2002-10-23 David Carlton <carlton@math.stanford.edu>
2700 * symtab.c: Delete cplusplus_hint.
2701 Delete prototype for find_template_name_end.
2703 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2705 * symtab.h: Update comment.
2707 2002-10-23 Michael Snyder <msnyder@redhat.com>
2709 * printcmd.c (address_info): Restore quotes in output.
2710 * valops.c (value_of_local): Restore quotes in error message.
2712 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2714 * symtab.c (symbol_demangled_name): New function.
2715 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2716 turning most of it into a function.
2717 (symbol_demangled_name): Export.
2719 2002-10-23 Michael Snyder <msnyder@redhat.com>
2721 * valops.c (value_of_local): Restore quotes in error message.
2723 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2725 * symtab.c (symbol_init_language_specific): New function.
2726 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2727 turning most of it into a function.
2728 (symbol_init_language_specific): Export.
2730 2002-10-23 David Carlton <carlton@math.stanford.edu>
2732 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2733 (dwarf_attr_name): Ditto.
2734 (dwarf_type_encoding_name): Ditto.
2735 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2736 (process_die): Handle DW_TAG_namespace,
2737 DW_TAG_imported_declaration, DW_TAG_imported_module.
2738 (read_namespace): New function.
2740 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2742 * configure.in: Define NEW_PROC_API on Interix too.
2743 * configure: Regenerate.
2745 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2747 * configure: Regenerate using the proper version of autoconf.
2749 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2751 * findvar.c (read_var_value): Temporarily disable TLS code, until
2752 complete TLS support is added.
2754 2002-10-21 Jim Blandy <jimb@redhat.com>
2755 Elena Zannoni <ezannoni@redhat.com>
2757 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2758 for thread local storage locations.
2759 (struct symbol): Add objfile field.
2760 (SYMBOL_OBJFILE): Define.
2761 * dwarf2read.c (is_thread_local): New static variable.
2762 (new_symbol): If variable is in thread local fill in address class
2763 and objfile appropriately.
2764 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2766 * printcmd.c (address_info): Print the information for thread
2767 local storage variable.
2768 * findvar.c (read_var_value): In case of thread local variable,
2769 defer to the target vector code to compute address.
2771 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2773 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2774 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2776 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2778 * symtab.h (address_class): Rename
2779 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2780 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2781 * printcmd.c (address_info): Ditto.
2782 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2784 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2786 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2787 DBREG_DRX macro to acces debug registers.
2789 * Makefile.in (i386obsd-tdep.o): New target.
2791 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2792 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2794 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2795 * config/i386/obsd.mt: New file.
2796 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2797 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2798 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2799 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2800 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2801 * i386obsd-tdep.c: New file.
2803 2002-10-19 Adam Fedor <fedor@gnu.org>
2805 * objc-exp.y (name_not_typename): Fix invalid comment.
2807 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2809 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2810 to allocate partial syms and macro byte caches.
2812 2002-10-18 David Carlton <carlton@math.stanford.edu>
2814 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2816 2002-10-18 Adam Fedor <fedor@gnu.org>
2818 * stabsread.c (find_name_end): New function.
2819 (define_symbol): Use it.
2821 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2823 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2824 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2825 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2826 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2828 2002-10-17 David Carlton <carlton@math.stanford.edu>
2830 * symfile.h: Add opaque declaration for struct obstack.
2831 Declare obsavestring to take a const char *.
2832 * symfile.c (obsavestring): Make first argument a const char *.
2834 2002-10-16 Adam Fedor <fedor@gnu.org>
2836 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2837 names when matching breakpoints in current file.
2839 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2841 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2842 (read_tag_pointer_type): Add address class support.
2843 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2844 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2846 * gdbarch.h, gdbarch.c: Regenerate.
2847 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2848 (make_type_with_address_space, recursive_type_dump): Add address
2850 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2851 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2852 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2854 2002-10-16 Klee Dienes <kdienes@apple.com>
2856 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2857 to get the last character of a char[] buffer, not
2858 name[sizeof(vptr_name)-1].
2860 2002-10-14 Adam Fedor <fedor@gnu.org>
2862 * symtab.h: New objc_specific struct.
2863 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2864 (SYMBOL_DEMANGLED_NAME): Likewise.
2866 2002-10-14 Adam Fedor <fedor@gnu.org>
2868 * symfile.c (init_filename_language_table): Add ObjC file extension.
2870 2002-10-14 Adam Fedor <fedor@gnu.org>
2872 * utils.c (puts_filtered_tabular): New function.
2873 (fprintf_symbol_filtered): Get ObjC demangled name.
2874 * defs.h (puts_filtered_tabular): Declared.
2876 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2878 * c-lang.h (c_type_print_varspec_prefix): Delete.
2879 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2880 ``need_post_space'' parameter. Adjust all callers.
2882 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2884 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2885 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2886 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2887 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2889 2002-10-13 Adam Fedor <fedor@gnu.org>
2891 * source.c (print_source_lines): Update comments.
2893 2002-10-13 Adam Fedor <fedor@gnu.org>
2895 * valops.c (value_of_local): New function.
2896 (value_of_this): Use it.
2897 * value.h (value_of_local): Declared.
2899 2002-10-13 Adam Fedor <fedor@gnu.org>
2901 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2902 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2904 2002-10-12 Adam Fedor <fedor@gnu.org>
2906 * language.c (binop_result_type): Add language_objc to case.
2907 (integral_type): Likewise.
2908 (character_type): Likewise.
2909 (string_type): Likewise.
2910 (boolean_type): Likewise.
2911 (structured_type): Likewise.
2912 (binop_type_check): Likewise.
2914 2002-10-11 Adam Fedor <fedor@gnu.org>
2916 * printcmd.c (address_info): Print 'self' for ObjC.
2918 2002-10-11 Adam Fedor <fedor@gnu.org>
2920 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2923 2002-10-11 Adam Fedor <fedor@gnu.org>
2925 * language.h (CAST_IS_CONVERSION): Add language_objc.
2927 2002-10-11 Adam Fedor <fedor@gnu.org>
2929 * defs.h (enum language): Add language_objc.
2931 2002-10-11 Klee Dienes <kdienes@apple.com>
2933 * corefile.c (read_memory_typed_address): New function.
2934 * gdbcore.h (read_memory_typed_address): Add prototype.
2935 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2936 to read a value destined for a CORE_ADDR, not read_memory_integer.
2937 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2938 (f77_get_dynamic_lowerbound): Ditto.
2940 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2942 * utils.c (string_to_core_addr): After turning string into
2943 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2944 which will do necessary sign-extension, etc.
2946 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2948 * c-exp.y (THIS): Delete token and grammar rule.
2949 (yylex): Don't return THIS.
2950 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2951 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2952 * demangle.c (cplus_markers): Update comment. Put '$'
2953 first. Remove CPLUS_MARKER.
2954 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2955 * jv-exp.y (THIS): Delete token and grammar rule.
2956 (yylex): Don't return THIS.
2957 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2958 * objc-exp.y (THIS): Delete token and grammar rule.
2959 (yylex): Don't return THIS.
2960 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2961 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2962 (read_member_functions): Likewise for opname.
2963 (read_tilde_fields): Use is_cplus_marker.
2965 * defs.h (CPLUS_MARKER): Don't define.
2966 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2967 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2968 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2969 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2970 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2972 * config/i386/tm-i386v4.h: Delete file.
2973 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2974 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2975 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2976 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2977 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2978 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2979 * config/i386/i386v4.mt (TM_FILE): Likewise.
2980 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2982 2002-10-10 Marko Mlinar <markom@opencores.org>
2984 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2985 accidentially not commited 2002-10-09
2986 * gdbarch.h, gdbarch.c: Re-generate.
2988 2002-10-09 Marko Mlinar <markom@opencores.org>
2990 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2991 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2992 * gdbarch.h, gdbarch.c: Re-generate.
2994 2002-10-08 Petr Sorfa <petrs@caldera.com>
2996 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2998 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2999 so we can work on more than one compilation unit at a time. This
3000 helps prepare GDB to handle inter-CU die references.
3001 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3002 the code to be defined before struct comp_unit_head.
3003 (comp_unit_head): Added new members - offset, cu_head,
3004 begin_die, next and dwarf2_abbrevs.
3005 (dwarf2_abbrevs): Removed single static var; now member of
3006 struct comp_unit_head.
3007 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3009 (psymtab_to_symtab_1): Changed to work with the new
3010 struct comp_unit_head.
3011 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3012 constructs the dwarf2_abbrevs[] inside the cu_header.
3013 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3014 dwarf2_abbrev table to clean up.
3015 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3016 handling of dwarf2_abbrevs inside the cu_header.
3017 (read_partial_die): Now supports the call to the new
3018 dwarf2_lookup_abbrev.
3019 (read_full_die): Now supports the call to the new
3020 dwarf2_lookup_abbrev.
3022 2002-10-06 Christopher Faylor <cgf@redhat.com>
3024 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3025 insure that shell variables, such as "transformed_name" are propagated
3026 to later shell statements in rule.
3028 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3030 * config/i386/nm-i386sco.h: Add protection against
3031 multiple-inclusion. Include "i386/nm-i386v.h".
3032 (REGISTER_U_ADDR): Remove define.
3033 (i386_register_u_addr): Remove prototype.
3035 2002-10-04 Michael Snyder <msnyder@redhat.com>
3037 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3038 before treating it as a single-step event.
3040 2002-10-03 Adam Fedor <fedor@gnu.org>
3042 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3043 (objc_demangle): Remove assignment in if statements, Replace
3045 (add_msglist): Likewise.
3046 (end_msglist): Likewise.
3047 (complare_selectors): Likewise.
3048 (selectors_info): Likewise.
3049 (compare_classes): Likewise.
3050 (classes_info): Likewise.
3051 (print_object_command): Likewise.
3052 (find_objc_msgcall_submethod): Replace PTR with void *.
3053 * objc-lang.h: Remove check for __STDC__.
3055 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3057 * ui-out.h (ui_out_field_fmt_int): New prototype.
3058 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3059 of field width and alignment.
3060 * stack.c (print_frame_info_base): When printing frame level, use
3061 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3064 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3066 * MAINTAINERS: Add self to Write After Approval list.
3068 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3070 * infcmd.c (interrupt_target_command_wrapper): Delete.
3071 (interrupt_target_command): Make non static.
3072 (nofp_registers_info): Make static.
3073 * stack.c (return_command_wrapper): Delete.
3074 (return_command): Make non static.
3076 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3078 * event-top.c (gdb_setup_readline): New function. Code moved from
3079 _initialize_event_loop().
3080 (_initialize_event_loop): Call gdb_setup_readline().
3082 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3084 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3085 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3086 * gdbarch.h, gdbarch.c: Re-generate.
3088 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3091 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3093 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3094 of fill_in_vptr_fieldno.
3096 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3098 * inferior.h (registers_info, stepi_command, nexti_command,
3099 continue_command, interrupt_target_command): Export from infcmd.c.
3100 * frame.h (args_info, selected_frame_level_changed_hook,
3101 return_command): Export from stack.c.
3102 * v850ice.c (stepi_command, nexti_command, continue_command): use
3103 prototypes from inferior.h.
3104 * tracepoint.c (registers_info, args_info, locals_info): Use
3105 prototypes from frame.h and inferior.h.
3106 * Makefile.in (mi-main.o): Add dependency on frame.h.
3108 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3110 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3111 value in register 3 adjusted by ppc_gp0_regnum.
3113 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3115 2002-10-02 Marko Mlinar <markom@opencores.org>
3117 * MAINTAINERS: Add myself to the Write After Approval list.
3119 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3121 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3122 of the section for the N64 ABI, fixed.
3124 * config/mips/tm-irix6.h: Include solib.h.
3126 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3128 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3131 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3133 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3134 and that "mi0" syntax has been removed.
3136 2002-09-30 David Carlton <carlton@math.stanford.edu>
3138 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3139 * ppc-sysv-tdep.c: #include "gdb_string.h".
3140 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3143 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3145 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3146 "vrsave"'s register number.
3148 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3150 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3151 use frame_unwind_signed_register to obtain the PC.
3152 (mips_frame_chain): Handle a generic dummy frame.
3153 (mips_init_extra_frame_info): When a generic dummy frame, don't
3154 re-compute the frame base.
3155 (mips_pop_frame): Handle generic dummy frames.
3156 (mips_gdbarch_init): When generic dummy frames, set
3157 use_generic_dummy_frames, push_dummy_frame to
3158 generic_push_dummy_frame, pc_in_call_dummy to
3159 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3160 generic_save_dummy_frame_tos.
3162 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3164 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3165 against TOP when TOP was explictly set.
3166 (generic_push_dummy_frame): Set TOP to zero.
3168 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3170 * event-loop.c (start_event_loop): Rename variable 'result' to
3171 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3173 2002-09-30 Keith Seitz <keiths@redhat.com>
3175 * gdb-events.sh (selected_thread_changed): New event.
3176 * gdb-events.c: Regenerated.
3177 * gdb-events.h: Regenerated.
3179 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3181 * MAINTAINERS: Add self to Write After Approval list.
3183 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3185 * disasm.c: New file.
3186 * disasm.h: New file.
3187 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3188 (compare_lines): Ditto.
3189 (dump_insns): Ditto.
3190 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3192 (do_assembly_only): Ditto.
3193 (do_disassembly): Renamed to gdb_disassembly and moved to
3194 disasm.c. Sdded uiout argument.
3195 * Makefile.in: Add new files. Reorder SFILES list. Update
3196 dependencies. Include libgdb.a later in the insight executable.
3198 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3200 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3201 bfd/elf64-alpha-fbsd.c.
3203 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3205 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3208 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3210 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3212 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3214 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3215 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3216 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3217 (S_msg_sig_post_reply): Ditto.
3219 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3221 * sh-tdep.c (sh_use_struct_convention): Use definition according
3223 (sh_push_arguments): Store in register with correct endianess.
3224 (sh_default_store_return_value): Ditto.
3225 (sh_gdbarch_init): Set sizeof long double to 8.
3227 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3229 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3230 Fix some whitespace problems.
3232 2002-09-27 David Carlton <carlton@math.stanford.edu>
3234 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3235 (mcore-tdep.o): Ditto.
3236 (ns32k-tdep.o): Ditto.
3237 (ns32knbsd-tdep.o): Ditto.
3239 (vax-tdep.o): Ditto.
3240 * cris-tdep.c: #include "gdb_string.h"
3241 * mcore-tdep.c: Ditto.
3242 * ns32k-tdep.c: Ditto.
3243 * ns32knbsd-tdep.c: Ditto.
3245 * vax-tdep.c: Ditto.
3247 2002-09-27 David Carlton <carlton@math.stanford.edu>
3249 * config/djgpp/fnchange.lst: Add entries for
3250 gdb/testsuite/gdb.c++/m-static files.
3252 2002-09-27 Jim Wilson <wilson@redhat.com>
3254 * MAINTAINERS: Add myself to the Write After Approval list.
3256 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3258 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3261 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3263 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3266 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3268 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3269 (rs6000_struct_return_address): Delete variable.
3270 (rs6000_store_struct_return): Update.
3271 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3272 deprecated_extract_struct_value_address.
3273 (rs6000_frame_align): New function.
3274 (rs6000_gdbarch_init): Set frame_align.
3276 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3278 From Grace Sainsbury <graces@redhat.com>:
3279 * Makefile.in (gdbtk-main.o): New target.
3280 (gdb.o): New target.
3282 (main.o): Update dependencies.
3283 (gdb$(EXEEXT)): Add gdb.o.
3284 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3285 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3286 (SUBDIR_GDBTK_CLEAN): Set.
3287 (install-gdbtk): Install the insight binary.
3288 (uninstall-gdbtk): New target.
3289 (all-gdbtk, clean-gdbtk): New rule.
3290 * top.c (use_windows): Default to zero.
3291 * main.c: Include "main.h".
3293 (struct captured_main_args): Delete.
3294 (gdb_main): New function.
3298 2002-09-25 Andrew Cagney <cagney@redhat.com>
3300 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3301 (frame_map_regnum_to_name): New function.
3302 (frame_map_name_to_regnum): New function.
3303 * frame.h (frame_map_name_to_regnum): Declare.
3304 (frame_map_regnum_to_name): Declare.
3305 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3306 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3307 * parse.c: Do not include "builtin-regs.h".
3308 (target_map_name_to_register): Delete function.
3309 (write_dollar_variable): Use frame_map_name_to_regnum.
3310 * parser-defs.h (target_map_name_to_register): Delete declaration.
3311 * expprint.c: Include "frame.h".
3312 (print_subexp): Use frame_map_regnum_to_name.
3313 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3314 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3316 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3318 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3319 wasn't saved, and the next innermost frame is a dummy, return the
3320 dummy frame's link register.
3322 2002-09-24 Jim Blandy <jimb@redhat.com>
3324 Fix from Paul Breed:
3325 * main.c (captured_main): Add a `break' after the case for 'b'.
3327 2002-09-24 Keith Seitz <keiths@redhat.com>
3329 * varobj.c (c_type_of_child): Use get_target_type instead
3330 of TYPE_TARGET_TYPE.
3332 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3334 * source.c (get_current_or_default_source_symtab_and_line): Remove
3336 (set_default_source_symtab_and_line): New function. Attempts to
3337 determine a source file to list lines from if one is not currently
3339 (get_current_source_symtab_and_line): Initialize sal.pc and
3341 (set_current_source_symtab_and_line): Mark argument as const.
3342 * source.h: Update declarations and comments.
3343 * linespec.c (decode_line_1): Replace call to removed routine above.
3344 * stack.c (print_frame_info_base): Ditto.
3345 * cli/cli-cmds.c (edit_command): Ditto.
3346 (list_command): Ditto.
3348 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3350 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3351 sal.pc and sal.end fields.
3352 (get_current_or_default_source_symtab_and_line): Ditto.
3353 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3354 so we do not cause a new source symtab to be searched for (reverting an
3355 unintentional change from the 2002-09-20 patch).
3356 * scm-lang.c (scm_unpac): Ditto.
3358 2002-09-21 Andrew Cagney <cagney@redhat.com>
3360 * complaints.c (symfile_explanations): Remove new-line from
3361 ``isolated_message''.
3362 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3363 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3365 2002-09-20 Nick Clifton <nickc@redhat.com>
3367 * NEWS: Announce that V850EA ISA is no longer supported.
3368 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3370 2002-09-20 David Carlton <carlton@math.stanford.edu>
3372 * Makefile.in (c-lang.o): Correct dependencies.
3373 (utils.o): Gather dependencies.
3375 * c-lang.c: #include "gdb_string.h"
3377 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3379 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3380 * cli/cli-cmds.c (list_command): New function. Implements the new
3382 (_init_cli_cmds): Add new command definition.
3383 * gdb.1: Document edit command.
3384 * doc/gdb.texinfo: Document edit command.
3386 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3388 * source.c: Make global variables current_source_symtab and
3389 current_source_line static.
3390 (list_command): Moved to cli/cli-cmds.c.
3391 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3392 (get_first_line_listed): New accessor function.
3393 (get_lines_to_list): New accessor function.
3394 (get_current_source_symtab_and_line): New function. Retrieves the
3395 position in the source code that we consider current.
3396 (get_current_or_default_source_symtab_and_line): New function.
3397 Like the above but attempts to determine a default position if one
3398 is not currently defined.
3399 (set_current_source_symtab_and_line): New function. Sets the source
3400 code position considered current and returns the previously set one.
3401 (clear_current_source_symtab_and_line): Reset stored information about
3402 a current source line.
3403 (_initialize_source): Remove registration for the "list" command and
3405 * source.h: Add declarations for the new functions above.
3406 * symtab.h: Remove declarations for the global variables mentioned
3408 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3409 obtain current source line.
3410 * linespec.c (decode_line_1): Ditto.
3411 * macroscope.c (default_macro_scope): Ditto.
3412 * scm-lang.c (scm_unpac): Ditto.
3413 * stack.c (print_frame_info_base): Ditto.
3414 * symfile.c (clear_symtab_users): Ditto.
3415 * symtab.c (decode_line_spec): Ditto.
3416 * cli/cli-cmds.c (list_command): Moved here from source.c.
3417 (ambiguous_line_spec): Moved here from source.c.
3418 (_init_cli_cmds): Add definition for "list" and its alias.
3419 * Makefile.in: Update dependencies.
3421 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3423 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3424 with what gcc thinks is correct.
3426 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3428 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3429 multiple register push instruction.
3431 2002-09-19 Jim Blandy <jimb@redhat.com>
3433 Add support for distinct host and target character sets.
3434 * charset.c, charset.h: New files.
3435 * c-exp.y: #include "charset.h".
3436 (yylex): Convert character and string literals to the target
3437 character set, before returning them as the semantic value of the
3439 * c-lang.c: #include "charset.h".
3440 (c_emit_char): Use charset-specific methods to recognize
3441 characters with backslash escape forms, to decide which characters
3442 to print literally and which to print using numeric escape
3443 sequences, and to convert target characters to host characters
3445 * utils.c: #include "charset.h".
3446 (no_control_char_error): New function.
3447 (parse_escape): Use charset-specific methods to recognize
3448 backslash escapes, parse `control character' notation, and convert
3449 characters from the host character set to the target character set.
3450 * configure.in: Set the default host character set.
3451 Check where to find iconv, and what its argument types might be.
3452 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3453 * Makefile.in (SFILES): List charset.c.
3454 (COMMON_OBS): List charset.o.
3455 (charset.o): New rule.
3456 (charset_h): New header dependency variable.
3457 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3458 (LIBICONV): New variable, set by configure.
3459 (CLIBS): Include $(LIBICONV) here.
3460 * aclocal.m4, config.in, configure: Regenerated.
3462 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3464 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3467 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3469 * gdb_mbuild.sh: New file.
3471 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3473 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3475 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3477 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3478 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3479 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3480 valops.c, value.h: Revert previous change.
3482 2002-09-18 Michael Snyder <msnyder@redhat.com>
3484 Preliminary support for Objective-C:
3485 * defs.h (language_objc): New enum value.
3486 (puts_filtered_tabular): Declaration only, exported from utils.c.
3487 (skip_quoted): Delete, declared in completer.h.
3488 * c-exp.y: Include completer.h.
3491 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3492 New operator enum values.
3493 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3494 * language.c (binop_result_type): Handle language_objc case.
3495 (integral_type, character_type, string_type, boolean_type,
3496 structured_type, binop_type_check): Ditto.
3497 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3498 (struct objc_specific): Add to general_symbol_info.
3499 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3500 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3501 * parser-defs.h (struct objc_class_str): New struct type.
3502 (start_msglist, end_msglist, add_msglist): Declaration only,
3503 exported from objc-lang.c.
3504 * value.h (value_of_local, value_nsstring,
3505 call_function_by_hand_expecting_type): Exported from valops.c.
3506 * valops.c (find_function_addr): Export.
3507 (call_function_by_hand_expecting_type): New function.
3508 (value_of_local): New function.
3509 * symfile.c (init_filename_language_table): Add ".m" extension
3511 * utils.c (puts_filtered_tabular): New function.
3512 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3513 (set/show demangle): Extend help-string to refer to ObjC.
3514 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3515 * stabsread.c (symbol_reference_defined): Objective-C symbols
3516 may contain colons: make allowances when scanning stabs strings
3518 (objc_find_colon): New function.
3519 * printcmd.c (address_info): If language == objc then print
3520 "self" instead of "this".
3521 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3522 OP_NSSTRING, and OP_SELF.
3523 (prefixify_subexp): Ditto.
3524 * source.c (print_source_lines): Mention objc in comment.
3525 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3528 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3530 * complaints.h: Update copyright.
3531 (struct complaints): Declare.
3532 (struct complaint): Make `message' constant.
3533 (internal_complaint): Declare.
3534 (complaint): Declare.
3535 (complaint_root): Delete declaration.
3536 (symfile_complaints): Delete declaration.
3537 (struct complaints): Add opaque declaration.
3538 (clear_complaints): Add a complaints parameter.
3539 * complaints.c: Update copyright.
3540 (enum complaint_series): Define.
3541 (complaint_root): Delete.
3542 (struct complaints): Define.
3543 (complaint_sentinel, symfile_complaint_book): New variables.
3544 (symfile_explanations, symfile_complaints): New variables.
3546 (get_complaints): New function.
3547 (vcomplaint): New function.
3548 (complaint): New function.
3549 (internal_complaint): New function.
3550 (complain): Call vcomplain with symfile_complaint.
3551 (clear_complaints): Rewrite.
3552 (_initialize_complaints): Use add_setshow_command.
3553 * Makefile.in (complaints.o): Update dependencies.
3554 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3555 to call to clear_complaints.
3556 (new_symfile_objfile, reread_symbols): Ditto.
3557 (oldsyms_complaint): Delete.
3558 (empty_symtab_complaint, unknown_option_complaint): Delete.
3559 (free_named_symtabs): Use complaint instead of complain.
3561 2002-09-18 Michael Snyder <msnyder@redhat.com>
3563 Contributed by Apple Computer, Inc. Merged with current sources
3564 by Adam Fedor <fedor@doc.com> [cagney].
3566 * objc-lang.c: First clean-up round: comments, indentation.
3567 * objc-lang.h: Ditto.
3568 * objc-lang.y: Ditto.
3570 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3572 * maint.c (maintenance_internal_error): Print the parameter as the
3574 (maintenance_internal_warning): New function.
3575 (_initialize_maint_cmds): Add command `maint internal-warning'.
3577 * defs.h (internal_warning, internal_vwarning): Declare.
3578 * utils.c (struct internal_problem): Define.
3579 (internal_vproblem): New function.
3580 (internal_warning): New function.
3581 (internal_vwarning): New function.
3582 (internal_warning_problem, internal_error_problem): New variables.
3583 (internal_verror): Just call internal_vproblem.
3585 2002-09-18 Michael Snyder <msnyder@redhat.com>
3587 * objc-lang.c: New file, support for Objective-C.
3588 Preliminary check-in, not yet integrated into gdb.
3589 * objc-lang.h: New file.
3590 * objc-exp.y: New file.
3592 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3594 * infrun.c (signal_stop_update): Convert definition to ISO C.
3595 (signal_print_update): Ditto.
3596 (signal_pass_update): Ditto.
3597 * inflow.c (terminal_save_ours): Ditto.
3599 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3602 * config/djgpp/fnchange.lst: Handle name clashes between
3603 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3606 * i386-linux-tdep.h: Fix tipo.
3608 2002-09-18 Adam Fedor <fedor@gnu.org>
3610 * MAINTAINERS: Add myself to the Write After Approval list.
3612 2002-09-18 Jim Blandy <jimb@redhat.com>
3614 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3615 texthigh and textlow to reader-specific structs caused
3616 objfile_relocate to miss them. This is fixable, but the work that
3617 the change was supposed to prepare GDB for never got done anyway.
3619 2002-09-18 David Carlton <carlton@math.stanford.edu>
3621 * MAINTAINERS: Alphabetize Write After Approval list.
3623 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3626 * values.c (value_static_field): Call read_var_value.
3628 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3630 * valops.c (hand_function_call): Align the initial stack pointer
3631 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3632 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3634 * mips-tdep.c (mips_frame_align): New function.
3635 (mips_gdbarch_init): Set frame_align.
3636 * gdbarch.sh (FRAME_ALIGN): New method.
3637 * gdbarch.h, gdbarch.c: Re-generate.
3639 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3641 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3644 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3646 * NEWS: Mention that MIPS $fp behavior changed.
3647 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3648 reference to FP_REGNUM.
3649 (mipsnbsd_cannot_store_register): Ditto.
3650 * mips-linux-nat.c: Update copyright.
3651 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3652 (mips_linux_cannot_store_register): Ditto.
3653 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3654 * config/mips/tm-mips.h: Update copyright.
3655 (FP_REGNUM): Delete macro.
3656 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3657 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3658 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3659 (mips_r3041_reg_names, mips_r3051_reg_names)
3660 (mips_r3081_reg_names): Replace "fp" with "".
3663 2002-09-17 Theodore A. Roth <troth@verinet.com>
3665 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3666 generic_read_register_dummy() (PR gdb/703).
3667 (avr_push_return_address): #if 0 out unused vars.
3668 (avr_gdbarch_init): Enable use of avr_push_return_address().
3670 2002-09-17 Michael Snyder <msnyder@redhat.com>
3672 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3673 RTE will take care of it.
3675 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3677 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3678 invalid, return SP_REGNUM.
3680 2002-09-17 Michael Snyder <msnyder@redhat.com>
3682 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3683 point registers without sign extension.
3685 2002-09-17 Andrew Cagney <cagney@redhat.com>
3687 * blockframe.c (deprecated_read_register_dummy): Rename
3688 generic_read_register_dummy.
3689 * frame.c (frame_unwind_signed_register): New function.
3690 (frame_unwind_unsigned_register): New function.
3691 * frame.h (frame_unwind_signed_register): Declare.
3692 (frame_unwind_unsigned_register): Declare.
3693 (deprecated_read_register_dummy): Rename
3694 generic_read_register_dummy.
3696 * h8300-tdep.c (h8300_frame_chain): Update.
3697 (h8300_frame_saved_pc): Update.
3698 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3699 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3700 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3701 (s390_frame_chain): Update.
3702 * v850-tdep.c (v850_find_callers_reg): Update.
3703 (v850_frame_saved_pc): Update.
3704 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3705 (m32r_find_callers_reg): Update.
3706 (m32r_frame_saved_pc): Update.
3707 * sh-tdep.c (sh_find_callers_reg): Update.
3708 (sh64_get_saved_pr): Update.
3709 (sh_init_extra_frame_info): Update.
3710 (sh_init_extra_frame_info): Update.
3711 (sh64_init_extra_frame_info): Update.
3712 (sh64_init_extra_frame_info): Update.
3713 * mcore-tdep.c (mcore_find_callers_reg): Update.
3714 (mcore_frame_saved_pc): Update.
3715 (mcore_init_extra_frame_info): Update.
3716 * i386-tdep.c (i386_frame_saved_pc): Update.
3717 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3718 (ia64_init_extra_frame_info): Update.
3719 (ia64_init_extra_frame_info): Update.
3720 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3721 * cris-tdep.c (cris_init_extra_frame_info): Update.
3722 * avr-tdep.c (avr_frame_chain): Update.
3723 (avr_init_extra_frame_info): Update.
3724 (avr_frame_saved_pc): Update.
3725 * arm-tdep.c (arm_find_callers_reg): Update.
3726 (arm_init_extra_frame_info): Update.
3727 (arm_frame_saved_pc): Update.
3729 2002-09-17 Tom Tromey <tromey@redhat.com>
3731 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3734 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3736 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3737 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3739 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3742 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3744 * osfsolib.c: Remove file, replaced by solib-osf.c.
3745 * Makefile.in: Remove compilation rules for osfsolib.c.
3747 2002-09-16 David Carlton <carlton@math.stanford.edu>
3749 * cp-valprint.c (cp_print_class_method): Correct args to
3750 check_stub_method_group.
3752 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3754 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3755 `set architecture'. Unify naming convention of functions.
3756 (h8300_skip_prologue): Improve prologue analysis.
3757 (h8300_push_arguments): Rewritten to more closely match GCC's
3758 bizarre argument-passing behavior, along with the comment describing
3760 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3761 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3762 sim, remote-e7000.c, remote-hms.c and remote.c
3764 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3766 * i386-tdep.c (gdb_print_insn_i386): Removed.
3767 (i386_print_insn): New function.
3768 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3769 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3772 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3774 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3777 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3779 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3780 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3781 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3783 2002-09-13 Christopher Faylor <cgf@redhat.com>
3785 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3787 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3789 * gdbtypes.c (check_stub_method): Make static.
3790 (check_stub_method_group): New function.
3791 * gdbtypes.h: Update prototypes.
3792 * cp-support.c: New file.
3793 * cp-support.h: New file.
3795 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3796 (update_method_name_from_physname): New function.
3797 (read_member_functions): Correct method names for operators
3798 and v3 constructors/destructors. Separate v2 constructors and
3800 * Makefile.in (stabsread.o): Update dependencies.
3801 (SFILES): Add cp-support.c.
3802 (COMMON_OBS): Add cp-support.o.
3803 (cp_support_h, cp-support.o): Add.
3805 * cp-valprint.c (cp_print_class_method): Call
3806 check_stub_method_group instead of check_stub_method. Remove
3808 * p-valprint.c (pascal_object_print_class_method): Likewise.
3809 * valops.c (search_struct_method): Likewise.
3810 (find_method_list, value_struct_elt_for_reference): Likewise.
3812 2002-09-13 Andrew Cagney <cagney@redhat.com>
3814 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3815 * gdbarch.h, gdbarch.c: Regenerate.
3817 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3819 * frame.c (find_saved_register): Delete function.
3820 * frame.h (find_saved_register): Delete declaration.
3823 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3825 * mips-tdep.c (read_next_frame_reg): Re-hack using
3826 frame_register_unwind.
3828 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3830 * mips-tdep.c (mips_get_saved_register): Re-hack using
3831 frame_register_unwind.
3833 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3835 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3836 vector. Will be useful for Interix.
3837 * gdbarch.h, gdbarch.c: Regenerate.
3839 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3840 name of the malloc function by NAME_OF_MALLOC.
3842 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3844 * value.h (find_function_in_inferior): Add const keyword to
3845 one of the parameters. Allows us to invoke this function with
3847 * valops.c (find_function_in_inferior): Likewise.
3849 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3851 * exec.c (xfer_memory): Fix compilation warning with old versions
3853 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3855 2002-09-12 David Carlton <carlton@math.stanford.edu>
3857 * symtab.h: Run through gdb_indent.h.
3858 Add 2002 to Copyright year list.
3860 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3862 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3864 * MAINTAINERS: Add myself to write after approval list.
3866 2002-09-11 J. Brobecker <brobecker@gnat.com>
3868 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3870 2002-09-11 J. Brobecker <brobecker@gnat.com>
3872 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3875 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3877 * procfs.c (do_detach): Clear current signal, not just fault.
3878 Corrects problem with breakpoint trap signal leaking to detached
3881 2002-09-10 Michael Snyder <msnyder@redhat.com>
3883 * buildsym.c (finish_block): Protect against null pointer.
3885 2002-09-10 Andrew Cagney <cagney@redhat.com>
3887 * infcmd.c (default_print_registers_info): Send all output to
3888 ``file'' instead of ``gdb_stdout''.
3890 2002-09-10 Michael Snyder <msnyder@redhat.com>
3892 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3893 LONGEST, and use signed register read (addresses are sign-
3896 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3898 * event-loop.c (gdb_do_one_event): Make public.
3899 * event-loop.h (gdb_do_one_event): Declare.
3901 2002-09-10 Jeff Law <law@redhat.com>
3903 * infttrace.c (child_resume): Simplify and rework to avoid
3906 2002-09-09 Fred Fish <fnf@intrinsity.com>
3908 * printcmd.c (print_scalar_formatted): "len" is the number of
3909 target bytes, NOT the number of target bits.
3911 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3913 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3914 * top.c (init_main): Set rl_terminal_name.
3916 2002-09-08 Aidan Skinner <aidan@velvet.net>
3918 * ada-lang.c (ada_array_bound, ada_type_match,
3919 _initialize_ada_language): Fix K&R definitions.
3920 * ada-tasks.c (get_current_task): Fix K&R definitions.
3921 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3923 2002-09-07 Christopher Faylor <cgf@redhat.com>
3925 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3928 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3930 * i386-tdep.c (i386_register_virtual_type,
3931 i386_register_convertible, i386_register_convert_to_virtual,
3932 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3933 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3934 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3935 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3936 Don't set push_arguments twice.
3938 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3939 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3940 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3941 sigtramp_end to NULL.
3942 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3944 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3946 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3949 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3950 * gdbarch.h, gdbarch.c: Re-generate.
3951 * blockframe.c (find_pc_sect_partial_function): Convert to use
3952 SIGTRAMP_START_P predicate.
3954 2002-09-05 Michael Snyder <msnyder@redhat.com>
3956 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3957 generic_dummy_frame method and old method. Also distinguish
3958 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3959 (arm_extract_return_value): Use new regcache method.
3961 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3962 adjustment that doesn't conform to the ABI.
3963 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3964 saved regcache, not from current regcache.
3966 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3968 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3971 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3973 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3974 if arm_apcs_32 is false.
3976 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3978 GDB 5.3 branch created.
3980 2002-09-03 Theodore A. Roth <troth@verinet.com>
3982 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3983 generic_unwind_get_saved_register.
3985 2002-09-03 David Carlton <carlton@math.stanford.edu>
3987 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3988 argument (PR gdb/653). Update call to smash_to_method_type.
3989 (read_structure_scope): Update call to dwarf2_add_member_fn.
3991 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3993 * x86-64-linux-tdep.c: Include gdb_string.h
3994 * x86-64-linux-nat.c: Ditto.
3996 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3998 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3999 when YYDEBUG is set to 1.
4000 * c-exp.y: Likewise.
4001 * f-exp.y: Likewise.
4002 * jv-exp.y: Likewise.
4003 * m2-exp.y: Likewise.
4004 * p-exp.y: Likewise.
4006 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4008 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4010 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4011 solib_svr4_fetch_link_map_offsets to
4012 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4013 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4014 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4015 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4016 solib-svr4.o, and solib-legacy.o.
4017 * config/i386/tm-nbsd.h: Include solib.h.
4019 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4021 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4022 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4023 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4024 comment noting that this needs its own target configuration.
4025 * config/i386/nbsd.mt: New file.
4026 * config/i386/nbsdaout.mt: Remove.
4027 * config/i386/nbsdelf.mt: Ditto.
4028 * config/i386/tm-nbsdaout.h: Ditto.
4030 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4032 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4033 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4034 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4036 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4037 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4038 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4040 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4042 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4043 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4044 * i386-tdep.h (i386bsd_init_abi): New prototype.
4045 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4046 function declaration.
4047 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4048 for NetBSD-a.out or NetBSD-ELF.
4049 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4050 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4051 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4052 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4054 (i386nbsd_pc_in_sigtramp): New function.
4055 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4056 i386nbsd_pc_in_sigtramp.
4057 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4058 and i386nbsdelf_init_abi OS ABI handlers.
4059 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4060 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4062 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4064 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4065 registers if the target really has them.
4067 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4069 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4072 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4074 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4076 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4077 (alphanbsd_skip_sigtramp_frame): New functions.
4078 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4079 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4080 to alphanbsd_sigcontext_addr.
4082 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4084 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4086 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4087 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4088 nbsd_pc_in_sigtramp.
4089 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4090 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4091 * nbsd-tdep.c: Include gdb_string.h.
4092 (nbsd_pc_in_sigtramp): New function.
4093 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4094 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4095 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4096 ppcnbsd_pc_in_sigtramp.
4097 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4098 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4099 shnbsd_pc_in_sigtramp.
4100 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4101 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4102 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4104 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4106 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4107 watchpoints to NULL.
4108 (insert_breakpoints): set val field of watchpoints if NULL.
4111 2002-08-29 Jim Blandy <jimb@redhat.com>
4113 * symtab.c (lookup_symbol_aux): In the cases where we find a
4114 minimal symbol of an appropriate name and use its address to
4115 select a symtab to read and search, use `name' (as passed to us)
4116 as the demangled name when searching the symtab's global and
4117 static blocks, not the minsym's name.
4119 2002-08-29 Keith Seitz <keiths@redhat.com>
4121 * stack.c (print_frame_info_base): Always set current_source_symtab
4122 and current_source_line.
4124 2002-08-29 Donn Terry <donnte@microsoft.com>
4126 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4128 2002-08-28 Keith Seitz <keiths@redhat.com>
4130 * stack.c (select_frame): Add FIXME concerning selected-frame
4132 (select_frame_command): Send selected-frame-level-changed
4133 event notification, but only if the level actually changed.
4134 (up_silently_base): Add selected-frame-level-changed event
4136 (down_silently_base): Likewise.
4138 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4140 * Makefile.in: Update dependencies for all gdb/*.c files.
4142 2002-08-27 Tom Tromey <tromey@redhat.com>
4144 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4145 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4146 Update dependencies.
4147 * i387-tdep.c: Include gdb_string.h.
4148 * osabi.c: Likewise.
4149 * i386-linux-nat.c: Likewise.
4150 * lin-lwp.c: Likewise.
4151 * ax-gdb.c: Likewise.
4152 * signals/signals.c: Likewise.
4153 * jv-valprint.c: Likewise.
4154 * p-lang.c: Likewise.
4155 * c-valprint.c: Likewise.
4156 * cp-abi.c: Likewise.
4158 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4160 * cli/cli-script.h (copy_command_lines): Export.
4161 * breakpoint.c: Include cli/cli-script.h.
4162 * Makefile.in (breakpoint.o): Update dependencies.
4164 2002-08-26 Michael Snyder <msnyder@redhat.com>
4166 * breakpoint.c (insert_breakpoints): Protect all references
4167 to 'process_warning'. Shorten long lines.
4169 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4171 * cli/cli-script.c (copy_command_lines): New function.
4172 * defs.h (copy_command_lines): Export.
4173 * testsuite/gdb.base/commands.exp: New tests for commands
4174 attached to a temporary breakpoint, and for commands that
4175 delete the breakpoint they are attached to.
4177 2002-08-26 Michael Snyder <msnyder@redhat.com>
4179 * breakpoint.c (bpstat_stop_status): Instead of copying the
4180 pointer to the breakpoint commands struct, make a new copy
4181 of the struct and point to that.
4182 (bpstat_clear): Free the commands struct.
4183 (bpstat_clear_actions): Free the commands struct.
4184 (bpstat_do_actions): Free the command actions. Also execute
4185 the local cleanups, instead of deleting them.
4186 (delete_breakpoint): Leave the commands field of the bpstat
4187 chain alone -- it will be freed later.
4189 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4191 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4192 deleted in 2002-08-20 commit. This function is still used by
4195 2002-08-26 Keith Seitz <keiths@redhat.com>
4197 * gdb-events.sh: Add selected-frame-level-changed event.
4198 * gdb-events.c: Regenerated.
4199 * gdb-events.h: Regenerated.
4201 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4204 * inflow.c (terminal_save_ours): New function to save terminal
4206 * inferior.h (terminal_save_ours): Declare.
4207 * target.c (debug_to_terminal_save_ours): New function.
4208 (cleanup_target): Defaults to_terminal_save_ours.
4209 (update_current_target): Inherit to_terminal_save_ours.
4210 (setup_target_debug): Set to_terminal_save_ours.
4211 * target.h (target_terminal_save_ours): New to save terminal settings.
4212 (target_ops): New member to_terminal_save_ours.
4213 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4214 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4215 * inftarg.c (init_child_ops): Likewise.
4216 * m3-nat.c (init_m3_ops): Likewise.
4217 * procfs.c (init_procfs_ops): Likewise.
4218 * wince.c (init_child_ops): Likewise.
4219 * win32-nat.c (init_child_ops): Likewise.
4220 * sol-thread.c (init_sol_thread_ops): Likewise.
4222 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4224 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4225 use regcache_* functions.
4226 (i386_gdbarch_init): Set store_return_value instead of
4227 deprecated_store_return_value.
4229 * regcache.c (regcache_raw_write_signed,
4230 regcache_raw_write_unsigned): New functions.
4231 * regcache.h (regcache_raw_write_signed,
4232 regcache_raw_write_unsigned): New prototypes.
4234 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4236 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4237 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4238 source file dependencies. Cleanup corresponding generator rules.
4240 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4242 * regcache.h (register_offset_hack): Declare.
4243 (regcache_cooked_read_using_offset_hack): Declare.
4244 (regcache_cooked_write_using_offset_hack): Declare.
4246 * regcache.c (register_offset_hack): New function.
4247 (regcache_cooked_read_using_offset_hack): New function.
4248 (regcache_cooked_write_using_offset_hack): New function.
4249 (regcache_dump): Check that the registers, according to their
4250 offset, are packed hard against each other.
4251 (cooked_xfer_using_offset_hack): New function.
4253 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4255 * regcache.c (struct regcache_descr): Add field register_type.
4256 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4258 (init_regcache_descr): Initialize register_type. Pass the descr
4259 to init_legacy_regcache_descr. Use register_type instead of
4260 REGISTER_VIRTUAL_TYPE.
4261 (register_type): New function.
4262 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4263 * regcache.h (register_type): Declare.
4265 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4267 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4268 instead of deprecated_store_return_value. Fix fallout from
4269 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4271 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4273 * regcache.c (max_register_size): New function.
4274 (init_legacy_regcache_descr): Ensure that max_register_size is
4275 large enough for REGISTER_VIRTUAL_SIZE.
4276 * regcache.h (max_register_size): Declare.
4278 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4280 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4282 (e500_extract_return_value): Change type of valbuf pointer to
4285 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4287 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4290 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4291 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4292 long long) to prevent compiler warning on 64-bit systems.
4294 2002-08-23 Andrew Cagney <cagney@redhat.com>
4296 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4297 (DEPRECATED_STORE_RETURN_VALUE): New method.
4298 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4299 * gdbarch.h, gdbarch.c: Re-generate.
4301 * values.c (set_return_value): Pass current_regcache to
4303 * arch-utils.h (legacy_store_return_value): Declare.
4304 * arch-utils.c (legacy_store_return_value): New function.
4305 (legacy_extract_return_value): Update parameters.
4307 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4309 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4310 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4311 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4312 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4313 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4314 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4315 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4316 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4317 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4318 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4321 * i386-tdep.c (i386_extract_return_value): Update.
4322 * arch-utils.c (legacy_extract_return_value): Update.
4323 * frv-tdep.c (frv_gdbarch_init): Update.
4324 * cris-tdep.c (cris_gdbarch_init): Update.
4325 * d10v-tdep.c (d10v_gdbarch_init): Update.
4326 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4327 * m68k-tdep.c (m68k_gdbarch_init): Update.
4328 * mcore-tdep.c (mcore_gdbarch_init): Update.
4329 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4330 * s390-tdep.c (s390_gdbarch_init): Update.
4331 * sparc-tdep.c (sparc_gdbarch_init): Update.
4332 * sh-tdep.c (sh_gdbarch_init): Update.
4333 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4334 * v850-tdep.c (v850_gdbarch_init): Update.
4335 * avr-tdep.c (avr_gdbarch_init): Update.
4336 * ia64-tdep.c (ia64_gdbarch_init): Update.
4337 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4338 * vax-tdep.c (vax_gdbarch_init): Update.
4339 * alpha-tdep.c (alpha_gdbarch_init): Update.
4340 * arm-tdep.c (arm_gdbarch_init): Update.
4341 * mips-tdep.c (mips_gdbarch_init): Update.
4342 * i386-tdep.c (i386_gdbarch_init): Update.
4344 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4346 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4347 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4349 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4351 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4354 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4356 * infrun.c (handle_inferior_event): Move a comment outside of a
4357 function call, in order to avoid indent reformatting this part
4358 of the code in an unreadable way.
4360 2002-08-23 Grace Sainsbury <graces@redhat.com>
4362 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4363 when breakpoints fail. Move general breakpoint error messages to
4365 * breakpoint.c (insert_breakpoints): Change warnings when
4366 breakpoints are nto inserted to specify the type. Remove call to
4367 memory_error when hardware breakpoints can't be inserted. Remove
4368 multiple calls to warning so all messages are sent to the user at
4370 (delete_breakpoints): Make insert error messsages more explicit.
4372 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4374 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4375 gdbserver/ChangeLog.
4377 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4379 * i386-tdep.c: Include "objfiles.h".
4380 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4381 skip_trampoline_code.
4382 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4383 (CPLUS_MARKER): Define to '.'.
4385 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4387 (linux_corefile_thread_callback): Increase args->num_notes.
4388 (linux_make_note_section): Initialize thread_args.num_notes, and
4389 use it to determine whether notes for any threads were created.
4391 2002-08-23 Donn Terry <donnte@microsoft.com>
4393 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4394 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4396 (write_with_trace): Conditionalize out the switch branch handling
4397 PCSHOLD if the corresponding macro is not defined. Likewise for
4398 PRSABORT and PRSTOP.
4399 This change will be needed by the Interix port.
4401 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4403 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4404 write_register wherever possible instead of manipulating the
4405 register bytes directly.
4406 Assign VALUE_CONTENTS to a variable and use that.
4407 The GPR numbers are now dependent on the architecture.
4409 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4411 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4413 (skip_prologue): Add support for BookE/e500 instructions.
4414 (e500_extract_return_value): New function.
4415 (frame_get_saved_regs): Add support for saving ev registers and
4417 (e500_store_return_value): New function.
4418 (rs6000_gdbarch_init): Move up default intializations of
4419 deprecated_extract_return_value and store_return_value. Overwrite
4420 init of store_return_value with e500 specific version.
4421 Set extract_return_value for e500.
4423 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4425 * blockframe.c (generic_call_dummy_register_unwind): Use
4426 regcache_cooked_read to catch cases in which the variable is
4427 stored in a pseudo register.
4429 2002-08-22 Andrew Cagney <cagney@redhat.com>
4431 * NEWS: Mention that the i960 has been made obsolete.
4432 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4434 (remote-nrom.o): Obsolete target.
4435 (remote-nindy.o, i960-tdep.o): Ditto.
4436 * remote-nrom.c: Make file obsolete.
4437 * remote-nindy.c, remote-vx960.c: Ditto.
4438 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4439 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4440 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4441 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4442 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4443 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4444 i960-*-vxworks* obsolete.
4445 * MAINTAINERS: Note that the i960 is obsolete.
4447 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4449 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4450 detach to allow reinitialization.
4452 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4454 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4457 2002-08-22 Jim Blandy <jimb@redhat.com>
4459 * coffread.c (coff_symfile_read): Don't try to read the line
4460 number table from disk if the image file doesn't have a symbol
4461 table; we'll never actually look at the info anyway, and Windows
4462 ships DLL's with bogus file offsets for the line number data.
4464 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4466 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4469 2002-08-21 Michael Snyder <msnyder@redhat.com>
4471 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4472 (MSYMBOL_SIZE): Replace macro with function.
4473 (DEFAULT_MIPS_TYPE): Delete unused macro.
4474 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4475 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4477 2002-08-21 Jim Blandy <jimb@redhat.com>
4479 * valops.c (value_cast): Simplify and correct logic for doing a
4480 static cast from a pointer to a base class to a pointer to a
4483 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4485 * infcmd.c (default_print_registers_info): Replace
4487 (registers_info): Use gdbarch_print_registers_info instead of
4489 * inferior.h (default_print_registers_info): Replace
4491 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4492 (DO_REGISTERS_INFO): Change to a predicate function.
4493 * gdbarch.h, gdbarch.c: Regenerate.
4495 2002-08-21 Keith Seitz <keiths@redhat.com>
4497 * gdb-events.sh: Add target-changed event.
4498 * gdb-events.c: Regenerated.
4499 * gdb-events.c: Regenerated.
4500 * valops.c (value_assign): Add target-changed event notification
4501 to inlval_register, lval_memory, and lval_reg_frame_relative.
4503 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4505 * NEWS: Add an entry regarding the improvement of the next/step
4506 operation on Alpha Tru64 multi-processor machines.
4508 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4510 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4512 * Makefile.in: Update all _h macro definitions.
4513 * Makefile.in (install-gdbtk): Move to install section.
4514 (rdi-share/libangsd.a): Move to end of file.
4516 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4518 * frame.c (frame_register_unwind): When a register, set addrp to
4519 the register's byte.
4521 2002-08-20 Michael Snyder <msnyder@redhat.com>
4523 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4524 used locally, so move them from the target machine header to here.
4525 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4526 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4528 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4530 2002-08-20 Andrew Cagney <cagney@redhat.com>
4532 * NEWS: Mention that the Apollo line was made obsolete.
4533 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4534 m68*-hp-hpux* obsolete.
4535 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4536 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4537 * buildsym.c (make_blockvector): Make static.
4538 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4539 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4540 (ALLDEPFILES): Remove dstread.c.
4541 (dstread.o): Obsolete make rule.
4542 * dstread.c: Makefile obsolete.
4544 * config/m68k/hp300hpux.mt: Ditto.
4545 * config/m68k/hp300hpux.mh: Ditto.
4546 * config/m68k/hp300bsd.mt: Ditto.
4547 * config/m68k/hp300bsd.mh: Ditto.
4548 * config/m68k/apollo68b.mt: Ditto.
4549 * config/m68k/apollo68v.mh: Ditto.
4550 * config/m68k/apollo68b.mh: Ditto.
4552 2002-08-20 Michael Snyder <msnyder@redhat.com>
4554 * mips-tdep.c (mips_in_return_stub): Make static.
4555 (mips_gdbarch_init): Set in_solib_return_trampoline.
4556 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4558 2002-08-20 Michael Snyder <msnyder@redhat.com>
4560 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4561 * gdbarch.c, gdbarch.h: Regenerate.
4562 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4564 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4566 2002-08-20 Michael Snyder <msnyder@redhat.com>
4568 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4569 (mips_gdbarch_init): Set skip_trampoline_code,
4570 in_solib_call_trampoline.
4571 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4572 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4574 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4576 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4578 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4579 vector type for ev registers.
4580 (e500_pseudo_register_read): New function.
4581 (e500_pseudo_register_write): New function.
4582 (e500_dwarf2_reg_to_regnum): New function.
4583 (PPC_UISA_NOFP_SPRS): New macro.
4584 (PPC_EV_REGS): New macro.
4585 (PPC_GPRS_PSEUDO_REGS): New macro.
4586 (registers_e500): New register set for e500.
4587 (variants): Add e500 variant.
4588 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4589 before setting architectural dependent variations. Initialize ev
4590 registers numbers. Add case for e500 architecture. Set the
4591 number of pseudo registers.
4593 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4595 * rs6000-tdep.c: Clean up comments.
4597 2002-08-20 Andrew Cagney <cagney@redhat.com>
4599 * h8300-tdep.c: Re-indent file.
4601 2002-08-20 Jim Blandy <jimb@redhat.com>
4603 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4606 2002-08-20 Keith Seitz <keiths@redhat.com>
4608 * breakpoints.c (watch_command_1): Use internal breakpoint
4609 when setting a watchpoint_scope breakpoint.
4611 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4613 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4614 (build_builtin_type_vec64i): Ditto.
4615 (build_builtin_type_vec128): Ditto.
4616 (build_builtin_type_vec128i): Ditto.
4618 2002-08-19 Michael Snyder <msnyder@redhat.com>
4620 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4621 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4622 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4623 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4624 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4625 CALL_DUMMY_ADDRESS): Delete.
4626 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4627 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4628 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4629 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4630 push_return_address.
4631 (mips_register_raw_size, mips_eabi_use_struct_convention,
4632 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4633 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4634 mips_init_extra_frame_info, mips_eabi_push_arguments,
4635 mips_n32n64_push_arguments, mips_push_return_address,
4636 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4637 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4639 2002-08-19 Michael Snyder <msnyder@redhat.com>
4641 * mips-tdep.c (mips_frame_num_args): New function.
4642 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4643 frame_saved_pc, frame_args_address, frame_locals_address,
4644 frame_num_args, and frame_args_skip.
4645 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4646 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4647 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4648 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4650 2002-08-20 Michael Snyder <msnyder@redhat.com>
4652 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4653 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4654 * mips-tdep.c (mips_store_struct_return): New function.
4655 (mips_extract_struct_value_address): New function.
4656 (mips_gdbarch_init): Set store_struct_return and
4657 extract_struct_value_address.
4659 2002-08-20 David Carlton <carlton@math.stanford.edu>
4661 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4662 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4663 (read_file_scope): Check that line_header is nonzero before
4664 decoding macro information.
4666 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4668 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4669 flag the general-purpose registers as floating-point on targets
4670 that don't support the floating-point registers.
4672 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4674 * rs6000-tdep.c (altivec_register_p): Delete.
4675 (rs6000_do_altivec_registers): Delete.
4676 (rs6000_altivec_registers_info): Delete.
4677 (rs6000_do_registers_info): Delete.
4678 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4679 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4681 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4683 * infcmd.c (do_registers_info): Print vector registers in hex
4685 (print_vector_info): Check that printing registers
4687 (print_float_info): Ditto.
4689 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4691 * mips-tdep.c (mips_gdbarch_init): Update.
4692 (mips_o32_extract_return_value): Rewrite.
4693 (mips_o32_store_return_value): Rewrite.
4694 (mips_o32_xfer_return_value): New function.
4695 (mips_xfer_register): Tweak debug print message. Allow for
4696 buf_offset when dumping the value transfered.
4698 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4700 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4701 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4702 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4703 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4704 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4706 2002-08-14 Michael Snyder <msnyder@redhat.com>
4708 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4710 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4712 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4714 (P): New macro to define a register as a pseudo register.
4715 (R, R4, R8, R16, FR32, R64, R0): Updated.
4716 (struct variant): Add new fields for number of pseudo registers
4717 and number of total registers.
4718 (tot_num_registers): New macro replacing....
4719 (num_registers): ...deleted macro.
4720 (num_registers): New function.
4721 (num_pseudo_registers): New function.
4722 (variants): Update all variants to intialize new fields correctly.
4723 Postpone initialization of number of pseudo regs and real regs.
4724 (init_variants): New function.
4725 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4728 2002-08-19 David Carlton <carlton@math.stanford.edu>
4730 * valops.c (search_struct_field): Change error message to treat
4731 return value of 0 from value_static_field as meaning that field is
4733 (value_struct_elt_for_reference): Ditto.
4734 * values.c (value_static_field): Treat an unresolved location the
4735 same as a nonexistent symbol. Fix PR gdb/635.
4736 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4737 enclosed. Fix PR gdb/574.
4738 * MAINTAINERS: Add self to Write After Approval list.
4740 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4742 * mips-tdep.c (mips_xfer_register): New function.
4743 (mips_n32n64_extract_return_value): Rewrite.
4744 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4745 instead of deprecated_extract_return_value.
4747 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4749 * rs6000-tdep.c (TDEP): Delete macro.
4750 (branch_dest): Replace use of TDEP macro with its body.
4751 (rs6000_pop_frame): Ditto.
4752 (rs6000_push_arguments): Ditto.
4753 (rs6000_skip_trampoline_code): Ditto.
4754 (rs6000_frame_saved_pc): Ditto.
4755 (rs6000_frame_chain): Ditto.
4756 (rs6000_register_name): Ditto.
4757 (rs6000_register_byte): Ditto.
4758 (rs6000_register_raw_size): Ditto.
4759 (rs6000_register_virtual_type): Ditto.
4760 (rs6000_register_convertible): Ditto.
4761 (rs6000_convert_from_func_ptr_addr): Ditto.
4763 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4765 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4767 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4768 MIPS_LINUX_JB_ELEMENT_SIZE.
4769 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4770 for MAX_REGISTER_RAW_SIZE arrays.
4771 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4772 MIPS_LINUX_JB_ELEMENT_SIZE.
4774 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4776 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4778 2002-08-19 Aidan Skinner <aidan@velvet.net>
4780 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4781 ada-valprint.c ada-tasks.c.
4782 (YYFILES): Add ada-exp.y.
4783 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4784 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4785 (ada-exp.tab.o): New target.
4787 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4789 * regcache.c (regcache_xfer_part): New function.
4790 (regcache_raw_read_part): New function.
4791 (regcache_raw_write_part): New function.
4792 (regcache_cooked_read_part): New function.
4793 (regcache_cooked_write_part): New function.
4794 * regcache.h (regcache_raw_read_part): Declare.
4795 (regcache_raw_write_part): Declare.
4796 (regcache_cooked_read_part): Declare.
4797 (regcache_cooked_write_part): Declare.
4799 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4801 * remote.c (remote_open_1): Add async_p.
4802 (remote_async_open_1): Delete.
4803 (open_remote_target): Delete.
4804 (remote_open, extended_remote_open): Update calls to remote_open_1.
4805 (remote_async_open, extended_remote_async_open): Call
4806 remote_open_1 instead of remote_async_open_1.
4808 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4810 * blockframe.c: Fix a few coding standard violations.
4812 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4814 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4816 * config/i386/tm-i386sco5.h: ... here. File removed.
4817 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4819 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4820 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4821 (TM_FILE): Set to tm-i386.h.
4822 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4823 * config/i386/tm-i386v.h: Remove file.
4824 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4825 instead of "i386/tm-i386v.h".
4826 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4827 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4829 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4830 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4833 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4835 * config/i386/nm-i386v.h: Add protection against
4837 (i386_register_u_addr): Remove prototype.
4838 (register_u_addr): New prototype.
4839 (REGISTER_U_ADDR): Redefine accordingly.
4840 * i386v-nat.c: Improve several comments.
4841 (i386_register_u_addr): Change signature and rename to
4842 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4845 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4847 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4848 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4849 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4850 deprecated_extract_return_value.
4851 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4852 rename mips_o32o64_push_arguments.
4853 (mips_gdbarch_init): Update.
4854 (mips_extract_return_value): Delete.
4855 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4856 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4857 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4858 (mips_n32n64_extract_return_value): Clone
4859 mips_extract_return_value.
4860 (mips_store_return_value): Delete.
4861 (mips_o32_store_return_value): Clone mips_store_return_value.
4862 (mips_o64_store_return_value): Clone mips_store_return_value.
4863 (mips_eabi_store_return_value): Clone mips_store_return_value.
4864 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4866 2002-08-18 Aidan Skinner <aidan@velvet.net>
4868 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4869 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4871 2002-08-18 Aidan Skinner <aidan@velvet.net>
4873 * ada-lang.c: Run through gdb_indent.sh.
4874 * ada-lang.h: Run through gdb_indent.sh.
4875 * ada-tasks.c: Run through gdb_indent.sh.
4876 * ada-typeprint.c: Run through gdb_indent.sh.
4877 * ada-valprint.c: Run through gdb_indent.sh.
4879 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4881 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4884 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4886 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4888 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4889 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4891 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4892 write_register_gen instead of write_register_bytes.
4894 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4895 i[3456]-*-osf1mk* configurations have been made obsolete.
4896 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4897 i[3456]86-*-osf1mk* hosts obsolete.
4898 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4900 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4901 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4902 config/i386/i386m3.mt, config/i386/nm-m3.h,
4903 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4904 config/i386/i386mk.mh, config/i386/i386mk.mt,
4905 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4907 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4908 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4909 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4911 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4913 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4914 (hppa_value_returned_from_stack): Declare.
4915 (hppa_extract_return_value): Declare.
4916 * config/pa/hppa.mt: New file.
4917 * configure.tgt: Recognize hppa*-*-*.
4918 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4920 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4922 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4925 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4927 * top.c (gdb_rl_operate_and_get_next): Make sure
4928 operate-and-get-next functions correctly even when the history
4929 list is completely filled.
4931 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4933 * MAINTAINERS (Target Instruction Set Architectures): Rename
4934 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4935 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4936 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4937 already listed under Host/Native.
4939 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4940 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4943 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4945 * config/ia64/ia64.mt: New file.
4946 * config/alpha/alpha.mt: New file.
4947 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4948 ia64-linux-gnu. Mention that ia64-elf is broken.
4949 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4951 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4953 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4954 generic_func_frame_valid instead of func_frame_valid.
4956 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4958 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4959 procfs appears to be broken when debugging on multi-processor
4960 machines. So enable software single stepping in order to avoid
4961 using the procfs interface to do next/step operations, using
4962 internal breakpoints instead.
4964 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4965 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4966 make this pc address equal to the value it would have if the
4967 system stepping capability was used. Also set a new flag used
4968 to ensure that we don't readjust the PC one more time later.
4970 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4971 address by DECR_PC_AFTER_BREAK when software single step is
4972 in use for this architecture, as this has already been taken
4973 care of in handle_inferior_event().
4975 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4977 * infrun.c (handle_inferior_event): Minor reformatting, to make
4978 a rather long condition expression easier to read.
4980 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4982 * Makefile.in (gdbtk.o): Move to end of file.
4983 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4984 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4985 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4986 (gdbtk-wrapper.o, gdbres.o): Ditto.
4988 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4990 * Makefile.in (copying.o): Separate out compile rule.
4991 (hpux-thread.o, procfs.o, signals.o): Ditto.
4992 (v850ice.o, z8k-tdep.o): Ditto.
4993 (tui-file.o): Move to TUI section.
4994 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4995 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4997 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4999 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5000 skip_trampoline_code, for better namespace-proofing.
5002 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5004 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5006 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5008 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5010 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5011 signal, check whether we hit a breakpoint before checking for a
5012 single step breakpoint. Otherwise, GDB fails to notice that a
5013 breakpoint has been hit when stepping onto a breakpoint.
5015 2002-08-16 Keith Seitz <keiths@redhat.com>
5017 * gdb-events.sh (clear_gdb_event_hooks): New function.
5018 * gdb-events.c: Regenerate.
5019 * gdb-events.h: Regenerate.
5021 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5023 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5024 not_a_sw_breakpoint.
5025 * breakpoint.h (bpstat_stop_status): Add parameter names.
5027 2002-08-16 Grace Sainsbury <graces@redhat.com>
5029 * remote.c (remote_insert_hw_breakpoint)
5030 (remote_remove_hw_breakpoint): Fix calculation of length field
5033 2002-08-15 Michael Snyder <msnyder@redhat.com>
5035 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5036 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5037 (supply_fpregset): Ditto.
5039 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5040 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5041 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5042 (TARGET_READ_SP): Delete.
5043 (DO_REGISTERS_INFO): Delete.
5044 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5046 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5047 from macros to functions.
5049 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5050 (mips_register_convertible, mips_register_convert_to_virtual,
5051 mips_register_convert_to_raw): Make static.
5052 (mips_read_sp): New function.
5053 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5054 (mips_do_registers_info): Make static.
5055 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5056 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5057 (mips_register_convert_from_type, mips_register_convert_to_type):
5059 (mips_gdbarch_init): Set up function_start_offset,
5060 register_virtual_size, pc_in_sigtramp.
5062 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5064 * infcmd.c (vector_info): New function.
5065 (_initialize_infcmd): Add command "info vector".
5066 (print_vector_info): New function.
5068 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5069 * gdbarch.h, gdbarch.c: Regenerate.
5071 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5073 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5074 ``print_all''. Only print vector registers when ``print_all''.
5076 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5078 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5079 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5081 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5082 Add `args' parameter.
5083 * gdbarch.h, gdbarch.c: Regenerate.
5085 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5087 * infcmd.c (float_info): Call print_float_info.
5088 (print_float_info): New function. By default, print the
5089 floating-point registers.
5091 * arch-utils.h (default_print_float_info): Delete declaration.
5092 * arch-utils.c (default_print_float_info): Delete function.
5094 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5096 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5099 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5102 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5103 * configure.host: Make i[3456]86-*-aix host obsolete.
5104 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5105 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5106 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5107 config/i386/xm-i386aix.h: Make files obsolete.
5108 * i386aix-nat.c: Make file obsolete.
5109 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5110 (i386aix-nat.o): Make target obsolete.
5112 * config/i386/nm-gnu.h: Removed.
5113 * config/i386/nm-i386gnu.h: New file.
5114 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5115 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5117 * config/i386/tm-i386gnu.h: ... here. Removed.
5118 * config/i386/xm-i386gnu.h: Removed.
5119 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5120 (NAT_FILE): Set to nm-i386gnu.h.
5121 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5122 * i386-tdep.c: New file.
5123 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5124 (i386gnu-tdep.o): Specify dependencies.
5126 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5128 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5129 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5130 Adjust a few comments to reflect reality a bit closer.
5131 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5132 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5133 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5134 target_insert_watchpoint, target_remove_watchpoint):
5136 * config/i386/nm-i386sco5.h: ... here.
5137 (kernel_u_size): Add prototype. Improve a few comments and add
5138 protection against multiple inclusion.
5140 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5143 * uw-thread.c (SP_ARG0): Define if not already defined.
5144 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5146 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5148 * config/i386/tm-i386.h: Don't include "regcache.h".
5150 * i387-tdep.h (i387_print_float_info): New prototype.
5151 * i387-tdep.c (print_i387_value, print_i387_ext,
5152 print_i387_status_word, print_i387_control_word): Add `struct
5153 ui_file *' argument and use it for output.
5154 (i387_print_float_info): Renamed from i387_float_info. Add
5155 `struct gdbarch *' and `struct ui_file *' arguments and use the
5157 * i386-tdep.c: Include "i387-tdep.h".
5158 (i386_gdbarch_init): Set print_float_info.
5159 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5160 (FLOAT_INFO): Remove define.
5162 2002-08-13 Michael Snyder <msnyder@redhat.com>
5164 * mips-tdep.c (mips_push_arguments): Rename to
5165 mips_eabi_push_arguments, and tune for EABI.
5166 (MIPS_REGS_HAVE_HOME_P): Delete.
5167 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5168 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5169 Delete references to mips_regs_have_home_p.
5171 2002-08-14 Keith Seitz <keiths@redhat.com>
5173 * Makefile.in (install-gdbtk): Create insight plugin directory.
5174 Install plugins.tcl file.
5176 2002-08-14 Keith Seitz <keiths@redhat.com>
5178 * configure.in: Move SUBDIRS to near top of the file so that
5179 --enable options may add things to it.
5180 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5181 * configure: Regenerate.
5183 2002-08-13 Michael Snyder <msnyder@redhat.com>
5185 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5186 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5187 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5189 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5191 * vax-tdep.c (vax_get_saved_register): Delete function.
5192 (vax_gdbarch_init): Update.
5193 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5194 (ns32k_gdbarch_init): Update.
5195 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5196 (alpha_gdbarch_init): Update.
5198 2002-08-13 Andrew Cagney <cagney@redhat.com>
5200 * regcache.c (init_regcache_descr): Overallocate the
5201 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5202 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5204 (set_register_cached): Add range checking assertions. Use
5207 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5209 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5210 numbers for MMX registers.
5212 2002-08-13 Andrew Cagney <cagney@redhat.com>
5214 * i386-tdep.c (i386_gdbarch_init): Use
5215 generic_unwind_get_saved_register.
5217 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5219 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5220 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5222 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5223 Delete. Add comment regarding this now-deleted target method.
5225 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5227 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5228 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5229 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5230 real PC and the page number (if it's within the memory bank window).
5231 (m68hc11_pseudo_register_write): Likewise when saving.
5232 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5233 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5234 (m68hc11_register_raw_size): And use 32-bit for it.
5235 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5236 16K memory bank is used by the prog; also use the virtual pc.
5238 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5240 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5241 (m68hc11_gdbarch_init): Install it in gdbarch.
5242 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5243 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5244 (MSYMBOL_SIZE): New for documentation.
5245 (insn_return_kind): Enum to specify how a function returns.
5246 (frame_extra_info): Cleanup and record the return mode.
5247 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5248 register in address computation.
5249 (m68hc11_get_return_insn): New to obtain the return instruction used
5251 (m68hc11_frame_init_saved_regs): Take into account the return
5252 instruction used by the function for far and interrupt functions.
5253 (m68hc11_init_extra_frame_info): Take into account page register.
5254 (m68hc11_frame_args_address): Adjust according to the return mode.
5255 (show_regs): Print page register only when it's used.
5257 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5259 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5260 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5261 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5263 (m68hc11_register_raw_size): Likewise.
5265 2002-08-13 Andrew Cagney <cagney@redhat.com>
5267 * i386-tdep.c (i386_register_name): Handle mmx registers.
5268 (mmx_regnum_p): New function.
5269 (i386_mmx_names): New array.
5270 (mmx_num_regs): New variable.
5271 (i386_pseudo_register_read): New function.
5272 (i386_pseudo_register_write): New function.
5273 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5275 * regcache.c (regcache_raw_read_unsigned): New function.
5276 (regcache_raw_read_signed): New function.
5277 * regcache.h (regcache_raw_read_unsigned): Declare.
5278 (regcache_raw_read_signed): Declare.
5280 2002-08-13 Andrew Cagney <cagney@redhat.com>
5282 * regcache.c (regcache_raw_read_as_address): Delete function.
5283 (regcache_cooked_read_signed): New function.
5284 (regcache_cooked_read_unsigned): New function.
5285 * regcache.h (regcache_cooked_read_signed): Declare.
5286 (regcache_cooked_read_unsigned): Declare.
5287 (regcache_raw_read_as_address): Delete declaration.
5289 * blockframe.c (generic_read_register_dummy): Use
5290 regcache_cooked_read_unsigned.
5291 * i386-tdep.c (i386_extract_struct_value_address): Use
5292 regcache_cooked_read_unsigned.
5294 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5297 double sizes according to ELF ABI flags.
5298 (gdbarch_tdep): Record elf_flags.
5300 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5302 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5303 (m6812_prolog): They can appear in 68HC12 function prologue.
5304 (m68hc11_frame_chain): Cleanup.
5306 2002-08-12 Andrew Cagney <cagney@redhat.com>
5308 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5310 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5311 (i386_linux_register_raw_size): Delete function.
5312 (i386_linux_init_abi): Update.
5313 * i386-tdep.c (i386_register_raw_size): Delete function.
5314 (i386_register_byte): Delete function.
5315 (i386_gdbarch_init): Update.
5316 (i386_register_size): Delete array.
5317 (i386_register_offset): Delete array.
5319 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5320 (REGISTER_RAW_SIZE): Delete macro.
5321 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5322 (REGISTER_BYTE): Delete macro.
5324 2002-08-11 Aidan Skinner <aidan@velvet.net>
5326 * ada-lang.c (ada_lookup_partial_symbol)
5327 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5328 prototype names so that grep ^func works properly.
5330 * ada-lang.c (ada_array_element_type)
5331 (ada_lookup_partial_symbol): Fix typos in parameter list.
5333 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5334 Fix prototype names so that grep ^func works properly.
5336 2002-08-10 Andrew Cagney <cagney@redhat.com>
5337 Elena Zannoni <ezannoni@redhat.com>
5338 Martin M. Hunt <hunt@redhat.com>
5340 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5341 (build_builtin_type_vec128i): Set the vector bit.
5342 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5343 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5344 (build_builtin_type_vec64): New function.
5345 (build_builtin_type_vec64i): New function.
5346 (build_gdbtypes): Initialize builtin_type_vec64 and
5347 builtin_type_vec64i.
5349 2002-08-09 Andrew Cagney <cagney@redhat.com>
5351 * regcache.c (regcache_dump): Compare the register offset
5353 * arch-utils.c (generic_register_byte): New function.
5354 * arch-utils.h (generic_register_byte): Declare.
5355 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5356 * gdbarch.h, gdbarch.c: Regenerate.
5358 2002-08-09 Andrew Cagney <cagney@redhat.com>
5360 * regcache.c: Include "gdbcmd.h"
5361 (_initialize_regcache): Add commands "maintenance print
5362 registers", "maintenance print raw-registers" and "maintenance
5363 print cooked-registers".
5364 (enum regcache_dump_what): Define.
5365 (dump_endian_bytes): New function.
5366 (regcache_dump): New function.
5367 (regcache_print): New function.
5368 (maintenance_print_registers): New function.
5369 (maintenance_print_raw_registers): New function.
5370 (maintenance_print_cooked_registers): New function.
5371 * Makefile.in (regcache.o): Update dependencies.
5373 2002-08-09 Michael Snyder <msnyder@redhat.com>
5375 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5376 (mips_push_arguments): Correct some comments. Use paddr_nz
5377 for printing addresses in debug output. Replace static
5378 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5379 (mips_n32n64_push_arguments): New function, cloned from
5380 mips_push_arguments and tuned for the n32/n64 ABI.
5381 (mips_push_register): Buffer needs dynamic allocation.
5382 (mips_print_register): Ditto.
5383 (do_gp_register_row): Ditto.
5384 (mips_store_return_value): Ditto.
5385 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5387 2002-08-09 Don Howard <dhoward@redhat.com>
5389 * memattr.c (mem_info_command): Print special case of upper bound
5390 as max CORE_ADDR + 1.
5392 2002-08-08 Michael Snyder <msnyder@redhat.com>
5394 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5395 returns structs by ref if they're too big to fit in two registers.
5397 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5399 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5401 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5402 mips_find_saved_regs().
5403 (mips_pop_frame): Likewise.
5405 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5407 * blockframe.c (frame_saved_regs_register_unwind): Revise
5408 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5411 2002-08-09 Grace Sainsbury <graces@redhat.com>
5413 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5414 T-packets; the 'a' is not taken as a register number.
5415 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5416 (remote_stopped_data_address): New functions; add to target
5418 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5419 prototypes to match other implementations of this
5420 function. replace integer argument with pointer -- the length
5421 field in the Z-packet is the length of what is pointed to or 1 if
5422 pointer is null. Add to target vector.
5423 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5427 * remote.c (remote_wait): Add support to extract optional
5428 watchpoint information from T-packet. Ignore unrecognized
5429 optional info in T-packet.
5430 (remote_async_wait): Ditto.
5432 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5434 * cli/cli-dump.c: Change fopen modes to use binary open modes
5435 as defined in include/fopen-bin.h throughout.
5437 2002-08-08 Michael Snyder <msnyder@redhat.com>
5439 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5441 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5443 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5444 assertion failure by returning early after a warning.
5446 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5448 * mips-tdep.c (mips_find_saved_regs): Make static.
5449 (mips_frame_init_saved_regs): New function.
5450 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5451 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5452 (mips_find_saved_regs): Delete declaration.
5454 2002-08-08 Grace Sainsbury <graces@redhat.com>
5456 * remote.c (remote_wait, remote_async_wait): Change
5457 thread_num from int to ULONGEST.
5458 (unpack_varlen_hex): Change result parameter from
5459 int * to ULONGEST *.
5461 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5463 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5464 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5466 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5468 2002-08-08 Andrew Cagney <cagney@redhat.com>
5470 * gcore.c (override_derive_stack_segment): Delete variable.
5471 (preempt_derive_stack_segment): Delete function.
5472 (derive_stack_segment): Delete function.
5473 (default_derive_stack_segment): Renamed to derive_stack_segment.
5474 (override_derive_heap_segment): Delete variable.
5475 (preempt_derive_heap_segment): Delete function.
5476 (derive_heap_segment): Delete function.
5477 (default_derive_heap_segment): Rename to derive_heap_segment.
5479 2002-08-06 Michael Snyder <msnyder@redhat.com>
5481 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5482 * mips-tdep.c (mips_EABI_use_struct_convention,
5483 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5484 New functions. (mips_use_struct_convention): Delete.
5485 (mips_gdbarch_init): set use_gdbarch_convention.
5487 2002-08-06 Michael Snyder <msnyder@redhat.com>
5489 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5490 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5491 mips_o32_reg_struct_has_addr): New functions.
5492 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5494 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5496 * regcache.c (pseudo_register): Delete function.
5497 (fetch_register): Delete function.
5498 (store_register): Delete function.
5499 (regcache_raw_read, legacy_read_register_gen): Use
5500 target_fetch_registers instead of fetch_register.
5501 (legacy_write_register_gen, regcache_raw_write): Use
5502 target_store_register instead of store_register.
5503 (write_register_bytes): Ditto.
5505 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5506 (STORE_PSEUDO_REGISTER): Delete.
5507 * gdbarch.h, gdbarch.c: Regenerate.
5509 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5511 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5512 write dump file binary.
5514 2002-08-05 Michael Snyder <msnyder@redhat.com>
5516 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5517 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5518 (mips_gdbarch_init): Set N32 target to be mips64.
5520 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5522 * frame.c (find_saved_register): Break out of loop once saved
5523 register address is found. Don't mention sparc in loop comment
5526 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5528 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5529 mips_default_saved_regsize to 8.
5531 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5533 * gcore.c: Do not include <sys/procfs.h>.
5534 * Makefile.in (gcore.o): Update dependencies.
5536 2002-08-06 Andrew Cagney <cagney@redhat.com>
5538 * configure.tgt: Make arc-*-* obsolete.
5539 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5540 * MAINTAINERS: Make arc-elf obsolete.
5541 * arc-tdep.c: Make file obsolete.
5542 * config/arc/arc.mt: Ditto.
5543 * config/arc/tm-arc.h: Ditto.
5545 2002-08-05 Theodore A. Roth <troth@verinet.com>
5547 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5549 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5551 * mcore-tdep.c (mcore_gdbarch_init): Use
5552 generic_unwind_get_saved_register instead of
5553 generic_get_saved_register.
5554 * v850-tdep.c (v850_gdbarch_init): Ditto.
5555 * frv-tdep.c (frv_gdbarch_init): Ditto.
5556 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5557 * s390-tdep.c (s390_gdbarch_init): Ditto.
5558 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5559 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5560 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5562 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5564 * objfiles.h: Add missing #include "symfile.h"
5566 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5568 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5570 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5571 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5574 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5576 * NEWS: Cleanup and nitpick.
5578 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5580 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5582 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5584 * Makefile.in (gdbtk-bp.o): Update dependencies.
5585 (gdbtk-register.o): Ditto.
5586 (gdbtk-varobj.o): Ditto.
5588 2002-08-03 Andrew Cagney <cagney@redhat.com>
5590 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5591 m68hc11_fetch_pseudo_register.
5592 (m68hc11_pseudo_register_write): Replace
5593 m68hc11_store_pseudo_register.
5594 (m68hc11_gdbarch_init): Update.
5596 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5598 * gdbarch.sh: Include "gdb_string.h".
5599 * gdbarch.c: Regenerate.
5601 * regcache.c: Include "gdb_string.h".
5602 * ax-general.c: Ditto.
5604 * std-regs.c: Ditto.
5605 * fbsd-proc.c: Ditto.
5608 * Makefile.in (regcache.o): Update dependencies.
5609 (thread.o, gdbarch.o): Ditto.
5610 (ax-general.o, gdbarch.o): Ditto.
5611 (varobj.o, std-regs.o): Ditto.
5612 (fbsd-proc.o): Specify dependencies.
5614 2002-08-02 Andrew Cagney <cagney@redhat.com>
5616 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5618 (regcache_cooked_write): Ditto.
5620 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5622 * regcache.c (regcache_cooked_read): New function.
5623 (regcache_cooked_write): New function.
5624 (read_register_gen): Rewrite using regcache_cooked_read.
5625 (write_register_gen): Rewrite using regcache_cooked_write.
5627 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5630 2002-08-02 Andrew Cagney <cagney@redhat.com>
5632 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5633 Replace the architecture methods register_read and register_write.
5634 * gdbarch.h, gdbarch.c: Regenerate.
5635 * regcache.c (init_regcache_descr): Update.
5636 (read_register_gen): Update.
5637 (write_register_gen): Update.
5638 (supply_register): Update comment.
5640 * sh-tdep.c (sh_gdbarch_init): Update.
5641 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5642 `regcache' and `gdbarch' parameters. Make `buffer' a void
5643 pointer. Update code.
5644 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5645 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5646 void pointer. Update code.
5647 (sh64_register_write): Delete.
5648 (sh4_register_read): Delete.
5649 (sh64_register_read): Delete.
5650 (sh4_register_write): Delete.
5651 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5652 void pointer, `to' parameter a void pointer.
5653 (sh_sh64_register_convert_to_raw): Ditto.
5655 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5657 * mips-tdep.c (mips_register_virtual_type): Use architecture
5658 invariant return values.
5660 2002-08-01 Andrew Cagney <cagney@redhat.com>
5662 * linux-proc.c: Include "gdb_string.h".
5663 * Makefile.in (linux-proc.o): Update dependency list.
5665 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5667 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5670 2002-08-01 Grace Sainsbury <graces@redhat.com>
5672 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5673 to_insert_watchpoint, to_remove_watchpoint,
5674 to_stopped_by_watchpoint, to_stopped_data_address,
5675 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5676 target vecctor. Define their corresponding macros so they call
5679 * target.c: Add default and debug versions of for
5680 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5681 to_insert_watchpoint, to_remove_watchpoint,
5682 to_stopped_by_watchpoint, to_stopped_data_address,
5683 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5685 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5687 * mips-tdep.c (mips_register_virtual_type): New function.
5688 (mips_gdbarch_init): Register mips_register_virtual_type()
5689 with gdbarch machinery.
5690 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5691 this file instead of tm-bigmips.h.
5692 (MIPS_REGSIZE): Delete this macro.
5693 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5694 multiarch version in mips-tdep.c will be found.
5696 2002-08-01 Andrew Cagney <cagney@redhat.com>
5698 * NEWS: Menion that CHILL has been made obsolete.
5700 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5701 * stabsread.c (read_range_type): Ditto.
5702 * gdbtypes.h: Ditto.
5703 * language.c (binop_type_check): Ditto.
5704 (binop_result_type): Ditto.
5705 (integral_type): Ditto.
5706 (character_type): Ditto.
5707 (string_type): Ditto.
5708 (boolean_type): Ditto.
5709 (structured_type): Ditto.
5710 (lang_bool_type): Ditto.
5711 (binop_type_check): Ditto.
5712 * language.h (_LANG_chill): Ditto.
5713 * dwarfread.c (set_cu_language): Ditto.
5714 * dwarfread.c (CHILL_PRODUCER): Ditto.
5715 * dwarfread.c (handle_producer): Ditto.
5716 * expression.h (enum exp_opcode): Ditto.
5717 * eval.c: Ditto for comments.
5718 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5719 * expprint.c (print_subexp): Ditto.
5720 (print_subexp): Ditto.
5721 * valops.c (value_cast): Ditto.
5722 (search_struct_field): Ditto.
5723 * value.h (COERCE_VARYING_ARRAY): Ditto.
5724 * symfile.c (init_filename_language_table): Ditto.
5725 (add_psymbol_with_dem_name_to_list): Ditto.
5726 * valarith.c (value_binop): Ditto.
5728 * valops.c (value_slice): Ditto.
5729 * symtab.h (union language_specific): Ditto.
5730 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5731 (SYMBOL_DEMANGLED_NAME): Ditto.
5732 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5733 * defs.h (enum language): Ditto.
5734 * symtab.c (got_symtab): Ditto.
5735 * utils.c (fprintf_symbol_filtered): Ditto.
5737 * ch-typeprint.c: Make file obsolete.
5738 * ch-valprint.c: Make file obsolete.
5739 * ch-lang.h: Make file obsolete.
5740 * ch-exp.c: Make file obsolete.
5741 * ch-lang.c: Make file obsolete.
5743 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5745 (TARGET_FLAGS_TO_PASS): Ditto.
5746 (CHILLFLAGS): Obsolete.
5748 (CHILL_FOR_TARGET): Obsolete.
5749 (CHILL_LIB): Obsolete.
5750 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5752 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5753 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5755 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5758 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5760 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5761 This does not change anything at the moment, but will be helpful
5762 later when full Ada support is integrated.
5764 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5766 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5769 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5771 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5772 and save it in a local variable. Use variable in later test.
5774 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5776 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5777 test. (Thanks to Daniel Jacobowitz.)
5779 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5781 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5782 (mips_abi_strings): Add "n64".
5783 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5785 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5787 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5788 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5790 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5792 * utils.c (host_pointer_to_address, address_to_host_pointer):
5793 Use gdb_assert() instead of explicit call to internal_error().
5795 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5797 * Makefile.in (rs6000-nat.o): Update dependencies.
5799 From Nicholas Duffek:
5800 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5801 (aix-thread.o): New rule.
5802 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5803 * config/powerpc/aix432.mh: New file.
5805 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5807 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5808 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5809 (fetch_core_registers, ppc_linux_supply_gregset)
5810 (ppc_linux_supply_fpregset): New functions.
5811 (ppc_linux_regset_core_fns): New.
5812 (_initialize_ppc_linux_tdep): Call add_core_fns.
5813 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5814 and ppc_linux_supply_gregset.
5815 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5816 (supply_fpregset): Call ppc_linux_supply_fpregset.
5817 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5819 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5821 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5823 * symtab.c (lookup_symbol): Demangle before lowercasing.
5825 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5827 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5829 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5830 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5831 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5832 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5834 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5835 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5836 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5837 (avr-tdep.o, mon960-rom.o): Ditto.
5838 (aout_stabs_gnu_h): Define.
5839 (symtab_h): Remove $(gdb_obstack_h).
5841 2002-07-30 Jim Blandy <jimb@redhat.com>
5843 Patch from David Carlton <carlton@math.stanford.edu>:
5844 * gdbinit.in: Move the `dir' commands that add GDB's own source
5845 directory to the search path to the end, so that the `gdb' source
5846 directory will be searched first.
5848 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5850 * gdb_obstack.h: New file.
5851 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5852 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5853 * objfiles.h: Include "gdb_obstack.h".
5854 * Makefile.in (gdb_obstack_h): Define.
5855 (symtab_h): Add $(gdb_obstack_h).
5856 (objfiles_h): Add $(gdb_obstack_h).
5858 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5859 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5860 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5861 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5862 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5863 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5864 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5865 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5867 * Makefile.in (bcache.o): Update dependencies.
5868 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5869 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5870 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5871 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5872 (stabsread.o, symfile.o, symmisc.o): Ditto.
5873 (symtab.o, typeprint.o, macroexp.o): Ditto.
5874 (macrotab.o, mdebugread.o): Ditto.
5875 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5876 (coff_ecoff_h, aout_aout64_h): Define.
5877 (aout_stabs_gnu_h, libaout_h): Define.
5879 2002-07-29 Andrew Cagney <cagney@redhat.com>
5881 * regcache.c (struct regcache_descr): Rename nr_registers to
5882 nr_cooked_registers. Revise comments describing the structure
5884 (init_regcache_descr): Update.
5885 (init_legacy_regcache_descr): Update.
5886 (read_register_gen, write_register_gen): When a cooked register in
5887 the raw register range, directly access the value from the raw
5890 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5892 * z8k-tdep.c: Do not include "obstack.h".
5893 * h8300-tdep.c, h8500-tdep.c: Ditto.
5894 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5895 * valprint.c, v850-tdep.c: Ditto.
5896 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5897 * mn10200-tdep.c: Ditto.
5899 * Makefile.in (z8k-tdep.o): Update dependencies.
5900 (m68hc11-tdep.o, valprint.o): Ditto.
5901 (v850-tdep.o, d10v-tdep.o): Ditto.
5902 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5903 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5904 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5905 (sh_opc_h, gdb_sim_sh_h): Define.
5906 (elf_sh_h, elf_bfd_h): Define.
5907 (opcode_m68hc11_h): Define.
5908 (OPCODES_SRC, OPCODES_DIR): define.
5909 (OPCODES): Use $(OPCODES_DIR).
5910 (gdb_sim_d10v_h): Rename sim_d10v_h.
5911 (gdb_sim_arm_h): Rename sim_arm_h.
5913 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5915 * utils.c (host_pointer_to_address, address_to_host_pointer):
5916 Change internal_error() message to indicate function responsible
5919 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5921 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5922 calls to local_hex_string_custom().
5924 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5926 * irix5-nat.c: Move IRIX shared library support from here...
5927 * solib-irix.c: ...to here. Revised substantially to work with
5928 generic solib framework.
5930 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5931 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5932 * mips-irix-tdep.c: New file.
5934 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5935 (mips-irix-tdep.o, solib-irix.o): New rules.
5936 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5938 * config/mips/irix6.mt (TDEPFILES): Likewise.
5939 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5941 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5943 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5944 disabled (via ``#if 0'') includes.
5946 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5948 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5949 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5950 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5951 Add support for the fpscr register.
5952 * rs6000-nat.c (regmap, fetch_inferior_registers)
5953 (store_inferior_registers, fetch_core_registers): Likewise.
5955 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5957 * rs6000-nat.c (language.h): Include.
5958 (special_regs): Delete this array.
5959 (regmap): New function.
5960 (fetch_register, store_register): Use regmap() to map gdb
5961 register numbers to ptrace register numbers. Also, use
5962 outputs from regmap() to make decisions regarding type of
5963 ptrace() call to make. In particular, don't compare against
5964 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5965 (fetch_inferior_registers, store_inferior_registers): Where
5966 possible, obtain register numbers from tdep struct. Don't
5967 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5968 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5969 (LAST_UISA_SP_REGNUM): Delete.
5971 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5973 * rs6000-nat.c (ppc-tdep.h): Include.
5974 (fetch_registers, store_register, fetch_core_registers): Don't
5975 access registers[] directly. Instead, use supply_register() or
5976 regcache_collect() as appropriate.
5977 (find_toc_address): Format hex address with local_hex_string().
5979 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5981 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5984 2002-07-24 Tom Tromey <tromey@redhat.com>
5986 * jv-exp.y: Marked all strings with _().
5987 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5989 (MethodInvocation, CastExpression, parse_number, yyerror,
5990 java_type_from_name, push_expression_name, yylex): Typo fixes.
5992 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5994 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5995 (tee_file_flush, tee_file_write, tee_file_fputs)
5996 (tee_file_isatty): New.
5997 * ui-file.h (tee_file_new): Add prototype.
5999 2002-07-24 Aidan Skinner <aidan@velvet.net>
6001 * ada-lang.c: Change k&r style function definitions to prototyped
6003 * ada-typeprint.c: Change k&r style function definitions to prototyped
6005 * ada-valprint.c: Change k&r style function definitions to prototyped
6008 2002-07-24 Andrew Cagney <cagney@redhat.com>
6010 * README: Remove reference to remote-bug.
6011 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6013 (m88k-nat.o): Delete rule.
6014 (m88k-tdep.o): Delete rule.
6015 (remote-bug.o): Delete rule.
6016 * MAINTAINERS: Mark as obsolete.
6017 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6018 * m88k-tdep.c: Make file obsolete.
6019 * config/m88k/m88k.mh: Ditto.
6020 * config/m88k/delta88v4.mh: Ditto.
6021 * config/m88k/delta88v4.mt: Ditto.
6022 * config/m88k/delta88.mt: Ditto.
6023 * config/m88k/delta88.mh: Ditto.
6024 * remote-bug.c: Ditto.
6025 * config/m88k/tm-delta88.h: Ditto.
6026 * config/m88k/nm-delta88v4.h: Ditto.
6027 * config/m88k/xm-delta88.h: Ditto.
6028 * config/m88k/xm-dgux.h: Ditto.
6029 * config/m88k/tm-m88k.h: Ditto.
6030 * config/m88k/nm-m88k.h: Ditto.
6031 * config/m88k/tm-delta88v4.h: Ditto.
6032 * m88k-nat.c: Ditto.
6033 * cxux-nat.c: Ditto.
6034 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6035 and m88*-*-* obsolete.
6036 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6039 2002-07-24 Andrew Cagney <cagney@redhat.com>
6041 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6042 constant. Same for local pointer variables.
6043 (extract_signed_integer): Ditto.
6044 * defs.h (extract_unsigned_integer): Update.
6045 (extract_signed_integer): Update.
6047 2002-07-24 Andrew Cagney <cagney@redhat.com>
6049 * regcache.c (regcache_raw_write): Change buf parameter to a
6050 constant void pointer.
6051 (regcache_raw_read): Change buf parameter to a void pointer.
6052 (legacy_write_register_gen): Change myaddr parameter a constant
6054 (supply_register): Change val parameter to a const void pointer.
6055 * regcache.h (regcache_raw_write): Update declaration.
6056 (regcache_raw_read): Update declaration.
6057 (supply_register): Update declaration.
6059 2002-07-24 Tom Tromey <tromey@redhat.com>
6061 * defs.h (gdb_readline_wrapper): Declare.
6062 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6063 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6064 * top.c (gdb_readline_wrapper): New function.
6065 (command_line_input): Use it.
6067 2002-07-24 Andrew Cagney <cagney@redhat.com>
6069 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6070 regcache_read and regcache_write.
6071 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6072 * regcache.c: Update.
6073 * sh-tdep.c (sh64_push_arguments): Update comment.
6074 (sh_pseudo_register_read): Update.
6075 (sh_pseudo_register_write): Update.
6076 (sh4_register_read): Update.
6077 (sh4_register_write): Update.
6078 (sh64_pseudo_register_read): Update.
6079 (sh64_pseudo_register_write): Update.
6080 (sh64_register_read): Update.
6081 (sh64_register_write): Update.
6082 * i386-tdep.c (i386_extract_return_value): Update.
6083 (i386_extract_struct_value_address): Update.
6084 (i386_extract_return_value): Update.
6085 * blockframe.c (generic_read_register_dummy): Update.
6086 (generic_call_dummy_register_unwind): Update
6087 * infrun.c (write_inferior_status_register): Update.
6089 2002-07-23 Jim Blandy <jimb@redhat.com>
6091 * parser-defs.h (expression_context_pc): Make this extern.
6092 (Thanks to Michael Snyder.)
6094 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6096 GDB 5.2.1 released from 5.2 branch.
6097 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6098 * README: Update to mention 5.2.1.
6100 2002-07-23 Mark Salter <msalter@redhat.com>
6102 * remote.c (remote_read_bytes): Fix check for error.
6104 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6106 * aix-thread.c (language.h): Include.
6107 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6108 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6109 Print newlines at end of debug messages.
6110 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6111 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6113 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6115 * aix-thread.c (ppc-tdep.h): Include.
6116 (special_register_p): New function.
6117 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6118 (store_regs_user_thread): Use register number information from
6119 gdbarch_tdep struct instead of hardcoded offsets relative to
6120 FIRST_UISA_SP_REGNUM.
6121 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6122 special_register_p() instead of using FPLAST_REGNUM and
6123 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6124 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6125 will be MQ's register number.
6127 2002-07-22 Michael Snyder <msnyder@redhat.com>
6129 * aix-thread.c (ops): Rename to aix_thread_ops.
6130 (base_ops): Rename to base_target.
6131 (ops_attach): Rename to aix_thread_attach.
6132 (ops_detach): Rename to aix_thread_detach.
6133 (ops_resume): Rename to aix_thread_detach.
6134 (ops_wait): Rename to aix_thread_wait.
6135 (ops_kill): Rename to aix_thread_kill.
6136 (init_ops): Rename to init_aix_thread_ops.
6137 (ops_fetch_register): Rename to aix_thread_fetch_register.
6138 (ops_store_register): Rename to aix_thread_store_register.
6139 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6140 (ops_thread_alive): Rename to aix_thread_thread_alive.
6141 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6142 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6143 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6144 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6145 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6146 (store_regs_lib): Rename to store_regs_user_thread.
6147 (store_regs_kern): Rename to store_regs_kernel_thread.
6149 2002-07-22 Michael Snyder <msnyder@redhat.com>
6151 * aix-thread.c (ops_prepare_to_store): Eliminate.
6152 (init_ops): Don't initialize ops.prepare_to_store.
6153 (store_regs_kern): Pre-fetch register buffers from child,
6154 because some registers may not be in the cache. Copy
6155 regs from register cache only if they are cached.
6156 (store_regs_lib): Copy regs from register cache only
6158 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6159 fill_gprs64): Ditto.
6161 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6163 * aix-thread.c (gdb_assert.h): Include.
6164 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6165 register sizes (from register cache) match size of buffer holding
6167 (fill_sprs32): Change parameter types to match those in the ptrace()
6169 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6170 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6172 2002-07-22 Michael Snyder <msnyder@redhat.com>
6174 * aix-thread.c (supply_sprs64): Cosmetic change.
6175 (supply_sprs32): Cosmetic change.
6176 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6177 (fill_sprs64): Use regcache_collect instead of read_register.
6178 (store_regs_lib): Use regcache_collect instead of
6179 read_register. Use fill_sprs32 instead of fill_sprs64,
6180 if debugging a 32-bit architecture.
6181 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6182 out of the register cache, instead of passing a pointer into
6183 the register cache directly to ptrace. Use regcache_collect
6184 insteaad of read_register.
6185 (ops_prepare_to_store): Use target_read_registers instead
6186 of read_register_bytes.
6188 2002-07-20 Aidan Skinner <aidan@velvet.net>
6190 * MAINTAINERS: Add self under write after approval.
6192 2002-07-20 Aidan Skinner <aidan@velvet.net>
6194 * ada-tasks.c: Change k&r style function definitions to prototyped
6197 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6199 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6200 * x86-64-tdep.c: Include "objfiles.h".
6201 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6202 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6204 2002-07-17 Michal Ludvig <michal@suse.cz>
6206 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6207 (update_context): Initialise cfa variable.
6209 2002-07-17 Michael Snyder <msnyder@redhat.com>
6211 * aix-thread.c: Shorten some long lines.
6212 Bring comments into line with code spec.
6214 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6216 * infrun.c: Re-indent using gdb_indent.sh.
6218 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6220 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6221 Leave the indentation temporarily untouched, to minimize the diffs.
6223 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6225 * stabsread.c: Make os9k sections of the code obsolete,
6227 * stabsread.h: Make os9k sections of the code obsolete.
6229 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6231 * linux-low.c (regsets_store_inferior_registers): Add free()
6232 at the end of a loop to prevent memory leak.
6233 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6234 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6235 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6237 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6239 2002-07-17 Jim Blandy <jimb@redhat.com>
6241 * macrocmd.c (info_macro_command): Remove newline from error
6244 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6246 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6247 (sh_gdbarch_init): Use it for sh-dsp.
6249 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6251 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6252 64-bit DWARF2 format.
6254 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6256 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6257 <sys/proc.h> when not available.
6259 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6261 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6262 * stabsread.c: Make os9k sections of the code obsolete.
6263 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6264 * config/i386/i386os9k.mt: Make file obsolete.
6265 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6266 (COMMON_OBS): Remove os9kread.o
6267 (SFILES): Remove os9kread.c.
6268 (os9kread.o, remote-os9k.o): Make target obsolete.
6269 * remote-os9k.c: Make file obsolete.
6270 * os9kread.c: Make file obsolete.
6273 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6275 * NEWS: Mention that the FR30 has been made obsolete.
6276 * fr30-tdep.c: Make file obsolete.
6277 * config/fr30/tm-fr30.h: Ditto.
6278 * config/fr30/fr30.mt: Ditto.
6279 * configure.tgt: Make fr30-*-elf obsolete.
6280 * MAINTAINERS: Make fr30-elf obsolete.
6282 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6284 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6285 found is not inside a section.
6287 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6289 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6291 (pdc_realloc): Use xrealloc() instead of realloc().
6293 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6295 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6296 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6297 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6300 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6302 * aix-thread.c (ptrace_check): Eliminate goto.
6303 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6306 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6308 * aix-thread.c (gdbcmd.h): Include.
6309 (DEBUG, DBG, DBG2, dbg): Eliminate.
6310 (debug_aix_thread): New static global.
6311 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6312 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6313 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6314 invocations to DBG and DBG2 macros to test against
6315 ``debug_aix_thread'' and call fprintf_unfiltered().
6316 (_initialize_aix_thread): Add new command "set debug aix-thread".
6318 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6320 From Gerhard Tonn <TON@de.ibm.com>:
6321 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6322 instead of supply_register.
6324 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6326 * dwarf2cfi.c: Include "gdb_assert.h".
6327 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6329 (update_context): Do not use __func__. Add missing ``break''.
6330 (update_context): Do not use __func__.
6332 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6334 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6335 and its setting. Set gdbarch instruction printing functions
6336 directly. For non-rs6000 case use new function
6337 gdb_print_insn_powerpc.
6338 (gdb_print_insn_powerpc): New function.
6340 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6342 * NEWS: Mention that the d30v has been marked obsolete.
6343 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6344 * configure.tgt: Mark d30v-*-* as obsolete.
6345 * d30v-tdep.c: Mark file as obsolete.
6346 * config/d30v/d30v.mt: Ditto.
6347 * config/d30v/tm-d30v.h: Ditto.
6349 2002-07-13 Aidan Skinner <aidan@velvet.net>
6351 * ada-tasks.c (add_task_entry): replace calls to
6352 malloc() with xmalloc
6353 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6355 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6356 ada_finish_decode_line_1, all_sals_for_line
6357 ada_breakpoint_rewrite): replace calls to free() with xfree()
6359 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6361 From Nicholas Duffek (with minor changes by Martin Hunt,
6362 Louis Hamilton, and Kevin Buettner):
6363 * aix-thread.c: New file.
6365 2002-07-12 Petr Sorfa <petrs@caldera.com>
6367 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6368 complaint for invalid attribute class or form.
6369 (read_func_scope): DW_AT_frame_base
6370 better handling of DW_AT_block*.
6371 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6372 better handling of DW_AT_block*.
6373 (read_common_block): DW_AT_location
6374 better handling of DW_AT_block*.
6375 (read_partial_die): DW_AT_location better handling
6377 (new_symbol): DW_AT_external better handling of
6378 DW_AT_block*. Proper initialization of variable
6380 (attr_form_is_block): New function that returns true
6381 if the attribute's form is of DW_FORM_block*.
6383 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6385 * valops.c (find_method_list): Remove comment about
6386 removed STATIC_MEMFUNCP argument.
6387 (value_find_oload_method_list): Likewise.
6389 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6391 From Nicholas Duffek:
6392 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6393 target_new_objfile_hook.
6395 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6397 From Nicholas Duffek:
6398 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6401 2002-07-12 Andrew Cagney <cagney@redhat.com>
6403 * MAINTAINERS: Mention --enable-sim-build-warnings.
6404 (m68hc11-elf): Disable sim build warnings.
6405 (m32r-elf): Mark as broken obsolete candidate.
6406 (x86_64-linux-gnu): Mark as buildable with -Werror.
6407 (arm-elf): Change -w to ``,'' which enables warnings but not
6410 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6412 * bcache.h: Update copyright.
6413 (struct bstring, struct bcache): Move definition to "bcache.c".
6414 Replaced by opaque declaration.
6415 (bcache_xfree): Replace free_bcache.
6416 (bcache_xmalloc, bcache_memory_used): Declare.
6418 * bcache.c: Update copyright.
6419 (struct bstring, struct bcache): Moved to here from "bcache.h".
6421 (bcache_xmalloc, bcache_memory_used): New functions.
6422 (bcache_xfree): Replace function free_bcache.
6424 * Makefile.in (objfiles.o): Add $(bcache_h).
6425 (objfiles_h): Remove $(bcache_h).
6426 (symfile.o): Add $(bcache_h).
6428 * symmisc.c: Update copyright.
6429 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6430 (print_objfile_statistics): Use bcache_memory_used.
6432 * symfile.c: Include "bcache.h".
6433 (reread_symbols): Use bcache_xfree.
6434 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6435 (add_psymbol_to_list): Pass psymbol_cache by value.
6436 (add_psymbol_with_dem_name_to_list): Ditto.
6438 * objfiles.h: Update copyright.
6439 (struct bcache): Declare opaque. Do not include "bcache.h".
6440 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6442 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6444 * objfiles.c: Include "bcache.h". Update copyright.
6445 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6447 (free_objfile): Use bcache_xfree.
6449 2002-07-11 Grace Sainsbury <graces@redhat.com>
6451 * monitor.c (monitor_fetch_register): Make name a constant.
6452 (monitor_store_register): Same.
6454 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6456 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6457 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6458 (finish_block) For non-function blocks, hash the symbol table. For
6459 function blocks, mark the symbol table as unhashed.
6460 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6461 (msymbol_hash_iw): Likewise.
6462 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6464 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6465 (lookup_minimal_symbol): Likewise for both.
6466 * symtab.h (struct block): Add `hashtable' flag. Comment the
6468 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6469 (ALL_BLOCK_SYMBOLS): Update.
6470 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6471 (struct symbol): Add `hash_next' pointer.
6472 * symtab.c (lookup_block_symbol): Search using the hash table when
6474 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6475 (search_symbols, find_addr_symbol): Likewise.
6477 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6478 (read_dst_symtab): Likewise.
6479 * jv-lang.c (get_java_class_symtab): Likewise.
6480 * mdebugread.c: Include "gdb_assert.h".
6481 (shrink_block): Assert that the block being modified is not hashed.
6482 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6483 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6485 (dump_symtab): Recognize hashed blocks.
6486 * printcmd.c (print_frame_args): Assert that function blocks do not
6487 have hashed symbol tables.
6488 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6489 (fill_in_ada_prototype, debug_print_block): Likewise.
6490 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6492 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6494 * stack.c (print_frame): Use result of frame_address_in_block()
6495 instead of fi->pc when evaluating symbols.
6496 (backtrace_command_1): Ditto.
6498 2002-07-11 Andrew Cagney <cagney@redhat.com>
6500 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6503 * arm-tdep.c (arm_register_name): Make return type constant.
6505 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6507 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6509 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6510 * s390-tdep.c (s390_fp_regnum): Ditto.
6511 (s390_read_fp): Ditto.
6512 (s390_pop_frame): Ditto.
6513 (_initialize_s390_tdep): Ditto.
6514 * remote.c (get_remote_state): Ditto.
6515 * procfs.c (mappingflags): Ditto.
6516 * memattr.c (_initialize_mem): Ditto.
6517 * mcore-tdep.c (mcore_pop_frame): Ditto.
6518 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6519 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6520 * language.c (set_case_str): Ditto.
6521 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6522 * frv-tdep.c (new_variant): Ditto.
6523 (frv_stopped_data_address): Ditto.
6524 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6525 (context_alloc): Ditto.
6526 (frame_state_alloc): Ditto.
6527 (unwind_tmp_obstack_init): Ditto.
6528 (unwind_tmp_obstack_free): Ditto.
6529 (cfi_read_fp): Ditto.
6530 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6531 (cris_pop_frame): Ditto.
6532 * c-lang.c (scanning_macro_expansion): Ditto.
6533 (finished_macro_expansion): Ditto.
6534 (c_preprocess_and_parse): Ditto.
6535 * gdbarch.sh: Ditto.
6536 * gdbarch.h, gdbarch.c: Regenerate.
6537 * config/mn10200/tm-mn10200.h: Adjust indentation.
6538 * target.c: Adjust indentation.
6539 * symtab.h: Adjust indentation.
6540 * stabsread.h: Adjust indentation.
6541 * remote-es.c: Adjust indentation.
6542 * os9kread.c: Adjust indentation.
6544 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6546 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6547 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6549 2002-07-10 Grace Sainsbury <graces@redhat.com>
6551 * NEWS: Mention m68k, mcore multi-arching.
6552 * MAINTAINERS: Change status of m68k, mcore to reflect
6555 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6557 * valops.c (find_overload_match): Free oload_syms.
6559 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6561 Define HAVE_SYS_PROC_H if sys/proc.h exists
6562 * configure.in: Add check for sys/proc.h
6563 * config.in: Regenerate.
6564 * configure: Regenerate.
6566 2002-07-09 Grace Sainsbury <graces@redhat.com>
6568 * config/m68k/tm-m68k.h: Remove macros wrapped in
6569 #if !GDB_MULTI_ARCH.
6571 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6573 * config.in, configure: Regenerate.
6575 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6577 * dwarf2cfi.c: Include "gcore.h".
6578 (execute_stack_op): Fix implementation of the
6579 DW_OP_deref and DW_OP_deref_size operators by letting do their
6580 lookup in the target.
6582 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6584 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6585 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6588 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6590 Fix PR gdb/595, gdb/602
6591 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6592 Don't call value_cast, just read the vtable pointer; update comments
6595 2002-07-05 Grace Sainsbury <graces@redhat.com>
6597 * config/mcore/tm-mcore.h: Remove file.
6598 * config/mcore/mcore.mt: Remove definition of TM_FILE
6599 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6601 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6603 * i386bsd-tdep.c: Include "gdb_string.h".
6605 2002-07-04 Grace Sainsbury <graces@redhat.com>
6607 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6608 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6610 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6611 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6612 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6613 (RETVAL_REGNUM): Move macros from tm-mcore.h
6614 (mcore_reg_struct_has_addr): New function.
6615 (mcore_gdbarch_init): Added initializations for the macros removed
6618 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6620 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6621 traditonal string branding within the ELF header.
6623 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6625 * symtab.c (remove_params): New function.
6626 (make_symbol_overload_list): Use it instead of cplus_demangle.
6627 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6629 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6631 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6633 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6635 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6636 and tdep->sigtramp_end.
6637 * i386obsd-nat.c: New file.
6638 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6640 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6641 Don't call get_current_frame().
6643 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6645 * i386-nat.c (child_post_startup_inferior): New function
6646 calling i386_cleanup_dregs if
6647 I386_USE_GENERIC_WATCHPOINTS is defined.
6648 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6649 conditional to acknowledge that i386-nat.c has its
6650 own child_post_startup_inferior function.
6652 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6654 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6655 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6656 instead of MAX_REGISTER_RAW_SIZE.
6657 (i386_extract_return_value, i386_extract_struct_value_address):
6658 Convert to use regcache.
6659 (i386_gdbarch_init): Set max_register_raw_size and
6660 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6661 Set extract_return_value and extract_struct_value_address instead
6662 of their deprecated variants.
6664 Convert i386 target to generic dummy frames.
6665 * i386-tdep.c: Include "symfile.h".
6666 (i386_frameless_signal_p): Consider a function to be frameless if
6667 the pc points at the first instruction of the function.
6668 (i386_frame_chain): Handle (generic) call dummies.
6669 (i386_frame_saved_pc): Likewise.
6670 (i386_frame_init_saved_regs): Remove code dealing with call
6671 dummies on the stack.
6672 (i386_push_dummy_frame): Removed.
6673 (i386_call_dummy_words): Removed.
6674 (i386_fix_call_dummy): Removed.
6675 (i386_push_return_address): New function.
6676 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6677 parameter, and don't call get_current_frame.
6678 (i386_pop_frame): New function.
6679 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6680 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6681 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6682 call_dummy_length to 0, set call_dummy_words to NULL, set
6683 sizeof_call_dummy_words to 0, set fix_call_dummy to
6684 generic_fix_call_dummy, set pc_in_call_dummy to
6685 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6686 generic_push_dummy_frame, set push_return_address to
6687 i386_push_return_address and set frame_chain_valid to
6688 generic_file_frame_chain_valid.
6690 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6692 * gdbarch.sh (struct regcache): Add opaque declaration.
6693 (EXTRACT_RETURN_VALUE): New architecture method.
6694 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6695 * gdbarch.h, gdbarch.c: Regenerate.
6696 * arch-utils.c (legacy_extract_return_value): New function.
6697 * arch-utils.h (legacy_extract_return_value): Declare.
6698 * values.c (value_being_returned): Re-enable code handling
6699 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6700 deprecated_grub_regcache_for_registers call to block handling
6701 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6702 (EXTRACT_RETURN_VALUE): Do not define.
6704 2002-07-03 Grace Sainsbury <graces@redhat.com>
6706 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6707 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6708 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6709 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6710 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6711 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6712 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6713 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6714 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6715 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6716 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6717 argument so the function fits the prototype in the architecture
6719 (mcore_pop_frame): Remove argument so the function fits the
6720 prototype. Use get_current_frame instead of the argument.
6721 (mcore_push_arguments): Change type of struct_return so the
6722 function can be used in the architecture vector.
6723 (mcore_store_struct_return): Add.
6724 (mcore_frame_init_saved_regs): Add.
6725 (mcore_gdbarch_init): Add function calls to replace the macros
6726 removed from tm-mcore.h
6728 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6730 * infcmd.c (print_return_value): Remove compatibility code calling
6731 deprecated_grub_regcache_for_registers.
6733 * values.c: Include "regcache.h".
6734 (value_being_returned): Update. Use
6735 deprecated_grub_regcache_for_registers to extract the register
6737 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6738 ``struct regcache''.
6739 * Makefile.in (values.o): Add dependency on $(regcache_h).
6741 * inferior.h (run_stack_dummy): Change type of second parameter to
6742 a ``struct regcache''.
6743 * valops.c (hand_function_call): Change type of retbuf to ``struct
6744 regcache''. Allocate using regcache_xmalloc, clean using
6745 make_cleanup_regcache_xfree.
6746 * infcmd.c (run_stack_dummy): Update. Use
6747 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6749 * regcache.c (do_regcache_xfree): New function.
6750 (make_cleanup_regcache_xfree): New function.
6751 * regcache.h (make_cleanup_regcache_xfree): Declare.
6753 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6755 * event-top.c (command_line_handler): Don't read past
6756 beginning of buffer.
6758 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6760 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6762 (varobj_create): Store frame_id for root.
6763 (varobj_gen_name): Use xasprintf.
6764 (varobj_update): Save and restore frame using get_frame_id() and
6766 (create_child): Use xasprintf.
6767 (new_root_variable): Initialize frame_id.
6768 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6769 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6770 to prevent memory leak.
6772 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6774 * valops.c (hand_function_call): Move declaration of retbuf to
6775 start of function, allocate using malloc, add a cleanup but before
6776 the inf_status cleanup, cleanup the buffer. Rename local variable
6777 old_chain to inf_status_cleanup.
6779 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6781 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6783 * cli/cli-decode.c (cmd_func_p): New function.
6784 (cmd_func): New function.
6786 * command.h: Add cmd_func() and cmd_func_p().
6788 2002-07-03 Grace Sainsbury <graces@redhat.com>
6790 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6791 (REGISTER_SIZE): Remove.
6792 (MAX_REGISTER_RAW_SIZE): Remove.
6793 (REGISTER_VIRTUAL_TYPE): Remove.
6794 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6795 (REGISTER_NAME): Remove.
6796 (USE_GENERIC_DUMMY_FRAMES): Remove.
6797 (CALL_DUMMY): Remove.
6798 (CALL_DUMMY_START_OFFSET): Remove.
6799 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6800 (CALL_DUMMY_LOCATION): Remove.
6801 (FIX_CALL_DUMMY): Remove.
6802 (CALL_DUMMY_ADDRESS): Remove.
6803 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6804 (SAVE_DUMMY_FRAME_TOS): Remove.
6805 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6806 (mcore_register_virtual_type): New function.
6807 (mcore_register_byte): New function.
6808 (mcore_register_size): New function.
6809 (mcore_register_name): New function.
6810 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6811 macros removed from tm-mcore.h.
6812 (mcore_dump_tdep): Add.
6813 (_initialize_mcore_tdep): Add gdbarch_register call.
6815 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6817 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6818 frameless_look_for_prologue, such that we actually call this
6821 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6823 * frame.h (frame_address_in_block): New function.
6825 * blockframe.c (frame_address_in_block): New function extracted
6826 from get_frame_block().
6827 (get_frame_block): Use frame_address_in_block().
6828 (block_innermost_frame): Use frame_address_in_block() to match
6829 the frame pc address against the block boundaries rather than
6830 the frame pc directly. This prevents a failure when a frame pc
6831 is actually a return-address pointing immediately after the end
6834 2002-07-02 Grace Sainsbury <graces@redhat.com>
6836 * MAINTAINERS: Add self under write after approval.
6838 2002-07-02 Grace Sainsbury <graces@redhat.com>
6840 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6841 used in architecture vector. The default is
6842 m68k_local_breakpoint_from_pc.
6843 (m68k_local_breakpoint_from_pc): Add.
6844 (enum): Add register numbers from tm-m68k.h.
6845 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6847 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6848 GDB_MULTI_ARCH_PARTIAL.
6849 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6850 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6852 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6853 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6854 to enum in m68k-tdep.c
6856 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6858 * solib-osf.c (open_map): Compute the list of shared libraries
6859 loaded by the inferior, rather than the list of libraries loaded
6860 by GDB itself. Otherwise, GDB ends up reading the symbols from
6861 the wrong shared libraries...
6863 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6865 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6866 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6868 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6870 (FRAMELESS_SIGNAL): Remove function.
6871 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6872 i386_linux_saved_pc_after_call): Removed.
6873 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6874 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6875 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6877 * i386-tdep.c (i386_frameless_signal_p): New function.
6878 (i386_frame_chain): Deal with frameless signals.
6879 (i386_sigtramp_saved_sp): New function.
6880 (i386_frame_saved_pc): Deal with frameless signals.
6881 (i386_saved_pc_after_call): Make sure the correct value is
6882 returned just after entry into a sigtramp.
6883 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6884 i386fbsd4_sc_sp_offset): New variables.
6885 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6886 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6887 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6888 similiar to what we already did for sc_pc_offset.
6889 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6892 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6894 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6896 * config/i386/tm-x86-64linux.h: New.
6897 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6899 * config/i386/nm-x86-64.h: Rename to ...
6900 * config/i386/nm-x86-64linux.h: ... this one.
6901 * config/i386/x86-64linux.mh: Reflect the above change.
6903 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6905 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6906 with sigcontext_addr. Add sc_sp_offset.
6907 (i386bsd_sigtramp_saved_pc): Remove prototype.
6908 (i386bsd_sicontext_addr): Add prototype.
6909 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6910 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6911 (i386_svr4_sigtramp_saved_pc): Removed.
6912 (i386_svr4_sigcontext_addr): New function.
6913 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6914 Initialize tdep->sigcontext_addr instead. Initialize
6915 tdep->sc_pc_offset and tdep->sc_sp_offset.
6916 (i386_gdbarch_init): Likewise.
6917 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6919 (i386bsd_sigtramp_saved_pc): Remove function.
6920 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6921 Initialize tdep->sigcontext_addr instead. Initialize
6923 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6924 of tdep->sigtramp_saved_pc.
6925 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6926 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6929 * i386-tdep.c (i386_frameless_function_invocation,
6930 i386_frame_num_args, i386_frame_init_saved_regs,
6931 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6932 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6933 i386_extract_return_value, i386_store_return_value,
6934 i386_extract_struct_value_address, i386_register_virtual_type,
6935 i386_register_convertible, i386_register_convert_to_virtual,
6936 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6937 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6940 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6942 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6944 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6945 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6946 this macro. Include "value.h".
6948 2002-06-30 Aidan Skinner <aidan@velvet.net>
6950 * ada-exp.tab.c: remove as it's a generated file
6951 * ada-lex.c: remove as it's a generated file
6953 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6955 * config/i386/tm-i386.h (struct frame_info, struct
6956 frame_saved_regs, struct value, struct type): Remove forward
6959 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6960 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6961 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6962 (FILL_FPXREGSET): Define.
6964 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6966 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6967 i[3456]86-*-netbsd* case.
6968 * config/i386/tm-obsd.h: Removed.
6969 * config/i386/obsd.mt: Removed.
6970 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6972 (MH_CFLAGS): Add -DYYDEBUG=0.
6974 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6975 i386nbsd_sc_pc_offset on OpenBSD too.
6977 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6978 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6979 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6981 * i386bsd-tdep.c: Include "arch-utils.h".
6982 (i386bsd_aout_in_solib_call_trampoline): New function.
6983 (i386bsd_init_abi): Set in_solib_call_trampoline to
6984 i386bsd_aout_in_solib_call_trampoline.
6985 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6986 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6988 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6990 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6991 (struct obstack, struct bcache): Add opaque declarations.
6992 * Makefile.in (macrotab_h): Update
6994 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6996 * blockframe.c (generic_find_dummy_frame): Change return type to
6997 ``struct regcache''.
6998 (struct dummy_frame): Replace field ``registers'' with regcache, a
6999 struct regcache object.
7000 (generic_find_dummy_frame): Update.
7001 (generic_push_dummy_frame): Update. Use regcache_xfree,
7002 regcache_xmalloc and regcache_cpy.
7003 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7005 (deprecated_generic_find_dummy_frame): Update.
7006 (generic_read_register_dummy): Update. Use
7007 regcache_read_as_address.
7008 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7009 (generic_get_saved_register): Update. Use regcache_read.
7011 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7013 * Makefile.in (objfiles_h): Add $(bcache_h).
7014 * objfiles.h: Include "bcache.h".
7016 * Makefile.in (symtab_h): Remove $(bcache_h).
7017 * symtab.h: Do not include "bcache.h".
7019 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7021 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7022 generic_func_frame_chain_valid.
7024 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7026 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7027 * config/i386/tm-fbsd.h: Likewise.
7029 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7031 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7032 generic_unwind_get_saved_register.
7034 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7036 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7037 * regcache.c (supply_register): Add missing argument to
7038 register_buffer call.
7040 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7042 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7043 Solaris /bin/grep does not not like it. From Peter Schauer.
7045 2002-06-26 Tom Tromey <tromey@redhat.com>
7047 * command.h (add_setshow_cmd): Declare.
7048 (add_setshow_cmd_full): Declare.
7049 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7050 returns void. Use add_setshow_cmd_full.
7051 (add_setshow_cmd_full): New function.
7052 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7053 (add_setshow_boolean_cmd): Likewise.
7055 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7057 * config/vax/tm-vax.h: Protect from multiple inclusion.
7058 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7059 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7060 * config/vax/tm-vaxbsd.h: ...here. New file.
7061 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7063 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7065 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7066 (BELIEVE_PCC_PROMOTION): Remove.
7067 (AP_REGNUM): Move to...
7068 * config/vax/nm-vax.h: ...here.
7069 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7070 (vax_breakpoint_from_pc): New function.
7071 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7072 and gdbarch_believe_pcc_promotion.
7074 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7076 * Makefile.in (vax_tdep_h): Define.
7077 (vax-tdep.o): Use $(vax_tdep_h).
7078 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7079 (vax_dump_tdep): New function.
7080 (_initialize_vax_tdep): Register vax_dump_tdep.
7081 * vax-tdep.h: Include osabi.h.
7082 (struct gdbarch_tdep): New.
7084 2002-06-26 Andrew Cagney <cagney@redhat.com>
7086 * frame.h (deprecated_generic_find_dummy_frame): Rename
7087 generic_find_dummy_frame.
7088 * blockframe.c (generic_find_dummy_frame): Make static.
7089 (deprecated_generic_find_dummy_frame): New function.
7090 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7091 generic_find_dummy_frame with deprecated_find_dummy_frame.
7092 (sh64_nofp_frame_init_saved_regs): Ditto.
7093 (sh_fp_frame_init_saved_regs): Ditto.
7094 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7095 (s390_frame_chain): Ditto.
7096 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7098 2002-06-26 Grace Sainsbury <graces@redhat.com>
7100 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7101 gdbarch vector are at the top.
7103 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7104 (FRAME_ARGS_ADDRESS): Remove.
7105 (FRAME_LOCALS_ADDRESS): Remove.
7106 (FRAME_NUM_ARGS): Remove.
7107 (FRAME_ARGS_SKIP): Remove.
7108 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7109 (m68k_gdbarch_init): Add gdbarch initializations for macros
7110 undefined in tm-m68k.h
7112 2002-06-26 Grace Sainsbury <graces@redhat.com>
7114 * monitor.h: Add the function regname to monitor_ops
7115 structure. This way NUM_REGS does not have to be a constant.
7116 * monitor.c (monitor_fetch_register): Added support for regname
7117 function. The function is called if the array regnames is NULL.
7118 (monitor_store_register): Same.
7119 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7121 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7122 cpu32bug_cmds.regname to point to new function.
7123 * abug-rom.c (abug_regname): Same as above.
7124 (init_abug_cmds): Same.
7125 * dbug-rom.c (dbug_regname): Same as above.
7126 (init_dbug_cmds): Same.
7127 * remote-est.c (est_regname): Same.
7128 (init_est_cmds): Same.
7129 * rom68k-rom.c (rom68k_regname): Same.
7130 (init_rom68k_cmds): Same.
7132 2002-06-25 Tom Tromey <tromey@redhat.com>
7134 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7136 2002-06-25 Andrew Cagney <cagney@redhat.com>
7138 * infrun.c (stop_registers): Change variable's type to ``struct
7140 (xmalloc_inferior_status): Delete function.
7141 (free_inferior_status): Delete function.
7142 (normal_stop): Use regcache_cpy.
7143 (struct inferior_status): Change type of fields ``stop_registers''
7144 and ``registers'' to ``struct regcache''.
7145 (write_inferior_status_register): Use regcache_write.
7146 (save_inferior_status): Instead of calling
7147 xmalloc_inferior_status, allocate the inf_status buffer directly.
7148 Use regcache_dup_no_passthrough and regcache_dup to save the
7150 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7151 Replace the stop_registers regcache instead of overriding it. Use
7152 regcache_xfree. Instead of calling free_inferior_status, xfree
7153 the buffer directly.
7154 (discard_inferior_status): Use regcache_xfree. Instead of calling
7155 free_inferior_status, xfree the buffer directly.
7156 (build_infrun): Use regcache_xmalloc.
7157 (_initialize_infrun): Delete redundant call to build_infrun.
7159 * Makefile.in (infcmd.o): Add $(regcache_h).
7161 * infcmd.c: Include "regcache.h".
7162 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7163 obtain the address of `stop_registers' register buffer.
7164 (print_return_value): Ditto.
7166 * inferior.h (struct regcache): Add opaque declaration.
7167 (stop_registers): Change variable's declared type to ``struct
7170 2002-06-24 Tom Tromey <tromey@redhat.com>
7172 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7173 * target.c (initialize_targets): Fixed typo in
7174 trust-readonly-sections `show' documentation.
7176 * main.c: Marked all strings with _().
7178 2002-06-24 Don Howard <dhoward@redhat.com>
7180 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7181 that means max CORE_ADDR+1.
7182 (lookup_mem_region): Ditto.
7183 (mem_info_command): Ditto.
7185 2002-06-24 Grace Sainsbury <graces@redhat.com>
7187 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7188 (REGISTER_BYTES_OK): Remove.
7189 (REGISTER_BYTES): Remove.
7190 (STORE_STRUCT_RETURN): Remove.
7191 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7192 (STORE_RETURN_VALUE): Remove.
7193 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7194 (FRAME_CHAIN): Remove.
7195 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7196 (FRAME_SAVED_PC): Remove.
7197 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7198 (m68k_store_struct_return): Add.
7199 (m68k_deprecated_extract_return_value): Add.
7200 (m68k_deprecated_extract_struct_value_address): Add.
7201 (m68k_store_return_value): Add.
7202 (m68k_frame_chain): Add.
7203 (m68k_frameless_function_invocation): Add.
7204 (m68k_frame_saved_pc): Add.
7205 (m68k_gdbarch_init): added set_gdbarch calls for new
7206 functions and deleted macros.
7208 2002-06-23 Tom Tromey <tromey@redhat.com>
7210 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7211 (ALLDEPFILES): Likewise.
7212 (udiheaders): Removed.
7213 (udip2soc.o): Likewise.
7214 (udi2go32.o): Likewise.
7216 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7218 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7220 * infrun.c (_initialize_infrun): Delete unnecessary call to
7223 * regcache.h: Update comments describing the regcache_cpy family
7225 (regcache_save, regcache_restore): Delete declaration.
7226 (regcache_save_no_passthrough): Delete declaration.
7227 (regcache_restore_no_passthrough): Delete declaration.
7228 * regcache.c (regcache_save): Delete function.
7229 (regcache_save_no_passthrough): Delete function.
7230 (regcache_restore): Delete function.
7231 (regcache_restore_no_passthrough): Delete function.
7233 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7235 * config/m68k/tm-m68k.h: Fix typo.
7236 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7237 (m68k_frame_init_saved_regs): Declare.
7239 2002-06-21 Jim Blandy <jimb@redhat.com>
7241 Remove some vestiges of Harris 88k support.
7242 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7243 register numbering quirk.
7244 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7245 odd symbols occurring in Harris 88k ELF targets.
7247 2002-06-21 Tom Tromey <tromey@redhat.com>
7249 * gdb_locale.h: New file.
7250 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7251 (defs_h): Added gdb_locale.h.
7252 * configure, config.in: Rebuilt.
7253 * configure.in (PACKAGE): Define.
7254 * defs.h: Include gdb_locale.h.
7255 * main.c (captured_main): Call setlocale, bindtextdomain,
7258 2002-06-21 Dave Brolley <brolley@redhat.com>
7260 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7261 * config/frv/frv.mt: New file.
7262 * config/frv/tm-frv.h: New file.
7263 * configure.tgt: Support frv-*-*.
7264 * Makefile.in (frv-tdep.o): New target.
7265 * frv-tdep.c: New file.
7266 * NEWS: Mention frv.
7268 2002-06-21 Dave Brolley <brolley@redhat.com>
7270 * MAINTAINERS: Add self to "Write After Approval" list.
7272 2002-06-21 Grace Sainsbury <graces@redhat.com>
7274 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7275 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7276 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7277 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7278 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7280 * m68k-tdep.c: Include arch-utils.h
7281 (m68k_register_raw_size): Add.
7282 (m68k_register_virtual_size): Add.
7283 (m68k_register_virtual_type): Add.
7284 (m68k_register_name): Add.
7285 (m68k_stack_align): Add.
7286 (m68k_register_byte): Add.
7287 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7290 2002-06-21 Grace Sainsbury <graces@redhat.com>
7292 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7293 m68k_find_saved_regs.
7294 (m68k_pop_frame): Removed saved_regs structure, and replaced
7295 references to it with frame->saved_regs.
7296 (m68k_gdbarch_init): Added function calls to initialize the
7298 (m68k_fix_call_dummy): Add.
7299 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7300 (CALL_DUMMY): Remove.
7301 (CALL_DUMMY_LENGTH): Remove.
7302 (CALL_DUMMY_START_OFFSET): Remove.
7303 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7304 (FIX_CALL_DUMMY): Remove.
7305 (PUSH_DUMMY_FRAME): Remove.
7306 (POP_FRAME): Remove.
7308 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7310 * parse.c (parse_fprintf): New function used to avoid calls to
7311 fprintf in bison parser generated debug code.
7312 * parser-defs.h: Declaration of new parse_fprintf function.
7313 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7314 Set YYDEBUG to 1 by default.
7315 Set YYFPRINTF as parse_fprintf.
7317 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7319 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7321 (pointer_encoding, enum ptr_encoding): New.
7322 (execute_cfa_program): Take care about pointer encoding.
7323 (dwarf2_build_frame_info): Only call parse_frame_info for
7324 .debug_frame and .eh_frame.
7325 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7326 fixed augmentation handling, added relative addressing,
7327 ignore duplicate FDEs. Added comments.
7328 * dwarf2cfi.c: Reindented.
7330 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7332 * event-top.c (command_handler): Don't use space_at_cmd_start
7333 unless there is sbrk() on the host. Assign time and space data
7334 to union fields of the appropriate length.
7336 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7338 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7339 x86_64_register_name. Return type changed to 'const char *'.
7340 (x86_64_register_name2nr): Rename to x86_64_register_number.
7341 (x86_64_gdbarch_init): Update to reflect the change.
7342 * x86-64-tdep.h: Ditto.
7343 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7344 (supply_fpregset): Ditto.
7346 2002-06-19 Andrew Cagney <cagney@redhat.com>
7348 * regcache.h: Update copyright.
7349 (struct regcache, struct gdbarch): Add opaque declarations.
7350 (current_regcache): Declare global variable.
7351 (regcache_read, regcache_write): Add gdbarch parameter.
7352 (regcache_save, regcache_save_no_passthrough)
7353 (regcache_restore, regcache_restore_no_passthrough)
7354 (regcache_dup, regcache_dup_no_passthrough)
7355 (regcache_cpy, regcache_cpy_no_passthrough)
7356 (deprecated_grub_regcache_for_registers)
7357 (deprecated_grub_regcache_for_register_valid)
7358 (regcache_valid_p): Add function declarations.
7360 * regcache.c: Update copyright.
7361 (regcache_descr_handle): New global variable.
7362 (struct regcache_descr): Define.
7363 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7364 (regcache_descr, xfree_regcache_descr): New functions.
7365 (struct regcache): Define.
7366 (regcache_xmalloc, regcache_xfree): New functions.
7367 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7368 (regcache_dup, regcache_dup_no_passthrough): New functions.
7369 (regcache_valid_p, regcache_read_as_address): New functions.
7370 (deprecated_grub_regcache_for_registers): New function.
7371 (deprecated_grub_regcache_for_register_valid): New function.
7372 (current_regcache): New global variable.
7373 (register_buffer): Add regcache parameter. Update calls.
7374 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7375 (read_register_gen, write_register_gen): Update register_buffer
7376 call. Test for legacy_p instead of gdbarch_register_read_p or
7377 gdbarch_register_write_p.
7378 (regcache_collect): Update register_buffer call.
7379 (build_regcache): Rewrite. Use deprecated grub functions.
7380 (regcache_save, regcache_save_no_passthrough): New functions.
7381 (regcache_restore, regcache_restore_no_passthrough): New
7383 (_initialize_regcache): Create the regcache_data_handle. Swap
7384 current_regcache global variable.
7386 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7387 parameter to regcache_read and regcache_write calls.
7388 (sh4_register_read): Ditto.
7389 (sh64_pseudo_register_read): Ditto.
7390 (sh64_register_read): Ditto.
7391 (sh_pseudo_register_write): Ditto.
7392 (sh4_register_write): Ditto.
7393 (sh64_pseudo_register_write): Ditto.
7394 (sh64_register_write): Ditto.
7396 * defs.h (XCALLOC): Define.
7398 2002-06-19 Grace Sainsbury <graces@redhat.com>
7400 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7401 * m68k-tdep.c (m68k_gdbarch_init): Added.
7402 (m68k_dump_tdep): Added.
7404 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7406 * ada-lang.c (fill_in_ada_prototype): Update comment.
7408 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7410 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7412 (mips_abi_string, mips_abi_strings): New.
7413 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7414 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7415 tdep->mips_abi_string. Honor mips_abi_string. Default to
7416 O32 if no ABI is found.
7417 (mips_dump_tdep): Use mips_abi_strings.
7418 (mips_abi_update): New function.
7419 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7420 ``set mips abi'' and ``show mips abi''. Check the size of
7423 2002-06-19 Andrew Cagney <cagney@redhat.com>
7425 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7428 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7430 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7431 current frame using only the first stack size adjustment. All
7432 subsequent size adjustments are not considered to be part of
7433 the "static" part of the current frame.
7434 Compute the address of the saved registers relative to the
7435 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7436 in use in this frame.
7438 2002-06-18 Don Howard <dhoward@redhat.com>
7440 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7441 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7442 suggesting this solution.
7444 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7446 * config/romp/xm-rtbsd.h: Delete file.
7447 * config/romp/rtbsd.mh: Delete file.
7449 2002-06-18 Keith Seitz <keiths@redhat.com>
7451 * breakpoint.c (condition_command): Post breakpoint_modify
7452 when a condition is added to an existing breakpoint.
7453 (commands_command): Likewise for commands.
7454 (set_ignore_count): Likewise for ignore counts.
7455 If no tty, do not simply return, still need to send event
7457 (ignore_command): Only print a newline if the command came
7459 Don't call breakpoints_changed, since this is now properly
7460 handled by set_ignore_count.
7462 2002-06-18 Andrew Cagney <cagney@redhat.com>
7464 * MAINTAINERS: Note that cris-elf target can be compiled with
7466 * cris-tdep.c (cris_register_name): Make return type constant.
7467 (cris_breakpoint_from_pc): Ditto.
7469 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7471 * frame.h (struct frame_info): Change type of context to
7474 2002-06-17 Andrew Cagney <cagney@redhat.com>
7476 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7478 * gdbarch.h, gdbarch.c: Regenerate.
7479 * config/mips/tm-mips.h (mips_register_name): Update.
7480 * i386-tdep.h (i386_register_name): Update.
7481 * mips-tdep.c (mips_register_name): Update
7482 * alpha-tdep.c (alpha_register_name): Update.
7483 * arch-utils.c (legacy_register_name): Update.
7484 * arch-utils.h (legacy_register_name): Update.
7485 * avr-tdep.c (avr_register_name): Update.
7486 * ia64-tdep.c (ia64_register_name): Update.
7487 * i386-tdep.c (i386_register_name): Update.
7488 * sparc-tdep.c (sparc32_register_name): Update.
7489 (sparc64_register_name): Update.
7490 (sparclite_register_name): Update.
7491 (sparclet_register_name): Update.
7492 * sh-tdep.c (sh_generic_register_name): Update.
7493 (sh_sh_register_name): Update.
7494 (sh_sh3_register_name): Update.
7495 (sh_sh3e_register_name): Update.
7496 (sh_sh_dsp_register_name): Update.
7497 (sh_sh3_dsp_register_name): Update.
7498 (sh_sh4_register_name): Update.
7499 (sh_sh64_register_name): Update.
7500 * s390-tdep.c (s390_register_name): Update.
7501 * rs6000-tdep.c (rs6000_register_name): Update.
7502 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7503 (ns32k_register_name_32382): Update.
7504 * d10v-tdep.c (d10v_ts2_register_name): Update.
7505 (d10v_ts3_register_name): Update.
7506 * xstormy16-tdep.c (xstormy16_register_name): Update.
7507 * vax-tdep.c (vax_register_name): Update.
7508 * v850-tdep.c (v850_register_name): Update.
7509 * m68hc11-tdep.c (m68hc11_register_name): Update.
7510 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7511 (am33_register_name): Update.
7513 2002-06-17 Grace Sainsbury <graces@redhat.com>
7515 * m68k-tdep.c: Reindented.
7517 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7519 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7520 list of predefined types.
7522 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7524 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7525 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7526 REGISTER_CONVERT_TO_RAW): Remove defines.
7527 (i386_register_virtual_type, i386_register_convertible,
7528 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7530 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7531 macros mentioned above.
7533 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7534 (i386lynx_saved_pc_after_call): Remove prototype.
7535 * i386ly-tdep.c: Include "i386-tdep.h".
7536 (i386lynx_saved_pc_after_call): Make static. Use
7537 read_memory_nobpt instead of read_memory. Use
7538 read_memory_unsigned_integer instead of read_memory_integer.
7539 (i386lynx_init_abi): New function.
7540 (i386lynx_coff_osabi_sniffer): New function.
7541 (_initialize_i386bsd_tdep): New function.
7543 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7544 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7545 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7546 (i386_fix_call_dummy): Remove prototype.
7547 * i386-tdep.c (i386_call_dummy_words): New variable.
7548 (i386_gdbarch_init): Adjust for removal of the
7549 macros mentioned above.
7551 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7553 * command.h (add_setshow_auto_boolean_cmd): Replace
7554 add_set_auto_boolean_cmd.
7555 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7556 add_set_auto_boolean_cmd.
7557 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7558 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7559 mask-address'' command.
7560 (show_mask_address): Add cmd parameter.
7561 * remote.c (add_packet_config_cmd): Update. Change type of
7562 set_func and show_func to cmd_sfunc_ftype.
7563 (_initialize_remote): Update `set remote Z-packet'
7564 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7565 (show_remote_protocol_e_packet_cmd): Ditto.
7566 (show_remote_protocol_E_packet_cmd): Ditto.
7567 (show_remote_protocol_P_packet_cmd): Ditto.
7568 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7569 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7570 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7571 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7572 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7573 (show_remote_protocol_Z_packet_cmd): Ditto.
7574 (show_remote_protocol_binary_download_cmd): Ditto.
7575 (show_remote_cmd): Pass NULL to all of above.
7577 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7579 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7580 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7581 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7582 POP_FRAME): Remove defines.
7583 (i386_push_arguments, i386_store_struct_return,
7584 i386_extract_return_value, i386_store_return_value,
7585 i386_extract_struct_value_address, i386_push_dummy_frame,
7586 i386_pop_frame): Renove prototypes.
7587 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7588 macros mentioned above.
7590 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7592 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7593 add_set_boolean_cmd.
7594 (add_setshow_cmd): New function.
7595 * command.h (add_setshow_boolean_cmd): Replace
7596 add_set_boolean_cmd.
7597 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7598 and ``set rdiromatzero''.
7599 * maint.c (_initialize_maint_cmds): Update commented out code.
7600 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7601 * target.c (initialize_targets): Update `set
7602 trust-readonly-sections'.
7603 * remote.c (_initialize_remote): Update `set remotebreak'.
7605 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7607 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7608 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7609 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7610 fit into multi-arch framework.
7611 (i386_breakpoint_from_pc): New function.
7612 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7615 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7616 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7617 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7618 (i386_frameless_function_invocation, i386_frame_num_args,
7619 i386_frame_init_saved_regs): Remove prototypes.
7620 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7621 macros mentioned above.
7623 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7625 * cli/cli-decode.c (set_cmd_cfunc): Update.
7626 (set_cmd_sfunc): Update.
7627 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7628 (set_cmd_sfunc, set_cmd_cfunc): Update.
7629 * cli/cli-decode.h: Update.
7631 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7633 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7634 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7636 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7638 * defs.h (auto_boolean): Declare enum.
7639 * command.h (cmd_auto_boolean): Delete enum.
7640 * mips-tdep.c (mask_address_var): Update.
7641 (mips_mask_address_p): Update.
7642 (show_mask_address): Update.
7643 * remote.c (struct packet_config): Update.
7644 (update_packet_config): Update.
7645 (show_packet_config_cmd): Update.
7646 (packet_ok): Update.
7647 (add_packet_config_cmd): Update.
7648 (_initialize_remote):
7649 * command.h: Update.
7650 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7651 (do_setshow_command): Update.
7652 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7653 * cli/cli-decode.h: Update.
7655 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7657 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7658 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7659 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7660 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7661 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7662 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7664 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7665 list of DJGPP COFF targets.
7667 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7668 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7669 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7670 (FP0_REGNUM): Remove define.
7671 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7672 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7673 (i386_register_virtual_size): Remove protoype.
7674 * i386-tdep.c (i386_register_virtual_size): Removed.
7675 (i386_extract_return_value, i386_store_return_value): Use
7676 FP0_REGNUM instead of NUM_FREGS to determine whether the
7677 floating-point registers are available.
7678 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7679 Adjust for removal of macros mentioned above.
7681 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7683 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7685 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7687 (supply_gregset, fill_gregset): Remove use of register keyword and
7688 remove declaration for regmap. Use I386_NUM_GREGS instead of
7689 NUM_REGS and NUM_FREGS.
7690 (FPREGSET_FSAVE_OFFSET): Remove.
7691 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7692 NUM_FREGS to determine whether the floating-point registers are
7695 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7696 gnu_store_registers): Replace usage of NUM_GREGS with
7699 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7700 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7701 usage of NUM_GREGS with I386_NUM_GREGS.
7703 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7705 * i386bsd-nat.c: Include "i386-tdep.h".
7706 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7709 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7710 and associated comment. They no longer make any sense, since we
7711 don't use this file anymore on Linux.
7713 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7714 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7715 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7716 elements in these arrays.
7717 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7720 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7722 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7723 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7725 2002-06-14 Andrew Cagney <cagney@redhat.com>
7727 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7728 EXTRACT_RETURN_VALUE.
7729 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7730 EXTRACT_STRUCT_VALUE_ADDRESS.
7731 * gdbarch.h, gdbarch.c: Regenerate.
7733 * values.c (value_being_returned): Handle
7734 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7735 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7737 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7738 * arm-tdep.c (arm_gdbarch_init): Update.
7739 * avr-tdep.c (avr_gdbarch_init): Update.
7740 * cris-tdep.c (cris_gdbarch_init): Update.
7741 * d10v-tdep.c (d10v_gdbarch_init): Update.
7742 * ia64-tdep.c (ia64_gdbarch_init): Update.
7743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7744 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7745 * s390-tdep.c (s390_gdbarch_init): Update.
7746 * sh-tdep.c (sh_gdbarch_init): Update.
7747 * s390-tdep.c (s390_gdbarch_init): Update.
7748 * sparc-tdep.c (sparc_gdbarch_init): Update.
7749 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7750 * v850-tdep.c (v850_gdbarch_init): Update.
7751 * vax-tdep.c (vax_gdbarch_init): Update.
7752 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7755 * config/arc/tm-arc.h: Update.
7756 * config/d30v/tm-d30v.h: Update.
7757 * config/fr30/tm-fr30.h: Update.
7758 * config/h8300/tm-h8300.h: Update.
7759 * config/h8500/tm-h8500.h: Update.
7760 * config/i386/tm-i386.h: Update.
7761 * config/i386/tm-ptx.h: Update.
7762 * config/i386/tm-symmetry.h: Update.
7763 * config/i960/tm-i960.h: Update.
7764 * config/m32r/tm-m32r.h: Update.
7765 * config/m68k/tm-delta68.h: Update.
7766 * config/m68k/tm-linux.h: Update.
7767 * config/m68k/tm-m68k.h: Update.
7768 * config/m88k/tm-m88k.h: Update.
7769 * config/mcore/tm-mcore.h: Update.
7770 * config/mips/tm-mips.h: Update.
7771 * config/mn10200/tm-mn10200.h: Update.
7772 * config/pa/tm-hppa.h: Update.
7773 * config/pa/tm-hppa64.h: Update.
7774 * config/sparc/tm-sp64.h: Update.
7775 * config/sparc/tm-sparc.h: Update.
7776 * config/sparc/tm-sparclet.h: Update.
7777 * config/z8k/tm-z8k.h: Update.
7779 2002-06-14 Andrew Cagney <cagney@redhat.com>
7781 * Makefile.in (i386_linux_tdep_h): Define.
7782 (i386_tdep_h, i387_tdep_h): Define.
7783 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7784 $(i386_tdep_h) and $(i387_tdep_h).
7785 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7787 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7789 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7790 Already covered by the default.
7792 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7793 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7794 (i386_gdbarch_init): Initialize long_double_format and long_double
7797 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7798 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7800 * config/i386/i386sol2.mh: ... here.
7801 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7802 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7803 (SIGCONTEXT_PC_OFFSET): Remove define.
7804 (IN_SIGTRAMP): Remove define.
7805 * i386-sol2-tdep.c: New file.
7807 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7808 * config/i386/tm-i386nw.h: Removed.
7810 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7811 USE_STRUCT_CONVENTION): Remove defines.
7812 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7813 (get_longjmp_target): Remove prototype.
7814 (IN_SIGTRAMP): Remove define.
7815 (i386bsd_in_sigtramp): Remove prototype.
7816 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7817 function. Update comment accordingly
7818 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7819 (FRAME_SAVED_PC): Remove define.
7820 (i386bsd_frame_saved_pc): Remove prototype.
7821 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7822 GET_LONGJMP_TARGET): Remove defines.
7823 (get_longjmp_target): Remove prototype.
7824 (IN_SIGTRAMP): Remove define.
7825 (i386bsd_in_sigtramp): Remove prototype.
7826 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7827 function. Update comment accordingly
7828 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7829 (FRAME_SAVED_PC): Remove define.
7830 (i386bsd_frame_saved_pc): Remove prototype.
7831 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7833 (USE_STRUCT_CONVENTION): Remove prototype.
7834 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7836 (_initialize_i386bsd_nat): Revise logic to determine some
7837 constants at compile time when compiling a native GDB. Warn if
7838 things don't match up with what we expect.
7839 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7841 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7842 to use date stored in `struct gdbarch_tdep'.
7843 (i386bsd_sigcontext_offset): Remove varaible.
7844 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7845 stored in `struct gdbarch_tdep'.
7846 (i386bsd_frame_saved_pc): Make static.
7847 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7848 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7849 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7850 i386fbsd4_sc_pc_offset): New variables.
7851 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7852 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7854 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7856 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7857 Modify the value of i386fbsd_sigtramp_start and
7858 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7859 i386fbsd_sigtramp_end.
7860 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7863 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7864 define to i386-linux-tdep.h.
7865 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7866 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7868 (i386_linux_register_name, i386_linux_register_byte,
7869 i386_linux_register_raw_size): Remove prototypes.
7870 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7871 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7872 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7873 TARGET_WRITE_PC): Remove defines.
7874 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7875 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7876 i386_linux_write_pc): Remove prototypes.
7877 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7878 (get_longjmp_target): Remove prototype.
7879 * i386-linux-tdep.h: New file.
7880 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7881 * i386-linux-tdep.c: Include "i386-tdep.h" and
7882 "i386-linux-tdep.h".
7883 (i386_linux_register_name, i386_linux_register_byte,
7884 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7885 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7887 (i386_linux_init_abi): New function.
7888 (_initialize_i386_linux_tdep): New function.
7890 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7891 (i386_saved_pc_after_call): Remove prototype.
7892 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7893 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7894 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7895 (i386_register_name, i386_stab_reg_to_regnum,
7896 i386_dwarf_reg_to_regnum): Remove prototypes.
7897 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7898 SIZEOF_SSE_REGS): Remove defines.
7899 (REGISTER_BYTES): Remove define.
7900 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7901 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7902 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7903 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7904 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7905 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7906 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7907 (get_longjmp_target): Remove prototype.
7908 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7909 (sigtramp_saved_pc): Remove define.
7910 (i386v4_sigtramp_saved_pc): Remove prototype.
7911 * config/i386/tm-go32.h (FRAME_CHAIN,
7912 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7913 (i386go32_frame_saved_pc): Remove prototype.
7914 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7915 (get_longjmp_target): Remove prototype.
7916 * i386-tdep.h: Include "osabi.h".
7917 (enum i386_abi): Removed.
7918 (enum struct_return): New enum.
7919 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7920 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7921 sc_pc_offset members.
7922 (i386_gdbarch_register_os_abi): Remove prototype.
7923 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7924 I386_SSE_NUM_REGS): New defines.
7925 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7926 I386_SSE_SIZEOF_REGS): New defines.
7927 (i386_register_name, i386_register_byte, i386_register_raw_size):
7929 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7930 (i386bsd_sigtramp_saved_pc): New prototype.
7931 * i386-tdep.c: Don't include "elf-bfd.h".
7932 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7933 i386_frame_chain, i386_saved_pc_after_call): Make static.
7934 (i386_frame_saved_pc): Rewrite to call architecture dependent
7935 function to deal with signal handlers. Make static.
7936 (i386go32_frame_saved_pc): Removed.
7937 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7939 (i386_get_longjmp_target): New function.
7940 (default_struct_convention, pcc_struct_convention,
7941 reg_struct_convention, valid_conventions, struct_convention): New
7943 (i386_use_struct_convention): New function.
7944 (i386v4_sigtramp_saved_pc): Renamed to
7945 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7946 (i386_pc_in_sigtramp): New function.
7947 (i386_abi_names): Removed.
7948 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7949 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7951 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7952 i386_gdbarch_register_os_abi): Removed.
7953 (struct i386_abi_handler): Removed.
7954 (i386_abi_handler_list): Removed.
7955 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7957 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7958 i386_nw_init_abi): New functions.
7959 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7960 Use set_gdbarch_xxx() calls instead of relying on macros for a
7962 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7963 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7964 Register the various architecture variants defined in this file.
7966 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7968 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7969 (struct main_type): Remove arg_types member. Update comments for
7971 (TYPE_ARG_TYPES): Remove.
7972 (TYPE_FN_FIELD_ARGS): Update.
7973 (smash_to_method_type): Update prototype.
7975 * c-typeprint.c (cp_type_print_method_args): Take method type
7976 instead of argument list. Use new argument layout. Simplify.
7977 (c_type_print_args): Use new argument layout. Simplify.
7978 (c_type_print_base): Update call to cp_type_print_method_args.
7979 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7980 argument; use die->type instead. Update call to
7981 smash_to_method_type.
7982 (read_structure_scope): Update call to dwarf2_add_member_fn.
7983 * gdbtypes.c (allocate_stub_method): Update comment.
7984 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7985 Use new argument layout.
7986 (check_stub_method): Use new argument layout. Don't count
7987 void as an argument.
7988 (print_arg_types): Update comments. Use new argument layout.
7989 (recursive_dump_type): Don't print arg_types member.
7990 * hpread.c (hpread_read_struct_type): Use new argument layout.
7991 (fixup_class_method_type): Likewise.
7992 (hpread_type_lookup): Likewise.
7993 * stabsread.c (read_type): Update calls to read_args and
7994 smash_to_method_type.
7995 (read_args): Use new argument layout. Simplify.
7996 * valops.c (typecmp): Use new argument layout. Update parameters
7997 and comments. Simplify.
7998 (hand_function_call): Use new argument layout.
7999 (search_struct_method): Update call to typecmp.
8000 (find_overload_match): Use new argument layout.
8002 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8004 * NEWS: Mention multithreaded debug support for gdbserver.
8006 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8008 * MAINTAINERS: Mention NEWS.
8010 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8012 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8013 (struct mips_objfile_private, compare_pdr_entries): New.
8014 (non_heuristic_proc_desc): Read the ".pdr" section if it
8017 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8019 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8020 (arm_debug): New static variable.
8021 (_initialize_arm_tdep): Add ``set debug arm'' command.
8023 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8025 * Makefile.in (sim_arm_h): Define.
8026 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8027 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8028 (arm_register_sim_regno): New function, map an internal REGNUM
8029 onto a simulator register number.
8030 (arm_gdbarch_init): Set register_sim_regno.
8032 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8034 * MAINTAINERS: Add self.
8036 2002-06-11 Jim Blandy <jimb@redhat.com>
8038 * source.c (source_info): Mention whether the symtab has
8039 information about preprocessor macros.
8041 Call the command `info macro', not `show macro'.
8042 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8044 (_initialize_macrocmd): Register `info_macro_command' in
8045 `infolist', not `showlist'.
8047 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8049 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8050 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8051 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8052 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8053 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8055 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8056 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8057 (_initialize_mips_tdep): Remove dead code.
8058 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8059 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8060 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8061 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8062 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8063 MIPS_LAST_FP_ARG_REGNUM): Remove.
8065 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8067 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8068 (unwind_tmp_obstack_free, parse_frame_info)
8069 (update_context, cfi_read_fp, cfi_write_fp)
8070 (cfi_frame_chain, cfi_init_extra_frame_info)
8071 (cfi_virtual_frame_pointer): Use the above function.
8072 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8074 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8076 * v850-tdep.c (v850_type_is_scalar): New function.
8077 (v850_use_struct_convention): Match current gcc implementation
8078 as close as possible.
8079 (v850_push_arguments): Fix stack_offset handling. Don't write
8080 struct_addr into register. This is done by v850_store_struct_return.
8081 (v850_extract_return_value): Care for structs.
8082 (v850_store_return_value): Ditto.
8083 (v850_store_struct_return): Actually write address.
8085 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8087 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8088 without debug information too.
8090 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8092 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8093 Make multi-arch pure.
8094 * gdbarch.h, gdbarch.c: Re-generate.
8095 * arm-tdep.c (arm_print_float_info): Update.
8096 * arch-utils.h (default_print_float_info): Update.
8097 * arch-utils.c (default_print_float_info): Update.
8098 * infcmd.c (float_info): Update call.
8100 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8102 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8103 the front of the initialize list.
8105 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8107 * infrun.c (struct inferior_status): Replace fields
8108 selected_frame_address and selected_level with field
8110 (save_inferior_status): Update. Use get_frame_id.
8111 (struct restore_selected_frame_args): Delete.
8112 (restore_selected_frame): Update. Use frame_find_by_id.
8113 (restore_inferior_status): Update.
8115 * breakpoint.h (struct breakpoint): Change type of
8116 watchpoint_frame to frame_id.
8117 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8118 call to get_current_frame.
8119 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8121 (watchpoint_check): Use frame_find_by_id.
8123 * frame.h (record_selected_frame): Delete declaration.
8124 * stack.c (record_selected_frame): Delete function.
8126 * frame.h (struct frame_id): Define.
8127 (get_frame_id): Declare.
8128 (frame_find_by_id): Declare.
8129 * frame.c (frame_find_by_id): New function.
8130 (get_frame_id): New function.
8132 2002-06-10 Andrey Volkov <avolkov@transas.com>
8134 * ser-e7kpc.c: Fix duplicated define and call of
8135 _initialize_ser_e7000pc
8137 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8139 * signals/signals.c (target_signal_from_host): Fix #ifdef
8141 (do_target_signal_to_host): Likewise.
8143 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8145 * mips-tdep.c (mips_find_abi_section): New function.
8146 (mips_gdbarch_init): Call it.
8148 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8150 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8151 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8152 after Andrew's 2002-06-08 gdbarch change.
8154 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8156 * i386-linux-nat.c (suppy_gregset): Don't supply
8157 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8159 (fill_gregset): Don't fetch it under the same circumstances.
8161 2002-06-09 Andrew Cagney <cagney@redhat.com>
8163 * Makefile.in (callback_h): Define.
8164 (remote_sim_h): Update path to remote-sim.h.
8165 (remote-rdp.o): Add $(callback_h).
8166 (remote-sim.o): Use $(callback_h).
8167 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8168 * remote-rdp.c: Include "gdb/callback.h".
8170 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8172 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8173 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8175 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8177 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8178 * rdi-share/serpardr.c: Ditto.
8179 * rdi-share/unixcomm.c: Ditto.
8180 * rdi-share/serdrv.c: Ditto.
8181 * rdi-share/hostchan.h: Ditto.
8182 * rdi-share/hostchan.c: Ditto.
8183 * rdi-share/host.h: Ditto.
8184 * rdi-share/devsw.c: Ditto.
8186 * objfiles.h: Change type of obj_private to void pointer.
8187 * pa64solib.c: Update copyright. Don't include "assert.h", use
8188 strcmp instead of STREQ, use LONGEST, do not use PTR
8189 * somsolib.c: Ditto.
8191 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8192 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8193 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8195 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8197 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8198 (default_get_saved_register): Delete function.
8199 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8200 generic_unwind_get_saved_register.
8201 * gdbarch.h, gdbarch.c: Re-generate.
8203 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8205 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8206 generic_func_frame_chain_valid.
8207 * gdbarch.h, gdbarch.c: Re-generate.
8208 * blockframe.c (generic_func_frame_chain_valid): Only check
8209 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8210 passing FP to PC_IN_CALL_DUMMY.
8213 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8215 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8216 (register_gdbarch_data): Initialize init_p.
8217 (gdbarch_data): Initialize data pointer using the init function.
8218 (init_gdbarch_data): Delete function.
8219 (gdbarch_update_p): Update.
8220 (initialize_non_multiarch): Update.
8221 (struct gdbarch): Add field initialized_p.
8222 * gdbarch.h, gdbarch.c: Re-generate.
8224 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8226 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8227 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8228 better do the things actually here.
8229 * x86-64-tdep.c (x86_64_register_name2nr): New.
8230 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8231 (x86_64_gdbarch_init): Respect the above change.
8232 * x86-64-tdep.h (x86_64_register_name2nr)
8233 (x86_64_register_nr2name): Add prototypes.
8234 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8236 2002-06-06 Michael Snyder <msnyder@redhat.com>
8238 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8239 Delete extra braces and re-indent.
8240 (d10v_store_return_value): Char return values
8241 must be shifted over by one byte in R0.
8242 (d10v_extract_return_value): Delete extra braces, re-indent.
8244 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8246 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8247 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8248 (d10v_integer_to_address): Rewrite.
8249 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8250 the d10v specific functions which take care of converting to the
8253 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8255 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8256 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8258 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8260 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8262 * config/tm-linux.h: Ditto.
8263 * config/alpha/tm-alphalinux.h: Ditto.
8264 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8265 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8266 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8267 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8268 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8269 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8270 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8271 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8272 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8273 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8274 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8275 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8276 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8277 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8278 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8279 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8280 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8281 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8282 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8283 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8284 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8285 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8286 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8287 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8288 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8289 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8290 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8291 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8292 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8293 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8294 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8295 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8296 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8297 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8298 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8299 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8300 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8302 2002-05-04 Aidan Skinner <aidan@velvet.net>
8304 * ada-exp.tab.c: New file
8305 * ada-exp.y: New file
8306 * ada-lang.c: New file
8307 * ada-lang.h: New file
8308 * ada-lex.c: New file
8309 * ada-lex.l: New file
8310 * ada-tasks.c: New file
8311 * ada-typeprint.c: New file
8312 * ada-valprint.c: New file
8314 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8316 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8317 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8319 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8321 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8322 insetead of ppc-linux-tdep.o.
8323 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8324 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8326 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8328 2002-05-07 Christian Groessler <chris@groessler.org>
8329 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8330 bit register contents for little endian hosts.
8332 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8334 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8337 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8339 * gdbarch.h: Regenerate.
8341 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8343 * MAINTAINERS: Add everyone to write-after-approval list.
8345 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8347 * stack.c (frame_info): Use frame_register_unwind instead of
8348 saved_regs. Mention when the SP is on the stack or in a register.
8350 * frame.h (frame_register_unwind_ftype): Define. Document.
8351 (struct frame_info): Add field register_unwind and
8352 register_unwind_cache.
8353 (frame_register_unwind): Declare.
8354 (generic_unwind_get_saved_register): Declare.
8356 * frame.c (frame_register_unwind): New function.
8357 (generic_unwind_get_saved_register): New function.
8359 * blockframe.c (generic_call_dummy_register_unwind): New function.
8360 (frame_saved_regs_register_unwind): New function.
8361 (set_unwind_by_pc): New function.
8362 (create_new_frame): New function.
8363 (get_prev_frame): New function.
8365 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8367 * a29k-share/: Delete directory.
8368 * remote-vx29k.c: Delete file.
8370 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8372 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8373 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8375 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8377 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8378 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8381 (sparcnbsd-tdep.o): New dependency lists.
8382 * NEWS: Note new UltraSPARC NetBSD native configuration.
8383 * configure.host (sparc64-*-netbsd*): New host.
8384 * configure.tgt (sparc-*-netbsdelf*)
8385 (sparc-*-netbsd*): Set gdb_target to nbsd.
8386 (sparc64-*-netbsd*): New target.
8387 * sparc64nbsd-nat.c: New file.
8388 * sparcnbsd-nat.c: New file.
8389 * sparcnbsd-tdep.c: New file.
8390 * sparcnbsd-tdep.h: New file.
8391 * config/sparc/nbsd.mt: New file.
8392 * config/sparc/nbsd64.mh: New file.
8393 * config/sparc/nbsd64.mt: New file.
8394 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8395 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8397 * config/sparc/nbsdaout.mt: Remove.
8398 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8399 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8401 * config/sparc/nbsdelf.mt: Remove.
8402 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8403 sparc-nat.c compatiblity defines.
8404 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8405 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8406 * config/sparc/tm-nbsd64.h: New file.
8407 * config/sparc/tm-nbsdaout.h: Remove.
8408 * config/sparc/xm-nbsd.h: Remove.
8410 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8412 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8413 * sparc-tdep.c: Include osabi.h.
8414 (gdbarch_tdep): Add osabi member.
8415 (_initialize_sparc_tdep): Use gdbarch_register.
8416 (sparc_gdbarch_init): Use generic OS ABI framework.
8417 (sparc_dump_tdep): New function.
8419 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8421 * corefile.c (do_captured_read_memory_integer): Return non-zero
8423 (safe_read_memory_integer): Copy result of memory read when
8424 status is non-zero. Also, add comments.
8426 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8428 * Makefile.in (ppc_tdep_h): Define.
8431 (rs6000-tdep.o): Use $(ppc_tdep_h).
8434 (ppcnbsd-tdep.o): New dependency lists.
8435 * ppc-tdep.h: Use generic OS ABI framework.
8436 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8437 (ppc_linux_init_abi): New functions.
8438 (ppc_sysv_abi_broken_use_struct_convention)
8439 (ppc_sysv_abi_use_struct_convention)
8440 (ppc_sysv_abi_push_arguments): Move to...
8441 * ppc-sysv-tdep.c: ...here.
8442 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8443 * rs6000-tdep.c (process_note_abi_tag_sections)
8444 (get_elfosabi): Remove.
8445 (rs6000_gdbarch_init): Use generic OS ABI framework.
8446 (rs6000_dump_tdep): New function.
8447 (_initialize_rs6000_tdep): Use gdbarch_register.
8448 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8449 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8450 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8451 of ppc-linux-tdep.o.
8452 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8453 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8454 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8455 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8456 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8457 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8459 2002-05-29 Jim Blandy <jimb@redhat.com>
8461 * macroscope.c (default_macro_scope): Put `void' in empty argument
8464 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8466 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8467 * arch-utils.c: Include "sim-regno.h".
8468 * gdbarch.sh: Don't include "sim-regno.h".
8469 * gdbarch.h, gdbarch.c: Regenerate.
8470 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8472 * arch-utils.h (legacy_register_sim_regno): To here.
8473 * remote-sim.c (legacy_register_sim_regno): Move function from
8475 * arch-utils.c (legacy_register_sim_regno): To here.
8477 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8479 * sim-regno.h: New file.
8480 * Makefile.in (sim_regno_h): Define.
8481 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8482 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8483 (legacy_register_sim_regno): New function.
8484 (one2one_register_sim_regno): New function.
8485 (gdbsim_fetch_register): Rewrite.
8486 (gdbsim_store_register): Only store a register when
8487 REGISTER_SIM_REGNO is valid.
8488 * d10v-tdep.c: Include "sim-regno.h".
8489 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8490 (d10v_ts3_register_sim_regno): Ditto.
8491 * gdbarch.sh: Include "sim-regno.h".
8492 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8493 * gdbarch.h, gdbarch.c: Regenerate.
8494 * arch-utils.h (default_register_sim_regno): Delete declaration.
8495 * arch-utils.c (default_register_sim_regno): Delete function.
8497 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8499 * ppcnbsd-nat.c: Rewrite.
8500 * ppcnbsd-tdep.c: New file.
8501 * ppcnbsd-tdep.h: New file.
8502 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8503 solib.o, and solib-svr4.o.
8504 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8505 nbsd-tdep.o, and corelow.o.
8507 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8509 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8510 `tr' and `sed'. Mention that `broken' targets are not expected to
8513 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8515 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8516 Let PC point right after the prologue before looking up symbols.
8518 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8520 * i386-tdep.c (i386_register_virtual_type): Return
8521 builtin_type_vec128i for SSE registers.
8523 * gdbtypes.h (builtin_type_vec128i): Declare.
8525 * gdbtypes.c (build_builtin_type_vec128i): New function.
8526 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8527 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8528 (build_gdbtypes): Initialize new builtin vector types.
8529 (_initialize_gdbtypes): Register new vector types with gdbarch.
8531 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8533 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8534 since it has been multi-arch'd.
8535 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8536 Move Alpha and VAX multi-arch news entries to same section
8537 as other multi-arch news.
8539 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8541 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8542 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8543 static. Rename some register numbers to put them in ns32k-tdep
8545 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8546 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8548 (_initialize_ns32k_tdep): Use gdbarch_register.
8549 * ns32k-tdep.h: New file.
8550 * ns32knbsd-tdep.c: New file.
8551 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8552 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8553 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8554 REGISTER_BYTES, REGISTER_BYTE): Remove.
8555 * config/ns32k/tm-ns32k.h: New file.
8556 * config/ns32k/tm-umax.h: Remove.
8558 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8560 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8561 ns32k_store_struct_return, ns32k_extract_return_value,
8562 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8564 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8565 ns32k_saved_pc_after_call.
8566 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8567 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8568 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8569 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8570 ns32k_extract_struct_value_address.
8572 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8574 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8575 ns32k_fix_call_dummy): New.
8576 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8577 ns32k_call_dummy_words.
8578 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8579 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8580 CALL_DUMMY_NARGS): Remove.
8581 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8583 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8585 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8586 ns32k_frame_saved_pc, ns32k_frame_args_address,
8587 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8588 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8589 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8590 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8591 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8592 (BREAKPOINT): Remove..
8593 (FRAME_CHAIN): Define as ns32k_frame_chain.
8594 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8595 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8596 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8597 (FRAME_FIND_SAVED_REGS): Remove.
8598 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8599 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8600 (POP_FRAME): Define as ns32k_pop_frame.
8602 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8604 * ns32k-tdep.c (ns32k_register_byte_32082,
8605 ns32k_register_byte_32382, ns32k_register_raw_size,
8606 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8608 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8609 ns32k_register_byte_32382.
8610 * config/ns32k/tm-umax.h: Update copyright years.
8611 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8612 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8613 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8614 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8615 (ns32k_get_enter_addr): Fix prototype.
8617 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8619 * ns32k-tdep.c: Update copyright years.
8620 (ns32k_register_name_32082): New function.
8621 (ns32k_register_name_32382): Ditto.
8622 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8623 (REGISTER_NAME): Define as ns32k_register_name_32382.
8624 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8625 (REGISTER_NAME): Define as ns32k_register_name_32082.
8627 2002-05-24 Jim Blandy <jimb@redhat.com>
8629 * dwarf2read.c (free_line_header): Use xfree, not free.
8631 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8633 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8634 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8636 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8638 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8640 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8642 From Ross Alexander at NEC Europe:
8643 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8645 2002-05-23 Michael Snyder <msnyder@redhat.com>
8647 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8648 for input, rather than parse_and_eval_address.
8650 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8652 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8653 * Makefile.in (sim_d10v_h): Update definition.
8655 2002-05-24 Andrew Cagney <cagney@redhat.com>
8657 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8658 change `2002-05-22 Michael Snyder' below.
8659 (d10v_push_arguments): Ditto.
8660 (d10v_extract_return_value): Ditto.
8662 2002-05-23 Jim Blandy <jimb@redhat.com>
8664 * macrotab.c (check_for_redefinition): Don't complain if the new
8665 definition is the same as the previous one. Take more arguments
8666 to allow the comparison.
8667 (macro_define_object, macro_define_function): Pass more arguments
8668 to check_for_redefinition.
8670 2002-05-22 Michael Snyder <msnyder@redhat.com>
8672 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8673 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8674 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8675 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8676 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8677 Add a temp variable to save a call (and a memory read).
8678 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8679 if possible (so that PC_IN_CALL_DUMMY will work).
8681 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8683 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8685 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8687 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8689 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8690 (dwarf2_build_frame_info): Add offset to fde->initial_location
8691 so that frames of shared libraries are mapped correctly.
8692 (execute_stack_op): Change type of 'result' from ULONGEST to
8695 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8697 * config/alpha/tm-nbsd.h: Include solib.h.
8699 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8701 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8702 assumptions about the host's byte order.
8704 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8706 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8708 * alphanbsd-tdep.c: Include solib-svr4.h.
8709 * shnbsd-tdep.c: Ditto.
8711 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8713 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8714 nbsd-tdep.h to dependency list.
8715 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8716 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8717 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8718 nbsdaout.mh and nbsdelf.mh consistently.
8719 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8720 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8721 nbsdaout.mt and nbsdelf.mh consistently.
8722 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8723 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8724 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8725 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8726 a.out shared library stuff from here...
8727 * config/nm-nbsdaout.h: ...to here.
8728 * config/tm-nbsd.h: Remove.
8729 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8730 * config/arm/nbsd.mh: Remove.
8731 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8733 * config/arm/nbsdaout.mh: New file.
8734 * config/arm/nbsdelf.mh: New file.
8735 * config/arm/nm-nbsdaout.h: New file.
8736 * config/i386/nbsd.mh: Remove.
8737 * config/i386/nbsd.mt: Remove.
8738 * config/i386/nbsdaout.mh: New file.
8739 * config/i386/nbsdaout.mt: New file.
8740 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8741 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8742 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8743 i386_register_u_addr): Remove.
8744 * config/i386/nm-nbsdaout.h: New file.
8745 * config/i386/nm-nbsdelf.h: Remove.
8746 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8747 (USE_STRUCT_CONVENTION): Remove.
8748 * config/i386/tm-nbsdaout.h: New file.
8749 * config/i386/tm-nbsdelf.h: Remove.
8750 * config/m68k/nbsd.mh: Remove.
8751 * config/m68k/nbsd.mt: Remove.
8752 * config/m68k/nbsdaout.mh: New file.
8753 * config/m68k/nbsdaout.mt: New file.
8754 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8755 * config/m68k/nm-nbsdaout.h: New file.
8756 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8757 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8758 * config/ns32k/nbsd.mh: Remove.
8759 * config/ns32k/nbsd.mt: Remove.
8760 * config/ns32k/nbsdaout.mh: New file.
8761 * config/ns32k/nbsdaout.mt: New file.
8762 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8763 * config/ns32k/nm-nbsdaout.h: New file.
8764 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8765 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8766 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8767 (SVR4_SHARED_LIBS): Remove.
8768 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8769 * config/sparc/nbsd.mh: Remove.
8770 * config/sparc/nbsd.mt: Remove.
8771 * config/sparc/nbsdaout.mh: New file.
8772 * config/sparc/nbsdaout.mt: New file.
8773 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8774 * config/sparc/nbsdelf.mt: New file.
8775 * config/sparc/nm-nbsdaout.h: New file.
8776 * config/sparc/nm-nbsdelf.h: Remove.
8777 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8778 * config/sparc/tm-nbsdaout.h: New file.
8780 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8782 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8784 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8786 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8788 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8790 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8792 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8794 * NEWS: Note new MIPS NetBSD native configuration.
8795 * configure.host (mips*-*-netbsd*): New host.
8796 * configure.tgt (mips*-*-netbsd*): New target.
8797 * mipsnbsd-nat.c: New file.
8798 * mipsnbsd-tdep.c: New file.
8799 * mipsnbsd-tdep.h: New file.
8800 * config/mips/nbsd.mh: New file.
8801 * config/mips/nbsd.mt: New file.
8802 * config/mips/nm-nbsd.h: New file.
8803 * config/mips/tm-nbsd.h: New file.
8805 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8807 * Makefile.in (SFILES): Add osabi.c.
8808 (COMMON_OBS): Add osabi.o.
8809 (osabi.o): New dependency list.
8810 * osabi.c: New file.
8811 * osabi.h: New file.
8812 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8814 * Makefile.in (alpha_tdep_h): Define and use instead of
8816 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8817 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8819 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8820 * alpha-tdep.h: Include osabi.h.
8821 (alpha_abi): Remove.
8822 (gdbarch_tdep): Use generic OS ABI framework.
8823 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8824 gdbarch_register_osabi.
8825 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8826 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8827 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8829 * Makefile.in (sh_tdep_h): Add osabi.h.
8830 * sh-tdep.h (sh_osabi): Remove.
8831 (gdbarch_tdep): Use generic OS ABI framework.
8832 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8833 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8834 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8835 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8837 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8838 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8839 gdbarch_register_osabi.
8840 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8841 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8842 (get_elfosabi): Rename to...
8843 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8844 ABI framework support routines.
8845 (arm_gdbarch_init): Use generic OS ABI framework.
8846 (arm_dump_tdep): Likewise.
8847 (_initialize_arm_tdep): Likewise.
8848 * arm-tdep.h: Include osabi.h.
8850 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8852 (arm_gdbarch_register_os_abi): Remove prototype.
8853 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8854 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8856 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8857 * mips-tdep.c: Include osabi.h.
8858 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8861 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8863 * h8300-tdep.c: Fix formatting.
8865 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8867 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8868 printing vector registers.
8870 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8872 From Fernando Nasser:
8873 * remote.c (remote_async_open_1): Re-throw the exception when the
8875 (remote_cisco_open): Ditto.
8876 (remote_open_1): Ditto.
8878 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8880 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8881 (remote_start_remote): Add uiout parameter. Pass through to
8882 remote_start_remote_dummy.
8883 (remote_open_1): Use catch_exception instead of catch_errors.
8884 (remote_async_open_1): Ditto.
8885 (remote_cisco_open): Ditto.
8887 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8889 * remote.c (remote_start_remote): Replace PTR with void pointer.
8890 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8893 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8895 * gdb_indent.sh: Allow the script to be run in the sim directory.
8897 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8899 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8900 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8902 * corelow.c (core_open): Only call set_gdbarch_from_file if
8905 2002-05-17 Andrey Volkov <avolkov@transas.com>
8907 * h8300-tdep.c: Add support of EXR register
8908 * config/h8300/tm-h8300.h: Ditto.
8910 2002-05-17 Andrey Volkov <avolkov@transas.com>
8912 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8914 2002-05-17 Andrey Volkov <avolkov@transas.com>
8916 * h8300-tdep.c: Change literal regnums to REGNO.
8918 2002-05-17 Jim Blandy <jimb@redhat.com>
8920 * NEWS: Note addition of macro support.
8922 Expand preprocessor macros in C expressions.
8923 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8924 (scan_macro_expansion, scanning_macro_expansion,
8925 finished_macro_expansion): New function declarations.
8926 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8927 variable declarations.
8928 * parser-defs.h (expression_context_pc): New declaration.
8929 * parse.c (expression_context_pc): New variable.
8930 (parse_exp_1): Set expression_context_pc, as well as
8931 expression_context_block.
8932 * c-exp.y (yylex): If we're not already reading the result of a
8933 macro expansion, try to macro-expand the next token. When we're
8934 done scanning a macro expansion, switch back to the mainline text.
8935 Commas and `if's in a macro's expansion don't terminate the input.
8936 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8937 (macro_original_text, macro_expanded_text,
8938 expression_macro_lookup_func, expression_macro_lookup_baton): New
8940 (scan_macro_expansion, scanning_macro_expansion,
8941 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8942 c_preprocess_and_parse): New functions.
8943 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8944 c_preprocess_and_parse, instead of c_parse.
8945 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8946 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8948 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8950 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8951 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8952 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8954 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8956 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8958 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8960 * Makefile.in (sh_tdep_h): Define and use.
8961 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8962 register enum): Move to...
8963 * * sh-tdep.h: ...here.
8964 * sh-tdep.c: Include sh-tdep.h.
8965 * sh3-rom.c: Likewise.
8966 * shnbsd-tdep.c: Likewise.
8968 2002-05-16 Michael Snyder <msnyder@redhat.com>
8970 * arm-tdep.c: Spelling fix in comment.
8972 2002-05-16 Jim Blandy <jimb@redhat.com>
8974 Add commands for manually expanding macros and showing their
8976 * macrocmd.c, macroscope.c, macroscope.h: New files.
8977 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8978 (macroscope_h): New variable.
8979 (HFILES_NO_SRCDIR): Add macroscope.h.
8980 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8981 (macroscope.o, macrocmd.o): New rules.
8983 Teach the Dwarf 2 reader to read macro information.
8984 * dwarf2read.c: #include "macrotab.h".
8985 (dwarf_macinfo_buffer): New variable.
8986 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8988 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8989 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8990 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8991 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8992 dwarf2_macro_spaces_in_definition): New complaints.
8993 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8994 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8995 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8996 the partial symbol table.
8997 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8998 from what's recorded in the partial symbol table.
8999 (read_file_scope): If the compilation unit has a
9000 `DW_AT_macro_info' attribute, read its macro information.
9001 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9003 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9006 * ser-tcp.c: Don't include <netinet/udp.h>.
9008 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9010 * MAINTAINERS: Update my email address.
9012 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9014 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9015 include file of the same name.
9017 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9019 * configure.tgt: Mark v850 as multi-arched.
9020 * config/v850/tm-v850.h: Remove file.
9021 * config/v850/v850.mt: Eliminate TM_FILE.
9023 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9025 * v850-tdep.c: Full multi-arch.
9026 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9027 Define GDB_MULTI_ARCH to 2.
9029 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9031 * p-exp.y (current_type): New static variable.
9032 Carries the type of the expression at the position that is parsed.
9033 (push_current_type, pop_current_type): Two new functions. Used
9034 to store/restore current_type in expression on specific tokens.
9035 (search_field): New static variable. Set to one after parsing a point
9036 as at that point only a FIELDNAME token should be searched.
9037 (FIELDNAME): New token. After a point only a token belonging to
9038 current_type type definition is allowed.
9039 (all over token rules): reset and change current_type according
9041 (exp '[' rule): insert implicit array index field if
9042 exp is a pascal string type.
9044 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9046 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9047 frame info. Use frame_info's saved_regs instead of matching member
9048 in extra_frame_info throughout.
9049 (v850_frame_init_saved_regs): New function.
9050 (v850_init_extra_frame_info): Move most functionality into
9051 v850_frame_init_saved_regs().
9052 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9053 (v850_frame_find_saved_regs): Remove declaration.
9054 (FRAME_FIND_SAVED_REGS): Remove definition.
9055 (v850_frame_init_saved_regs): Add declaration.
9056 (FRAME_INIT_SAVED_REGS): Add definition.
9058 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9060 * v850-tdep.c: Begin multi-arch'ing v850.
9061 (v850_target_architecture_hook): Remove function.
9062 (v850_gdbarch_init): New function. Add code previously in
9063 v850_target_architecture_hook().
9064 (_initialize_v850_tdep): Don't set target_architecture_hook.
9065 Call register_gdbarch_init() instead.
9067 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9069 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9070 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9071 (fixup_class_method_type): Likewise.
9073 2002-05-15 Jim Blandy <jimb@redhat.com>
9075 Add macro structures to GDB's symbol tables. Nobody puts anything
9077 * symtab.h (struct symtab): New member: `macro_table'.
9078 * buildsym.h (pending_macros): New global variable.
9079 * buildsym.c: #include "macrotab.h".
9080 (buildsym_init): Initialize `pending_macros'.
9081 (end_symtab): If we found macro information while reading a CU's
9082 debugging info, do build a symtab structure for it. Make the
9083 symtab point to the macro information, and clear the
9084 `pending_macros' pointer which held it while we were reading the
9086 (really_free_pendings): Free any pending macro table.
9087 * objfiles.h (struct objfile): New member: `macro_cache'.
9088 * objfiles.c (allocate_objfile): Set allocate and free functions
9089 for the macro cache's objstack.
9090 (free_objfile): Empty the macro cache's obstack.
9091 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9092 set new allocate and free functions for it.
9093 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9094 free functions for the macro cache's objstack. (Why is this
9095 function building its own objfile?)
9096 * symmisc.c (print_objfile_statistics): Print statistics on the
9098 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9100 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9102 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9103 (REGISTER_U_ADDR): Delete definition.
9104 (arm_register_u_addr): Delete declaration.
9106 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9108 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9109 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9111 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9113 * regcache.c (register_valid): Revise comments refering to "Not
9114 available" and "unavailable".
9115 * frame.c (frame_register_read): Ditto.
9116 * findvar.c (value_of_register): Ditto.
9118 2002-05-15 Andrew Cagney <cagney@redhat.com>
9120 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9121 (remote-sim.o): Update dependencies.
9122 (d10v-tdep.o): Specify dependencies.
9123 (sim_d10v_h): Define.
9125 2002-05-14 Jim Blandy <jimb@redhat.com>
9127 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9128 * macrotab.c (macro_lookup_inclusion, find_definition,
9129 new_macro_table): Same.
9131 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9132 not `! strcmp ()'. This is a dubious improvement.
9133 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9135 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9136 although it's not necessary, to avoid a warning.
9138 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9140 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9141 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9142 TYPE_INSTANCE_FLAGS.
9143 (struct main_type): New.
9144 (struct type): Move most members to struct main_type. Change
9145 cv_type and as_type to new type_chain member. Add instance_flags.
9146 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9147 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9148 (finish_cv_type): Remove prototype.
9149 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9151 (alloc_type_instance): New function.
9152 (smash_type): New function.
9153 (make_pointer_type, make_reference_type, make_function_type)
9154 (smash_to_member_type, smash_to_method_type): Call smash_type.
9155 (make_qualified_type): New function.
9156 (make_type_with_address_space): Call make_qualified_type.
9157 (make_cv_type): Likewise.
9158 (finish_cv_type): Remove unnecessary function.
9159 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9160 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9161 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9162 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9163 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9164 * hpread.c (hpread_read_struct_type): Likewise.
9165 * stabsread.c (read_struct_type): Likewise.
9167 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9169 * configure.tgt: Add a catch all sh* target, for cases like
9170 sh[2,3,4]-elf and sh-hms.
9172 2002-05-14 Keith Seitz <keiths@redhat.com>
9174 * event-loop.c (create_file_handler): Don't do anything but
9175 update data when we are given a fd which we are already
9178 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9180 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9181 (update_context): Use __func__ in warnings.
9183 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9185 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9186 and tcp_close to net_open and net_close.
9187 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9188 using UDP if requested. Don't try to disable Nagle on UDP
9190 * remote.c (remote_serial_open): New function. Warn about UDP.
9191 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9193 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9195 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9197 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9199 * configure.tgt: Remove sh-hms target.
9200 * MAINTAINERS: Don't list sh-hms as a separate target.
9202 2002-05-13 Jim Blandy <jimb@redhat.com>
9204 Add first preprocessor macro-expansion files.
9205 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9206 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9207 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9208 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9209 (COMMON_OBS): Add macrotab.o, macroexp.o.
9210 (macroexp.o, macrotab.o): New rules.
9212 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9214 * config/m88k/tm-m88k.h: Update copyright.
9215 (m88k_target_write_pc): Declare
9216 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9217 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9218 (SHIFT_INST_REGS): Update definition.
9219 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9220 using old definition of TARGET_WRITE_PC.
9221 * regcache.c (generic_target_write_pc): Delete code handling
9223 * gdbarch.sh (NNPC_REGNUM): Delete.
9224 * gdbarch.h, gdbarch.c: Regenerate.
9226 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9228 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9231 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9233 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9234 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9235 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9237 * c-typeprint.c (cp_type_print_method_args): Likewise.
9238 (c_type_print_args): Likewise.
9239 * d10v-tdep.c (d10v_push_arguments): Likewise.
9240 (d10v_extract_return_value): Likewise.
9241 * expprint.c (print_subexp): Likewise.
9242 * gdbtypes.c (lookup_primitive_typename): Likewise.
9243 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9244 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9245 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9246 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9247 (TYPE_VECTOR): Likewise.
9248 * hpread.c (hpread_read_struct_type)
9249 (fix_static_member_physnames, fixup_class_method_type)
9250 (hpread_type_lookup): Likewise.
9251 * mdebugread.c (parse_symbol, parse_type): Likewise.
9252 * p-lang.c (is_pascal_string_type): Likewise.
9253 * valops.c (hand_function_call): Likewise.
9254 * x86-64-tdep.c (classify_argument): Likewise.
9256 * hpread.c (hpread_read_function_type)
9257 (hpread_read_doc_function_type): Call replace_type.
9258 * dstread.c (create_new_type): Delete.
9259 (decode_dst_structure, process_dst_function): Call alloc_type.
9260 Use type access macros.
9262 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9264 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9265 the're not supported by the current architecture.
9266 (i387_fill_fxsave): Likewise.
9268 2002-05-12 Fred Fish <fnf@redhat.com>
9270 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9271 sect_index_xxx members to index the first slot in section_offsets
9272 if all of the section_offsets are zero.
9274 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9276 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9277 checked in with last change.
9279 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9281 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9282 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9285 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9287 * Makefile.in: Update dependencies.
9289 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9291 * language.c (local_hex_string_custom): Simplify. Do not depend
9292 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9294 * memattr.c (mem_info_command): Replace calls to
9295 longest_local_hex_string and longest_local_hex_string_custom.
9296 * buildsym.c (make_blockvector): Ditto.
9297 * solib.c (info_sharedlibrary_command): Ditto.
9298 * tracepoint.c (tracepoints_info): Ditto.
9299 * symtab.c (print_msymbol_info): Ditto.
9301 * language.c (local_hex_string): Delete.
9302 (local_hex_string_custom): Delete.
9303 (longest_local_hex_string): Rename to local_hex_string.
9304 (longest_local_hex_string_custom): Rename to
9305 local_hex_string_custom.
9306 * language.h (local_hex_string): Change parameter type to LONGEST.
9307 (local_hex_string_custom): Ditto.
9308 (longest_local_hex_string): Delete declaration.
9309 (longest_local_hex_string_custom): Ditto.
9311 * solib.c: Update copyright.
9312 * memattr.c: Update copyright.
9314 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9316 * arch-utils.h (legacy_register_to_value): Declare.
9317 (legacy_value_to_register): Declare.
9318 (legacy_convert_register_p): Declare.
9319 * arch-utils.c (legacy_register_to_value): New function.
9320 (legacy_value_to_register): New function.
9321 (legacy_convert_register_p): New function.
9323 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9324 (VALUE_TO_REGISTER): Define.
9325 (CONVERT_REGISTER_P): Define.
9326 * gdbarch.h, gdbarch.c: Regenerate.
9328 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9330 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9333 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9334 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9336 * Makefile.in: Update dependencies for valops.c.
9337 * valops.c: Include "gdb_assert.h".
9338 (typecmp): Skip THIS parameter to methods.
9339 (find_method_list): Remove static_memfuncp argument,
9340 update callers. Check for stub methods.
9341 (find_value_oload_method_list): Don't set *static_memfuncp.
9342 (find_overload_match): Don't check for stub methods. Assert
9343 that methods are not stubbed. Handle static methods.
9344 (value_find_oload_method_list): Remove static_memfuncp argument.
9345 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9346 to the argument list for static stub methods.
9347 * value.h (value_find_oload_method_list): Update prototype.
9349 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9351 * arch-utils.h (generic_register_size): Declare.
9352 (generic_register_raw_size, generic_register_virtual_size): Delete
9354 * arch-utils.c (generic_register_raw_size): Delete.
9355 (generic_register_size): New function.
9356 (generic_register_virtual_size): Delete.
9358 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9359 default generic_register_size.
9360 * gdbarch.h, gdbarch.c: Re-generate.
9362 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9363 register_virtual_size.
9364 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9365 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9367 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9369 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9370 * gdbarch.h, gdbarch.c: Regenerate.
9371 * gnu-v3-abi.c: Update copyright.
9372 (vtable_address_point_offset): Update.
9373 (gnuv3_rtti_type): Update.
9374 (gnuv3_baseclass_offset): Update.
9375 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9376 (init_fetch_link_map_offsets): Update.
9377 * remote.c (get_remote_state): Update.
9379 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9381 * TODO: Remove value_headof/value_from_vtable_info comment.
9382 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9383 * values.c (value_headof, value_from_vtable_info): Delete.
9384 * value.h (value_from_vtable_info): Delete prototype.
9386 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9388 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9389 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9391 (gdb_assert_h): Define.
9392 (gdb_wait_h): Define.
9393 (gdb_regex_h): Define.
9395 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9397 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9398 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9400 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9402 * nbsd-tdep.c: Fix comment.
9404 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9406 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9407 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9408 (nbsd-tdep.o): New dependency list.
9409 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9411 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9412 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9413 * nbsd-tdep.c: New file.
9414 * nbsd-tdep.h: New file.
9415 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9417 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9418 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9419 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9420 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9422 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9424 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9425 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9426 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9427 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9428 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9429 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9431 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9433 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9434 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9435 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9436 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9437 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9438 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9439 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9441 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9443 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9444 fetch_elfcore_registers to...
9445 * i386nbsd-tdep.c: ...here.
9446 (i386nbsd_use_struct_convention): Rename to...
9447 (i386nbsd_aout_use_struct_convention): ...this.
9448 (i386nbsd_supply_reg): New function.
9449 (i386nbsd_fill_reg): New function.
9450 (fetch_core_registers): Use i386nbsd_supply_reg.
9451 (fetch_elfcore_registers): Likewise.
9452 (_initialize_i386nbsd_tdep): New function.
9453 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9454 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9455 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9456 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9457 (i386nbsd_aout_use_struct_convention): ...this.
9459 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9461 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9462 (store_inferior_registers): Use shnbsd_fill_reg.
9463 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9464 sh_nbsd_supply_register): Collapse into...
9465 (shnbsd_supply_reg): ...this.
9466 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9467 (shnbsd_fill_reg): ...this.
9468 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9469 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9470 (fetch_core_registers): Use shnbsd_supply_reg.
9471 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9472 (sh_nbsd_core_fns): Rename to...
9473 (shnbsd_core_fns): ...this.
9474 (sh_nbsd_elfcore_fns): Rename to...
9475 (shnbsd_elfcore_fns): ...this.
9476 (sh_nbsd_init_abi): Rename to...
9477 (shnbsd_init_abi): ...this.
9478 (_initialize_sh_nbsd_tdep): Rename to...
9479 (_initialize_shnbsd_tdep): ...this.
9480 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9481 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9482 sh_nbsd_fill_register): Remove prototypes.
9483 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9485 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9487 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9488 (i387-nat.o): Delete dependency list.
9489 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9490 (x86-64-linux-nat.o): Likewise.
9491 * i387-nat.c: Delete file, moving contents to...
9492 * i387-tdep.c: ...here.
9493 * i387-nat.h: Rename...
9494 * i387-tdep.h: ...to this.
9495 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9496 * i386-linux-nat.c: Likewise.
9497 * i386bsd-nat.c: Likewise.
9498 * i386gnu-nat.c: Likewise.
9499 * i386nbsd-nat.c: Likewise.
9500 * i386v4-nat.c: Likewise.
9501 * x86-64-linux-nat.c: Likewise.
9502 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9503 * config/i386/go32.mh (NATDEPFILES): Likewise.
9504 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9505 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9506 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9507 * config/i386/linux.mh (NATDEPFILES): Likewise.
9508 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9509 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9510 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9511 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9513 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9515 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9516 (alphanbsd-nat.o): Remove dependency list.
9517 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9518 * alphanbsd-nat.c: Delete. Contents moved to...
9519 * alphanbsd-tdep.c: ...here.
9520 (_initialize_alphanbsd_tdep): Register core functions.
9521 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9523 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9525 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9526 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9527 (alphanbsd-nat.o): Likewise.
9528 (alphabsd-tdep.o): New dependency list.
9529 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9530 (fill_gregset): Use alphabsd_fill_reg.
9531 (supply_fpregset): Use alphabsd_supply_fpreg.
9532 (fill_fpregset): Use alphabsd_fill_fpreg.
9533 (fetch_inferior_registers): Use struct reg and struct fpreg
9534 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9535 and alphabsd_supply_fpreg.
9536 (store_inferior_registers): Use struct reg and struct fpreg
9537 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9538 and alphabsd_fill_fpreg.
9539 * alphabsd-tdep.c: New file.
9540 * alphabsd-tdep.h: New file.
9541 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9542 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9543 alphabsd_supply_fpreg.
9544 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9545 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9547 2002-05-11 Eric Christopher <echristo@redhat.com>
9549 * mips-tdep.c (mips_double_register_type): Fix thinko.
9550 (mips_single_register_type): Ditto.
9551 * MAINTAINERS: Add self.
9553 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9555 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9556 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9557 right thing on architectures with different endianness and/or
9560 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9562 From Christian Limpach <chris@Pin.LU>
9563 * configure.in: Change sed expression which comments out
9564 NATDEPFILES to also comment out continuation lines.
9565 * configure: Regenerate.
9567 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9569 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9572 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9574 * sh-tdep.c: Include correct file.
9576 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9578 New support for sh64-elf (sh5) target.
9580 * configure.tgt: For sh64-elf target, default to sh-elf.
9582 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9583 (struct gdbarch_tdep): Add new fields for new registers and ABI
9586 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9587 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9588 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9589 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9590 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9591 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9592 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9593 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9594 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9595 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9596 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9597 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9598 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9599 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9600 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9601 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9602 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9603 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9604 sign_extend, sh64_nofp_frame_init_saved_regs,
9605 sh64_init_extra_frame_info, sh64_get_saved_register,
9606 sh64_extract_struct_value_address, sh64_pop_frame,
9607 sh64_push_arguments, sh64_extract_return_value,
9608 sh64_store_return_value, sh64_show_media_regs,
9609 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9610 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9611 sh_sh64_register_virtual_type,
9612 sh_sh64_register_convert_to_virtual,
9613 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9614 sh64_register_read, sh64_pseudo_register_write,
9615 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9616 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9617 sh64_do_pseudo_register, sh_compact_do_registers_info,
9618 sh64_do_registers_info, sh_gdbarch_init): New functions.
9620 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9622 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9624 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9626 * linespec.c (decode_line_1): Check for a double quote after
9627 a filename correctly.
9629 2002-05-10 Jim Blandy <jimb@redhat.com>
9631 Properly track the size of the current objfile's .debug_line section.
9632 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9633 (DWARF_LINE_SIZE): New macro.
9634 (dwarf2_build_psymtabs_hard): Record the line section's size in
9635 the partial symbol table.
9636 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9639 2002-05-10 Petr Sorfa <petrs@caldera.com>
9641 * ia64-tdep.c: Handle breakpoints on L instruction type
9642 in MLX instruction bundle by moving the breakpoint to
9643 the third slot (X instruction type) as L holds only data.
9645 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9647 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9648 (process_one_symbol): Complain about discarding local symbols
9649 due to a misplaced N_LBRAC entry.
9651 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9653 From Daniel Berlin <dan@cgsoftware.com>
9654 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9655 decrease the depth we are at, in the case of templates.
9657 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9659 * mips-tdep.c (mips_float_register_type): New function.
9660 (mips_double_register_type): New function.
9661 (mips_print_register): Use them.
9662 (do_fp_register_row): Likewise.
9664 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9666 * signals/signals.c (signals): Remove conditional compilation around
9667 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9668 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9670 2002-05-09 Michael Snyder <msnyder@redhat.com>
9672 * remote-rdp.c (remote_rdp_can_run): Remove.
9674 2002-05-09 Tom Tromey <tromey@redhat.com>
9676 * jv-valprint.c (java_val_print): Handle `char' as a special case
9679 2002-05-09 Michael Snyder <msnyder@redhat.com>
9681 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9682 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9683 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9684 str r(0123),[sp,#nn].
9685 (arm_skip_prologue): Ditto. Also make disassembly
9686 order-independent by placing it in a loop.
9688 2002-05-06 Michael Snyder <msnyder@redhat.com>
9690 * stabsread.c (read_type): Add recognition for new attribute:
9691 "@V;" means that an array type is actually a vector.
9692 This is analogous to the vector flag that's been added to dwarf2.
9694 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9696 * i386-tdep.h (i386_abi): New enum.
9697 (struct gdbarch_tdep): Replace os_ident member with abi.
9698 (i386_gdbarch_register_os_abi): New prototype.
9699 * i386-tdep.c (i386_abi_names): New array.
9700 (process_note_abi_tag_sections): Removed.
9701 (process_note_sections): New function.
9702 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9703 (struct i386_abi_handler): New struct.
9704 (i386_abi_handler_list): New variable.
9705 (i386_gdbarch_register_os_abi): New function.
9706 (i386_gdbarch_init): Adapt for the changes given above.
9708 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9710 * gregset.h: Say "GNU/Linux".
9712 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9714 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9715 (build_gdbtypes): Build builtin_type_v2_float.
9716 (_initialize_gdbtypes): Register new builtin type.
9718 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9720 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9721 (clear_gdbarch_swap): New function.
9722 (initialize_non_multiarch): Call.
9723 (gdbarch_update_p): Before calling init(), swap out and clear the
9724 existing architecture.
9725 * gdbarch.c: Regenerate.
9727 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9729 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9732 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9734 * sh-nbsd-nat.c: Rename to...
9735 * shnbsd-nat.c: ...this.
9736 * sh-nbsd-tdep.c: Rename to...
9737 * shnbsd-tdep.c: ...this.
9738 * sh-nbsd-tdep.h: Rename to...
9739 * shnbsd-tdep.h: ...this.
9740 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9741 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9743 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9745 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9746 concatenation for command help messages.
9748 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9750 * NEWS: Note new sh*-*-netbsdelf* configuration.
9751 * configure.host: Set gdb_host_cpu to sh for all sh*.
9752 (sh*-*-netbsdelf*): New host.
9753 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9754 (sh*-*-netbsdelf*): New target.
9755 * sh-nbsd-nat.c: New file.
9756 * sh-nbsd-tdep.c: New file.
9757 * sh-nbsd-tdep.h: New file.
9758 * config/sh/nbsd.mh: New file.
9759 * config/sh/nbsd.mt: New file.
9760 * config/sh/nm-nbsd.h: New file.
9761 * config/sh/tm-nbsd.h: New file.
9763 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9765 * sh-tdep.c (sh_osabi_names): Declare.
9766 (process_note_abi_tag_sections): New function.
9767 (get_elfosabi): Ditto.
9768 (sh_gdbarch_register_os_abi): Ditto.
9769 (sh_dump_tdep): Ditto.
9770 _initialize_sh_tdep): Use gdbarch_register to register
9771 sh_gdbarch_init and sh_dump_tdep.
9772 * config/sh/tm-sh.h (sh_osabi): Declare.
9773 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9775 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9777 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9778 (thumb_scan_prologue): Ditto.
9779 (arm_find_callers_reg): Ditto.
9780 (arm_frame_chain): Ditto.
9781 (arm_init_extra_frame_info): Ditto.
9782 (arm_frame_saved_pc): Ditto.
9783 (arm_pop_frame): Ditto.
9784 (arm_push_return_address): New function.
9785 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9786 call_dummy_location, call_dummy_breakpoint_offset_p,
9787 call_dummy_breakpoint_offset, call_dummy_p,
9788 call_dummy_stack_adjust_p, call_dummy_words,
9789 sizeof_call_dummy_words, call_dummy_start_offset,
9790 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9791 call_dummy_address, push_return_address and push_dummy_frame for
9792 generic dummy frames.
9794 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9796 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9797 size computation for alloca.
9798 (sh_fp_frame_init_saved_regs): Likewise.
9800 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9802 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9803 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9804 * arm-tdep.c (arm_store_return_value): Use them.
9805 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9806 * remote-rdp.c (remote_rdp_fetch_register): Use
9807 ARM_MAX_REGISTER_RAW_SIZE.
9808 (remote_rdp_store_register): Likewise.
9810 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9812 * dwarf2cfi.c: Code cleanup, removed unused variables,
9813 added default labels to switch {} statements.
9814 * x86-64-tdep.c: Ditto.
9815 * x86-64-linux-nat.c: Ditto.
9817 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9819 * solib.h: Protect against multiple inclusion.
9821 2002-05-06 Jim Blandy <jimb@redhat.com>
9823 Add first preprocessor macro-expansion files.
9824 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9825 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9826 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9827 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9828 (COMMON_OBS): Add macrotab.o, macroexp.o.
9829 (macroexp.o, macrotab.o): New rules.
9831 Separate the job of reading the line number info statement program
9832 header (...expialidocious) out into its own function.
9833 * dwarf2read.c (struct line_head, struct filenames, struct
9834 directories): Replace with...
9835 (struct line_header): New structure, containing the full
9836 contents of the statement program header, including the
9837 include directory and file name tables.
9838 (read_file_scope): If we have line number info, instead of just
9839 calling dwarf_decode_lines to do all the work, call
9840 dwarf_decode_line_header first to get a `struct line_header'
9841 containing the data in the statement program header, and then
9842 pass that to dwarf_decode_lines, which will pick up where that
9843 left off. Be sure to clean up the `struct line_header' object.
9844 (dwarf_decode_line_header, free_line_header, add_include_dir,
9845 add_file_name): New functions.
9846 (dwarf_decode_lines): Move all the code to read the statement
9847 program header into dwarf_decode_line_header. Take the line
9848 header it built as the first argument, instead of the offset to
9849 the compilation unit's line number info. Use the new `struct
9850 line_header' type instead of the old structures. No need to do
9851 cleanups here now, since we don't allocate anything.
9852 (dwarf2_statement_list_fits_in_line_number_section,
9853 dwarf2_line_header_too_long): New complaints.
9855 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9857 * gdbtypes.c (init_vector_type): New function.
9858 (build_builtin_type_vec128): Simplify the representation of SIMD
9860 (build_gdbtypes): Initialize new builtin vector types.
9861 (_initialize_gdbtypes): Register new vector types with gdbarch.
9862 (builtin_type_v4_float, builtin_type_v4_int32,
9863 builtin_type_v8_int16, builtin_type_v16_int8,
9864 builtin_type_v2_int32, builtin_type_v4_int16,
9865 builtin_type_v8_int8): New (renamed) SIMD types.
9867 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9869 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9870 (i387_fill_fxsave): Likewise.
9872 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9874 * alpha-tdep.c (alpha_extract_return_value): Don't use
9875 non-constant array size in prototype.
9877 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9879 From Brian Taylor <briant at model dot com>:
9880 * ui-out.c (ui_out_field_core_addr): Use the function
9881 longest_local_hex_string_custom'to format addresses > 32 bits
9884 * ui-out.c (ui_out_field_core_addr): Update comment.
9886 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9888 * stack.c (select_and_print_frame): Make static. Delete the
9890 (func_command): Update call.
9891 (select_frame_command): Delete code computing the frame level.
9892 * frame.h (select_and_print_frame): Delete declaration.
9894 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9896 * sparc-tdep.c (sparc_get_saved_register): Comment why
9897 get_prev_frame call is safe.
9899 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9901 * frame.h (select_frame): Delete level parameter.
9902 * stack.c (select_frame): Update. Use frame_relative_level to
9903 obtain the frame's level.
9904 (select_and_print_frame): Update call.
9905 (select_frame_command): Ditto.
9906 (up_silently_base): Ditto.
9907 (down_silently_base): Ditto.
9908 * ocd.c (ocd_start_remote): Ditto.
9909 * remote-rdp.c (remote_rdp_open): Ditto.
9910 * remote-mips.c (mips_initialize): Ditto.
9911 (common_open): Ditto.
9912 * remote-e7000.c (e7000_start_remote): Ditto.
9913 * m3-nat.c (select_thread): Ditto.
9914 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9915 (child_get_current_exception_event): Ditto.
9916 * varobj.c (varobj_create): Ditto.
9917 (varobj_update): Ditto.
9918 (c_value_of_root): Ditto.
9919 * tracepoint.c (finish_tfind_command): Ditto.
9920 * corelow.c (core_open): Ditto.
9921 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9922 * thread.c (info_threads_command): Ditto.
9923 (switch_to_thread): Ditto.
9924 * infrun.c (normal_stop): Ditto.
9925 (restore_selected_frame): Ditto.
9926 (restore_inferior_status): Ditto.
9927 * breakpoint.c (insert_breakpoints): Ditto.
9928 (watchpoint_check): Ditto.
9929 (bpstat_stop_status): Ditto.
9930 (do_enable_breakpoint): Ditto.
9931 * blockframe.c (flush_cached_frames): Ditto.
9932 (reinit_frame_cache): Ditto.
9934 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9936 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9939 2002-05-04 Jim Blandy <jimb@redhat.com>
9941 * gdbtypes.c (replace_type): Doc fix.
9943 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9945 * valprint.c (strcat_longest): Delete commented out function.
9948 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9950 * MAINTAINERS: Mark a29k as deleted.
9951 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9952 Move new configurations to the top.
9953 * configure.tgt: Remove a29k.
9954 * config/a29k/tm-vx29k.h: Delete.
9955 * config/a29k/vx29k.mt: Delete.
9956 * config/a29k/tm-a29k.h: Delete.
9957 * config/a29k/a29k-udi.mt: Delete.
9958 * config/a29k/a29k.mt: Delete.
9959 * a29k-tdep.c: Delete.
9960 * remote-udi.c: Delete.
9961 * remote-mm.c: Delete.
9962 * remote-eb.c: Delete.
9963 * remote-adapt.c: Delete.
9964 * Makefile.in: Remove obsolete code.
9965 * config/s390/s390x.mt: Ditto.
9966 * config/s390/s390.mt: Ditto.
9967 * config/sparc/sparclynx.mh: Ditto.
9968 * config/sparc/linux.mh: Ditto.
9969 * config/pa/hppaosf.mh: Ditto.
9970 * config/pa/hppabsd.mh: Ditto.
9971 * config/ns32k/nbsd.mt: Ditto.
9972 * config/mips/vr5000.mt: Ditto.
9973 * config/m68k/sun3os4.mh: Ditto.
9974 * config/m68k/nbsd.mt: Ditto.
9975 * config/m68k/m68klynx.mh: Ditto.
9976 * config/m32r/m32r.mt: Ditto.
9977 * config/i386/x86-64linux.mt: Ditto.
9978 * config/i386/nbsdelf.mt: Ditto.
9979 * config/i386/nbsd.mt: Ditto.
9980 * config/i386/i386lynx.mh: Ditto.
9982 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9984 * target.c (debug_print_register): New function. Handle oversize
9986 (debug_to_fetch_registers): Call.
9987 (debug_to_store_registers): Call.
9989 2002-05-03 Jim Blandy <jimb@redhat.com>
9991 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9992 (read_type): Doc fix.
9993 * gdbtypes.c (replace_type): Doc fix.
9995 * stabsread.c (multiply_defined_struct): New complaint.
9996 (read_struct_type): If the type we were passed isn't empty, or
9997 incomplete, don't read the new struct type into it; complain,
9998 and return the original type unchanged. Take a new `type_code'
9999 argument, which is the type code for the new type.
10000 (read_type): Rather than storing the type's type code here, pass
10001 it as an argument to read_struct_type, and let that take care of
10002 storing it. That way, we don't overwrite the original type code,
10003 so read_struct_type can use it to decide whether we're overwriting
10004 something we shouldn't.
10005 (complain_about_struct_wipeout): New function.
10007 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10009 * gdbarch.sh: Assert that gdbarch is non-NULL.
10010 * gdbarch.c: Regenerate.
10012 2002-05-03 Jason Merrill <jason@redhat.com>
10014 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10017 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10019 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10020 (x86_64_dwarf2gdb_regno_map_length),
10021 (x86_64_dwarf2_reg_to_regnum): Added.
10022 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10023 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10024 (_initialize_x86_64_tdep): Synced with the change above.
10025 (x86_64_skip_prologue): Reformulated message.
10027 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10029 * f-exp.y: Also use new prev_lexptr variable
10030 to improve error reporting. Based on Michael Snyder
10031 2002-04-24 dated patch to c-exp.y.
10032 * jv-exp.y: Likewise.
10033 * m2-exp.y: Likewise.
10035 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10037 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10038 we are dealing with vectors.
10040 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10042 * config/m68k/tm-nbsd.h: Obvious fix,
10043 correct machine name.
10045 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10047 * p-typeprint.c (pascal_type_print_base): Add support
10048 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10050 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10052 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10053 for fondamental pascal 'char' type.
10055 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10057 * p-lang.h (is_pascal_string_type): Declaration changed,
10058 new sixth argument of type char ** added.
10059 * p-lang.c (is_pascal_string_type): Implementation
10060 changed. Args length_pos, length_size, string_pos, char_size
10061 can now be NULL. New argument arrayname set to the field
10062 name of the char array. Return value set to char array
10063 field index plus one.
10064 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10065 is_pascal_string_type function.
10067 2002-05-02 Andrew Cagney <cagney@redhat.com>
10069 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10070 <cagney@redhat.com> change.
10071 * gdbarch.c: Regenerate.
10073 2002-05-02 Andrew Cagney <cagney@redhat.com>
10075 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10076 before probing for a new one. Detect errorenous gdbarch_init
10078 * gdbarch.c: Regenerate.
10080 2002-05-01 Andrew Cagney <cagney@redhat.com>
10082 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10083 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10084 * config/v850/tm-v850.h: Ditto. Update copyright.
10086 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10088 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10091 2002-04-30 Michael Snyder <msnyder@redhat.com>
10093 * arm-tdep.c: Whitespace clean-ups.
10094 (arm_skip_prologue): Fix thinko; two lines
10095 should have been removed as part of 4/24 change.
10097 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10099 * rs6000-tdep.c: Added comment describing how fpscr register
10100 numbers were chosen.
10102 2002-04-30 Michael Snyder <msnyder@redhat.com>
10104 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10106 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10108 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10109 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10110 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10112 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10114 From Louis Hamilton <hamilton@redhat.com>:
10115 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10116 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10117 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10118 not bfd-private xcoff data, to determine wordsize.
10119 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10121 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10123 GDB 5.2 released from 5.2 branch.
10125 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10127 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10128 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10129 (x86_64_register_info_table): Added comments with register numbers.
10131 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10133 * rs6000-tdep.c (rs6000_extract_return_value,
10134 rs6000_store_return_value): Handle returning vectors.
10135 (rs6000_gdbarch_init): Use
10136 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10137 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10139 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10141 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10142 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10144 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10146 * hpread.c (hpread_psymtab_to_symtab_1,
10147 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10148 with fprintf_unfiltered (gdb_stderr,...).
10150 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10152 * remote-array.c (printf_monitor, write_monitor,
10153 array_insert_breakpoint, array_remove_breakpoint ):
10154 Replace fprintf (stderr,...
10155 with fprintf_unfiltered (gdb_stderr,....
10156 * remote-es.c: Likewise.
10157 * remote-os9k.c: Likewise.
10158 * remote-st.c: Likewise.
10160 2002-04-28 Andreas Schwab <schwab@suse.de>
10162 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10163 linux-proc.o and gcore.o.
10165 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10167 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10168 code without frame pointers.
10170 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10172 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10173 ON_STACK is needed.
10175 2002-04-26 Ben Elliston <bje@redhat.com>
10177 * target.c (do_xfer_memory): Correct reference to the new option
10178 "trust-readonly-sections".
10180 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10182 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10183 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10184 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10186 (read_array_type): Record the fact that this array type is really a
10187 vector (i.e. are passed in by value).
10189 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10191 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10192 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10193 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10194 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10195 * alpha-linux-tdep.c: Include frame.h.
10196 (alpha_linux_sigcontext_addr): New function.
10197 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10198 alpha_linux_sigcontext_addr.
10199 * alpha-osf1-tdep.c: Include gdbcore.h.
10200 (alpha_osf1_sigcontext_addr): New function.
10201 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10202 alpha_osf1_sigcontext_addr.
10203 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10204 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10206 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10208 * stack.c (selected_frame_level):
10209 (select_frame): Do not set selected_frame_level.
10210 * frame.h (selected_frame_level): Delete declaration.
10212 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10214 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10215 convert_from_func_ptr-addr when AIX / PowerOpen.
10217 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10219 * valops.c (hand_function_call): Call
10220 generic_save_call_dummy_addr.
10221 * frame.h (generic_save_call_dummy_addr): Declare.
10222 * blockframe.c (struct dummy_frame): Add fields call_lo and
10224 (generic_find_dummy_frame): Check for PC in range call_lo to
10225 call_hi instead of entry_point_address.
10226 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10227 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10228 (generic_save_call_dummy_addr): New function.
10230 2002-04-24 David S. Miller <davem@redhat.com>
10232 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10233 sparc_skip_prologue.
10234 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10235 information to find prologue when possible.
10236 (sparc_prologue_frameless_p): Call examine_prologue directly.
10237 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10238 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10240 (SKIP_PROLOGUE): Likewise.
10242 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10244 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10245 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10246 indicate that the condition it was testing is always true.
10247 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10248 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10249 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10251 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10253 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10254 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10255 tdep->jb_pc and tdep->jb_elt_size.
10256 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10257 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10258 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10259 * alpha-nat.c (get_longjmp_target): Remove.
10260 (JB_ELEMENT_SIZE): Ditto.
10262 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10263 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10264 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10265 to alpha_get_longjmp_target.
10266 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10267 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10268 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10270 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10272 * README: Update to GDB 5.2.
10274 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10276 * gdbarch.sh (LC_ALL): Set to `c'.
10278 2002-04-25 Theodore A. Roth <troth@verinet.com>
10280 * avr-tdep.c: Ran through gdb_indent.sh.
10282 2002-04-25 Theodore A. Roth <troth@verinet.com>
10284 * MAINTAINERS: Add myself as AVR maintainer.
10285 * NEWS: Note new target avr.
10287 2002-04-25 Theodore A. Roth <troth@verinet.com>
10289 * Makefile.in: Add support for AVR target.
10290 * configure.tgt: Add support for AVR target.
10291 * avr-tdep.c: New file
10292 * config/avr/avr.mt: New file.
10294 2002-04-25 Theodore A. Roth <troth@verinet.com>
10296 * MAINTAINERS: Add myself to write-after-approval.
10298 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10300 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10301 with fprintf_unfiltered (gdb_stderr,....
10303 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10306 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10308 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10310 * p-exp.y: Also use new prev_lexptr variable
10311 to improve error reporting. Based on Michael Snyder
10312 2002-04-24 dated patch to c-exp.y.
10314 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10316 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10317 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10318 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10320 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10322 (FUNCTION_START_OFFSET): Remove.
10323 (BREAKPOINT): Ditto.
10325 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10327 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10330 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10332 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10333 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10334 alpha_linux_pc_in_sigtramp.
10335 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10336 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10337 alpha_osf1_pc_in_sigtramp.
10338 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10339 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10340 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10341 alphafbsd_pc_in_sigtramp.
10342 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10343 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10344 alphanbsd_pc_in_sigtramp.
10345 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10346 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10348 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10350 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10352 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10354 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10356 (alphanbsd-nat.o): New dependency list.
10357 (alphanbsd-tdep.o): Ditto.
10358 * NEWS: Note new native NetBSD/alpha configuration.
10359 * alphanbsd-nat.c: New file.
10360 * alphanbsd-tdep.c: Ditto.
10361 * configure.host (alpha*-*-netbsd*): New host.
10362 * configure.tgt (alpha*-*-netbsd*): New target.
10363 * config/alpha/nbsd.mh: New file.
10364 * config/alpha/nbsd.mt: Ditto.
10365 * config/alpha/nm-nbsd.h: Ditto.
10366 * config/alpha/tm-nbsd.h: Ditto.
10368 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10370 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10371 (alpha-osf1-tdep.o): New dependency list.
10372 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10373 and skip_sigtramp_frame members.
10374 * alpha-linux-tdep.c: Include gdbcore.h.
10375 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10376 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10377 * alpha-osf1-tdep.c: New file.
10378 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10380 (alpha_frame_past_sigtramp_frame): New function.
10381 (alpha_dynamic_sigtramp_offset): Ditto.
10382 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10383 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10384 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10385 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10386 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10387 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10388 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10389 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10390 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10391 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10392 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10393 to find_solib_trampoline_target.
10394 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10395 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10396 (SKIP_TRAMPOLINE_CODE): Remove.
10397 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10398 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10399 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10400 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10401 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10402 (PROC_SIGTRAMP_MAGIC): Ditto.
10403 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10404 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10405 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10406 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10407 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10409 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10411 * NEWS: Note that Alpha targets are now multi-arch.
10413 2002-04-24 Michael Snyder <msnyder@redhat.com>
10415 * parser-defs.h (prev_lexptr): New external variable.
10416 * parse.c (parse_exp_1): Set prev_lexptr to null before
10417 calling the language-specific parser.
10418 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10419 (yyerror): Use prev_lexptr in error reporting.
10421 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10423 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10424 * gregset.h: If FILL_FPXREGSET is defined, provide
10425 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10426 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10427 is defined, call fill_fpxregset.
10429 2002-04-24 Roland McGrath <roland@frob.com>
10431 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10432 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10433 (supply_gregset, supply_fpregset): New functions.
10435 * gnu-nat.c (gnu_find_memory_regions): New function.
10436 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10437 (gnu_xfer_memory): Add a cast.
10439 2002-04-24 Michael Snyder <msnyder@redhat.com>
10441 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10442 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10443 of argument regs ("str r(0123), [r11, #-nn"]).
10444 (arm_skip_prologue): Better handling for frameless functions.
10445 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10446 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10448 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10450 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10451 NUM_PSEUDO_REGS can be used.
10453 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10455 * arch-utils.h: Update copyright.
10457 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10458 * gdbarch.h, gdbarch.c: Re-generate.
10460 * inferior.h (IN_SIGTRAMP): Delete definition.
10461 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10462 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10464 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10465 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10466 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10467 (find_proc_framesize): Ditto.
10468 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10469 (alpha_init_extra_frame_info): Ditto.
10470 * infrun.c (handle_inferior_event): Ditto.
10471 (handle_inferior_event): Ditto.
10472 (check_sigtramp2): Ditto.
10473 * blockframe.c (create_new_frame): Ditto.
10474 (get_prev_frame): Ditto.
10475 * ppc-linux-tdep.c: Update comments.
10476 * i386-linux-tdep.c: Update comments.
10477 * breakpoint.c (bpstat_what): Update comment.
10479 2002-04-24 David S. Miller <davem@redhat.com>
10481 * i960-tdep.c (register_in_window_p): New function.
10482 (i960_find_saved_register): Use it instead of
10483 REGISTER_IN_WINDOW_P.
10484 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10486 * symtab.h (find_stab_function_addr): Kill extern.
10487 * minsyms.c (find_stab_function_addr): Remove from here...
10488 * dbxread.c: ... to here, and mark it static.
10490 2002-04-20 David S. Miller <davem@redhat.com>
10492 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10493 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10495 2002-04-21 David S. Miller <davem@redhat.com>
10497 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10498 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10499 (vx_write_register): Likewise.
10501 2002-04-23 J. Brobecker <brobecker@gnat.com>
10503 * source.c (is_regular_file): New function.
10504 (openp): Check wether file to open is a regular file
10505 to avoid opening directories.
10507 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10509 * findvar.c (extract_signed_integer): Cast printf argument
10510 to suppress format warning.
10511 (extract_unsigned_integer): Likewise.
10512 * infcmd.c (registers_info): Likewise.
10513 * top.c (get_prompt_1): Likewise.
10514 * valops.c (value_assign): Likewise.
10515 * valprint.c (print_decimal): Likewise.
10517 2002-04-22 H.J. Lu (hjl@gnu.org)
10519 * c-exp.y (typebase): Support
10521 [long|long long|short] [signed|unsigned] [int|]
10525 signed [long|long long|short] int
10527 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10529 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10531 * vax-tdep.h: New file.
10532 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10533 Make several routines static.
10534 (vax_get_saved_register): New function.
10535 (vax_gdbarch_init): New function.
10536 (_initialize_vax_tdep): Register vax_gdbarch_init.
10537 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10538 Remove macros now under the control of gdbarch.
10540 2002-04-22 Michael Snyder <msnyder@redhat.com>
10542 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10543 Some whitespace and coding standards tweaks.
10545 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10547 * vax-tdep.c: Include regcache.h.
10548 (vax_call_dummy_words): New.
10549 (sizeof_vax_call_dummy_words): New.
10550 (vax_fix_call_dummy): New function.
10551 (vax_saved_pc_after_call): Ditto.
10552 * config/vax/tm-vax.h: Don't include regcache.h.
10553 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10554 (CALL_DUMMY): Remove.
10555 (CALL_DUMMY_WORDS): Define.
10556 (SIZEOF_CALL_DUMMY_WORDS): Define.
10557 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10559 2002-04-18 Michael Snyder <msnyder@redhat.com>
10561 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10563 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10565 * vax-tdep.c (vax_frame_chain): New function.
10566 (vax_push_dummy_frame): Ditto.
10567 (vax_pop_frame): Ditto.
10568 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10569 (FRAMELESS_FUNCTION_INVOCATION): Use
10570 generic_frameless_function_invocation_not.
10571 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10572 (POP_FRAME): Use vax_pop_frame.
10574 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10576 * vax-tdep.c (vax_store_struct_return): New function.
10577 (vax_extract_return_value): Ditto.
10578 (vax_store_return_value): Ditto.
10579 (vax_extract_struct_value_address): Ditto.
10580 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10581 vax_store_struct_return.
10582 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10583 (STORE_RETURN_VALUE): Use vax_store_return_value.
10584 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10586 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10588 * vax-tdep.c (vax_frame_saved_pc): New function.
10589 (vax_frame_args_address_correct): Ditto.
10590 (vax_frame_args_address): Ditto.
10591 (vax_frame_locals_address): Ditto.
10592 (vax_frame_num_args): Move code to be in proximity to
10593 other frame-related functions.
10594 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10595 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10596 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10597 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10598 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10600 2002-04-22 H.J. Lu (hjl@gnu.org)
10602 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10605 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10607 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10608 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10609 (FRAME_INIT_SAVED_REGS): New macro.
10611 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10613 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10615 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10617 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10619 (fetch_osf_core_registers): Likewise.
10620 (supply_gregset): Likewise.
10622 2002-04-22 J. Brobecker <brobecker@gnat.com>
10624 * symfile.h (get_section_index): Define.
10625 * symfile.c (get_section_index): New function.
10626 * mdebugread.c (SC_IS_SBSS): New macro.
10627 (SC_IS_BSS): Return true for the scBss storage class only, as
10628 the scSBss storage class refers to the .sbss section.
10629 (parse_partial_symbols): Discard the symbols which associated
10630 section does not exist.
10631 Make sure to use the .sbss section index for symbols which
10632 storage class is scBss, rather than using the .bss section index.
10634 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10636 * vax-tdep.c: Update copyright years.
10637 (vax_register_name): New function.
10638 (vax_register_byte): Ditto.
10639 (vax_register_raw_size): Ditto.
10640 (vax_register_virtual_size): Ditto.
10641 (vax_register_virtual_type): Ditto.
10642 * config/vax/tm-vax.h: Update copyright years.
10643 (REGISTER_NAMES): Remove.
10644 (REGISTER_NAME): Define.
10645 (REGISTER_BYTE): Use vax_register_byte.
10646 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10647 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10648 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10650 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10652 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10654 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10656 2002-04-21 David S. Miller <davem@redhat.com>
10658 * arch-utils.c (generic_prologue_frameless_p): Kill
10659 SKIP_PROLOGUE_FRAMELESS_P code.
10660 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10662 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10663 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10664 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10666 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10667 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10668 (sparc_gdbarch_init): Pass it to
10669 set_gdbarch_prologue_frameless_p.
10671 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10673 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10674 (alphabsd-nat.o): New dependency list.
10676 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10678 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10680 (alpha-linux-tdep.o): New dependency list.
10681 (alphafbsd-tdep.o): Likewise.
10683 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10685 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10687 * alpha-tdep.c: ...from here.
10688 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10690 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10692 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10693 prototype from here...
10694 * alpha-tdep.h: ...to here.
10696 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10698 * frame.h (selected_frame_level): Document as deprecated.
10699 (frame_relative_level): Declare.
10700 * stack.c (frame_relative_level): New function.
10701 (selected_frame_level): Document as deprecated.
10702 (select_frame): Do not set the selected_frame_level.
10704 * stack.c (frame_info, record_selected_frame): Update.
10705 (frame_command, current_frame_command): Update.
10706 (up_silently_base, up_command, down_silently_base): Update.
10707 (down_command): Update.
10708 * inflow.c (kill_command): Update.
10709 * tracepoint.c (finish_tfind_command): Update.
10710 * corelow.c (core_open): Update.
10711 * thread.c (info_threads_command): Update.
10712 (do_captured_thread_select): Update.
10713 * infcmd.c (finish_command): Update.
10714 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10716 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10718 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10720 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10722 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10725 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10727 * alphafbsd-tdep.c: Update copyright years. Include
10729 (alphafbsd_use_struct_convention): Make static.
10730 (alphafbsd_init_abi): New function.
10731 (_initialize_alphafbsd_tdep): New function.
10732 * config/alpha/tm-fbsd.h: Update copyright years.
10733 (USE_STRUCT_CONVENTION): Remove.
10735 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10737 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10738 an Alpha ABI variant.
10739 (alpha_abi_handler_list): Declare.
10740 (alpha_gdbarch_register_os_abi): New function.
10741 (alpha_gdbarch_init): Give registered ABI variant handlers a
10742 chance to tweak the gdbarch once we have set up defaults.
10743 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10745 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10747 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10748 to standard_coerce_float_to_double.
10749 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10751 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10753 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10754 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10755 from gdbarch_tdep rather than a constant.
10756 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10757 the default text address for all Alpha Unix ABIs.
10758 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10759 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10761 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10763 * alpha-tdep.h: New file. Includes several Alpha target constants
10765 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10766 let gdbarch deal with.
10767 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10768 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10769 to dependency list.
10770 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10771 Alpha target register names.
10772 * alphabsd-nat.c: Likewise.
10773 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10774 Alpha target register names. Make serveral routines static.
10775 (alpha_get_saved_register): New function.
10776 (alpha_abi_names): New.
10777 (process_note_abi_tag_sections): New function.
10778 (get_elfosabi): New function.
10779 (alpha_gdbarch_init): New function.
10780 (alpha_dump_tdep): New function.
10781 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10783 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10785 * frame.c (find_saved_register): Delete #ifdef
10786 HAVE_REGISTER_WINDOWS code.
10787 * config/sparc/tm-sparc.h: Update comments.
10788 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10790 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10792 * i960-tdep.c (i960_find_saved_register): New function.
10793 (i960_get_saved_register): New function.
10794 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10795 (i960_get_saved_register): Declare.
10796 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10798 2002-04-20 David S. Miller <davem@redhat.com>
10800 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10802 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10804 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10805 instead of NUM_PSEUDO_REGS.
10807 2002-04-20 David S. Miller <davem@redhat.com>
10809 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10810 GDB_MULTI_ARCH_PARTIAL
10811 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10812 define, let tm-sp64.h do it.
10814 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10816 * frame.c (find_saved_register): Avoid a NULL pointer
10817 dereference and actually walk the frame list.
10819 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10821 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10822 sorted in most most-recent-used order. Document.
10823 * gdbarch.h, gdbarch.c: Regenerate.
10825 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10827 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10829 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10830 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10831 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10834 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10837 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10838 (build_builtin_type_vec128): Ditto.
10839 (append_composite_type_field): Fix calculation of type length in
10842 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10844 * config/djgpp/README: Update.
10846 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10849 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10851 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10852 (alpha_setup_arbitrary_frame): ...to this.
10853 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10854 for alpha_setup_arbitrary_frame.
10856 2002-04-18 Andrew Cagney <cagney@redhat.com>
10858 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10859 * gdbarch.h, gdbarch.c: Regenerate.
10861 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10862 * target.h (memory_breakpoint_from_pc): Update declaration.
10863 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10865 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10866 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10867 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10868 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10869 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10870 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10871 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10872 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10873 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10874 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10875 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10876 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10878 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10880 * monitor.c (monitor_insert_breakpoint): Ditto.
10881 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10883 * config/mcore/tm-mcore.h: Update copyright.
10884 * mem-break.c: Ditto.
10885 * xstormy16-tdep.c: Ditto.
10887 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10889 * p-exp.y: Add precedence rule for '^' token.
10890 This removes the shift/reduce conflicts.
10891 Remove the comment concerning these shift/reduce conflicts.
10893 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10895 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10896 (registers_powerpc_nofp): New register set for processors
10897 without floating point unit.
10899 2002-04-18 David S. Miller <davem@redhat.com>
10901 * MAINTAINERS: Add myself to write-after-approval.
10903 2002-04-17 Michael Snyder <msnyder@redhat.com>
10905 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10907 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10909 * rs6000-tdep.c (frame_initial_stack_address): Use
10910 frame_register_read to read the alloca_reg.
10912 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10914 * frame.c (find_saved_register): Find saved registers in the next
10918 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10920 * gdbarch.sh (LANG): Set to ``c''.
10922 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10924 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10926 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10928 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10931 * hpread.c (hpread_get_lntt): Add declaration.
10932 Also fix PR gdb/391.
10934 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10936 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10937 * aclocal.m4, configure: Re-generate.
10940 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10942 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10943 instead of tm_print_insn.
10945 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10947 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10949 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10951 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10952 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10953 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10955 2002-04-12 Don Howard <dhoward@redhat.com>
10957 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10958 max_user_call_depth.
10959 (init_cmd_lists): Initialize the new value;
10960 * cli/cli-script.c (execute_user_command): Limit the call depth of
10961 user defined commands. This avoids a core-dump when user commands
10962 are infinitly recursive.
10964 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10966 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10967 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10968 from tdep struct instead of DEFAULT_LR_SAVE.
10969 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10970 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10971 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10973 2002-04-12 Michael Snyder <msnyder@redhat.com>
10975 * Remote.c: Spelling fix.
10976 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10977 If no symbol found for "sbrk", try "_sbrk".
10978 (make_output_phdrs): Use bfd_section_name.
10979 (gcore_copy_callback): Use bfd_section_name.
10980 * eval.c: Indentation fix-ups.
10981 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10982 in case it gets applied to an address that is already
10983 in the instruction space.
10984 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10985 * symfile.c: Fix indentation, long lines.
10986 * source.c: White space fix-up.
10988 2002-04-12 Andrew Cagney <cagney@redhat.com>
10990 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10991 * frame.c (frame_register_read): New function. Return non-zero on
10993 (read_relative_register_raw_bytes_for_frame): Delete.
10994 (read_relative_register_raw_bytes): Delete.
10995 * frame.h (frame_register_read): Declare.
10996 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10997 * sh-tdep.c: Ditto.
10998 * infcmd.c (do_registers_info): Ditto.
10999 * hppa-tdep.c: Ditto.
11000 * rs6000-tdep.c: Ditto.
11001 * h8500-tdep.c: Ditto.
11002 * mips-tdep.c: Ditto.
11003 * h8300-tdep.c: Ditto.
11004 * z8k-tdep.c: Ditto.
11006 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11008 From Jimi X <jimix@watson.ibm.com>:
11009 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11012 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11014 From Jimi X <jimix@watson.ibm.com>:
11015 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11018 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11020 From Jimi X <jimix@watson.ibm.com>:
11021 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11022 register sets for these processor variants.
11024 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11026 * regformats/reg-ppc.dat: Support FPSCR.
11028 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11030 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11031 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11032 Add fpscr as an invalid/unfetchable register.
11033 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11034 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11035 (fill_fpregset): Add support for register fpscr.
11036 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11037 (fill_gregset): Account for the fact that register ``mq'' might
11039 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11040 (registers_power): Add fpscr to register set at slot 71.
11041 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11042 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11044 2002-04-11 Michael Snyder <msnyder@redhat.com>
11046 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11047 * configure: Regenerate.
11048 * config.in: Regenerate.
11049 * acconfig.h: Add define for _SYSCALL32.
11050 * core-sol2.c: Remove #define _SYSCALL32.
11051 * solib-legacy.c: Remove #define _SYSCALL32.
11053 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11055 * stack.c (select_frame): Cleanup internal error message, do not
11058 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11060 * stack.c (select_frame): Check that selected_frame and the
11061 specified level are as expected.
11062 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11064 * frame.h (struct frame_info): Add field `level'. Update
11066 Work-in-progress PR gdb/464.
11068 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11070 * maint.c (maint_print_section_info): Rename print_section_info.
11071 (print_bfd_section_info, print_objfile_section_info): Update.
11072 * inferior.h (struct gdbarch): Add opaque declaration.
11073 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11074 * gdbarch.h: Regenerate.
11076 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11078 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11079 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11080 (kernel_u_size): Added.
11081 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11082 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11084 2002-04-04 Jim Ingham <jingham@apple.com>
11086 * valarith.c (find_size_for_pointer_math): New function, either returns
11087 the size for a pointer's target, returns 1 for void *, or errors for
11089 (value_add, value_sub): use find_size_for_pointer_math.
11091 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11093 * linux-low.c (linux_look_up_symbols): New hook.
11094 (linux_target_ops): Add linux_look_up_symbols.
11095 * remote-utils.c (decode_address): New function.
11096 (look_up_one_symbol): New function.
11097 * server.c (handle_query): Call target look_up_symbols hook.
11098 * server.h (look_up_one_symbol): Add prototype.
11099 * target.h (struct target_ops): Add look_up_symbols hook.
11101 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11103 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11104 override FP_REGNUM with frame->fp. Update copyright.
11105 * parse.c (num_std_regs, std_regs): Delete.
11106 (target_map_name_to_register): Do not search std_regs. Update
11107 function description.
11108 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11109 declarations. Update copyright.
11112 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11114 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11115 after the last symbol in a block.
11117 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11119 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11120 is non zero as a found symbol.
11122 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11124 * findvar.c: Include "builtin-regs.h".
11125 (value_of_register): Call value_of_builtin_reg when applicable.
11126 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11127 (target_map_name_to_register): Call
11128 builtin_reg_map_name_to_regnum.
11129 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11130 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11131 (builtin_regs_h): Define.
11132 (builtin-regs.o): New target.
11133 (findvar.o): Add $(builtin_regs_h).
11134 * builtin-regs.c, builtin-regs.h: New files.
11135 * std-regs.c: New file.
11136 Partial fix for PR gdb/251.
11138 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11140 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11141 it's no longer required.
11143 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11145 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11147 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11149 From Jimi X <jimix@watson.ibm.com>:
11150 * rs6000-tdep.c (rs6000_software_single_step): Use
11151 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11152 and size. Use target_insert_breakpoint() and
11153 target_remove_breakpoint() to insert and remove breakpoints
11154 instead of explicit memory reads and writes.
11156 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11158 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11159 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11160 ELF_OBJECT_FORMAT ifdef.
11162 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11164 From Jimi X <jimix@watson.ibm.com>:
11165 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11167 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11169 From Jimi X <jimix@watson.ibm.com>:
11170 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11171 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11173 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11175 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11176 s/asprintf/xasprintf/.
11177 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11179 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11181 I believe Jeff Law denies responsability for this one:
11182 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11183 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11184 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11185 Work-around for PR gdb/366.
11187 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11189 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11190 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11191 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11193 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11195 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11196 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11199 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11201 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11204 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11206 * README (Reporting Bugs in GDB): Document the bug web page as the
11207 prefered way of submitting bugs.
11210 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11212 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11213 -1. Update comment.
11214 * gdbarch.h, gdbarch.c: Re-generate.
11216 2002-04-07 Andreas Schwab <schwab@suse.de>
11218 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11219 buffer to regcache_collect.
11221 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11223 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11224 * gdbarch.c, gdbarch.h: Re-generate.
11226 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11228 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11229 declaration. Fix -Werror.
11231 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11233 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11234 * gdbarch.c: Regenerate.
11236 2002-04-05 Michael Snyder <msnyder@redhat.com>
11238 * breakpoint.c (clear_command): Rewrite middle section to
11239 combine two loops with identical control conditions.
11240 Add a cleanup to eliminate a memory leak.
11241 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11243 2002-04-05 H.J. Lu (hjl@gnu.org)
11245 * solib-svr4.c (bkpt_names): Add "__start".
11247 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11249 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11250 as test for 64 bit target.
11252 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11254 * h8500-tdep.c (h8500_write_fp): Delete function.
11255 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11256 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11257 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11259 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11260 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11262 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11263 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11264 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11265 (d10v_write_fp): Delete function.
11266 * inferior.h (write_fp, generic_target_write_fp): Delete
11268 * regcache.c (generic_target_write_fp): Delete function.
11269 (write_fp): Delete function.
11270 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11271 * gdbarch.h, gdbarch.c: Regenerate.
11272 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11273 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11274 (sparc64_write_fp): Delete declaration.
11275 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11276 (h8500_write_fp): Delete declaration.
11278 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11280 * sparc-tdep.c (sparc64_write_fp): Delete.
11281 (sparc_push_dummy_frame): Replace write_fp call with code to store
11283 (sparc_gdbarch_init): Do not initialize write_fp.
11285 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11287 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11290 2002-03-29 Jim Blandy <jimb@redhat.com>
11292 * stack.c (get_selected_block): Add new argument `addr_in_block',
11293 used to return the exact code address we used to select the block,
11294 not just the block.
11295 * blockframe.c (get_frame_block, get_current_block): Same.
11296 * frame.h (get_frame_block, get_current_block,
11297 get_selected_block): Update declarations.
11298 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11299 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11301 2002-04-05 Michael Snyder <msnyder@redhat.com>
11303 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11306 2002-04-05 J. Brobecker <brobecker@gnat.com>
11308 * utils.c (xfullpath): New function.
11309 * defs.h (xfullpath): Add declaration.
11310 * source.c (openp): Use xfullpath in place of gdb_realpath to
11311 avoid resolving the basename part of filenames when the
11312 associated file is a symbolic link. This fixes a potential
11313 inconsistency between the filenames known to GDB and the
11314 filenames it prints in the annotations.
11315 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11316 to be able to match a filename with either the real filename, or
11317 the name of any symbolic link to this file.
11318 (lookup_partial_symtab): Ditto.
11320 2002-04-04 Michael Snyder <msnyder@redhat.com>
11322 * breakpoint.c: Add support for hardware breakpoints in overlays.
11323 (overlay_events_enabled): New state variable.
11324 (insert_breakpoints): Use overlay_events_enabled to decide
11325 whether to attempt to set a breakpoint at the overlay load addr.
11326 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11327 (remove_breakpoint): Use overlay_events_enabled to decide
11328 whether breakpoints need to be removed from overlay load addr.
11329 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11330 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11331 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11332 disable_overlay_breakpoints): Update overlay_events_enabled.
11334 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11336 * dwarf2read.c (struct function_range): New.
11337 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11338 (check_cu_functions): New.
11339 (read_file_scope): Initialize global function lists.
11340 Call dwarf_decode_line after processing children.
11341 (read_func_scope): Add to global function list.
11342 (dwarf_decode_lines): Call check_cu_functions everywhere
11343 record_line is called. Call record_line with a linenumber
11344 of 0 to mark sequence ends.
11346 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11348 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11349 change sync with glibc.
11351 2002-04-03 Jim Blandy <jimb@redhat.com>
11353 * configure.in: Call AC_C_INLINE.
11354 * configure: Regenerated.
11356 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11358 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11359 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11361 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11363 * NEWS: Mention gcore support on FreeBSD/i386.
11365 * fbsd-proc.c: New file.
11366 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11367 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11369 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11372 2002-03-29 Jim Blandy <jimb@redhat.com>
11374 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11375 unescaped newlines in string literals, but newer ones don't. So
11378 2002-03-26 Michael Snyder <msnyder@redhat.com>
11379 Andrew Cagney <cagney@redhat.com>
11381 * cli/cli-dump.c: New file. Dump memory to file,
11382 restore file to memory.
11383 * cli/cli-dump.h: New file.
11384 * Makefile.in: Add rules, dependencies for cli-dump.o.
11385 * NEWS: Mention new commands.
11387 2002-03-28 Michael Snyder <msnyder@redhat.com>
11389 * symfile.c (symbol_file_add): Move test for null symbols to later.
11391 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11393 From veksler at il.ibm.com:
11394 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11395 the xstrduped original path.
11398 2002-03-27 Michael Snyder <msnyder@redhat.com>
11400 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11401 * infcmd.c (_initialize_infcmd): Ditto.
11402 * language.c (_initialize_language): Ditto.
11403 * symfile.c (_initialize_symfile): Ditto.
11404 * top.c (_init_main): Ditto.
11405 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11407 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11409 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11410 vector registers handling.
11411 (skip_prologue): Handle new AltiVec instructions. Fill in new
11412 fields of frame data.
11413 (frame_get_saved_regs): Fill in information for AltiVec registers.
11415 2002-03-27 Jim Blandy <jimb@redhat.com>
11417 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11418 a function; leave this macro here to invoke that function.
11419 (symbol_init_mangled_name): Declaration for that function.
11420 * symtab.c (symbol_init_mangled_name): New function.
11422 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11424 * valarith.c: Replace strerror with safe_strerror.
11425 * tracepoint.c: Ditto.
11426 * lin-lwp.c: Ditto.
11427 * go32-nat.c: Ditto.
11429 * gnu-nat.c: Ditto.
11431 2002-03-27 Andreas Schwab <schwab@suse.de>
11433 * event-top.c (command_line_handler): Remove useless if.
11435 2002-03-27 Andreas Jaeger <aj@suse.de>
11437 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11440 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11442 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11443 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11444 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11445 (x86_64_linux_dr_get_status, supply_gregset),
11446 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11447 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11448 (x86_64_register_info_table): Add.
11449 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11450 (x86_64_register_raw_size, x86_64_register_virtual_type),
11451 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11452 general x86_64_register_info_table.
11453 (i386_gdbarch_init): gdbarch_register_bytes is now set
11454 dynamicaly during initialization.
11455 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11456 * gdbserver/linux-x86-64-low.c: Ditto.
11458 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11460 * gdbserver/server.c (main): Call target_signal_to_host_p
11461 and target_signal_to_host on signals received from the remote.
11462 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11463 target_signal_from_host on signals sent to the remote.
11464 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11465 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11467 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11469 * signals/signals.c: Include "server.h" in gdbserver build.
11470 (target_signal_from_name): Don't use STREQ.
11471 (_initialize_signals): Likewise. Don't include function in
11474 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11476 * signals.c: Moved to...
11477 * signals/signals.c: Here.
11478 * Makefile (signals.o): Update.
11480 2002-03-26 Jeff Law (law@redhat.com)
11482 * somread.c (som_symtab_read): Remove some commented out code and
11483 updated related comments. Do not set the minimal symbol table to
11484 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11485 in a dynamic executable.
11486 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11487 where we are unable to find the minimal symbol for the given
11490 2002-03-25 Jeff Law (law@redhat.com)
11492 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11494 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11496 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11498 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11500 * command.h: Update copyright.
11501 (struct cmd_list_element): Replace definition with opaque
11503 (enum cmd_types): Document that it will eventually be moved to
11505 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11506 (MALLOCED_REPLACEMENT): Delete macro.
11507 * Makefile.in (cli_decode_h): Add $(command_h).
11508 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11509 * top.c: Include "cli/cli-decode.h".
11510 * completer.c: Include "cli/cli-decode.h".
11511 * maint.c: Include "cli/cli-decode.h".
11512 * cli/cli-decode.h: Include "command.h".
11513 (enum command_class): Delete.
11514 (enum cmd_types): Comment out.
11515 (enum cmd_auto_boolean): Delete.
11516 (enum var_types): Delete.
11518 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11520 * cli/cli-decode.c: Include "gdb_assert.h".
11521 (add_set_or_show_cmd): New static function.
11522 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11523 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11524 all fields, such as func, from the set command.
11526 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11528 * MAINTAINERS (sh-elf): Change warning flag to -w.
11530 2002-03-23 Andrew Cagney <cagney@redhat.com>
11532 * defs.h (error): Add printf format attribute.
11533 * thread-db.c (thread_from_lwp): Fix error format string.
11534 * stack.c (parse_frame_specification): Ditto.
11535 * cli/cli-decode.c (undef_cmd_error): Ditto.
11536 * scm-lang.c (scm_lookup_name): Ditto.
11537 * tracepoint.c (trace_error): Ditto.
11538 * remote-utils.c (usage): Ditto.
11539 * remote.c (compare_sections_command): Ditto.
11542 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11544 * gdbtypes.c (append_composite_type_field): New function.
11545 (init_composite_type): New function.
11546 * gdbtypes.h (append_composite_type_field): Declare.
11547 (init_composite_type): Ditto.
11549 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11551 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11553 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11554 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11555 structure returning convention for SYSV ABI case, but not
11556 for GNU/Linux, FreeBSD, or NetBSD.
11558 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11560 * symtab.h (lookup_block_symbol): Add mangled_name argument
11563 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11564 with new mangled_name argument.
11565 * linespec.c (decode_line_1): Likewise.
11566 * valops (value_of_this): Likewise.
11567 * symtab.c (lookup_transparent_type): Likewise.
11568 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11569 (lookup_symbol): If we are given a mangled name, pass it down
11570 to lookup_symbol_aux.
11571 (lookup_block_symbol): If we are given a mangled name to check
11572 against, only return symbols which match it.
11574 2002-03-22 Christopher Faylor <cgf@redhat.com>
11576 * win32-nat.c (child_create_inferior): Check for proper shell to use
11577 here, in case the user changes it on the fly.
11578 (_initialize_inftarg): Remove shell path considerations.
11580 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11582 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11583 for gdbarch_max_register_raw_size and max_register_virtual_size.
11584 Adjust copyright year.
11586 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11588 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11589 in a function to cover the entire beginning of the function
11590 as well if it does not already.
11592 2002-03-21 Tom Rix <trix@redhat.com>
11594 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11595 (rs6000_ptrace64): Renamed from ptrace64.
11597 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11599 * gdbserver/remote-utils.c (remote_open): Don't call
11600 getprotobyname, we're all using TCP here so just use
11602 * gdbserver/gdbreplay.c (remote_open): Ditto.
11604 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11606 * regcache.c (_initialize_regcache): No need to call
11607 build_regcache() at this time; it gets called whenever
11608 the gdbarch changes.
11610 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11612 * sparc-nat.c: Include sys/param.h where possible.
11614 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11617 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11618 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11619 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11621 * stabsread.c (rs6000_builtin_type): Likewise.
11622 (read_sun_floating_type): Likewise.
11624 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11626 * stabsread.c (read_member_functions): Remove skip code for duplicate
11627 constructor/destructor methods. Use standard parsing for these
11628 methods and just do not chain them to the list of methods after
11631 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11633 * coffread.c: Remove redundant static declarations. Replace
11634 occurrences of `PTR' with `void *'.
11635 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11636 * top.h (quit_cover): Likewise.
11637 * defs.h (catch_errors): Likewise.
11639 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11641 * defs.h (XMALLOC): Define.
11642 * gdb-events.sh (XMALLOC): Delete macro.
11643 * gdb-events.c, gdb-events.h: Regenerate.
11644 * gdbarch.sh (XMALLOC): Delete macro.
11645 * gdbarch.c: Regenerate.
11646 * serial.c (XMALLOC): Delete macro.
11647 * ui-file.c (XMALLOC): Ditto.
11648 * ser-unix.h (XMALLOC): Ditto.
11649 * sh-tdep.c (XMALLOC): Ditto.
11650 * ui-out.c (XMALLOC): Ditto.
11651 * utils.c (XMALLOC): Ditto.
11652 * i386-tdep.c (XMALLOC): Ditto.
11653 * gdb-events.c (XMALLOC): Ditto.
11654 * d10v-tdep.c (XMALLOC): Ditto.
11655 * cli-out.c (XMALLOC): Ditto.
11657 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11658 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11659 * ui-file.c, ui-out.c: Ditto.
11661 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11663 * command.h (struct cmd_list_element): Add field context.
11664 (set_cmd_context, get_cmd_context): Declare.
11665 * cli/cli-decode.h: Ditto.
11666 * cli/cli-decode.c (get_cmd_context): New function.
11667 (set_cmd_context): New function.
11668 (add_cmd): Initialize context.
11669 Part of fixing PR gdb/145 and PR gdb/146.
11671 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11673 * cli/cli-decode.c (cmd_type): New function.
11674 * command.h (cmd_type): Declare.
11675 * infrun.c (set_schedlock_func): Call function cmd_type.
11676 * kod.c (kod_set_os): Call cmd_type.
11677 * cris-tdep.c (cris_version_update): Use function cmd_type.
11678 (cris_mode_update, cris_abi_update): Ditto.
11680 * command.h: (execute_cmd_post_hook): Declare.
11681 (execute_cmd_pre_hook): Declare.
11682 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11683 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11684 functions. Execute pre/post hook while ensuring that afterwords
11685 hook_in is cleared.
11686 * top.c (execute_command): Use execute_cmd_post_hook, and
11687 execute_cmd_pre_hook to execute pre/post commands.
11688 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11690 (hook_stop_stub): Call execute_cmd_pre_hook.
11692 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11694 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11695 set'' and this leads to a core dump. Move xstrdup of
11696 operating_system to after check that it is not NULL.
11698 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11700 * kod.c (kod_set_os): Remove unnecessary check that
11701 ``command->type'' is set_cmd.
11703 * valprint.c (set_input_radix): Use input_radix.
11704 (set_output_radix): Use output_radix.
11705 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11708 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11710 * value.h (struct value): Delete field ``substring_addr''. Change
11711 aligner fields to force_doublest_align, force_longest_align,
11712 force_core_addr_align and force_pointer_aligh.
11714 * value.h (struct value): Fix typo in above change.
11716 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11718 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11719 to fix internal_error from ``maintenance print architecture''.
11721 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11723 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11724 for gcc versions after gcc-2.8.1.
11726 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11728 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11729 for method resolution. Restore adjustment of ``this'' pointer after
11730 calling value_struct_elt, which was accidentally removed during the
11733 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11735 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11737 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11738 get_saved_register.
11739 * value.h (value_of_register): Update.
11741 2002-03-14 Richard Henderson <rth@redhat.com>
11743 * configure.in: Detect declaration for canonicalize_file_name.
11744 * utils.c (canonicalize_file_name): Declare, if needed.
11745 (gdb_realpath): Prefer realpath if available and usable.
11746 * config.in, configure: Rebuild.
11748 2002-03-14 Richard Henderson <rth@redhat.com>
11750 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11751 a constant array bound.
11753 * MAINTAINERS: Add myself to write-after-approval.
11755 2002-03-14 Michael Snyder <msnyder@redhat.com>
11757 * symfile.c (syms_from_objfile): Return immediately if no syms.
11758 (symbol_file_add): Return immediately if no syms.
11759 (find_sym_fns): Return immediately if no syms.
11761 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11763 * gdbserver/remote-util.c (remote_open): Print remote-side's
11764 IP address when remote debugging over the network.
11766 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11768 * config/sparc/fbsd.mh: Fix copyright.
11769 * config/sparc/fbsd.mt: Likewise.
11771 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11773 * MAINTAINERS: Fix typo in name of gdb warnings option.
11774 (x86-64): Fix formating so that this can be parsed by awk.
11776 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11778 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11779 * defs.h: Include "gdb/signals.h".
11780 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11782 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11784 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11785 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11788 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11789 Don Howard <dhoward@redhat.com>
11791 * mips-tdep.c (ST0_FR): Define.
11792 (mips2_fp_compat): New function, temporarily disabled.
11793 (mips_read_fp_register_single): New function.
11794 (mips_read_fp_register_double): New function.
11795 (mips_print_register): Use them.
11796 (do_fp_register_row): Likewise.
11798 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11800 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11803 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11805 * stabsread.c (read_member_functions): Fix is_stub test for
11806 static member functions, improve comment.
11808 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11810 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11811 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11812 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11813 commands that set boolean values.
11814 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11815 (arm_rdi_resume): Always initialize PC.
11816 (arm_rdi_open): Don't use rslt as a boolean.
11817 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11818 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11819 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11820 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11822 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11824 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11825 * configure: Rebuilt.
11827 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11829 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11830 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11832 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11834 * cli/cli-decode.c (set_cmd_completer): New function.
11835 * command.h (set_cmd_completer): Declare.
11836 * cli/cli-decode.h (set_cmd_completer): Ditto.
11838 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11839 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11840 * win32-nat.c (_initialize_inftarg): Ditto.
11841 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11842 * proc-api.c (_initialize_proc_api): Ditto.
11843 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11844 * source.c (_initialize_source): Ditto.
11845 * exec.c (_initialize_exec): Ditto.
11846 * solib.c (_initialize_solib): Ditto.
11847 * top.c (init_main): Ditto.
11848 * tracepoint.c (_initialize_tracepoint): Ditto.
11849 * symfile.c (_initialize_symfile): Ditto.
11850 * printcmd.c (_initialize_printcmd): Ditto.
11851 * infcmd.c (_initialize_infcmd): Ditto.
11852 * corefile.c (_initialize_core): Ditto.
11854 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11856 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11858 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11860 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11862 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11864 * NEWS: Update headings, 5.2 has branched.
11866 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11868 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11869 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11870 (register_addr, REGISTER_RAW_SIZE): Likewise.
11871 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11872 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11874 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11876 * MAINTAINERS (x86-64): Add myself.
11877 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11878 changed value_ptr -> struct value *
11880 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11882 * configure.host (sparc64-*-freebsd): Add.
11883 * configure.tgt: Likewise.
11884 * config/sparc/fbsd.mh: New file.
11885 * config/sparc/fbsd.mt: Likewise.
11886 * config/sparc/nm-fbsd.h: Likewise.
11887 * config/sparc/tm-fbsd.h: Likewise.
11889 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11891 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11892 regformats/reg-s390x.dat.
11894 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11896 * utils.c: Add FIXME explaining true/false problem.
11898 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11900 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11902 2002-02-28 Michael Chastain <mec@shout.net>
11904 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11906 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11908 * gdbserver/linux-s390-low.c: New file.
11909 * regformats/reg-s390.dat: New file.
11910 * regformats/reg-s390x.dat: New file.
11911 * gdbserver/configure.srv: Add S/390.
11912 * gdbserver/Makefile.in: Add S/390.
11913 * configure.tgt: Enable gdbserver for S/390.
11915 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11917 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11918 first line of the doc string for "info dos", except at the end of
11919 the sentence, since the short help stops at the first period.
11921 2002-02-28 Jason Merrill <jason@redhat.com>
11923 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11925 2002-02-27 Fred Fish <fnf@redhat.com>
11927 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11928 comment (dumy -> dummy).
11930 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11932 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11934 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11936 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11938 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11940 * gdbserver/acconfig.h: New file.
11941 * gdbserver/i387-fp.c: New file.
11942 * gdbserver/i387-fp.h: New file.
11943 * gdbserver/linux-x86-64.c: New file.
11944 * regformats/reg-x86-64.dat: New file.
11945 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11946 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11947 * gdbserver/configure.in: Add support for regsets.
11948 * gdbserver/config.in: Regenerate.
11949 * gdbserver/configure: Regenerate.
11950 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11951 * gdbserver/linux-low.h: New file.
11952 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11954 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11955 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11956 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11957 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11958 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11959 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11960 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11961 "i387-fp.h". Add PTRACE_GETREGS and friends.
11962 * gdbserver/regcache.c (supply_register): New function.
11963 (supply_register_by_name): New function.
11964 (collect_register): New function.
11965 (collect_register_by_name): New function.
11967 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11969 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11970 (config.status): Add configure.srv dependency.
11971 (server_h): Add config.h dependency.
11973 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11975 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11976 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11977 * gdbserver/configure.srv: Change i386-*-linux* to use
11980 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11982 * x86-64-tdep.c: Re-indent. Update copyright date.
11984 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11986 From Michal Ludvig <mludvig@suse.cz>:
11987 * x86-64-tdep.c (value.h): Delete.
11988 (gdb_assert.h): Include.
11989 (x86_64_register_convert_to_virtual,
11990 x86_64_register_convert_to_raw ): Add check which lets only
11991 floating-point values to be converted.
11992 (value_push): Delete.
11993 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11994 (i386_gdbarch_init): Number of register_bytes fixed.
11996 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11998 * MAINTAINERS: Add x86-64 target.
12000 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12002 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12003 * osfsolib.c (solib_map_sections): Ditto.
12004 * irix5-nat.c (solib_map_sections): Ditto.
12005 * corelow.c (gdb_check_format): Ditto.
12006 * symfile.c (symfile_bfd_open): Ditto.
12007 * solib.c (solib_map_sections): Ditto.
12010 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12012 * remote.c (_initialize_remote): By default, disable ``e'' and
12013 ``E'' step out-of-range packets.
12015 2002-02-26 Andreas Schwab <schwab@suse.de>
12017 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12018 m68k_linux_frame_saved_pc.
12019 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12021 (SIGCONTEXT_PC_OFFSET): Remove.
12022 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12023 m68k_linux_sigtramp_saved_pc): New functions.
12024 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12025 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12026 (UCONTEXT_PC_OFFSET): Define.
12027 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12028 non-RT and RT signal trampolines.
12030 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12032 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12033 (TARGET_NBPG, STACK_END_ADDR): Delete
12034 (VARIABLES_INSIDE_BLOCK): Delete.
12036 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12038 * utils.c (perror_with_name): Make string parameter constant.
12039 (print_sys_errmsg): Ditto.
12041 * defs.h (perror_with_name): Update.
12042 (print_sys_errmsg): Update.
12045 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12047 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12048 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12050 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12052 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12053 if it already matches the current architecture from the exec file.
12054 Include arch-utils.h for gdbarch_info_init prototype.
12055 * Makefile.in (rs6000-nat.o): Update dependencies.
12057 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12059 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12060 list of exported variables.
12062 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12064 * gdbserver/configure.srv: New file.
12065 * gdbserver/configure.in: Use configure.srv instead
12066 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12068 * gdbserver/configure: Regenerated.
12069 * gdbserver/terminal.h: New file.
12070 * gdbserver/Makefile.in: Update for configure changes. Remove
12071 more unneeded include paths.
12073 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12075 From wiz at danbala:
12076 * config/sparc/tm-sp64.h: Fix grammar and typos.
12079 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12081 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12082 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12083 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12084 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12085 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12086 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12087 * s390-tdep.c: Ditto.
12088 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12089 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12090 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12091 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12092 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12093 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12094 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12095 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12096 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12097 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12100 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12102 * lin-thread.c: Delete file.
12103 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12104 to gdb_proc_service.h.
12105 * configure: Re-generate.
12107 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12108 * serial.c (serial_open): Delete check for "ocd".
12111 * Makefile.in (linux-thread.o): Delete target.
12112 * linux-thread.c: Delete file.
12114 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12115 renamed SH files to be consistent.
12117 * symtab.c (sort_search_symbols): Use xfree.
12119 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12121 * arm-linux-tdep.c (arm_linux_init_abi): Register
12122 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12123 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12124 definition with undef, since we don't want the sysvr4 definition.
12125 (SKIP_TRAMPOLINE_CODE): Likewise.
12127 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12129 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12131 * configure.in: (AC_CHECK_FUNCS) Added test for
12132 canonicalize_file_name Regenerated.
12133 * config.in, configure: Regenerated.
12134 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12135 defined use canonicalize_file_name.
12137 2002-02-23 Michael Chastain <mec@shout.net>
12139 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12141 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12143 * README: Remove references to cygnus.com.
12144 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12145 dot com'' form. Remove references to cygnus.com and sourceware.
12147 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12149 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12150 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12151 1003.1-2001 no longer allows "head -1".
12152 * gdb/Makefile.in (version.c): Likewise.
12153 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12154 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12155 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12157 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12159 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12160 * command.h (cmd_cfunc_eq): Declare.
12161 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12163 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12164 ``struct cmd_list_element *''.
12165 * cli/cli-cmds.c (is_complete_command): Update. Use
12167 * top.c (execute_command): Pass the command to
12168 is_complete_command.
12169 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12171 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12173 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12174 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12175 architecture defines.
12176 * s390-tdep.c (s390_gdbarch_init): Likewise.
12178 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12180 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12181 (arm_linux_push_arguments): Likewise.
12182 (arm_linux_init_abi): Register them. Also register linux-specific
12184 (find_minsym_and_objfile): Use strcmp, not STREQ.
12185 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12186 (arm_linux_call_dummy_words): Delete declaration.
12187 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12188 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12190 (LOWEST_PC): Delete.
12192 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12194 * maint.c (print_section_info): Do not prepend `0x' to filepos
12195 output, it will be handled by local_hex_string_custom.
12197 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12199 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12200 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12201 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12203 2002-02-22 Jim Blandy <jimb@redhat.com>
12205 Indicate that the bcache functions don't change the strings
12207 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12208 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12210 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12212 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12214 2002-02-21 Christopher Faylor <cgf@redhat.com>
12216 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12217 find the complete path to a loaded DLL.
12219 2002-02-21 Fred Fish <fnf@redhat.com>
12221 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12222 that marks the end of the range of a function, enter a line number
12223 entry that has a line number of zero and a PC offset that matches
12224 the end of the function. This starts a range of PC's for which no
12225 line number information is known.
12226 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12227 PC's for which no line number info is found (line number is zero)
12228 then we didn't find any valid line information.
12229 * symtab.h: Document use of zero line number entry.
12231 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12233 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12234 (have_ptrace_getvrregs): Define for run time checks.
12235 (gdb_vrregset_t): New type for Altivec register handling.
12236 (fetch_register, store_register): Fetch/store altivec register
12238 (fetch_altivec_register, store_altivec_register): New functions.
12239 (supply_vrregset, fill_vrregset): New functions.
12240 (fetch_altivec_registers, store_altivec_registers): New functions.
12241 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12244 2002-02-21 Jiri Smid <smid@suse.cz>
12246 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12248 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12250 * Makefile.in (armnbsd-nat.o): Update dependencies.
12251 * armnbsd-nat.c (supply_gregset): New function. Common code to
12252 supply the integer register set.
12253 (supply_fparegset): New function. Similar for FPA registers.
12254 (fetch_regs, fetch_fp_regs): Use them.
12255 (fetch_core_registers): Likewise.
12256 (fetch_elfcore_registers): New function.
12257 (arm_netbsd_elfcore_fns): New core-file type specification.
12258 (_initialize_arm_netbsd_nat): Register it.
12260 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12262 * armnbsd-nat.c: Include gdbcore.h.
12263 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12264 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12265 'void' to declaration, to shut up ARI.
12266 (fetch_core_registers): Make static. Rewrite using supply_register.
12267 (arm_netbsd_core_fns): New core-file type specification.
12268 (_initialize_arm_netbsd_nat): New function.
12270 2002-02-21 Christopher Faylor <cgf@redhat.com>
12272 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12275 2002-02-20 Christopher Faylor <cgf@redhat.com>
12277 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12280 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12282 * jv-exp.y (parse_number): Change type of implicit longs
12283 to builtin_type_uint64.
12285 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12287 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12288 to be an integer instead of a `union wait'.
12290 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12292 * mips-linux-nat.c: Call the operating system GNU/Linux.
12293 * mips-linux-tdep.c: Likewise.
12294 * mips-tdep.c: Likewise.
12296 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12299 * jv-exp.y (parse_number): Handle 64-bit integers.
12301 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12303 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12304 AC_STDC_HEADERS to AC_HEADER_STDC.
12305 * gdbserver/configure: Regenerated.
12307 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12309 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12311 * sparc-tdep.c (get_longjmp_target): Likewise.
12313 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12315 * News: Add news about ARM and Multi-arch. Mention the new target
12318 2002-02-19 Jim Blandy <jimb@redhat.com>
12320 * stabsread.c (error_type_complaint): Improve error message.
12322 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12324 * gdbserver/README: Update documentation.
12325 * gdbserver/configure.in: Update configury to match documentation.
12326 * gdbserver/Makefile.in: Likewise.
12327 * gdbserver/configure: Regenerated.
12328 * gdbserver/aclocal.m4: New file, generated by aclocal.
12329 * gdbserver/config.in: New file, generated by autoheader.
12331 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12333 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12336 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12338 * arm-tdep.h (enum arm_float_model): New enum.
12339 (struct gdbarch_tdep): Add fp_model.
12340 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12341 up floating-point conversions until we know the floating-point model
12342 in use by the inferior. Don't complain about being unable to
12343 determine the ABI of the inferior when we don't have one.
12344 (arm_extract_return_value): Support different floating-point models.
12345 (arm_store_return_value): Likewise.
12346 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12348 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12350 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12352 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12353 of ``current_gdbarch''.
12355 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12357 * armnbsd-nat.c : ANSIfy all function declarations.
12358 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12359 (fetch_inferior_registers): Re-implement in terms of above.
12360 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12361 (store_inferior_registers): Re-implement in terms of above.
12363 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12365 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12367 * arm-linux-tdep.c: Likewise.
12368 * config/arm/tm-linux.h: Likewise.
12370 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12372 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12373 * config/arm/nbsd.mt (TM_FILE): Delete.
12374 * config/arm/tm-nbsd.h: Delete.
12376 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12378 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12379 Initialize CALL_DUMMY_LENGTH.
12381 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12383 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12385 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12386 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12387 defines one thing and that is incorrect for this port.
12388 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12390 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12392 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12394 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12396 * win32-nat.c (display_selector): New function. Displays information
12397 about the information returned by GetThreadSelectorEntry API function.
12398 (display_selectors): New function. Displays the infomation of
12399 the selector given as argument, or of CS, DS ans FS selectors
12400 if no argument is given.
12401 ( _initialize_inftarg): Add "w32" as info prefix command.
12402 Add "info w32 selector" as command calling display_selectors.
12404 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12406 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12407 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12410 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12412 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12414 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12416 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12417 (arm_fix_call_dummy): Call it.
12418 (arm_call_dummy_breakpoint_offset): Delete.
12419 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12420 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12422 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12424 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12425 Default to func_frame_chain_valid.
12426 * gdbarch.h, gdbarch.c: Re-generate.
12427 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12429 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12431 * ppc-linux-nat.c: Update copyright.
12432 (fetch_register, store_register): Add tid parameter, don't compute
12434 (fetch_ppc_registers, store_ppc_registers): Add tid
12435 parameter. Pass it along to callees.
12436 (fetch_inferior_registers, store_inferior_registers): Compute tid
12437 here, and pass it to calleed functions.
12438 (fill_gregset, supply_fpregset): Clean up formatting.
12440 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12442 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12443 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12445 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12447 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12448 * gdbarch.c gdbarch.h: Regenerate.
12449 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12451 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12452 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12453 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12455 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12456 * arm-tdep.c (arm_get_longjmp_target): New function.
12457 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12458 this to a positive value register arm_get_longjmp_target as the
12460 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12461 (arm_linux_init_abi): Set up longjmp description in tdep.
12462 * armnbsd-nat.c (get_longjmp_target): Delete.
12463 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12464 description in tdep.
12465 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12466 (get_longjmp_target): Delete declaration.
12467 (GET_LONGJMP_TARGET): Delete.
12468 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12469 (GET_LONGJMP_TARGET): Delete.
12471 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12473 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12474 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12475 of ``current_gdbarch''.
12477 2002-02-17 Tom Tromey <tromey@redhat.com>
12479 * cli/cli-cmds.c (compare_strings): New function.
12480 (complete_command): Only print each unique item once.
12481 * completer.h (complete_line): Declare.
12482 * completer.c (complete_line): New function.
12483 (line_completion_function): Use it.
12485 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12487 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12488 * gdbarch.h, gdbarch.c: Re-generate.
12490 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12492 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12494 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12496 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12497 * valops.c (value_arg_coerce): Don't take the address of a reference
12498 to convert an argument to a reference.
12500 2002-02-15 Christopher Faylor <cgf@redhat.com>
12502 * win32-nat.c (get_image_name): New function.
12503 (handle_load_dll): Use get_image_name function.
12504 (get_child_debug_event): Avoid registering debug events until possibly
12505 execed process is started.
12506 (child_create_inferior): Allow invocation via shell so that command
12507 line redirection, etc. works ok.
12508 (_initialize_inftarg): Add new command: "set shell" to control whether
12509 a shell is used to start a process.
12511 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12513 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12514 instead of find_register_by_number.
12515 (cannot_store_register): Likewise.
12517 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12519 * dwarf2read.c: Replace fprintf (stderr, ...) by
12520 fprintf_unfiltered (gdb_stderr, ...).
12522 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12524 * gdbserver/gdbserver.1: Document --attach.
12526 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12528 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12530 * arm-tdep.c (arm_default_arm_le_breakpoint)
12531 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12532 (arm_default_thumb_be_breakpoint): New. Initialize them from
12533 traditional breakpoint defines.
12534 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12535 (arm_gdbarch_init): Initialize new breakpoint variables.
12536 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12537 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12538 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12539 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12541 (arm_netbsd_init_abi_common): ... here; new function.
12542 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12543 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12544 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12545 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12547 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12549 * arm-tdep.h (enum arm_abi): New enum.
12550 (struct gdbarch_tdep): New structure.
12551 (LOWEST_PC): Provide a default.
12552 (arm_gdbarch_register_os_abi): Declare new function.
12553 * arm-tdep.c (arm_abi_names): New array.
12554 (process_note_abi_tag_sections): New function.
12555 (get_elfosabi): New function.
12556 (arm_gdbarch_register_os_abi): New function.
12557 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12558 support for that ABI has been built in, then call the appropriate
12559 configuration routine. Use gdbarch_num_regs() to get the number
12561 (arm_dump_tdep): New function.
12562 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12563 place-holder functions.
12564 (_initialize_arm_tdep): Register them.
12565 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12567 * armnbsd-tdep.c: New file.
12568 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12569 * config/arm/nbsd.mt (TDEPFILES): Add it.
12570 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12572 * armnbsd-nat.c: Include regcache.h.
12573 * Makefile.in (armnbsd-nat.o): Update dependency list.
12575 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12577 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12579 * gdbserver/Makefile.in: Fix typos in target rules.
12581 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12583 Fix part of PR gdb/267.
12584 * linespec.c (find_methods): Handle constructors specially for now.
12586 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12588 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12590 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12591 standard_coerce_float_to_double().
12593 2002-02-14 Christopher Faylor <cgf@redhat.com>
12595 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12598 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12600 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12601 find_variant_by_name, because it confuses the multiarch
12602 framework. Return NULL if there isn't an architecture with the
12603 user supplied name, instead of forcing a different one without
12604 recording the change with the multiarch machinery.
12605 (find_variant_by_name): Delete.
12607 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12609 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12610 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12612 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12614 * stack.c (print_frame_info_base): When calling
12615 print_frame_info_listing_hook, set current_source_symtab.
12617 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12619 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12620 and remove unused $(INCLUDE_DIR).
12621 Add regcache.c to OBS.
12622 Add generated register protocol files to clean target.
12623 Update dependencies for new objects, obsolete old target code.
12625 * gdbserver/linux-low.c: Remove all platform-specific code to
12626 new files. Remove various dead code. Update to use regcache
12628 * gdbserver/remote-utils.c (fromhex): Add return statement
12630 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12632 (input_interrupt): Add integer parameter to match prototype
12633 of a signal handler.
12634 (outreg): Use register_data ().
12635 (prepare_resume_reply): Use gdbserver_expedite_regs.
12636 * gdbserver/server.c (main): Dynamically allocate own_buf because
12637 PBUFSIZ is no longer constant. Use registers_to_string () and
12638 registers_from_string ().
12639 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12640 for error (), fatal (), and warning (). Update definition of
12641 PBUFSIZ to use regcache functionality. Add include guard.
12642 * gdbserver/utils.c (fatal): Add missing ``const''.
12643 (warning): New function.
12645 * regformats/regdat.sh: Include "regcache.h" in generated files.
12646 Provide init_registers () function.
12647 * regformats/regdef.h: Add prototype for set_register_cache ().
12650 * gdbserver/linux-arm-low.c: New file.
12651 * gdbserver/linux-i386-low.c: New file.
12652 * gdbserver/linux-ia64-low.c: New file.
12653 * gdbserver/linux-m68k-low.c: New file.
12654 * gdbserver/linux-mips-low.c: New file.
12655 * gdbserver/linux-ppc-low.c: New file.
12656 * gdbserver/linux-sh-low.c: New file.
12658 * gdbserver/regcache.c: New file.
12659 * gdbserver/regcache.h: New file.
12661 * gdbserver/low-linux.c: Removed obsolete file.
12663 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12665 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12666 * config/i386/linux.mt: Likewise.
12667 * config/ia64/linux.mt: Likewise.
12668 * config/m68k/linux.mh: Likewise.
12669 * config/powerpc/linux.mh: Likewise.
12670 * config/mips/linux.mt: Likewise.
12672 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12674 * config/i386/i386lynx.mh: Mark gdbserver variables
12675 as (currently) obsolete for this target.
12676 * config/i386/nbsd.mt: Likewise.
12677 * config/i386/nbsdelf.mt: Likewise.
12678 * config/m32r/m32r.mt: Likewise.
12679 * config/m68k/m68klynx.mh: Likewise.
12680 * config/m68k/nbsd.mt: Likewise.
12681 * config/m68k/sun3os4.mh: Likewise.
12682 * config/mips/vr5000.mt: Likewise.
12683 * config/ns32k/nbsd.mt: Likewise.
12684 * config/pa/hppabsd.mh: Likewise.
12685 * config/pa/hppaosf.mh: Likewise.
12686 * config/powerpc/nbsd.mt: Likewise.
12687 * config/rs6000/rs6000lynx.mh: Likewise.
12688 * config/s390/s390.mt: Likewise.
12689 * config/s390/s390x.mt: Likewise.
12690 * config/sparc/sparclynx.mh: Likewise.
12691 * config/sparc/sun4os4.mh: Likewise.
12692 * config/i386/x86-64linux.mt: Likewise.
12693 * config/sparc/linux.mh: Likewise.
12695 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12697 * configure.tgt: Configure gdbserver only for known working
12698 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12699 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12700 SUBDIRS if it is configured. Update comment for ${nativefile}.
12701 * configure: Regenerated.
12703 2002-02-13 Michael Snyder <msnyder@redhat.com>
12705 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12707 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12708 (default_gcore_mach): Just return 0, work around a problem in bfd.
12709 (default_gcore_target): OK to return NULL if exec_bfd is null.
12710 (make_mem_sec): Use a cast, avoid a warning.
12712 * procfs.c (find_memory_regions_callback): Use a cast instead of
12713 calling host_pointer_to_address (which complains if
12714 sizeof (host pointer) != sizeof (target pointer)).
12715 (procfs_make_note_section): Avoid overflow in psargs string.
12717 * procfs.c (procfs_make_note_section): Make the default
12718 implementation return an error.
12720 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12722 * procfs.c (procfs_make_note_section): Provide a default definition
12723 (for alpha-dec-osf4.0f). Fix typos.
12725 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12727 * linux-proc.c: Add include of regcache.h.
12728 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12730 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12732 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12733 * memattr.c (create_mem_region): Disallow useless empty region.
12734 Regions are half-open intervals, so allow [A..B) [B..C) as
12737 2002-02-13 Michael Chastain <mec@shout.net>
12739 * defs.h: Kill CONST_PTR.
12740 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12741 * c-lang.c (c_builtin_types): Likewise.
12742 * ch-lang.c (ch_builtin_types): Likewise.
12743 * f-lang.c (f_builtin_types): Likewise.
12744 * language.c (unknown_builtin_types): Likewise.
12745 * m2-lang.c (m2_builtin_types): Likewise.
12746 * p-lang.c (pascal_builtin_types): Likewise.
12747 * scm-lang.c (c_builtin_types): Likewise.
12749 2002-02-13 Keith Seitz <keiths@redhat.com>
12751 * arm-tdep.h (arm_get_next_pc): Add declaration.
12753 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12755 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12756 with other related struct-returning functions.
12757 (arm_extract_struct_value_address): New function.
12758 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12759 initialize float_format, double_format and long_double_format as
12760 appropriate to the endianness of the target.
12761 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12762 (arm_use_struct_convention): Delete declaration.
12763 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12765 2002-02-13 Keith Seitz <keiths@redhat.com>
12767 * defs.h (core_addr_to_string_nz): New function.
12769 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12771 Apply missing bits of 2002-01-15 patch.
12772 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12773 (fill_fpregset): Use i387_fill_fsave.
12775 2002-02-12 Keith Seitz <keiths@redhat.com>
12777 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12778 (core_addr_to_string_nz): New function.
12780 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12782 * arm-linux-nat.c: Really include arm-tdep.h.
12783 * config/arm/tm-linux.h (struct type, struct value): Declare.
12785 2002-02-11 Michael Snyder <msnyder@redhat.com>
12787 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12788 (gcore section): Ifdef for Solaris and Unixware only.
12789 (procfs_do_thread_registers): Unixware needs one lwpstatus
12790 per thread (not one prstatus or pstatus).
12791 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12792 not over all gdb threads. For unixware, call elfcore_write_pstatus
12793 once before iterating over threads.
12795 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12797 * arm-tdep.h: New file.
12798 * arm-tdep.c: Include arm-tdep.h.
12799 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12800 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12801 (arm_print_float_info, arm_register_type, convert_to_extended)
12802 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12803 (arm_extract_return_value, arm_register_name): Make static.
12804 (arm_software_single_step): Similarly. Fix types in declaration.
12805 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12806 (arm_store_return_value, arm_store_struct_return): New functions.
12807 (arm_gdbarch_init): Register the above functions. Also register
12808 call_dummy_start_offset, sizeof_call_dummy_words,
12809 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12810 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12811 max_register_virtual_size, register_size. Set up
12812 prologue_cache.saved_regs here, rather than ...
12813 (_initialize_arm_tdep): ... here.
12814 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12816 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12817 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12818 (arm_print_float_info, arm_register_type, convert_to_extended)
12819 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12820 (arm_extract_return_value, arm_register_name): Delete declarations.
12821 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12822 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12823 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12824 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12825 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12826 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12827 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12828 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12829 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12830 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12831 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12832 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12834 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12835 * remote-rdi.c remote-rdp.c: Likewise.
12836 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12837 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12838 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12841 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12842 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12843 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12844 from non-ARM_ prefixed definitions.
12845 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12847 * remote-rdi.c remote-rdp.c: Likewise.
12848 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12850 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12852 * arm-tdep.c (arm_frameless_function_invocation)
12853 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12854 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12855 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12856 (arm_pop_frame, arm_get_next_pc): Make static.
12857 (arm_gdbarch_init): Register above in gdbarch structure.
12858 (arm_read_fp): Renamed from arm_target_read_fp.
12859 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12860 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12861 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12862 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12863 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12864 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12865 (arm_pc_is_thumb_dummy): Delete declarations.
12866 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12867 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12868 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12869 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12871 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12873 * symtab.c (compare_search_syms): New function.
12874 (sort_search_symbols): New function.
12875 (search_symbols): Sort symbols after searching rather than
12878 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12880 * NEWS: Linux -> GNU/Linux.
12882 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12884 * gdbarch.sh: For for level one methods, disallow a definition
12885 when partially multi-arched. Add comments explaining rationale.
12886 * gdbarch.h: Re-generate.
12888 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12890 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12891 multi-arch partial.
12893 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12895 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12896 field. Use diff -u.
12897 * gdbarch.c: Re-generate.
12899 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12901 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12902 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12905 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12907 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12908 multi-arch partial.
12909 (PUSH_ARGUMENTS): Switch to using predefault.
12910 * gdbarch.c: Regenerate.
12912 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12914 * valops.c (PUSH_ARGUMENTS): Delete definition.
12915 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12916 partial. Default to default_push_arguments.
12917 * gdbarch.h, gdbarch.c: Regenerate.
12919 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12921 * defs.h (throw_exception): Rename return_to_top_level. Update
12923 * utils.c (error_stream, internal_verror, quit): Ditto.
12924 * top.c (throw_exception, catcher): Ditto.
12925 * sparclet-rom.c (sparclet_load): Ditto.
12926 * remote.c (interrupt_query, minitelnet): Ditto.
12927 * remote-sds.c (interrupt_query): Ditto.
12928 * remote-mips.c (mips_error, mips_kill): Ditto.
12929 * ocd.c (interrupt_query): Ditto.
12930 * monitor.c (monitor_interrupt_query): Ditto.
12931 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12932 * target.h: Update comment.
12934 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12936 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12938 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12939 default_double_format.
12940 * gdbarch.h, gdbarch.c: Re-generate.
12941 * findvar.c (floatformat_unknown): Delete variable definition.
12942 * doublest.h (floatformat_unknown): Delete variable declaration.
12944 2002-02-09 Jim Blandy <jimb@redhat.com>
12946 * stabsread.c (read_type): Add code to parse Sun's syntax for
12947 prototyped function types.
12949 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12951 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12952 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12954 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12956 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12957 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12958 now _initialize_xcoffsolib gets called again and overrides the
12959 commands from solib.c in a native configuration.
12961 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12963 * doublest.c (store_typed_floating): Don't try to return a value.
12966 2002-02-08 Jim Blandy <jimb@redhat.com>
12968 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12969 is prototyped and has no arguments, print its argument list as
12972 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12974 * MAINTAINERS (write-after-approval): Add myself.
12975 (paper-trail): I've escaped!
12977 2002-02-08 Christopher Faylor <cgf@redhat.com>
12979 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12981 (_initialize_check_for_gdb_ini): Ditto.
12983 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12985 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12986 xaprintf -> xasprintf.
12988 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12990 * win32-nat.c: Remove use of printf and sprintf functions.
12992 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12994 * arm-tdep.c (arm_frame_chain_valid): Make static.
12995 (arm_push_arguments): Likewise.
12996 (arm_gdbarch_init): New function.
12997 (_initialize_arm_tdep): Call it.
12998 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12999 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13000 (FRAME_CHAIN_VALID): Delete.
13001 (arm_frame_chain_valid): Delete declaration.
13002 (PUSH_ARGUMENTS): Delete.
13003 (arm_push_arguments): Delete declaration.
13004 (CALL_DUMMY_P): Delete.
13006 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13007 Corinna Vinschen <vinschen@redhat.com>
13009 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13010 on builtin float types.
13012 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13014 * utils.c: Include <curses.h> before "bfd.h".
13015 * tui/tui-hooks.c: Likewise.
13016 * tui/tui.c: Likewise.
13017 * tui/tuiCommand.c: Likewise.
13018 * tui/tuiData.c: Likewise.
13019 * tui/tuiDataWin.c: Likewise.
13020 * tui/tuiDisassem.c: Likewise.
13021 * tui/tuiGeneralWin.c: Likewise.
13022 * tui/tuiIO.c: Likewise.
13023 * tui/tuiLayout.c: Likewise.
13024 * tui/tuiRegs.c: Likewise.
13025 * tui/tuiSource.c: Likewise.
13026 * tui/tuiSourceWin.c: Likewise.
13027 * tui/tuiStack.c: Likewise.
13028 * tui/tuiWin.c: Likewise.
13030 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13032 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13033 to include space for pseudoregs as well. Update loops accordingly.
13034 (sh_fp_frame_init_saved_regs): Ditto.
13035 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13037 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13039 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13040 Add Richard Earnshaw to Arm maintainers.
13042 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13044 * defs.h (warning_begin): Delete declaration.
13046 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13049 2002-02-07 Michael Snyder <msnyder@redhat.com>
13051 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13052 Logic bug, remove misplaced else.
13054 2002-02-07 Klee Dienes <klee@apple.com>
13056 * fork-inferior.c (fork_inferior): Add '!' to the list of
13057 characters that need to be quoted when building a string for the
13058 shell. Quote '!' specifically with a backslash, since CSH chokes
13059 when trying to evaluate "str!str".
13061 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13063 * rdi-share/host.h: Only provide a typedef for bool if it is not
13066 2002-02-04 Michael Snyder <msnyder@redhat.com>
13068 * breakpoint.h (enum bptype): Add new overlay event bp type.
13069 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13071 * breakpoint.c (create_internal_breakpoint): New function.
13072 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13073 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13074 (create_thread_event_breakpoint): Ditto.
13075 (create_solib_event_breakpoint): Ditto.
13076 (create_overlay_event_breakpoint): New function.
13077 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13078 (update_breakpoints_after_exec): Delete and re-initialize
13079 overlay event breakpoints after an exec. Add FIXME comment
13080 about longjmp breakpoint.
13081 (print_it_typical): Ignore overlay event breakpoints.
13082 (print_one_breakpoint): Ditto.
13084 (bpstat_what): Do not stop for overlay event breakpoints.
13085 (delete_breakpoint): Don't delete overlay event breakpoints.
13086 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13087 (breakpoint_re_set): Re-create overlay event breakpoint.
13089 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13090 (overlay_manual_command): Disable overlay breakpoints.
13091 (overlay_off_command): Disable overlay breakpoints.
13093 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13095 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13096 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13097 to here from config/tm-arm.h.
13098 (coff_sym_is_thumb): Make static.
13099 (arm_elf_make_msymbol_special): New function.
13100 (arm_coff_make_msymbol_special): New function.
13101 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13102 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13103 (coff_sym_is_thumb): Delete declaration.
13104 (arm_elf_make_msymbol_special): Declare.
13105 (arm_coff_make_msymbol_special): Declare.
13106 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13107 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13109 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13111 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13113 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13115 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13116 * gdbarch.c gdbarch.h: Regenerate.
13117 * arch-utils.c (default_print_float_info): New function.
13118 * arch-utils.h (default_print_float_info): Prototype it.
13119 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13120 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13121 (PRINT_FLOAT_INFO): Document it.
13123 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13124 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13125 (PRINT_FLOAT_INFO): Define.
13127 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13129 * win32-nat.c (_initialize_check_for_gdb_ini):
13130 Add typecast to sprintf argument to suppress a warning.
13132 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13134 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13135 to allow easier handling of pass state.
13136 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13137 that gives exception name and address.
13138 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13139 and set last_sig value to ourstatus->value.sig. Some missing
13141 (child_continue): Correctly report continue_status.
13142 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13143 TARGET_SIGNAL_0 (new default value).
13144 (child_resume): consider sig argument passed to decide if
13145 the exception should be passed to debuggee or not.
13147 2002-02-05 Michael Snyder <msnyder@redhat.com>
13149 * regcache.c (fetch_register): Call target_fetch_register
13150 only if we don't call FETCH_PSEUDO_REGISTER.
13151 (store_register): Call target_store_register only if we
13152 don't call STORE_PSEUDO_REGISTER.
13154 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13156 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13157 ELF_MAKE_MSYMBOL_SPECIAL.
13158 * gdbarch.c, gdbarch.h: Regenerate.
13159 * arch-utils.c (default_make_msymbol_special): New function.
13160 * arch-utils.h (default_make_msymbol_special): Export.
13161 * elfread.c (elf_symtab_read): Compile use of
13162 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13164 * coffread.c (coff_symtab_read): Ditto, for
13165 COFF_MAKE_MSYMBOL_SPECIAL.
13167 2002-02-05 Jim Blandy <jimb@redhat.com>
13169 * solib-svr4.c (svr4_truncate_ptr): New function.
13170 (svr4_relocate_section_addresses): Do the address arithmetic with
13171 the appropriate truncation for target addresses, even when
13172 CORE_ADDR is larger than a target address.
13174 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13176 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13179 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13181 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13184 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13186 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13188 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13190 * gdbserver/linux-low.c: Remove unused include files.
13192 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13194 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13195 (read_inferior_memory): Use it.
13196 (write_inferior_memory): Likewise.
13198 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13200 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13201 grubbing through sys_errlist.
13203 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13205 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13207 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13208 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13210 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13212 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13213 (do_sfunc, set_cmd_sfunc): New functions.
13215 * command.h (struct cmd_list_element): Add field func.
13216 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13217 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13218 * cli/cli-decode.h: Ditto.
13220 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13221 (help_all, help_cmd_list): Ditto.
13222 (find_cmd, complete_on_cmdlist): Ditto.
13223 * top.c (execute_command): Ditto.
13225 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13228 * infcmd.c (notice_args_read): Fix function signature.
13230 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13231 * cli/cli-decode.c (add_set_cmd): Ditto.
13232 * utils.c (initialize_utils): Ditto.
13233 * maint.c (_initialize_maint_cmds): Ditto.
13234 * infrun.c (_initialize_infrun): Ditto.
13235 * demangle.c (_initialize_demangler): Ditto.
13236 * remote.c (add_packet_config_cmd): Ditto.
13237 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13238 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13239 * proc-api.c (_initialize_proc_api): Ditto.
13240 * kod.c (_initialize_kod): Ditto.
13241 * valprint.c (_initialize_valprint): Ditto.
13242 * top.c (init_main): Ditto.
13243 * infcmd.c (_initialize_infcmd): Ditto.
13244 * corefile.c (_initialize_core): Ditto.
13245 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13246 * arch-utils.c (initialize_current_architecture): Ditto.
13247 (_initialize_gdbarch_utils): Ditto.
13248 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13250 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13251 * wince.c (_initialize_inftarg): Ditto.
13252 * symfile.c (_initialize_symfile): Ditto.
13253 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13254 * language.c (_initialize_language): Ditto.
13255 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13257 2002-02-04 Michael Snyder <msnyder@redhat.com>
13259 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13261 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13263 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13264 Add rules for building the register data files.
13266 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13268 * regformats/regdat.sh: Add braces to the definition of
13269 expedite_regs_${arch}.
13271 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13273 * regformats/regdef.h (struct reg): Add comment describing the
13274 requirements for offset and size fields.
13276 2002-02-04 Andreas Schwab <schwab@suse.de>
13278 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13279 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13281 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13283 * gdbarch.sh (copyright): Update years in generated header.
13284 (SMASH_TEXT_ADDRESS): Add rule.
13285 * gdbarch.h, gdbarch.c: Re-generate.
13286 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13287 * dbxread.c: Likewise.
13288 * dwarfread.c: Likewise.
13289 * elfread.c: Likewise.
13290 * somread.c: Likewise.
13292 * arm-tdep.c (arm_smash_text_address): New function.
13293 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13295 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13297 Add support for hardware watchpoints on win32 native.
13298 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13299 CONTEXT_DEBUG_REGISTERS.
13300 (dr variable): New variable. Static array containing a local copy
13301 of debug registers.
13302 (debug_registers_changed): New variable. Reflects when debug registers
13303 are changed and need to be written to inferior.
13304 (debug_registers_used): New variable. Reflects when any debug register
13305 was set, used when new threads are created.
13306 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13308 (thread_rec): Set dr array if id is the thread of current_event .
13309 (child_continue, child_resume): Change the debug registers for all
13310 threads if debug_registers_changed.
13311 (child_add_thread): Change the debug registers if debug_registers_used.
13312 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13313 Link nm.h to new nm-cygwin.h file.
13314 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13315 of hardware registers.
13317 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13319 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13320 Restore behavour broken by 2002-01-20 Andrew Cagney
13321 <ac131313@redhat.com> IEEE_FLOAT removal.
13323 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13325 * c-valprint.c (c_val_print): Pass a proper valaddr to
13326 cp_print_class_method.
13327 * valops.c (search_struct_method): If there is only one method
13328 and args is NULL, return that method.
13330 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13332 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13333 accessing tag_name directly.
13335 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13337 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13338 of accessing tag_name directly.
13340 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13343 * gdbtypes.c (replace_type): New function.
13344 * gdbtypes.h (replace_type): Add prototype.
13345 * stabsread.c (read_type): Use replace_type.
13347 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13349 * Makefile.in (memattr.o): Add missing dependencies rule.
13351 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13353 * breakpoint.c (break_at_finish_command): Really export.
13354 (break_at_finish_at_depth_command): Ditto.
13355 (tbreak_at_finish_command): Ditto.
13356 * hppa-tdep.c: Include completer.h.
13357 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13358 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13360 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13362 * utils.c (do_write): New function.
13363 (error_stream): Rewrite combining the code from error_begin and
13365 (verror): Rewrite using error_stream.
13366 (error_begin): Delete function.
13368 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13370 * utils.c (error_begin): Make static.
13371 * defs.h (error_begin): Delete declaration.
13373 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13374 (decode_line_1): Use cplusplus_error instead of error_begin,
13375 cplusplus_hint and return_to_top_level.
13376 * coffread.c (coff_symfile_read): Use error instead of error_begin
13377 and return_to_top_level.
13378 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13380 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13382 * language.h (type_error, range_error): Make string parameter
13384 * language.c (warning_pre_print): Delete extern declaration.
13385 * dwarfread.c (warning_pre_print): Ditto.
13386 * language.c (type_error, range_error): Rewrite to use verror and
13387 vwarning instead of warning_begin.
13389 2002-02-01 Michael Snyder <msnyder@redhat.com>
13391 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13392 (set_ignore_count): Move misplaced comment back where it belongs.
13394 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13396 * command.h (NO_FUNCTION): Delete macro.
13397 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13398 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13399 * tracepoint.c (_initialize_tracepoint): Ditto.
13400 * cli/cli-decode.c (add_set_cmd): Ditto.
13401 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13403 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13405 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13406 Update ``this'' pointer when calling virtual functions.
13408 2002-02-01 Michael Snyder <msnyder@redhat.com>
13410 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13411 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13413 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13415 * regformats/reg-arm.dat: New file.
13416 * regformats/reg-i386.dat: New file.
13417 * regformats/reg-ia64.dat: New file.
13418 * regformats/reg-m68k.dat: New file.
13419 * regformats/reg-mips.dat: New file.
13420 * regformats/reg-ppc.dat: New file.
13421 * regformats/reg-sh.dat: New file.
13422 * regformats/regdef.h: New file.
13423 * regformats/regdat.sh: New file.
13425 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13427 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13428 (arm_frame_args_address, arm_frame_locals_address): New functions.
13429 (arm_frame_num_args): New function.
13430 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13431 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13432 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13434 2002-01-31 Michael Snyder <msnyder@redhat.com>
13436 * breakpoint.c (break_at_finish_command): Export.
13437 (break_at_finish_at_depth_command): Export.
13438 (tbreak_at_finish_command): Export.
13439 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13440 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13441 "txbreak" commands, which are HPPA specific.
13443 * printcmd.c (disassemble_command): Remove an ancient
13444 artifact of an old merge.
13446 * symfile.h (enum overlay_debugging_state):
13447 Define enum constant values for overlay mode.
13448 * symfile.c (overlay_debugging): Use enums instead of literals.
13449 (overlay_is_mapped, overlay_auto_command,
13450 overlay_manual_command): Ditto.
13452 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13453 breakpoint_here_p, breakpoint_inserted_here_p,
13454 breakpoint_thread_match, bpstat_stop_status,
13455 describe_other_breakpoints, check_duplicates, clear_command):
13456 Coding standard fixes.
13458 * target.c (target_xfer_memory): Add spaces, coding standard.
13459 (do_xfer_memory): Add missing line to trust-readonly
13460 code: check bfd SEC_READONLY flag for section.
13462 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13464 * PROBLEMS: Fix typo, 5.1->5.1.1.
13466 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13468 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13469 data symbols, since we search based on textlow and texthigh.
13470 (find_pc_sect_symtab): Likewise.
13472 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13474 * defs.h (vwarning): Declare.
13475 * utils.c (vwarning): New function.
13476 (warning): Call vwarning.
13477 (warning_begin): Delete function.
13479 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13480 the warning message.
13481 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13484 2002-01-30 Michael Snyder <msnyder@redhat.com>
13486 * NEWS: Mention "set trust-readonly-sections" command.
13487 Mention generate-core-file command.
13489 2002-01-15 Michael Snyder <msnyder@redhat.com>
13491 * target.c: New command, "set trust-readonly-sections on".
13492 (do_xfer_memory): Honor the suggestion to trust readonly sections
13493 by reading them from the object file instead of from the target.
13494 (initialize_targets): Register command "set trust-readonly-sections".
13496 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13498 * parse.c (target_map_name_to_register): Simplify, search regs and
13499 pseudo-regs using a single loop.
13501 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13503 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13505 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13507 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13508 * config/i386/i386v42mp.mh: Add i387-nat.o .
13509 * i386v4-nat.c: Include i387-nat.h.
13510 (supply_fpregset): Use i387_supply_fsave.
13511 (fill_fpregset): Use i387_fill_fsave.
13513 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13515 * arm-tdep.c (arm_call_dummy_words): Define.
13516 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13517 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13518 (CALL_DUMMY_WORDS): Define.
13519 (arm_call_dummy_words): Declare.
13520 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13521 (arm_linux_call_dummy_words): Declare.
13523 2002-01-30 Andreas Schwab <schwab@suse.de>
13525 * m68klinux-nat.c: Fix last change to use regcache_collect
13526 instead of referencing registers[] directly.
13528 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13530 * parse.c (target_map_name_to_register): Delete code wrapped in
13531 #ifdef REGISTER_NAME_ALIAS_HOOK.
13533 2002-01-28 Michael Snyder <msnyder@redhat.com>
13535 * regcache.c (legacy_read_register_gen): Need to be able to
13536 read pseudo-register as well as real register.
13537 (legacy_write_register_gen): Ditto.
13539 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13541 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13542 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13543 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13544 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13545 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13546 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13547 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13548 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13549 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13550 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13551 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13552 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13553 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13554 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13555 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13556 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13557 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13558 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13559 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13560 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13562 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13564 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13565 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13566 (initialize_current_architecture): Update target_byte_order using
13567 information from BFD.
13568 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13569 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13571 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13573 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13574 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13576 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13577 #ifdef INVALID_FLOAT.
13578 * infcmd.c (do_registers_info): Ditto.
13579 * values.c (unpack_double): Ditto. Add comment.
13581 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13582 already commented out.
13584 2002-01-26 Andreas Schwab <schwab@suse.de>
13586 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13587 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13588 registers and add support for PTRACE_GETREGS.
13590 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13592 GDB 5.1.1 released from 5.1 branch.
13593 * NEWS: Add 5.1.1 news.
13594 * README: Sync with 5.1 branch.
13596 2002-01-23 Fred Fish <fnf@redhat.com>
13598 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13599 stabstring on initial malloc. Reallocing will copy it for us,
13602 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13604 * Makefile.in (hpread_h): Delete.
13605 (HFILES_NO_SRCDIR): Remove hpread.h.
13606 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13607 (hpread.o): Update dependencies.
13608 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13610 * hp-psymtab-read.c: Remove file.
13611 * hp-symtab-read.c: Remove file.
13612 * hpread.h: Remove file.
13614 * hpread.c: Merge all contents of hp-psymtab-read.c,
13615 hp-symtab-read.c and hpread.h into this file, as it was prior to
13618 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13619 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13620 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13621 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13623 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13625 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13626 fill_gregset): Call gdbarch_tdep() just once, assign result to
13627 variable and use that, instead of calling the function several
13630 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13632 * configure.host: Accept sparcv9 as alias for sparc64.
13633 * configure.tgt: Likewise.
13635 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13637 * solib-aix5.c (build_so_list_from_mapfile)
13638 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13639 arguments is not reversed.
13640 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13641 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13643 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13645 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13646 modified version of obsolete sh_fetch_pseudo_register.
13647 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13648 (sh4_register_read): New function.
13649 (sh_pseudo_register_write): New function. Renamed and modified
13650 version of obsolete sh_store_pseudo_register.
13651 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13652 (sh4_register_write): New function.
13653 (sh_gdbarch_init): Remove setting of gdbarch function
13654 fetch_pseudo_register and store_pseudo_register. Remove setting of
13655 register_convert_to_raw, register_convert_to_virtual,
13656 register_convertible.
13657 (sh_sh4_register_convertible): Delete. No longer needed. All is
13658 taken care by architecture specific functions
13659 register_read/register_write.
13660 (sh_sh4_register_convert_to_virtual): Make static.
13661 (sh_sh4_register_convert_to_raw): Ditto.
13663 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13665 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13666 (floatformat_is_nan, floatformat_mantissa): Ditto.
13668 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13669 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13670 builtin_type_ieee_double_little,
13671 builtin_type_ieee_double_littlebyte_bigword,
13672 builtin_type_m68881_ext, builtin_type_i960_ext,
13673 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13674 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13675 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13676 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13678 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13680 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13681 parameter. Set frameless flag if it exists and depended of
13682 whether the scanned function is frameless or not.
13683 (xstormy16_skip_prologue): If function is frameless, return
13684 result of xstormy16_scan_prologue().
13685 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13688 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13690 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13691 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13692 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13693 sh_sh4_register_byte, sh_sh4_register_raw_size,
13694 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13695 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13696 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13697 sh_store_pseudo_register, sh_do_pseudo_register): Call
13698 gdbarch_tdep() just once, assign result to variable and use that,
13699 instead of calling the function several times.
13701 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13703 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13704 macros instead of LAST_FPU_CTRL_REGNUM.
13705 (store_register): Likewise.
13707 2002-01-21 Jim Blandy <jimb@redhat.com>
13709 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13710 is up-to-date before running the program, not just when a program
13713 2002-01-21 Fred Fish <fnf@redhat.com>
13715 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13716 when we have found all instructions we are looking for.
13718 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13720 * arm-tdep.c (arm_register_name): New function.
13721 (arm_registers_names): Make static.
13722 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13723 (arm_register_name): Declare.
13724 (REGISTER_NAME): Use it.
13726 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13727 Kevin Buettner <kevinb@redhat.com>
13729 Convert arm targets to new FRAME interface.
13730 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13731 (arm_frame_find_save_regs): Delete.
13732 (arm_frame_init_saved_regs): New.
13733 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13734 Allocate extra_info as required. Convert all uses of fsr.regs
13735 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13737 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13738 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13739 (check_prologue_cache, save_prologue_cache): Likewise.
13740 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13741 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13742 (FRAME_FIND_SAVED_REGS): Delete.
13743 (arm_frame_find_saved_regs): Delete prototype.
13744 (arm_frame_init_saved_regs): New prototype.
13745 (FRAME_INIT_SAVED_REGS): Define.
13747 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13749 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13751 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13753 From Jeff Law <law@redhat.com>:
13754 * infttrace.c: Include <sys/pstat.h>.
13755 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13756 exec file if the ttrace equivalent fails.
13758 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13760 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13761 (closeLogFile): Ditto.
13763 2002-01-20 Michael Chastain <mec@shout.net>
13765 * top.c (print_gdb_version): Bump copyright year to 2002.
13767 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13769 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13770 Zannoni and Eli Zaretskii.
13772 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13774 * buildsym.c: Update copyright years.
13775 * c-typeprint.c: Likewise.
13776 * dwarf2read.c: Likewise.
13777 * f-typeprint.c: Likewise.
13778 * gdbtypes.c: Likewise.
13779 * gdbtypes.h: Likewise.
13780 * hp-symtab-read.c: Likewise.
13781 * hpread.c: Likewise.
13782 * mdebugread.c: Likewise.
13783 * p-typeprint.c: Likewise.
13785 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13787 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13788 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13789 byte-order selectable.
13790 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13791 * arch-utils.c: Ditto.
13792 (set_endian): Ditto.
13793 (set_endian_from_file): Ditto.
13794 * gdbserver/low-sim.c (create_inferior): Ditto.
13795 * gdbarch.sh: Ditto.
13796 * gdbarch.h: Re-generate.
13797 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13798 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13799 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13800 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13801 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13802 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13803 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13804 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13806 * config/mips/tm-wince.h: Remove #undef of macro
13807 TARGET_BYTE_ORDER_SELECTABLE.
13808 * config/sh/tm-wince.h: Ditto.
13810 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13812 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13813 member function fields. Add accessor macro
13814 TYPE_FN_FIELD_ARTIFICIAL.
13815 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13816 * c-typeprint.c (c_type_print_base): Skip artificial member
13819 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13821 * f-typeprint.c: Delete unused function f_type_print_args.
13822 * p-typeprint.c: Delete unused function pascal_type_print_args.
13824 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13826 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13827 comment. Add ``artificial'' to ``union field_location''.
13829 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13831 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13832 * mdebugread.c (parse_symbol): Likewise.
13833 * stabsread.c (define_symbol): Likewise.
13834 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13835 initializing TYPE_FIELD_BITPOS to n (obsolete).
13836 (hpread_doc_function_type): Likewise.
13837 * hpread.c (hpread_function_type): Likewise.
13839 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13841 * configure.in (host_makefile_frag): Only require a host makefile
13842 fragment when a native build.
13843 * configure: Re-generate.
13845 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13847 * doublest.h (floatformat_from_type): Declare.
13848 * doublest.c (floatformat_from_type): New function.
13849 (convert_typed_floating): Use.
13851 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13852 call to function floatformat_from_type.
13854 * gdbarch.sh (IEEE_FLOAT): Delete.
13855 * gdbarch.h, gdbarch.c: Re-generate.
13856 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13857 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13858 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13859 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13860 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13861 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13862 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13863 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13864 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13865 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13866 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13867 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13869 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13870 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13871 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13872 * sh-tdep.c (sh_gdbarch_init): Ditto.
13873 * mips-tdep.c (mips_gdbarch_init): Ditto.
13874 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13875 * cris-tdep.c (cris_gdbarch_init): Ditto.
13877 2002-01-20 Jiri Smid <smid@suse.cz>
13879 * configure.host, configure.tgt: Support x86-64.
13880 * NEWS: Note new target x86-64.
13882 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13883 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13884 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13885 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13886 x86-64-linux-nat.o): Fix dependencies.
13888 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13890 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13891 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13892 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13893 * config/sparc/xm-sun4os4.h: Delete file.
13894 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13896 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13898 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13899 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13900 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13901 * config/i386/i386lynx.mh (XM_FILE): Delete.
13902 * config/rs6000/xm-rs6000ly.h: Delete file.
13903 * config/sparc/xm-sparclynx.h: Delete file.
13904 * config/m68k/xm-m68klynx.h: Delete file.
13905 * config/i386/xm-i386lynx.h: Delete file.
13906 * config/xm-lynx.h: Delete file.
13907 * config/djgpp/fnchange.lst: Update.
13909 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13911 * alpha-tdep.c (alpha_register_byte): New function.
13912 (alpha_register_raw_size): Ditto.
13913 (alpha_register_virtual_size): Ditto.
13914 (alpha_skip_prologue_internal): Renamed from
13915 alpha_skip_prologue.
13916 (alpha_skip_prologue): New version that calls
13917 alpha_skip_prologue_internal.
13918 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13919 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13920 second argument from alpha_skip_prologue.
13921 (REGISTER_BYTE): Use alpha_register_byte.
13922 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13923 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13924 (FRAMELESS_FUNCTION_INVOCATION): Use
13925 generic_frameless_function_invocation_not.
13926 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13927 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13929 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13931 * config/mips/xm-news-mips.h: Delete file.
13932 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13934 * config/m88k/xm-m88k.h: Delete file.
13935 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13936 * config/m88k/xm-delta88v4.h: Ditto.
13937 * config/m88k/xm-delta88.h: Ditto.
13939 * config/alpha/xm-fbsd.h: Delete file.
13940 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13942 * config/sparc/xm-sparc.h: Delete file.
13943 * Makefile.in (xm-sun4os4.h): Delete dependency.
13944 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13945 * config/sparc/xm-sun4os4.h: Ditto.
13946 * config/sparc/xm-linux.h: Ditto.
13948 * config/i386/xm-windows.h: Delete file.
13950 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13952 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13953 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13955 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13957 * alpha-tdep.c (alpha_call_dummy_words): New.
13958 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13959 (CALL_DUMMY_P): Define.
13960 (CALL_DUMMY_WORDS): Define.
13961 (SIZEOF_CALL_DUMMY_WORDS): Define.
13963 2002-01-19 Per Bothner <per@bothner.com>
13965 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13966 isn't NULL, which can happen with some gcj-3.x-produced code.
13968 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13970 * alpha-tdep.c (alpha_register_virtual_type): New function.
13971 (alpha_init_frame_pc_first): Ditto.
13972 (alpha_fix_call_dummy): Ditto.
13973 (alpha_store_struct_return): Ditto.
13974 (alpha_extract_struct_value_address): Ditto.
13975 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13976 alpha_register_virtual_type.
13977 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13978 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13979 alpha_extract_struct_value_address.
13980 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13981 (INIT_FRAME_PC): Use init_frame_pc_noop.
13982 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13984 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13986 * i386gnu-nat.c: Include "i386-tdep.h".
13987 (fetch_fpregs): Simplify code dealing with uninitialized floating
13988 point states such that it doesn't require FP7_REGNUM.
13990 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13992 * alpha-tdep.c (frame_extra_info): New.
13993 (alpha_find_saved_regs): Make static. Use
13995 (alpha_frame_init_saved_regs): New function.
13996 (alpha_frame_saved_pc): Use frame->extra_info.
13997 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13998 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13999 (init_extra_frame_info): Rename to...
14000 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14001 (alpha_print_extra_frame_info): New function.
14002 (alpha_frame_locals_address): Ditto.
14003 (alpha_frame_args_address): Ditto.
14004 (alpha_pop_frame): Use frame->extra_info.
14005 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14006 alpha_frame_args_address.
14007 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14008 (alpha_find_saved_regs): Remove prototype.
14009 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14010 (EXTRA_FRAME_INFO): Remove.
14011 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14012 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14014 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14016 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14017 (alpha_cannot_fetch_register): Ditto.
14018 (alpha_cannot_store_register): Ditto.
14019 (alpha_register_convertible): Ditto.
14020 (alpha_use_struct_convention): Ditto.
14021 * config/alpha/tm-alpha.h: Update copyright years.
14022 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14023 (INNER_THAN): Use core_addr_lessthan.
14024 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14025 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14026 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14027 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14028 (FRAME_CHAIN): Remove unnecessary cast.
14030 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14032 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14035 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14037 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14038 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14039 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14040 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14041 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14042 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14043 * x86-64-linux-nat.c: Ditto.
14045 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14047 * alpha-tdep.c (alpha_register_name): New function.
14048 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14049 (REGISTER_NAME): Define.
14051 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14053 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14055 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14057 * alpha-tdep.c: Update copyright years.
14058 (alpha_next_pc): New function.
14059 (alpha_software_single_step): Ditto.
14060 * config/alpha/tm-alpha.h: Add prototype for
14061 alpha_software_single_step.
14063 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14065 * alphabsd-nat.c: Update copyright years.
14066 (fill_gregset): Use regcache_collect.
14067 (fill_fpregset): Likewise.
14068 (fetch_inferior_registers): Only fetch integer registers
14069 if requested to do so.
14070 (store_inferior_registers): Only store integer registers
14071 if requested to do so.
14073 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14075 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14076 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14077 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14078 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14079 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14080 * config/arm/linux.mh (XDEPFILES): Delete.
14081 * config/arm/nbsd.mh (XDEPFILES): Delete.
14082 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14083 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14084 * config/i386/i386m3.mh (XDEPFILES): Delete.
14085 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14086 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14087 * config/i386/fbsd.mh (XDEPFILES): Delete.
14088 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14089 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14090 * config/i386/i386v4.mh (XDEPFILES): Delete.
14091 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14092 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14093 * config/i386/i386aix.mh (XDEPFILES): Delete.
14094 * config/i386/go32.mh (XDEPFILES): Delete.
14095 * config/i386/cygwin.mh (XDEPFILES): Delete.
14096 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14097 * config/i386/i386mach.mh (XDEPFILES): Delete.
14098 * config/i386/i386v32.mh (XDEPFILES): Delete.
14099 * config/i386/linux.mh (XDEPFILES): Delete.
14100 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14101 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14102 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14103 * config/i386/i386sco.mh (XDEPFILES): Delete.
14104 * config/i386/i386v.mh (XDEPFILES): Delete.
14105 * config/i386/nbsd.mh (XDEPFILES): Delete.
14106 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14107 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14108 * config/i386/symmetry.mh (XDEPFILES): Delete.
14109 * config/i386/obsd.mh (XDEPFILES): Delete.
14110 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14111 * config/ia64/linux.mh (XDEPFILES): Delete.
14112 * config/ia64/aix.mh (XDEPFILES): Delete.
14113 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14114 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14115 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14116 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14117 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14118 * config/m68k/linux.mh (XDEPFILES): Delete.
14119 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14120 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14121 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14122 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14123 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14124 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14125 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14126 * config/m88k/delta88.mh (XDEPFILES): Delete.
14127 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14128 * config/m88k/m88k.mh (XDEPFILES): Delete.
14129 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14130 * config/mips/linux.mh (XDEPFILES): Delete.
14131 * config/mips/irix6.mh (XDEPFILES): Delete.
14132 * config/mips/irix5.mh (XDEPFILES): Delete.
14133 * config/mips/irix4.mh (XDEPFILES): Delete.
14134 * config/mips/irix3.mh (XDEPFILES): Delete.
14135 * config/mips/decstation.mh (XDEPFILES): Delete.
14136 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14137 (NATDEPFILES): Move core-aout.o to here.
14138 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14139 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14140 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14141 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14142 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14143 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14144 * config/pa/hpux11.mh (XDEPFILES): Delete.
14145 * config/powerpc/aix.mh (XDEPFILES): Delete.
14146 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14147 * config/powerpc/linux.mh (XDEPFILES): Delete.
14148 * config/romp/rtbsd.mh: Rename XDEPFILES.
14149 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14150 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14151 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14152 * config/s390/s390.mh (XDEPFILES): Delete.
14153 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14154 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14155 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14156 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14157 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14158 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14159 * config/sparc/linux.mh (XDEPFILES): Delete.
14160 * config/vax/vaxult.mh (XDEPFILES): Delete.
14161 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14162 * Makefile.in (DEPFILES): Remove XDEPFILES.
14164 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14166 * utils.c (internal_verror): Fix comments, default is yes not no.
14167 Update queries to match. Default to quit and dump core.
14169 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14171 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14173 * defs.h, event-top.c, gdbcmd.h: Ditto.
14174 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14175 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14176 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14177 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14178 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14179 * mi/mi-main.c:Ditto.
14181 * stack.c, symfile.c: Update copyright.
14183 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14185 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14186 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14187 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14188 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14190 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14192 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14193 * gdbserver/low-lynx.c (myattach): Likewise.
14194 * gdbserver/low-nbsd.c (myattach): Likewise.
14195 * gdbserver/low-sim.c (myattach): Likewise.
14196 * gdbserver/low-sparc.c (myattach): Likewise.
14197 * gdbserver/low-sun3.c (myattach): Likewise.
14199 * gdbserver/low-linux.c (myattach): New function.
14201 * gdbserver/server.c (attach_inferior): New function.
14202 (main): Handle "--attach".
14204 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14206 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14209 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14211 * c-typeprint.c (is_type_conversion_operator): Add additional
14212 check for non-conversion operators.
14214 2002-01-15 Michael Snyder <msnyder@redhat.com>
14216 * linux-proc.c: Add "info proc" command, a la procfs.c.
14217 (read_mapping): New function, abstract and re-use code.
14218 (linux_find_memory_regions): Use new func read_mapping.
14219 (linux_info_proc_cmd): New function, implement "info proc".
14220 (_initialize_linux_proc): Add new command "info proc".
14222 2002-01-15 Michael Snyder <msnyder@redhat.com>
14224 * symfile.c (generic_load): Use bfd_map_over_sections method
14225 instead of manipulating bfd structure members directly.
14226 (add_section_size_callback): New function, bfd sections callback
14227 used by generic_load.
14228 (load_sections_callback): New function, bfd sections callback
14229 used by generic_load.
14231 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14233 [Based on work by Jim Blandy]
14234 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14235 (builtin_type_vec128): Export.
14236 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14238 (builtin_type_vec128): New builtin type for 128 bit vector
14240 (build_gdbtypes): Initialize builtin_type_v16qi and
14241 builtin_type_v8hi. Create the vec128 register builtin type
14243 (build_builtin_type_vec128): New function.
14244 (_initialize_gdbtypes): Register builtin_type_v16qi and
14245 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14246 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14247 AltiVec register to new builtin type.
14249 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14251 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14254 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14256 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14257 CLEAN_UP_REGISTER_VALUE.
14258 * regcache.c (supply_register): Update only call.
14260 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14262 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14263 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14264 a29k-*-vxworks* targets as obsolete.
14266 2002-01-14 Michael Snyder <msnyder@redhat.com>
14268 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14269 until we can resolve portability issues.
14270 * gregset.h: Remove references to fpxregs.
14271 * gcore.c (gcore_command): Initialize note_sec to NULL.
14273 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14275 * signals.c (target_signal_to_name): Rewrite. Only use
14276 signals[].name when in bounds and non-NULL.
14278 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14280 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14281 * signals.c (target_signal_to_name): Verify that SIG is within the
14282 bounds of the signals array.
14284 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14286 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14288 2002-01-13 Keith Seitz <keiths@redhat.com>
14290 * stack.c (print_frame_info_base): Print the frame's pc
14291 only if when print_frame_info_listing_hook is not defined.
14293 2002-01-13 Keith Seitz <keiths@redhat.com>
14295 * varobj.c (varobj_set_value): Make sure that there were no
14296 errors evaluating the object before attempting to set its
14298 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14299 so this offset adjustment is no longer necessary.
14300 (create_child): Don't set the error flag if the child is
14301 a CPLUS_FAKE_CHILD.
14302 (value_of_child): If value_fetch_lazy fails, return NULL
14303 so that callers will be notified that an error occurred.
14304 (c_value_of_variable): Delay check of variable's validity
14305 until later. We actually want all structs and unions to have
14307 Do not return "???" for variables which could not be evaluated.
14308 This error condition must be returned to the caller so that it
14309 can get the error condition from gdb.
14310 (cplus_name_of_child): Adjust index for vptr before figuring
14311 out the name of the child.
14312 (cplus_value_of_child): If a child's (real) parent is not valid,
14313 don't even bother trying to give a value for it. Just return
14314 an error. Change all instances in this function.
14315 (cplus_type_of_child): If our parent is one of the "fake"
14316 parents, we need to get at the type of the real parent, and
14317 derive the child's true type using this information.
14319 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14321 From 2002-01-09 John Marshall <johnm@falch.net>:
14322 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14323 sources.redhat.com, and tweak some related URLs which had
14324 suffered from linkrot.
14326 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14329 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14330 structures passed in registers.
14332 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14334 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14335 white space which prevented compilation. Reported by DSK
14336 <dsk@student.unsw.edu.au>.
14338 2002-01-11 Michael Snyder <msnyder@redhat.com>
14340 * symfile.c (build_section_addr_info_from_section_tab):
14341 Use bfd access method instead of manipulating bfd directly.
14342 (syms_from_objfile): Ditto.
14343 (simple_overlay_update_1): Ditto.
14344 (simple_overlay_update): Ditto.
14345 (generic_load): Ditto.
14346 (overlay_unmapped_address): FIXME comment, bfd access methods.
14347 (sections_overlap): FIXME comment, bfd access methods.
14348 (pc_in_mapped_range): FIXME comment, bfd access methods.
14349 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14350 (section_is_mapped): FIXME comment, bfd access methods.
14351 (section_is_overlay): FIXME comment, bfd access methods.
14353 * symfile.c (generic_load): Whitespace and long line cleanups.
14354 Remove duplicate variable, change several local variables to
14355 more appropriate data types.
14356 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14358 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14360 From Peter Schauer:
14361 * language.c (longest_local_hex_string_custom): Use phex_nz to
14362 convert NUM to a hex string.
14364 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14366 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14368 Update Copyright year.
14370 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14372 * language.c (longest_raw_hex_string): Delete unused function.
14374 2002-01-11 Petr Sorfa <petrs@caldera.com>
14376 * MAINTAINERS (write-after-approval): Add myself.
14377 * dwarf2read.c (read_tag_string_type): Handling of
14379 (read_tag_string_type): FORTRAN fix to prevent propagation of
14381 (set_cu_language): Handling of DW_LANG_Fortran95
14383 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14385 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14386 GETPID(inferior_ptid).
14387 (store_inferior_registers): Likewise.
14389 2002-01-10 Jason Merrill <jason@redhat.com>
14391 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14394 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14396 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14397 and bfd/elf32-sh-nbsd.c.
14399 2002-01-10 Michael Snyder <msnyder@redhat.com>
14401 * NEWS: Mention --pid and corefile/proc-id behavior change.
14403 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14404 * gcore.c: Include cli/cli-decode.h instead of command.h.
14406 * main.c (captured_main): Add new command line option "--pid".
14407 If the second command line argument (following the symbol-file)
14408 begins with a digit, try to attach to it before trying to open
14410 (print_gdb_help): Document the "--pid" argument.
14412 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14414 * completer.c (command_completer): New function.
14416 * completer.h <command_completer>: Add prototype.
14418 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14419 completer for the "help" command.
14421 2002-01-09 Jason Merrill <jason@redhat.com>
14423 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14425 2002-01-09 Michael Snyder <msnyder@redhat.com>
14427 * i386-linux-nat.c (fill_fpxregset): Make global.
14428 (store_fpxregset): Ditto.
14430 * gregset.h (gdb_fpxregset_t): Define.
14431 (supply_fpxregset): Prototype.
14432 (fill_fpxregset): Prototype.
14434 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14436 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14438 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14439 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14440 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14442 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14444 * MAINTAINERS: Update target maintainer rules so that any
14445 Maintainer can approve a tested patch for a maintenance-only
14448 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14450 * MAINTAINERS (write-after-approval): Add myself.
14452 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14455 2002-01-08 Michael Snyder <msnyder@redhat.com>
14457 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14458 real name of the executable, rather than the /proc name.
14460 2002-01-03 Michael Snyder <msnyder@redhat.com>
14462 Implement a "generate-core-file" command in gdb, save target state.
14463 * gcore.c: New file. Implement new command 'generate-core-file'.
14464 Save a corefile image of the current state of the inferior.
14465 * linux-proc.c: Add linux-specific code for saving corefiles.
14466 * target.h (struct target_ops): Add new target vectors for saving
14467 corefiles; to_find_memory_regions and to_make_corefile_notes.
14468 (target_find_memory_regions): New macro.
14469 (target_make_corefile_notes): New macro.
14470 * target.c (update_current_target): Inherit new target methods.
14471 (dummy_find_memory_regions): New place-holder method.
14472 (dummy_make_corefile_notes): New place-holder method.
14473 (init_dummy_target): Initialize new dummy target vectors.
14474 * exec.c (exec_set_find_memory_regions): New function.
14475 Allow the exec_ops vector for memory regions to be taken over.
14476 (exec_make_note_section): New function, target vector method.
14477 * defs.h (exec_set_find_memory_regions): Export prototype.
14478 * procfs.c (proc_find_memory_regions): New function, corefile method.
14479 (procfs_make_note_section): New function, corefile method.
14480 (init_procfs_ops): Set new target vector pointers.
14481 (find_memory_regions_callback): New function.
14482 (procfs_do_thread_registers): New function.
14483 (procfs_corefile_thread_callback): New function.
14484 * sol-thread.c (sol_find_memory_regions): New function.
14485 (sol_make_note_section): New function.
14486 (init_sol_thread_ops): Initialize new target vectors.
14487 * inftarg.c (inftarg_set_find_memory_regions): New function.
14488 Allow to_find_memory_regions vector to be taken over.
14489 (inftarg_set_make_corefile_notes): New function.
14490 Allow to_make_corefile_notes vector to be taken over.
14491 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14492 interface layer if not target_has_execution (may be a corefile).
14493 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14494 * config/sparc/sun4sol2.mh: Ditto.
14495 * config/alpha/alpha-linux.mh: Ditto.
14496 * config/arm/linux.mh: Ditto.
14497 * config/i386/x86-64linux.mh: Ditto.
14498 * config/ia64/linux.mh: Ditto.
14499 * config/m68k/linux.mh: Ditto.
14500 * config/mips/linux.mh: Ditto.
14501 * config/powerpc/linux.mh: Ditto.
14502 * config/sparc/linux.mh: Ditto.
14504 2002-01-07 Michael Snyder <msnyder@redhat.com>
14506 * arm-linux-nat.c: Remove references to regcache.c internal data
14507 (registers[] and register_valid[]).
14509 2002-01-07 Michael Snyder <msnyder@redhat.com>
14511 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14512 so that attaching to a pid will automatically read the process's
14513 symbol file and shlibs.
14514 * Makefile.in: Add rule for linux-proc.o.
14515 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14516 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14517 * config/arm/linux.mh: Ditto.
14518 * config/i386/linux.mh: Ditto.
14519 * config/i386/x86-64linux.mh: Ditto.
14520 * config/ia64/linux.mh: Ditto.
14521 * config/m68k/linux.mh: Ditto.
14522 * config/mips/linux.mh: Ditto.
14523 * config/powerpc/linux.mh: Ditto.
14524 * config/sparc/linux.mh: Ditto.
14526 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14528 * win32-nat.c: Add i386-tdep.h dependency.
14530 2002-01-07 Michael Snyder <msnyder@redhat.com>
14532 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14533 instead of bfd_get_arch_size. Don't bail out just because
14534 there's no exec_bfd.
14536 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14537 * p-valprint.c (pascal_object_print_value): Ditto.
14538 * somread.c (som_symtab_read): Ditto.
14539 * symfile.c (simple_free_overlay_region_table): Ditto.
14540 * valops.c (value_assign): Ditto.
14542 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14543 use tilde_expand and strerror for opening save-tracepoints file.
14545 * thread-db.c (thread_db_new_objfile): Indendation fix.
14547 * infptrace.c (GDB_MAX_ALLOCA): New define.
14548 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14549 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14550 can be overridden with whatever value is appropriate to the host).
14551 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14552 alloca to allocate potentially large buffer.
14553 * rs6000-nat.c (child_xfer_memory): Ditto.
14554 * symm-nat.c (child_xfer_memory): Ditto.
14555 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14557 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14559 From Nick Clifton <nickc@redhat.com>
14560 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14562 2002-01-07 Michael Snyder <msnyder@redhat.com>
14564 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14565 Don't use exec_bfd if it's NULL.
14567 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14569 * valops.c (value_arg_coerce): Fix formatting.
14571 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14573 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14574 * gnu-nat.c: Ditto.
14576 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14578 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14579 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14580 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14581 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14582 z8k-coff have not been multi-arched. Update z8k-coff build
14585 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14587 * MAINTAINERS: Mark a29k target as obsolete.
14588 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14589 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14591 * NEWS: Note that a29k targets are obsolete.
14592 * a29k-tdep.c: Mark as obsolete.
14593 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14594 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14595 a29k-*-vxworks* targets as obsolete.
14596 * remote-adapt.c: Obsolete.
14597 * remote-eb.c: Obsolete.
14598 * remote-mm.c: Obsolete.
14599 * remote-udi.c: Obsolete.
14600 * config/a29k/a29k-udi.mt: Obsolete.
14601 * config/a29k/a29k.mt: Obsolete.
14602 * config/a29k/tm-a29k.h: Obsolete.
14603 * config/a29k/tm-vx29k.h: Obsolete.
14604 * config/a29k/vx29k.mt: Obsolete.
14606 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14608 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14609 with BFD_ENDIAN_BIG.
14611 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14613 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14614 * configure, config.in: Re-generate.
14615 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14616 * defs.h: Do not include <endian.h>.
14618 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14620 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14621 * config.in: Regenerate.
14622 * configure.in: Update copyright years.
14623 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14624 * configure: Regenerate.
14625 * i386bsd-nat.c: Update copyright years.
14626 (fill_gregset): Use regcache_collect.
14627 (fetch_inferior_registers): Only fetch integer registers
14628 if requested to do so. Add support for XMM registers
14629 using PT_GETXMMREGS.
14630 (store_inferior_registers): Only store integer registers
14631 if requested to do so. Add support for XMM registers
14632 using PT_SETXMMREGS.
14633 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14634 (store_inferior_registers): Remove.
14635 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14636 (fetch_elfcore_registers): New function.
14637 (i386nbsd_elfcore_fns): New.
14638 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14639 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14641 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14642 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14643 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14644 * config/i386/tm-nbsd.h: Update copyright years.
14645 (HAVE_SSE_REGS): Define.
14646 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14647 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14648 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14649 (SIGCONTEXT_PC_OFFSET): Remove.
14650 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14652 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14654 * configure.tgt: Remove powerpc-*-macos* target.
14655 * config/m68k/xm-mpw.h: Delete file.
14656 * config/xm-mpw.h: Delete file.
14657 * ser-mac.c: Delete file.
14658 * mpw-make.sed: Delete file.
14659 * mpw-config.in: Delete file.
14660 * mac-xdep.c: Delete file.
14661 * mac-gdb.r: Delete file.
14662 * mac-defs.h: Delete file.
14663 * mac-nat.c: Delete file.
14664 * config/powerpc/macos.mh: Delete file.
14665 * config/powerpc/macos.mt: Delete file.
14666 * config/powerpc/nm-macos.h: Delete file.
14667 * config/powerpc/tm-macos.h: Delete file.
14668 * source.c (openp, open_source_file): Remove obsolete code.
14669 * top.c (gdb_readline): Ditto.
14670 * utils.c (query): Ditto.
14671 * event-top.c (display_gdb_prompt): Ditto.
14672 * Makefile.in (ser-mac.o): Delete obsolete target.
14675 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14677 * defs.h (BIG_ENDIAN): Delete macro definition.
14678 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14679 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14680 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14681 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14682 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14683 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14684 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14685 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14686 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14687 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14688 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14689 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14690 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14691 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14692 * gdbarch.c: Re-generate.
14694 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14696 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14699 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14701 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14703 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14705 * value.h (value_ptr): Delete typedef.
14707 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14709 * i386nbsd-nat.c: Update copyright years.
14710 Include i386-tdep.h.
14712 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14714 * stabsread.c: Update copyright years.
14716 From Debashis Mahata <debashis.mahata@wipro.com>:
14717 (read_struct_fields): Deal with Sun C compiler erroneous stab
14718 output for structs and unions.
14721 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14723 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14726 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14728 * cp-abi.c: Fix whitespace.
14729 (baseclass_offset): New wrapper function.
14730 * cp-abi.h (baseclass_offset): Add prototype.
14731 (struct cp_abi_ops): Add baseclass_offset pointer.
14733 * valops.c (vb_match): Move to...
14734 * gnu-v2-abi.c (vb_match): here.
14735 * valops.c (baseclass_offset): Move to...
14736 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14738 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14740 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14741 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14742 * hpacc-abi.c (init_hpacc_ops): Likewise.
14744 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14746 * valops.c (find_overload_match): Accept obj as a
14747 reference parameter. Update it before returning.
14748 * value.h (find_overload_match): Update prototype.
14749 * eval.c (evaluate_subexp_standard): Pass object to
14750 find_overload_match by reference.
14752 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14754 * valarith.c: Replace value_ptr with struct value pointer. Remove
14755 register attribute from value declarations.
14758 * scm-lang.c (scm_lookup_name): Ditto.
14760 2002-01-03 Michael Snyder <msnyder@redhat.com>
14762 Abstract the functionality of iterating over mapped memory
14763 regions into a general purpose iterator function.
14764 * procfs.c (iterate_over_mappings): New function, general purpose
14765 iterator for memory sections.
14766 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14767 (solib_mappings_callback): New function, callback for above.
14768 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14769 (info_mappings_callback): New function, callback for above.
14771 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14773 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14775 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14776 * i386-tdep.c: Include "elf-bfd.h".
14777 (process_note_abi_tag_sections): New function.
14778 (i386_gdbarch_init): Add code to recognize various OS/ABI
14781 * maint.c (_initialize_maint_cmds): Add missing \ in
14784 For older changes see ChangeLog-2001
14790 version-control: never