1 2002-12-17 Andrew Cagney <ac131313@redhat.com>
3 * stack.c (frame_info): Use get_frame_saved_regs.
4 * breakpoint.c (until_break_command): Use get_frame_pc.
6 2002-12-16 Kevin Buettner <kevinb@redhat.com>
8 * buildsym.c (block_end_complaint, anon_block_end_complaint)
9 (innerblock_complaint, innerblock_anon_complaint)
10 (blockvector_complaint): Delete deprecated complaint structs.
11 (finish_block, make_blockvector, end_symtab): Replace calls
12 to complain() with calls to complaint().
13 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
14 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
15 (unexpected_type_complaint, bad_sclass_complaint)
16 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
17 Delete deprecated complaint structs.
18 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
19 Replace calls to complain() with calls to complaint().
20 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
21 (unknown_symtype_complaint, unknown_symchar_complaint)
22 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
23 (lbrac_mismatch_complaint, repeated_header_complaint)
24 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
25 Delete deprecated complaint structs.
26 (unknown_symtype_complaint, lbrac_mismatch_complaint)
27 (repeated_header_complaint)
28 (function_outside_compiliation_unit_complaint): New functions.
29 (add_old_header_file, find_corresponding_bincl_psymtab)
30 (set_namestring, find_stab_function_addr, read_dbx_symtab)
31 (process_one_symbol): Replace calls to complain() with, possibly
32 indirect, calls to complaint().
33 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
34 (unknown_attribute_form, unknown_attribute_length)
35 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
36 (const_ignored, botched_modified_type, op_deref2, op_deref4)
37 (basereg_not_handled, dup_user_type_allocation)
38 (dup_user_type_definition, missing_tag, bad_array_element_type)
39 (subscript_data_items, unhandled_array_subscript_format)
40 (unknown_array_subscript_format, not_row_major)
41 (missing_at_name): Delete deprecated complaint structs.
42 (bad_die_ref_complaint, unknown_attribute_form_complaint)
43 (dup_user_type_definition_complaint)
44 (bad_array_element_type_complaint): New functions.
45 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
46 (decode_subscript_data_item, dwarf_read_array_type)
47 (read_tag_string_type, read_subroutine_type, read_func_scope)
48 (locval, scan_partial_symbols, decode_modified_type)
49 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
50 (attribute_size): Replace calls to complain() with, possibly
51 indirect, calls to complaint().
52 * elfread.c (section_info_complaint, section_info_dup_complaint)
53 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
54 Delete deprecated complaint structs.
55 (elf_symtab_read, elfstab_offset_sections): Replace calls to
56 complain() with calls to complaint().
57 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
59 (stub_noname_complaint): New function.
60 (check_typedef, add_mangled_type): Replace calls to complain()
61 with calls to complaint().
62 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
63 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
64 (hpread_unhandled_type_complaint, hpread_struct_complaint)
65 (hpread_array_complaint, hpread_type_lookup_complaint)
66 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
67 (hpread_unhandled_common_complaint)
68 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
69 struct definitions and declarations.
70 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
71 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
72 Replace calls to complain() with, possibly indirect, calls to
74 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
76 * mdebugread.c (bad_file_number_complaint, index_complaint)
77 (aux_index_complaint, block_index_complaint)
78 (unknown_ext_complaint, unknown_sym_complaint)
79 (unknown_st_complaint, block_overflow_complaint)
80 (basic_type_complaint, unknown_type_qual_complaint)
81 (array_index_type_complaint, bad_tag_guess_complaint)
82 (block_member_complaint, stEnd_complaint)
83 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
84 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
85 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
86 (bad_continued_complaint, bad_rfd_entry_complaint)
87 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
88 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
89 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
90 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
92 (index_complaint, unknown_ext_complaint, basic_type_complaint)
93 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
94 (unexpected_type_code_complaint)
95 (function_outside_compilation_unit_complaint): New functions.
96 (parse_symbol, parse_type, upgrade_type, parse_procedure)
97 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
98 Replace calls to complain() with, possibly indirect calls to
100 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
101 Delete deprecated complaint structs.
102 (lookup__objc_class, lookup_child_selector): Replace complain()
104 * remote-vx.c (cant_contact_target): Delete deprecated complaint
106 (vx_lookup_symbol): Replace complain() with complaint().
107 * stabsread.c (invalid_cpp_abbrev_complaint)
108 (invalid_cpp_type_complaint, member_fn_complaint)
109 (const_vol_complaint, error_type_complaint)
110 (invalid_member_complaint, range_type_base_complaint)
111 (reg_value_complaint, vtbl_notfound_complaint)
112 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
113 (unresolved_sym_chain_complaint, stabs_general_complaint)
114 (lrs_general_complaint, multiply_defined_struct): Delete
115 deprecated complaint structs.
116 (invalid_cpp_abbrev_complaint, ref_value_complaint)
117 (stabs_general_complaint, lrs_general_complaint)
118 (msg_unknown_complaint): New functions.
119 (dbx_lookup_type, read_cfront_baseclasses)
120 (read_cfront_member_functions, resolve_symbol_reference)
121 (define_symbol, resolve_live_range, add_live_range, read_type)
122 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
123 (read_one_struct_field, read_baseclasses, read_tilde_fields)
124 (read_cfront_static_fields, attach_fields_to_type)
125 (complain_about_struct_wipeout, read_range_type)
126 (common_block_start, common_block_end, cleanup_undefined_types)
127 (scan_file_globals): Replace complain() with complaint().
128 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
129 Delete deprecated complaint struct declarations.
130 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
131 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
132 (bf_not_found_complaint, ef_complaint, eb_complaint)
133 (function_outside_compilation_unit_complaint): New functions.
134 (record_include_begin, record_include_end, enter_line_range)
135 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
136 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
137 complain() with complaint().
139 2002-12-16 Andrew Cagney <ac131313@redhat.com>
141 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
142 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
143 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
144 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
145 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
146 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
147 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
148 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
149 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
150 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
151 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
152 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
153 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
154 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
155 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
156 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
157 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
158 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
159 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
160 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
161 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
162 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
163 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
164 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
165 * config/m88k/xm-dgux.h: Delete.
166 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
167 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
168 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
169 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
170 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
171 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
172 * ch-valprint.c: Delete.
174 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
176 * infrun.c (handle_inferior_event): Rearrange code to resume if
177 no catchpoint triggers for an event.
179 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
181 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
182 and TARGET_WAITKIND_VFORKED cases.
184 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
186 * infrun.c (handle_inferior_event): Assume that catchpoints
187 are not affected by DECR_PC_AFTER_BREAK.
189 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
191 * target.c (update_current_target): Don't inherit DONT_USE.
192 * target.h (struct target_ops): Remove DONT_USE.
193 (target_next): Remove macro.
195 2002-12-15 Mark Kettenis <kettenis@gnu.org>
197 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
199 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
201 * arm-tdep.c (convert_from_extended): New argument to hold the
202 type of floating point result we want to convert to. Make input
203 argument const. Fix all callers.
204 (convert_to_extended): Similarly.
205 (arm_extract_return_value): Now takes a regcache argument. Change
206 code to use regcache accessor functions. Correctly extract
207 smaller-than-word results on big-endian machines.
208 (arm_store_return_value): Now takes a regcache argument. Change
209 code to use regcache accessor functions. Correctly zero/sign extend
210 smaller than word results before storing into r0.
211 (arm_gdbarch_init): Register new-style extract_return_value and
212 store_return_value functions.
214 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
216 * thread-db.c (thread_from_lwp): Uniquify error msg.
217 (lwp_from_thread): Ditto.
218 (check_event): Ditto.
219 (find_new_threads_callback): Ditto.
220 (thread_db_pid_to_str): Ditto.
222 2002-12-13 Andrew Cagney <ac131313@redhat.com>
224 * frame.h (get_frame_saved_regs): Declare.
225 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
227 * frame.c (get_frame_saved_regs): New function.
228 (frame_saved_regs_zalloc): Return the allocated saved_regs.
230 2002-12-13 Andrew Cagney <ac131313@redhat.com>
232 * frame.c (deprecated_update_current_frame_pc_hack): New
234 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
235 * infrun.c (normal_stop): Use said function instead of directly
236 modifying the frame's PC.
238 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
240 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
242 2002-12-13 Kevin Buettner <kevinb@redhat.com>
244 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
245 config/mips/tm-irix6.h (NUM_REGS): Delete.
246 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
247 (temp_saved_regs): Declare as a pointer rather than an array.
248 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
249 that ``temp_saved_regs'' has storage allocated to it and that
250 it's the correct size.
252 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
254 * defs.h (init_last_source_visited): New prototype.
256 * source.c (add_path): New function that adds to a specified path.
257 (mod_path): Change to call add_path.
258 (init_last_source_visited): New function to allow interfaces to
259 initialize static variable: last_source_visited. Part of fix
261 * Makefile.in: Add support for mi/mi-cmd-env.c.
263 2002-12-13 Andrew Cagney <ac131313@redhat.com>
265 * frame.h (frame_id_unwind): Declare.
266 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
268 (frame_id_unwind_ftype): Declare.
269 * frame.c (frame_id_unwind): New function.
270 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
271 (create_new_frame, get_prev_frame): Pass id_unwind to
273 (frame_saved_regs_id_unwind): New function.
274 (frame_saved_regs_id_unwind): New function.
275 * dummy-frame.c (dummy_frame_id_unwind): New function.
276 (struct dummy_frame): Add field id.
277 (generic_push_dummy_frame): Initialize `id'.
278 * dummy-frame.h (dummy_frame_id_unwind): Declare.
280 2002-12-13 Andrew Cagney <ac131313@redhat.com>
282 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
283 pass that to set_momentary_breakpoint. Move comments to where they
285 * frame.h (set_current_frame): Delete declaration.
286 * frame.c (set_current_frame): Delete function.
288 2002-12-13 Andrew Cagney <ac131313@redhat.com>
290 * frame.c (frame_extra_info_zalloc): New function.
291 * frame.h (frame_extra_info_zalloc): Declare.
293 2002-12-13 Joel Brobecker <brobecker@gnat.com>
295 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
296 in the previous prototype change to set_momentary_breakpoint.
298 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
300 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
302 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
303 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
304 (stop_stepping): Remove outdated check for child vfork events.
306 2002-12-12 Andrew Cagney <ac131313@redhat.com>
308 * GDB 5.3 released from gdb_5_3-branch.
310 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
312 * corelow.c (init_core_ops): Delete references to to_require_attach
313 and to_require_detach.
314 * exec.c (init_exec_ops): Likewise.
315 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
316 hppa_require_detach directly.
317 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
318 * inftarg.c (child_detach): Remove.
319 (child_detach_from_process): Rename to child_detach, remove
321 (child_attach): Remove.
322 (child_attach_to_process): Rename to child_attach, remove after_fork
324 (init_child_ops): Delete references to to_require_attach
325 and to_require_detach.
326 * infttrace.c (hppa_require_attach): Update comment.
327 * target.c (cleanup_target, update_current_target)
328 (init_dummy_target, setup_target_debug): Delete references to
329 to_require_attach and to_require_detach.
330 (find_default_require_detach, find_default_require_attach)
331 (debug_to_require_attach, debug_to_require_detach): Remove
333 * target.h (struct target_ops): Remove to_require_attach
334 and to_require_detach.
335 (target_require_attach, target_require_detach): Delete macros.
336 (find_default_require_detach, find_default_require_attach): Delete
338 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
340 2002-12-11 Andrew Cagney <ac131313@redhat.com>
342 * frame.c (get_frame_extra_info): New function.
343 * frame.h (get_frame_extra_info): Declare.
345 2002-12-11 Andrew Cagney <ac131313@redhat.com>
347 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
348 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
349 with `struct frame_id'.
350 (set_longjmp_resume_breakpoint): Ditto.
351 * infrun.c (handle_inferior_event): Update.
352 * breakpoint.c (watch_command_1, until_break_command): Update.
353 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
354 (handle_inferior_event, step_over_function): Update.
355 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
356 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
357 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
358 * infcmd.c (finish_command, run_stack_dummy): Update.
360 2002-12-11 Kevin Buettner <kevinb@redhat.com>
362 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
363 (dwarf2_non_const_array_bound_ignored)
364 (dwarf2_missing_line_number_section)
365 (dwarf2_statement_list_fits_in_line_number_section)
366 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
367 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
368 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
369 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
370 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
371 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
372 (dwarf2_missing_member_fn_type_complaint)
373 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
374 (dwarf2_const_value_length_mismatch)
375 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
376 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
377 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
378 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
379 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
380 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
381 complaints using deprecated struct..
382 (dwarf2_non_const_array_bound_ignored_complaint)
383 (dwarf2_complex_location_expr_complaint)
384 (dwarf2_unsupported_at_frame_base_complaint)
385 (dwarf2_const_value_length_mismatch_complaint)
386 (dwarf2_macros_too_long_complaint)
387 (dwarf2_macro_malformed_definition_complaint)
388 (dwarf2_invalid_attrib_class_complaint): New functions.
389 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
390 (read_structure_scope, read_array_type, read_common_block)
391 (read_tag_pointer_type, read_base_type, read_partial_die)
392 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
393 (new_symbol, dwarf2_const_value, read_type_die)
394 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
395 (parse_macro_definition, dwarf_decode_macros): Replace calls to
396 complain() with, possibly indirect, calls to complaint().
398 2002-12-11 Andrew Cagney <cagney@redhat.com>
400 * frame.c (deprecated_get_frame_saved_regs): Rename
401 get_frame_saved_regs.
402 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
403 * sparc-tdep.c: Update.
404 * hppa-tdep.c: Update.
405 * h8500-tdep.c: Update.
407 2002-12-11 Kevin Buettner <kevinb@redhat.com>
409 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
410 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
411 ``char *'' for return and parameter types.
412 * gdbarch.h, gdbarch.c: Regenerate.
413 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
414 return type from ``char *'' to ``const char *''.
415 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
418 2002-12-11 Mark Kettenis <kettenis@gnu.org>
420 * i386-tdep.c: Include "dummy-frame.h".
421 (i386_frame_chain, i386_frame_saved_pc): Replace
422 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
423 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
425 2002-12-10 Andrew Cagney <cagney@redhat.com>
427 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
428 Change to a function with predicate.
429 * gdbarch.h, gdbarch.c: Re-generate.
430 * frame.c (get_prev_frame): Update. Test
431 DEPRECATED_INIT_FRAME_PC_P.
432 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
433 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
434 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
435 * alpha-tdep.c (alpha_gdbarch_init): Update.
436 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
437 * mips-tdep.c (mips_gdbarch_init): Update.
438 * i386-interix-tdep.c (i386_interix_init_abi): Update.
439 * arm-tdep.c: Update comments.
440 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
441 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
442 * frv-tdep.c (frv_gdbarch_init): Ditto.
443 * x86-64-tdep.c (x86_64_init_abi): Ditto.
444 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
445 * s390-tdep.c (s390_gdbarch_init): Ditto.
446 * v850-tdep.c (v850_gdbarch_init): Ditto.
447 * vax-tdep.c (vax_gdbarch_init): Ditto.
448 * sh-tdep.c (sh_gdbarch_init): Ditto.
449 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
451 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
452 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
453 * i386-tdep.c (i386_gdbarch_init): Ditto.
454 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
455 * cris-tdep.c (cris_gdbarch_init): Ditto.
456 * avr-tdep.c (avr_gdbarch_init): Ditto.
457 * arm-tdep.c (arm_gdbarch_init): Ditto.
458 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
459 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
461 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
463 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
465 * hppah-nat.c (saved_vfork_pid): Add.
466 (child_post_follow_vfork): Remove.
467 (child_follow_fork): New function.
468 (child_wait): Call detach_breakpoints after receiving the child vfork.
469 Call child_resume directly instead of going through resume ().
470 Make sure we have the exec before reporting the vfork.
471 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
472 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
473 (follow_fork): New function. Call target_follow_fork.
474 (follow_inferior_reset_breakpoints): New function broken out from
475 old follow_inferior_fork.
476 (resume): Remove hack to follow exec after vfork.
477 * inftarg.c (child_post_follow_vfork): Remove.
478 (child_follow_fork): New function.
479 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
480 * target.c (cleanup_target): Replace to_post_follow_vfork with
482 (update_current_target): Likewise.
483 (setup_target_debug): Likewise.
484 (debug_to_post_follow_vfork): Remove.
485 (debug_to_follow_fork): New function.
486 * target.h (struct target_ops): Replace to_post_folow_vfork with
488 (child_post_follow_vfork): Remove prototype.
489 (child_follow_fork): Add prototype.
490 (target_post_follow_vfork): Remove macro.
491 (target_follow_fork): Add macro.
493 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
495 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
496 (child_post_follow_vfork): Cancel pending exec event if we follow
498 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
499 events have been processed. Return a fake TARGET_WAITKIND_EXECD
500 event at the following wait call if necessary.
501 * infrun.c (follow_vfork): Don't follow_exec here.
502 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
503 case about HP/UX 10.20. Remove code pushed down to
504 hppah-nat.c:child_wait.
505 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
506 vfork_in_flight is set.
508 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
510 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
511 for the parent's fork event.
512 * infrun.c (handle_inferior_event): Only expect one fork event.
513 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
514 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
516 2002-12-10 Andrew Cagney <ac131313@redhat.com>
518 * PROBLEMS: Delete reference to PR gdb/725.
520 * MAINTAINERS (gdb.c++): Add David Carlton.
522 2002-12-09 David Carlton <carlton@math.stanford.edu>
524 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
525 * cli/cli-cmds.c: Ditto.
527 2002-12-09 Andrew Cagney <cagney@redhat.com>
529 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
530 function address in <>.
531 * gdbarch.c: Re-generate.
533 2002-12-09 David Carlton <carlton@math.stanford.edu>
535 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
537 2002-12-09 David Carlton <carlton@math.stanford.edu>
539 * linespec.c (symtab_from_filename): New function.
540 (decode_line_1): Move code into symtab_from_filename.
542 2002-12-09 Kevin Buettner <kevinb@redhat.com>
544 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
546 2002-12-07 Andrew Cagney <ac131313@redhat.com>
548 * f-valprint.c (info_common_command): Use get_frame_pc.
549 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
550 * ax-gdb.c (agent_command): Ditto.
551 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
552 (rs6000_pop_frame): Ditto.
553 (rs6000_frameless_function_invocation): Ditto.
554 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
555 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
556 * macroscope.c (default_macro_scope): Ditto.
557 * stack.c (print_frame_info_base): Ditto.
558 (print_frame, frame_info, print_frame_label_vars): Ditto.
559 (return_command, func_command, get_frame_language): Ditto.
560 * infcmd.c (finish_command): Ditto.
561 * dummy-frame.c (cached_find_dummy_frame): Ditto.
562 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
563 (break_at_finish_at_depth_command_1): Ditto.
564 (break_at_finish_command_1): Ditto.
565 (until_break_command, get_catch_sals): Ditto.
566 * blockframe.c (func_frame_chain_valid): Ditto.
567 (frameless_look_for_prologue): Ditto.
568 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
570 2002-12-08 Andrew Cagney <ac131313@redhat.com>
572 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
573 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
575 2002-12-08 Andrew Cagney <ac131313@redhat.com>
577 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
579 * gdbarch.h, gdbarch.c: Re-generate.
580 * frame.c (get_prev_frame): Explictly assign prev's pc with value
581 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
583 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
584 declaration to a function returning a CORE_ADDR.
585 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
586 * arch-utils.c (init_frame_pc_noop): Return the PC value.
587 (init_frame_pc_default): Ditto.
588 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
589 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
590 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
591 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
592 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
593 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
595 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
596 to init_frame_pc_noop.
597 (i386_interix_init_frame_pc): Delete function.
598 * z8k-tdep.c (init_frame_pc): Delete function.
599 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
600 (INIT_FRAME_PC_FIRST): Ditto.
601 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
602 (INIT_FRAME_PC_FIRST): Ditto.
603 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
604 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
606 (INIT_FRAME_PC_FIRST): Convert to an expression.
607 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
609 2002-12-08 Andrew Cagney <ac131313@redhat.com>
611 * blockframe.c: Use get_frame_base instead of directly accessing
612 the `struct frame_info' member frame.
613 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
614 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
616 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
618 * Makefile.in (readline_h): Define.
619 (completer.o): Depend on readline_h.
621 (event-top.o): Ditto.
628 (tracepoint.o): Ditto.
631 (tui-hooks.o): Ditto.
634 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
636 More cleanup from import of readline 4.3.
637 * completer.h (complete_line, readline_line_completion_function):
639 (line_completion_function): Removed, not used outside of completer.c.
640 * completer.c (readline_line_completion_function,
641 complete_function, line_completion_function): Use const for first
643 (line_completion_function): Make static.
644 (filename_completer): filename_completion_function is now called
645 rl_filename_completion_function
646 * corelow.c: Include <readline/readline.h>.
652 * top.c (init_main): No need to coerce
653 readline_line_completion_function anymore.
654 * cli/cli-dump.c: Include <readline/readline.h>.
656 2002-12-08 Andrew Cagney <ac131313@redhat.com>
658 * stack.c (frame_info): Use get_prev_frame.
659 * blockframe.c (frame_address_in_block): Ditto.
660 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
661 (rs6000_frameless_function_invocation): Ditto.
662 (rs6000_frame_saved_pc): Ditto.
663 (rs6000_frame_chain): Ditto.
664 * arch-utils.c (init_frame_pc_default): Ditto.
666 2002-12-08 Andrew Cagney <ac131313@redhat.com>
668 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
669 Delete redundant definition.
671 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
673 Import of readline 4.3:
674 * cli/cli-cmds.c: Include readline/tilde.h.
675 * cli/cli-setshow.c: Ditto.
676 * defs.h: Don't declare tilde_expand anymore, since readline
679 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
681 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
682 -Werror on this file.
684 2002-12-07 Andrew Cagney <ac131313@redhat.com>
686 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
688 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
689 * gdbarch.c: Regenerate.
691 2002-12-06 Andrew Cagney <ac131313@redhat.com>
693 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
694 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
695 provide a default value.
696 * gdbarch.h, gdbarch.c: Regenerate.
697 * frame.c (get_prev_frame): Update. Check
698 DEPRECATED_INIT_FRAME_PC_FIRST_P.
699 * s390-tdep.c (s390_gdbarch_init): Update.
700 * mips-tdep.c (mips_gdbarch_init): Update.
701 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
702 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
703 * alpha-tdep.c (alpha_gdbarch_init): Update.
705 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
707 * ia64-linux-nat.c: Include gdb_string.h.
708 * alpha-nat.c: Ditto.
709 * ppc-linux-nat.c: Ditto.
710 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
713 2002-12-05 Andrew Cagney <ac131313@redhat.com>
715 * gdbthread.h: Include "frame.h".
716 (struct thread_info): Replace step_frame_address with
718 * inferior.h: Include "frame.h".
719 (step_frame_id): Replace external variable step_frame_address.
720 * gdbthread.h (save_infrun_state): Replace step_frame_address
721 parameter with step_frame_id parameter.
722 (load_infrun_state): Ditto.
723 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
724 * infcmd.c (step_frame_id, step_1, step_once): Update.
725 * thread.c (load_infrun_state, save_infrun_state): Update.
726 * infrun.c (clear_proceed_status, save_inferior_status): Update.
727 (handle_inferior_event, step_over_function): Update.
728 (normal_stop, context_switch, restore_inferior_status): Update.
729 (struct inferior_status): Replace step_frame_address with
732 2002-12-05 David Carlton <carlton@math.stanford.edu>
734 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
735 DW_TAG_member as well as a declaration as being a C++ static data
737 (read_structure_scope): Combine tests for DW_TAG_member and
740 2002-12-05 David Carlton <carlton@math.stanford.edu>
742 * linespec.c (decode_compound): New function.
743 (decode_line_1): Move code into decode_compound.
745 2002-12-05 David Carlton <carlton@math.stanford.edu>
747 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
749 (lookup_symbol_aux): Do the 'field_of_this' check before checking
750 the static block. See PR gdb/804.
752 2002-12-05 David Carlton <carlton@math.stanford.edu>
754 * symtab.c (lookup_symbol_aux_block): New function.
755 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
757 2002-12-05 Andrew Cagney <ac131313@redhat.com>
759 * gdbarch.sh: Dump the predicate function and macro values.
760 (read): Print error on standard error.
761 * gdbarch.c: Regenerate.
763 2002-12-04 Kevin Buettner <kevinb@redhat.com>
765 * Makefile.in (mips_tdep_h): Define.
766 (mips-tdep.o): Add mips_tdep_h to dependency list.
767 * mips-tdep.h: New file.
768 * mips-tdep.c (mips-tdep.h): Include.
769 (enum mips_abi): Move to mips-tdep.h.
770 (mips_abi): New function.
772 2002-12-04 David Carlton <carlton@math.stanford.edu>
774 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
776 2002-12-04 David Carlton <carlton@math.stanford.edu>
778 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
780 (lookup_symbol_aux_minsyms): New function.
782 2002-12-04 J. Brobecker <brobecker@gnat.com>
784 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
786 2002-12-04 J. Brobecker <brobecker@gnat.com>
788 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
789 which is an obsolete macro name.
791 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
793 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
794 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
796 2002-12-03 H.J. Lu (hjl@gnu.org)
798 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
799 (create_breakpoints): Make sure the addr_string field is not
802 2002-12-03 Andrew Cagney <ac131313@redhat.com>
804 * sparc-nat.c (fetch_inferior_registers)
805 (store_inferior_registers): Add comment on problem of LWP vs
808 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
809 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
810 (lin_lwp_store_registers): Remove.
811 (init_lin_lwp_ops): Use fetch_inferior_registers
812 and store_inferior_registers directly.
813 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
814 (store_inferior_registers): Likewise.
817 2002-12-03 Andrew Cagney <ac131313@redhat.com>
819 * frame.h (get_frame_id): Convert to a function.
820 (null_frame_id, frame_id_p): Declare.
821 (frame_id_eq, frame_id_inner): Declare.
822 (frame_id_build): New function.
823 * frame.c (get_frame_id): Update. Use null_frame_id.
824 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
826 (null_frame_id, frame_id_p): Define.
827 (frame_id_eq, frame_id_inner): Define.
828 (frame_id_build): New function.
829 * varobj.c (varobj_create): Update.
830 (varobj_update): Update.
831 * valops.c (value_assign): Update.
832 (new_root_variable): Update.
833 * infrun.c (save_inferior_status): Update.
834 * breakpoint.c (watch_command_1): Update.
836 2002-12-03 J. Brobecker <brobecker@gnat.com>
838 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
841 2002-12-03 Andrew Cagney <cagney@redhat.com>
843 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
846 * PROBLEMS: Mention PR gdb/725.
848 2002-12-03 Andreas Schwab <schwab@suse.de>
850 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
852 2002-12-02 Adam Fedor <fedor@gnu.org>
853 Klee Dienes <kdienes@apple.com>
855 * objc-lang.c (objc_printstr): Add width arg to match
857 (compare_selectors): Add 'const' to arg types.
858 (compare_classes): Likewise.
859 (find_imps): Cast msym pointer to avoid compiler warning.
860 (print_object_command): Validate the address before
861 passing it to the print routine.
862 (find_objc_msgcall_submethod): Change function argument to
864 * objc-lang.h: Add 'extern' to all function declarations.
865 (value_nsstring): Add declaration.
867 2002-12-02 J. Brobecker <brobecker@gnat.com>
869 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
870 Fixes a build failure on HP/UX.
872 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
874 (hpread_has_name): Advance declaration to avoid a compilation warning.
875 (pst_syms_count): Add missing variable type. By change, the compiler
876 was defaulting to int, which seems a good choice. Fixes a compilation
878 (pst_syms_size): Likewise.
880 2002-12-02 J. Brobecker <brobecker@gnat.com>
882 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
883 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
884 later to set the proper gdbarch methods depending on the osabi.
885 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
887 2002-12-02 J. Brobecker <brobecker@gnat.com>
889 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
890 * osabi.c (gdb_osabi_name): Add strings images for the two new
892 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
894 2002-12-02 Andrew Cagney <ac131313@redhat.com>
896 * MAINTAINERS (Java): Global maintainers are responible for Java.
897 (Past Maintainers): Mention both Anthony Green and Per Bothner as
898 part Java maintainers.
900 2002-12-02 J. Brobecker <brobecker@gnat.com>
902 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
903 Fixes a compilation failure on AiX.
905 2002-12-02 J. Brobecker <brobecker@gnat.com>
907 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
908 why aix-thread.o is not listed.
910 2002-12-01 Andrew Cagney <ac131313@redhat.com>
912 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
913 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
914 * gdbarch.h, gdbarch.c: Re-generate.
915 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
916 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
917 * config/pa/tm-hppa.h, frame.h: Update.
918 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
919 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
920 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
921 * cris-tdep.c, alpha-tdep.c: Update.
922 * frame.c (set_unwind_by_pc, create_new_frame): Use either
923 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
924 (get_prev_frame): Ditto.
926 2002-11-30 Andrew Cagney <cagney@redhat.com>
928 * exec.c (xfer_memory): Replace boolean with int.
929 * p-exp.y: Use 0 instead of false.
930 * corelow.c (gdb_check_format): Change return type to int from
932 * utils.c: Don't include <curses.h> or <term.h> first.
934 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
936 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
937 (m68hc11_register_byte): Remove.
938 (m68hc11_gdbarch_init): Don't set the above.
940 2002-11-29 Andrew Cagney <cagney@redhat.com>
942 * remote-mips.c (mips_initialize): Force a selected frame rebuild
943 by calling get_selected_frame.
944 * ocd.c (ocd_start_remote): Use get_selected frame instead of
945 set_current_frame, create_new_frame, select_frame and
947 * remote-e7000.c (e7000_start_remote): Ditto.
948 * remote-mips.c (common_open): Ditto
949 * remote-rdp.c (remote_rdp_open): Ditto.
951 2002-11-29 Andreas Schwab <schwab@suse.de>
953 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
954 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
955 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
956 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
957 read_memory_unsigned_integer instead of read_memory_integer when
958 dealing with addresses and instruction opcodes.
959 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
960 (m68k_linux_frame_saved_pc): Likewise.
962 2002-11-29 Andrew Cagney <ac131313@redhat.com>
964 * stack.c (selected_frame, select_frame): Move from here ...
965 * frame.c (selected_frame, select_frame): ... to here. Include
967 * Makefile.in (frame.o): Update dependencies.
968 * frame.c (get_selected_frame): New function.
969 * frame.h (get_selected_frame): Declare.
970 (deprecated_selected_frame): Rename selected_frame.
971 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
972 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
973 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
974 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
975 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
976 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
977 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
978 * z8k-tdep.c, cli/cli-cmds.c: Update.
980 2002-11-29 Andrew Cagney <ac131313@redhat.com>
982 * frame.h (get_selected_block): Add comments.
984 2002-11-28 Andrew Cagney <ac131313@redhat.com>
986 * frame.c (pc_notcurrent): New function.
987 (find_frame_sal): New function.
988 * frame.h (find_frame_sal): Declare.
989 (struct symtab_and_line): Add opaque declaration.
990 * stack.c (print_frame_info_base): Use find_frame_sal instead of
993 * ada-lang.c (find_printable_frame): Ditto.
995 2002-11-28 J. Brobecker <brobecker@gnat.com>
997 * configure.in: Check that the pthdebug library is recent enough
998 before enabling thread support on native AiX.
999 * configure: Regenerate.
1001 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1002 from the list of object files as it is now appended by configure
1003 if thread support is enabled.
1004 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1005 if thread support is enabled.
1007 2002-11-28 Andrew Cagney <cagney@redhat.com>
1009 * stack.c (get_selected_block): In-line get_current_block.
1010 * frame.h (get_current_block): Delete declaration.
1011 * blockframe.c (get_current_block): Delete function.
1013 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1015 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1016 USE_GENERIC_DUMMY_FRAMES.
1017 * gdbarch.h, gdbarch.c: Regenerate.
1018 * valops.c, frame.c: Update.
1019 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1020 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1021 * config/pa/tm-hppa.h, blockframe.c: Update.
1022 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1023 * m68k-tdep.c, alpha-tdep.c: Ditto.
1025 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1026 * mips-tdep.c: Ditto.
1028 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1030 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1031 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1032 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1033 * gdbarch.c, gdbarch.h: Re-generate.
1034 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1035 (CALL_DUMMY_LOCATION): Delete macro definition.
1036 (PC_IN_CALL_DUMMY): Delete macro definitions.
1038 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1039 default is already generic_pc_in_call_dummy.
1040 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1041 * v850-tdep.c (v850_gdbarch_init): Ditto.
1042 * sh-tdep.c (sh_gdbarch_init): Ditto.
1043 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1044 * mips-tdep.c (mips_gdbarch_init): Ditto.
1045 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1047 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1048 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1049 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1050 * avr-tdep.c (avr_gdbarch_init): Ditto.
1052 * arm-tdep.c (arm_gdbarch_init): Do not set
1053 use_generic_dummy_frames, default is already 1.
1054 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1055 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1056 * v850-tdep.c (v850_gdbarch_init): Ditto.
1057 * sh-tdep.c (sh_gdbarch_init): Ditto.
1058 * s390-tdep.c (s390_gdbarch_init): Ditto.
1059 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1060 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1061 * mips-tdep.c (mips_gdbarch_init): Ditto.
1062 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1064 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1065 * i386-tdep.c (i386_gdbarch_init): Ditto.
1066 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1067 * frv-tdep.c (frv_gdbarch_init): Ditto.
1068 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1069 * cris-tdep.c (cris_gdbarch_init): Ditto.
1070 * avr-tdep.c (avr_gdbarch_init): Ditto.
1072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1073 call_dummy_location, default is already AT_ENTRY_POINT.
1074 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1075 * v850-tdep.c (v850_gdbarch_init): Ditto.
1076 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1077 * sh-tdep.c (sh_gdbarch_init): Ditto.
1078 * s390-tdep.c (s390_gdbarch_init): Ditto.
1079 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1080 * mn10300-tdep.c (mn10300_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 * i386-tdep.c (i386_gdbarch_init): Ditto.
1086 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1087 * frv-tdep.c (frv_gdbarch_init): Ditto.
1088 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1089 * cris-tdep.c (cris_gdbarch_init): Ditto.
1090 * avr-tdep.c (avr_gdbarch_init): Ditto.
1091 * arm-tdep.c (arm_gdbarch_init): Ditto.
1092 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1094 2002-11-28 Andrew Cagney <cagney@redhat.com>
1096 * frame.h: Update comments on set_current_frame, create_new_frame,
1097 flush_cached_frames, reinit_frame_cache, select_frame and
1100 2002-11-27 Andrew Cagney <cagney@redhat.com>
1102 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1103 deprecated pc_in_call_dummy function.
1104 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1105 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1106 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1107 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1108 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1110 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1112 * Makefile.in: Remove Tix dependencies.
1113 * acinclude.m4: Ditto.
1114 * aclocal.m4: Ditto.
1115 * configure.in: Ditto.
1116 * configure: Regenerated.
1118 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1120 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1121 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1122 * gdbarch.c: Re-generate.
1124 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1126 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1127 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1128 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1129 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1130 pc_in_call_dummy_at_entry_point.
1131 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1132 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1133 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1134 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1135 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1136 pc_in_call_dummy_on_stack.
1137 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1138 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1139 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1140 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1141 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1143 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1145 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1146 pc_in_call_dummy_before_text_end
1147 (deprecated_pc_in_call_dummy_after_text_end): Rename
1148 pc_in_call_dummy_after_text_end.
1149 (deprecated_pc_in_call_dummy_on_stack): Rename
1150 pc_in_call_dummy_on_stack.
1151 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1152 pc_in_call_dummy_at_entry_point.
1153 * m68k-tdep.c (m68k_gdbarch_init): Update.
1154 * s390-tdep.c (s390_gdbarch_init): Update.
1155 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1156 * vax-tdep.c (vax_gdbarch_init): Update.
1157 * sparc-tdep.c (sparc_gdbarch_init): Update.
1158 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1159 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1160 * i386-tdep.c (i386_gdbarch_init): Update.
1161 * frv-tdep.c (frv_gdbarch_init): Update.
1162 * cris-tdep.c (cris_gdbarch_init): Update.
1163 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1164 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1165 (deprecated_pc_in_call_dummy_after_text_end)
1166 (deprecated_pc_in_call_dummy_on_stack)
1167 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1168 * alpha-tdep.c (alpha_gdbarch_init): Update.
1170 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1172 * acconfig.h (HAVE_PREAD64): Add.
1173 * configure.in: Check for pread64.
1174 * config.in: Regenerated.
1175 * configure: Regenerated.
1176 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1177 * linux-proc.c (linux_proc_xfer_memory): New function.
1178 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1180 2002-11-25 David Carlton <carlton@math.stanford.edu>
1182 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1185 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1187 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1188 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1190 2002-11-25 Jim Blandy <jimb@redhat.com>
1192 * symfile.c (init_objfile_sect_indices): New function.
1193 (default_symfile_offsets): Move the section-index-initializing
1194 stuff into init_objfile_sect_indices, and call that.
1196 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1197 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1199 * symfile.c (syms_from_objfile): Adjust indentation.
1201 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1202 || info_verbose isn't true.
1204 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1206 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1207 default to get_frame_base.
1208 * gdbarch.h, gdbarch.c: Regenerate.
1209 * arch-utils.c (default_frame_address): Delete function.
1210 * arch-utils.h (default_frame_address): Delete declaration
1212 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1214 * varobj.c (find_frame_addr_in_frame_chain):
1215 Use get_frame_base instead of FRAME_FP,
1218 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1220 * frame.h (FRAME_FP): Delete macro.
1221 (get_frame_base): New function declaration.
1222 * frame.c (get_frame_base): New function.
1223 (get_frame_id): Use ->frame.
1224 (frame_find_by_id): Rewrite to use get_frame_id.
1225 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1226 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1227 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1228 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1229 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1230 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1231 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1233 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1235 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1237 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1239 * frame.c (set_unwind_by_pc): Revert change below, use
1241 (get_prev_frame): Ditto.
1243 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1245 * dummy-frame.c (pc_in_dummy_frame): New function.
1246 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1247 (find_dummy_frame): Update comment.
1248 (generic_pop_current_frame): Use get_frame_type.
1249 * dummy-frame.h (pc_in_dummy_frame): Declare.
1250 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1251 (create_new_frame): Use pc_in_dummy_frame.
1252 (get_prev_frame): Use pc_in_dummy_frame.
1253 (frame_saved_regs_register_unwind): Use get_prev_frame.
1254 (deprecated_generic_get_saved_register): Use get_prev_frame.
1256 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1258 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1260 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1261 (varobj_create): Note that frame ID should be used.
1262 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1264 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1266 * breakpoint.c: Include "gdb_assert.h".
1267 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1269 * Makefile.in (breakpoint.o): Update dependencies.
1270 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1271 deprecated_frame_in_dummy.
1272 * stack.c (print_frame_info_base): Ditto.
1273 (frame_info): Ditto.
1274 (print_frame_info_base): Ditto. Delete dead code.
1276 2002-11-23 Andreas Schwab <schwab@suse.de>
1278 * Makefile.in (m68k_tdep_h): Define.
1279 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1280 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1281 * m68k-tdep.c: Move register number enum ...
1282 * m68k-tdep.h: ... to this new file and rename the constants from
1283 E_* to M68K_*. All uses changed.
1284 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1285 * abug-rom.c: Include "m68k-tdep.h". Use
1286 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1287 * cpu32bug-rom.c: Likewise.
1288 * dbug-rom.c: Likewise.
1289 * m68k-tdep.c: Likewise.
1290 * m68klinux-nat.c: Likewise.
1291 * remote-est.c: Likewise.
1292 * rom68k-rom.c: Likewise.
1293 * config/m68k/tm-linux.h: Likewise.
1295 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1297 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1298 dummy frame initialization code.
1299 * mips-tdep.c (mips_gdbarch_init): Ditto.
1301 2002-11-22 Christopher Faylor <cgf@redhat.com>
1303 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1306 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1308 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1309 to default_frame_address.
1310 * gdbarch.h, gdbarch.c: Re-generate.
1312 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1313 or frame_locals_address to default_frame_address.
1314 * m68k-tdep.c (m68k_gdbarch_init): Update.
1315 * i386-tdep.c (i386_gdbarch_init): Update.
1316 * frv-tdep.c (frv_gdbarch_init): Update.
1317 * sh-tdep.c (sh_gdbarch_init): Update.
1318 * v850-tdep.c (v850_gdbarch_init): Update.
1319 * sparc-tdep.c (sparc_gdbarch_init): Update.
1320 * mips-tdep.c (mips_gdbarch_init): Update.
1321 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1322 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1325 * cris-tdep.c (cris_frame_args_address): Delete function.
1326 (cris_frame_locals_address): Delete function.
1327 (cris_gdbarch_init): Do not set frame_args_address or
1328 frame_locals_address.
1330 2002-11-22 Michael Snyder <msnyder@redhat.com>
1332 * thread-db.c (thread_db_load): Tell the user what's going on
1333 if dlopen fails on libthread_db.
1335 2002-11-23 Andreas Schwab <schwab@suse.de>
1337 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1338 invariant return values.
1340 2002-11-22 Andreas Schwab <schwab@suse.de>
1342 * valops.c (value_slice): Move declaration of `offset' to avoid
1345 2002-11-22 Christopher Faylor <cgf@redhat.com>
1347 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1348 (struct so_stuff): Add end_addr field.
1349 (register_loaded_dll): Calculate and store end address of loaded dll.
1350 (solib_address): New function.
1351 (child_solib_loaded_library_pathname): Pass carefully constructed
1352 section info to safe_symbol_file_add rather than ignoring it.
1353 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1355 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1356 (child_create_inferior): Fix a compiler warning.
1357 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1358 (solib_address): Declare new function.
1360 2002-11-22 Andreas Schwab <schwab@suse.de>
1362 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1365 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1367 * maint.c (_initialize_maint_cmds): Fix typo. From
1368 Francesco Potorti` <pot@gnu.org>.
1370 2002-11-21 Andrew Cagney <cagney@redhat.com>
1372 * mips-tdep.c (mips_dump_tdep): Delete references to
1373 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1374 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1375 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1376 * printcmd.c (build_address_symbolic): Delete calls to
1377 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1378 (address_info): Ditto.
1381 2002-11-19 Klee Dienes <kdienes@apple.com>
1382 Adam Fedor <fedor@gnu.org>
1384 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1385 the ability to explicitly specify the quote characters and word
1386 break characters; if NULL is specified for either, use the old
1387 behavior of using the characters used by the completer.
1388 (skip_chars): New function. Convenience wrapper around
1389 skip_quoted_chars to provide the original skip_chars behavior.
1390 * completer.h (skip_quoted_chars): Add prototype.
1392 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1394 Problems reported by Paul Eggert.
1395 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1397 2002-11-19 Andreas Schwab <schwab@suse.de>
1399 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1400 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1401 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1402 (m68k_linux_frame_saved_pc): Move to ...
1403 * m68klinux-tdep.c: ... here. New file.
1404 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1405 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1407 2002-11-19 Adam Fedor <fedor@gnu.org>
1409 * objc-exp.y: Revert to old skip_quoted usage.
1411 2002-11-19 Adam Fedor <fedor@gnu.org>
1413 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1414 (objc_lang_h): Define.
1415 (YYFILES): Add objc-exp.tab.c.
1416 (local-maintainer-clean): Remove objc-exp.tab.c.
1417 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1419 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1421 * p-exp.y (typecast rule): Add automatic dereference of
1422 pascal classes if needed.
1423 (THIS): Set current_type.
1424 Automatically dereference pascal classes.
1425 (typebase rule): Add ^typebase recognition.
1427 2002-11-18 Adam Fedor <fedor@gnu.org>
1429 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1430 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1431 (op_name): Handle OP_OBJC_SELF.
1432 * Makefile.in (expprint.o): Add additional depends.
1434 2002-11-18 Adam Fedor <fedor@gnu.org>
1436 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1437 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1438 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1439 * objc-exp.y: Likewise.
1441 2002-11-18 Adam Fedor <fedor@gnu.org>
1443 * gdb/parser-defs.h: (struct objc_class_str): New structure
1444 for parsing ObjC classes.
1446 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1448 * stack.c (frame_relative_level): Copy function from here ...
1449 * frame.c (frame_relative_level): ...to here.
1451 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1453 * frame.h (enum frame_type): Define.
1454 (get_frame_type): Declare.
1455 (struct frame_info): Add field `type'. Delete field
1456 signal_handler_caller.
1457 (deprecated_set_frame_signal_handler_caller): Declare.
1458 * frame.c (get_frame_type): New function.
1459 (deprecated_set_frame_type): New function.
1460 (create_new_frame): Set the frame's type.
1461 (get_prev_frame): Similar.
1462 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1463 * s390-tdep.c: Ditto.
1464 * m68klinux-nat.c: Ditto.
1465 * ns32k-tdep.c: Ditto.
1466 * x86-64-linux-tdep.c: Ditto.
1467 * vax-tdep.c: Ditto.
1468 * rs6000-tdep.c: Ditto.
1469 * ppc-linux-tdep.c: Ditto.
1470 * i386-interix-tdep.c: Ditto.
1471 * mips-tdep.c: Ditto.
1472 * m68k-tdep.c: Ditto.
1473 * hppa-tdep.c: Ditto.
1474 * ia64-tdep.c: Ditto.
1475 * cris-tdep.c: Ditto.
1476 * arm-tdep.c: Ditto.
1477 * alpha-tdep.c: Ditto.
1478 * i386-tdep.c: Ditto.
1480 * ada-lang.c: Ditto.
1481 * blockframe.c: Update.
1482 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1483 deprecated_set_frame_type instead of signal_handler_caller.
1484 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1485 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1486 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1488 2002-11-18 Klee Dienes <kdienes@apple.com>
1490 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1492 2002-11-18 Klee Dienes <kdienes@apple.com>
1494 * buildsym.c (pop_context): Add comment.
1496 2002-11-18 Klee Dienes <kdienes@apple.com>
1498 * buildsym.h (pop_context): Convert to function, defined in
1500 * buildsym.c: Include gdb_assert.h.
1501 (pop_context): Implement as C function. Add check for stack
1503 * dbxread.c (process_one_symbol): Complain and stop processing
1504 that symbol if we are already at the top of the context stack for
1505 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1506 when processing N_RBRAC.
1508 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1510 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1512 (struct target_waitstatus): Add opaque definition.
1513 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1514 * exec.c (init_exec_ops): Likewise.
1515 * fork-child.c (clone_and_follow_inferior): Remove.
1516 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1517 * inferior.h (clone_and_follow_inferior): Remove prototype.
1518 * infrun.c (follow_fork_mode_both): Remove.
1519 (follow_fork_mode_kind_names): Remove commented out "both".
1520 (follow_inferior_fork): Remove follow_fork_mode_both support.
1521 * inftarg.c (child_clone_and_follow_inferior): Remove.
1522 (child_post_follow_inferior_by_clone): Remove.
1523 (init_child_ops): Don't set to_clone_and_follow_inferior
1524 or to_post_follow_inferior_by_clone.
1525 * target.c (default_clone_and_follow_inferior): Remove.
1526 (cleanup_target): Don't set to_clone_and_follow_inferior
1527 or to_post_follow_inferior_by_clone.
1528 (find_default_clone_and_follow_inferior): Remove.
1529 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1530 (debug_to_clone_and_follow_inferior): Remove.
1531 (debug_to_post_follow_inferior_by_clone): Remove.
1532 (setup_target_debug): Don't set to_clone_and_follow_inferior
1533 or to_post_follow_inferior_by_clone.
1534 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1535 and to_post_follow_inferior_by_clone.
1536 (child_clone_and_follow_inferior): Remove prototype.
1537 (child_post_follow_inferior_by_clone): Remove prototype.
1538 (target_clone_and_follow_inferior): Remove macro.
1539 (target_post_follow_inferior_by_clone): Remove macro.
1540 (find_default_clone_and_follow_inferior): Remove prototype.
1542 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1544 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1545 inferior_has_vforked, and inferior_has_execd instead of
1546 target_has_forked, target_has_vforked, and target_has_execd.
1547 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1548 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1549 (CHILD_WAIT): Define.
1550 (child_wait): Add prototype.
1551 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1553 (hpux_has_vforked): Likewise, from child_has_vforked.
1554 (hpux_has_execd): Likewise, from child_has_execd.
1555 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1556 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1557 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1558 and hpux_has_syscall_event instead of the target hooks.
1559 * infrun.c (inferior_has_forked, inferior_has_vforked)
1560 (inferior_has_execd): New functions.
1561 * inftarg.c (not_same_real_pid): Remove.
1562 (child_wait): Remove references to not_same_real_pid,
1563 target_has_forked, target_has_vforked, target_has_execd,
1564 and target_has_syscall_event.
1565 (child_has_forked, child_has_vforked, child_has_execd)
1566 (child_has_syscall_event): Remove.
1567 (init_child_ops): Remove references to child_has_forked,
1568 child_has_vforked, child_has_execd, and child_has_syscall_event.
1569 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1570 (hpux_has_vforked): Likewise, from child_has_vforked.
1571 (hpux_has_execd): Likewise, from child_has_execd.
1572 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1573 * target.c (cleanup_target): Remove references to
1574 to_has_forked, to_has_vforked, to_has_execd, and
1575 to_has_syscall_event.
1576 (update_current_target): Likewise.
1577 (setup_target_debug): Likewise.
1578 (debug_to_has_forked): Remove.
1579 (debug_to_has_vforked): Remove.
1580 (debug_to_has_execd): Remove.
1581 (debug_to_has_syscall_event): Remove.
1582 * target.h (struct target_ops): Remove to_has_forked.
1583 to_has_vforked, to_has_execd, and to_has_syscall_event.
1584 (child_has_forked, child_has_vforked, child_has_execd)
1585 (child_has_syscall_event): Remove prototypes.
1586 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1588 (target_has_forked, target_has_vforked, target_has_execd)
1589 (target_has_syscall_event): Remove macros.
1591 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1593 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1594 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1595 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1596 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1597 * target.c (cleanup_target): Remove reference to
1598 to_can_follow_vfork_prior_to_exec.
1599 (update_current_target): Likewise.
1600 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1601 (setup_target_debug): Remove reference to
1602 to_can_follow_vfork_prior_to_exec.
1603 * target.h (struct target_ops): Remove
1604 to_can_follow_vfork_prior_to_exec.
1605 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1606 (target_can_follow_vfork_prior_to_exec): Remove definition.
1607 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1609 * infrun.c (follow_vfork_when_exec): Remove.
1610 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1611 (follow_exec): Likewise.
1612 (handle_inferior_event): Likewise.
1613 (keep_going): Likewise.
1615 2002-11-15 Andrew Cagney <cagney@redhat.com>
1617 * frame.c (generic_unwind_get_saved_register): Make static.
1618 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1619 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1620 defaults to generic_unwind_get_saved_register.
1621 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1622 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1623 * frv-tdep.c (frv_gdbarch_init): Ditto.
1624 * i386-tdep.c (i386_gdbarch_init): Ditto.
1625 * s390-tdep.c (s390_gdbarch_init): Ditto.
1626 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1627 * v850-tdep.c (v850_gdbarch_init): Ditto.
1628 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1629 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1630 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1632 2002-11-15 Andrew Cagney <cagney@redhat.com>
1634 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1637 2002-11-15 Andrew Cagney <cagney@redhat.com>
1639 * frame.h (sigtramp_saved_pc): Delete declaration.
1640 * blockframe.c (sigtramp_saved_pc): Delete function.
1641 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1642 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1643 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1644 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1646 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1648 * frame.c (frame_pc_unwind): New function.
1649 (frame_saved_regs_pc_unwind): New function.
1650 (frame_register_unwind): Pass unwind_cache instead of
1651 register_unwind_cache.
1652 (set_unwind_by_pc): Add unwind_pc parameter, set.
1653 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1654 (get_prev_frame): Ditto.
1655 * frame.h (frame_pc_unwind_ftype): Declare.
1656 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1657 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1658 (frame_pc_unwind): Declare.
1659 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1660 (struct dummy_frame): Add comment mentioning that values are for
1662 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1663 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1664 (generic_file_frame_chain_valid): Ditto.
1665 * stack.c (frame_info): Ditto.
1667 2002-11-15 David Carlton <carlton@math.stanford.edu>
1669 * linespec.c (locate_first_half): New function.
1670 (decode_line_1): Move code into locate_first_half.
1672 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1674 * complaints.h: Add comment explaining how to eliminate a
1675 deprecated_complain call.
1676 * complaints.h: Fix spelling errors.
1678 2002-11-15 David Carlton <carlton@math.stanford.edu>
1680 * printcmd.c: Remove #include "disasm.h".
1682 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1684 * frame.h: Move the most relevant interface functions to the start
1687 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1689 * regcache.h (deprecated_registers): Rename registers.
1690 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1691 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1692 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1693 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1694 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1695 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1696 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1697 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1698 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1699 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1700 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1701 * v850ice.c: Update.
1703 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1705 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1708 2002-11-13 Andrew Cagney <cagney@redhat.com>
1710 * regcache.h (deprecated_read_register_bytes): Rename
1711 read_register_bytes.
1712 (deprecated_write_register_bytes): Rename write_register_bytes.
1713 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1714 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1715 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1716 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1717 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1718 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1719 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1720 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1721 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1722 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1723 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1724 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1725 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1726 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1728 2002-11-13 Jim Blandy <jimb@redhat.com>
1730 * findvar.c (read_var_value): Doc fix.
1732 2002-11-13 Andrew Cagney <cagney@redhat.com>
1734 * regcache.c (struct regcache): Replace passthough_p with
1736 (regcache_xmalloc): Initialize readonly_p.
1737 (build_regcache): Initialize readonly_p.
1738 (regcache_save): New function.
1739 (regcache_restore): New function.
1740 (regcache_cpy): Re-implement using regcache_save and
1742 (regcache_raw_read): Update.
1743 (regcache_cooked_read): When a read-only cache, checked for cached
1744 pseudo register values.
1745 (regcache_raw_write): Assert that the cache is not read-only.
1746 Remove code handling a non-passthrough cache.
1747 * regcache.h (regcache_save): Declare.
1748 (regcache_restore): Declare.
1750 2002-11-13 Andrew Cagney <cagney@redhat.com>
1752 * regcache.c (struct regcache_descr): Add fields
1753 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1754 (init_legacy_regcache_descr): Compute the size of a cooked
1755 register cache and then assign that to sizeof_raw_registers. Set
1756 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1757 (init_legacy_regcache_descr): Ditto.
1759 2002-11-13 Andrew Cagney <cagney@redhat.com>
1761 * regcache.c (register_buffer): Move to near start of file, update
1763 (regcache_raw_read): Use.
1764 (regcache_raw_write): Use.
1765 (struct regcache): Rename raw_registers to registers and
1766 raw_register_valid_p to register_valid_p.
1767 (regcache_xmalloc): Update.
1768 (regcache_xfree): Update.
1769 (register_buffer): Update.
1770 (regcache_cpy): Update.
1771 (regcache_cpy_no_passthrough): Update.
1772 (regcache_valid_p): Update.
1773 (deprecated_grub_regcache_for_registers): Update.
1774 (deprecated_grub_regcache_for_register_valid): Update.
1775 (set_register_cached): Update.
1776 (regcache_raw_write): Update.
1778 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1780 * p-exp.y (name_not_typename): Use copy_name to
1781 set current_type variable for fields of THIS.
1783 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1785 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1786 * monitor.c (init_base_monitor_ops): Likewise.
1787 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1788 * remote-array.c (init_array_ops): Likewise.
1789 * remote-e7000.c (init_e7000_ops): Likewise.
1790 * remote-es.c (init_es1800_ops): Likewise.
1791 (init_es1800_child_ops): Likewise.
1792 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1793 * remote-sim.c (init_gdbsim_ops): Likewise.
1794 * remote-st.c (init_st2000_ops): Likewise.
1795 * sol-thread.c (init_sol_core_ops): Likewise.
1796 (init_sol_thread_ops): Likewise.
1797 * v850ice.c (init_850ice_ops): Likewise.
1798 * win32-nat.c (init_child_ops): Likewise.
1799 * wince.c (init_child_ops): Likewise.
1801 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1803 * utils.c (gdb_realpath): Make rp a constant pointer.
1805 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1807 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1808 a constant buffer; cannonicalize_file_name(); realpath() with a
1809 pathconf() defined buffer, xstrdup().
1811 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1813 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1814 to hang2.C; hang3.c to hang3.C.
1816 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1818 * findvar.c (read_var_value): Reenable TLS code.
1820 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1821 Jim Blandy <jimb@redhat.com>
1823 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1824 * target.c (update_current_target): Add
1825 to_get_thread_local_address.
1826 * target.h (to_get_thread_local_address): Export.
1827 (target_get_thread_local_address): Define.
1828 (target_get_thread_local_address_p): Define.
1829 * thread-db.c: Include solib-svr4.h.
1830 (td_thr_tls_get_addr_p): Define.
1831 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1832 (thread_db_get_thread_local_address): New function.
1833 (init_thread_db_ops): Initialize to_get_thread_local_address.
1834 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1835 * configure: Regenerate.
1836 * config.in: Regenerate.
1838 2002-11-11 David Carlton <carlton@math.stanford.edu>
1840 * linespec.c (set_flags): New function.
1841 (decode_line_1): Move code into set_flags.
1843 2002-11-11 David Carlton <carlton@math.stanford.edu>
1845 * linespec.c (decode_line_1): Move chunks of code to separate
1847 (initialize_defaults): New function.
1848 (decode_indirect): New function.
1850 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1852 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1853 instead of void_code_ptr.
1854 (sigtramp_saved_pc): Ditto.
1856 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1859 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1861 * gdbtypes.h (struct main_type): Move artificial flag out of
1862 loc. New member of ``struct field'' named static_kind. Reduce
1863 overloaded meaning of bitsize.
1864 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1865 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1866 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1868 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1870 (template_to_fixed_record_type, template_to_static_fixed_type)
1871 (to_record_with_fixed_variant_part): Likewise.
1872 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1873 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1874 * dwarfread.c (struct_type, enum_type): Likewise.
1875 * hpread.c (hpread_read_enum_type)
1876 (hpread_read_function_type, hpread_read_doc_function_type)
1877 (hpread_read_struct_type): Likewise.
1878 * mdebugread.c (parse_symbol): Likewise.
1880 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1882 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1883 * stack.c (print_frame_info_base): Update.
1884 (print_frame_info_base, frame_info): Update.
1885 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1886 (sparc_frame_saved_pc): Update.
1887 * ada-lang.c (find_printable_frame): Update.
1888 * breakpoint.c (deprecated_frame_in_dummy): Update.
1890 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1892 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1894 (regmap): Extend to cover all registers.
1895 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1896 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1898 (fetch_register, sore_register): Simplify.
1899 (old_fetch_inferior_registers, old_store_inferior_registers):
1901 (cannot_fetch_register, cannot_store_register): Change
1902 implementation to use regmap array to decide which registers
1903 cannot be fetched/stored. This removes $orig_eax from the
1904 registers that cannot be fetched/stored.
1905 (fetch_inferior_registers): Call fetch_register directly instead
1906 of calling old_fetch_inferior_registers.
1907 (store_inferior_registers): Call store_register directly instead
1908 of calling old_store_inferior_registers.
1909 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1910 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1911 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1913 2002-11-09 Klee Dienes <kdienes@apple.com>
1915 * i387-tdep.c (i387_supply_register): When called with NULL as a
1916 buffer, mark the register as not provided (to mirror the behavior
1917 of supply_register).
1918 (i387_supply_fxsave): Ditto.
1919 (i387_supply_fsave): Ditto (inherits the behavior from
1920 i387_supply_register).
1922 2002-11-09 Klee Dienes <kdienes@apple.com>
1924 * blockframe.c (sigtramp_saved_pc): Use
1925 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1926 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1927 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1929 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1931 * frame.c (get_prev_frame): Test prev_p to identify a previously
1932 unwound frame. Initialize prev_p.
1933 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1936 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1938 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1939 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1940 more comments. Zap dead code.
1942 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1944 * infcmd.c (print_vector_info, print_float_info): Move code that
1945 checks whether the target has any registers and whether there is a
1946 selected frame up, such that it is also used if a target provides
1947 multi-arch definitions of these functions.
1949 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1951 * Makefile.in (DESTDIR): Define.
1952 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1955 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1956 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1958 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1960 * i386-linux-tdep.c: Include "reggroups.h".
1961 (i386_linux_register_reggroup_p): New function.
1962 (i386_linux_init_abi): Set register_reggroup_p to
1963 i386_linux_register_reggroup_p.
1964 * i386-tdep.h (i386_register_reggroup_p): Declare.
1965 * i386-tdep.c: Include "reggroups.h".
1966 (i386_init_reggroups): New function.
1967 (i386_add_reggroups): New function.
1968 (i386_register_reggroup_p): New function.
1969 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1970 (_initialize_i386_tdep): Call i386_init_reggroups.
1971 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1974 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1976 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1977 request that's available in *BSD.
1979 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1981 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1984 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1986 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1987 * dummy-frame.c (find_dummy_frame): Rename
1988 generic_find_dummy_frame, make static. Return the dummy frame
1989 instead of the regcache.
1990 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1991 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1992 (dummy_frame_register_unwind): Rename
1993 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1994 * dummy-frame.h (dummy_frame_register_unwind): Rename
1995 generic_call_dummy_register_unwind.
1997 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1999 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2000 except the inclusion of "i386/tm-i386.h", to...
2001 * config/i386/nm-i386v42mp.h: ...here.
2002 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2004 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2006 * Makefile.in (frame.o): Update dependencies.
2007 * blockframe.c (current_frame, frame_obstack_alloc)
2008 (frame_saved_regs_zalloc, get_current_frame)
2009 (set_current_frame, create_new_frame)
2010 (set_unwind_by_pc, get_next_frame)
2011 (flush_cached_frames, reinit_frame_cache)
2012 (frame_saved_regs_register_unwind)
2013 (deprecated_generic_get_saved_register)
2014 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2015 (_initialize_blockframe): Move frame code from here...
2016 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2017 "annotate.h" and "dummy-frame.h".
2018 (_initialize_frame): New function.
2020 2002-11-08 Jim Blandy <jimb@redhat.com>
2022 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2023 when we finish a function a context.
2024 * buildsym.h (outermost_context_p): New macro.
2025 (Bug analyzed by David Edelsohn.)
2027 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2029 * blockframe.c: Include "dummy-frame.h".
2030 (struct dummy_frame, dummy_frame_stack)
2031 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2032 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2033 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2034 (generic_save_call_dummy_addr, generic_pop_current_frame)
2035 (generic_pop_dummy_frame, generic_fix_call_dummy)
2036 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2037 dummy frame code from here...
2038 * dummy-frame.c: ...to here. New file.
2039 * dummy-frame.h: New file.
2040 (generic_call_dummy_register_unwind): Declare.
2041 (generic_find_dummy_frame): Declare.
2042 * Makefile.in (SFILES): Add dummy-frame.c.
2043 (dummy-frame.o): Specify dependencies.
2044 (dummy_frame_h): Define.
2045 (COMMON_OBS): Add dummy-frame.o.
2046 (blockframe.o): Update dependencies.
2048 2002-11-08 Jim Blandy <jimb@redhat.com>
2050 * dwarf2read.c (read_func_scope): Restore local_symbols and
2051 param_symbols after we finish the function context. (Based on a
2052 patch from David Edelsohn.)
2054 2002-11-08 David Carlton <carlton@math.stanford.edu>
2056 * linespec.c (symbol_found): New function.
2057 (minsym_found): New function.
2058 (decode_line_1): Separate out some code into separate functions.
2060 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2062 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2063 the benefit of the interix target.
2064 * i386-tdep.h (i386_frameless_signal_p): Declare.
2066 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2068 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2069 declaration that snuck in from change below.
2071 2002-11-06 Andrew Cagney <cagney@redhat.com>
2073 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2075 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2076 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2077 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2078 (i386_mxcsr_regnum_p): new function. Use instead of
2080 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2081 (i386_sse_regnum_p): Declare.
2082 (i386_mxcsr_regnum_p): Declare.
2083 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2084 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2085 (IS_FP_REGNUM): Update definition.
2086 (IS_FPU_CTRL_REGNUM): Update definition..
2087 (IS_SSE_REGNUM): Update definition..
2088 * i386v-nat.c (register_u_addr): Update.
2089 * go32-nat.c (fetch_register): Update.
2090 (store_register): Update.
2092 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2094 Preparation work to convert the hppa targets to multiarch partial.
2096 * hppa-tdep.c: Add new functions replacing macro bodies from
2097 config/pa/tm-hppa.h. These function will be used to initialize
2098 the gdbarch structure. Import some comments from tm-hppa.h,
2099 and place them where appropriate, to avoid loosing them when
2100 we cleanup this file.
2101 (hppa_reg_struct_has_addr): New function.
2102 (hppa_inner_than): New function.
2103 (hppa_stack_align): New function.
2104 (hppa_pc_requires_run_before_use): New function.
2105 (hppa_instruction_nullified): New function.
2106 (hppa_register_byte): New function.
2107 (hppa_register_virtual_type): New function.
2108 (hppa_store_struct_return): New function.
2109 (hppa_cannot_store_register): New function.
2110 (hppa_frame_args_address): New function.
2111 (hppa_frame_locals_address): New function.
2112 (hppa_smash_text_address): New function.
2113 (hppa_coerce_float_to_double): New function. Requires the inclusion
2116 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2118 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2119 gdbarch-eligible macro to a call to the new associated function
2120 created in hppa-tdep.c.
2121 (INNER_THAN): Likewise.
2122 (STACK_ALIGN): Likewise.
2123 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2124 (INSTRUCTION_NULLIFIED): Likewise.
2125 (REGISTER_BYTE): Likewise.
2126 (REGISTER_VIRTUAL_TYPE): Likewise.
2127 (STORE_STRUCT_RETURN): Likewise.
2128 (CANNOT_STORE_REGISTER): Likewise.
2129 (FRAME_ARGS_ADDRESS): Likewise.
2130 (FRAME_LOCALS_ADDRESS): Likewise.
2131 (SMASH_TEXT_ADDRESS): Likewise.
2132 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2133 (ABOUT_TO_RETURN): Delete, as no longer used.
2135 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2137 * printcmd.c (disassemble_command): Remove obsolete function.
2138 (_initialize_printcmd): Do not create disassemble command here.
2139 * cli/cli-cmds.c (disassemble_command): New function. Implements
2140 disassemble command.
2141 (init_cli_cmds): Create disassemble command here instead.
2143 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2145 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2147 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2149 * regcache.h (regcache_cooked_read_using_offset_hack)
2150 (regcache_cooked_write_using_offset_hack): Delete declarations.
2151 (register_changed): Delete declaration.
2152 * regcache.c (regcache_cooked_read_using_offset_hack)
2153 (regcache_cooked_write_using_offset_hack): Delete functions.
2154 (cooked_xfer_using_offset_hack): Delete function.
2155 (register_changed): Delete function.
2157 2002-11-07 Jim Blandy <jimb@redhat.com>
2159 * macroscope.c: #include "complaints.h".
2160 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2161 but not in the macro table.
2162 * Makefile.in (macroscope.o): Record dependency.
2164 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2166 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2168 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2170 * regcache.c (deprecated_registers_fetched): Update.
2171 * regcache.h (deprecated_registers_fetched): Rename
2173 * remote-vxsparc.c (vx_read_register): Update.
2174 * remote-vxmips.c (vx_read_register): Update.
2175 * remote-vx68.c (vx_read_register): Update.
2176 * irix5-nat.c (fetch_core_registers): Update.
2177 * mipsm3-nat.c (fetch_inferior_registers): Update.
2178 * sun3-nat.c (fetch_inferior_registers): Update.
2179 * symm-nat.c (fetch_inferior_registers): Update.
2180 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2181 (fetch_core_registers): Update.
2182 (fetch_kcore_registers): Update.
2183 * mips-nat.c (fetch_inferior_registers): Update.
2184 * corelow.c (get_core_registers): Update.
2185 * a68v-nat.c (fetch_inferior_registers): Update.
2187 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2189 Put in place the framework necessary for multiarching the hppa targets.
2190 * hppa-tdep.c (hppa_gdbarch_init): New function.
2191 (hppa_dump_tdep): New function.
2192 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2193 tdep structure dumper.
2194 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2195 until the multi-arching conversion has partially been completed.
2197 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2199 * valops.c (value_assign): Merge lval_register case into
2200 lval_reg_frame_relative. Use frame_register and
2201 regcache_cooked_write instead of get_saved_register and
2202 write_register_bytes. After flushing the register cache, try to
2203 re-select the selected frame.
2205 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2207 * regcache.h (deprecated_register_valid): Rename register_valid.
2208 * regcache.c: Update.
2209 * ia64-aix-nat.c: Update.
2210 * i386gnu-nat.c: Update.
2211 * alpha-nat.c: Update.
2212 * sparc-nat.c: Update.
2213 * lynx-nat.c: Update.
2214 * remote-mips.c: Update.
2216 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2218 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2219 to end of file, to be more consistent with the pratice followed
2222 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2224 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2225 (print_float_info): Print registers in float_reggroup.
2226 (print_vector_info): Print registers in vector_reggroup.
2227 (default_print_registers_info): When all, print registers in
2228 all_reggroup. Otherwize, print registers in general_reggroup.
2229 (registers_info): Rewrite. Add support for register groups.
2232 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2234 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2236 (symtab_symbol_info): Remove eons old ifdeffed out code.
2237 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2240 2002-11-06 Theodore A. Roth <troth@openavr.org>
2242 * c-exp.y: Add missing semi-colons.
2243 * f-exp.y: Add missing semi-colons.
2244 * m2-exp.y: Add missing semi-colons.
2245 * p-exp.y: Add missing semi-colons.
2246 Add empty action to start rule to avoid a type clash error when
2247 building with bison >= 1.50.
2249 2002-11-06 Jim Blandy <jimb@redhat.com>
2251 * macrotab.h (struct macro_source_file): Doc fix.
2253 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2255 * varobj.c (child_exists, cplus_number_of_children): Change
2256 STREQ macro references to strcmp.
2257 (cplus_name_of_child): Change code to handle the fact that
2258 fields are not necessarily contiguous with regards to their
2259 access control. This is a fix for PR gdb/792.
2261 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2263 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2264 * gdbarch.h, gdbarch.c: Regnerate.
2265 * frame.h (frame_register): Declare.
2266 * frame.c (frame_register): New function.
2267 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2268 GET_SAVED_REGISTER, otherwize call
2269 generic_unwind_get_saved_register.
2270 (frame_register_read): Use frame_register instead of
2273 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2275 From Jim Ingham <jingham@apple.com>:
2276 * event-top.c (gdb_disable_readline): New function.
2277 (_initialize_event_loop): Move comment.
2279 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2281 * event-loop.c (start_event_loop): Add comment.
2284 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2286 * infcmd.c (default_print_registers_info): Do not call
2287 PRINT_REGISTER_HOOK.
2289 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2291 * sparc-tdep.c (sparc_print_register_hook): Make static.
2292 (sparc_print_registers_info): New function.
2293 (sparc_do_registers_info): New function.
2294 (sparclet_print_registers_info): New function.
2295 (sparclet_do_registers_info): New function.
2296 (do_sparc_print_registers_info): New function.
2297 (sparc_print_registers): New static function, clone of infcmd.c's
2298 default_print_registers_info.
2299 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2300 (sparclet_do_registers_info): Declare.
2301 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2302 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2304 (sparc_do_registers_info): Declare.
2305 (PRINT_REGISTER_HOOK): Delete macro.
2306 (sparc_print_register_hook): Delete declaration.
2308 2002-11-05 David Carlton <carlton@math.stanford.edu>
2310 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2312 (lookup_symbol_aux_local): New function.
2313 (lookup_symbol_aux_symtabs): New function.
2314 (lookup_symbol_aux_psymtabs): New function.
2316 2002-11-05 David Carlton <carlton@math.stanford.edu>
2318 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2319 previous values of 'objfile' and 'block'.
2321 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2323 * values.c (value_change_enclosing_type): Set
2324 enclosing_type field correctly also for the case where
2325 more memory needs to be allocated.
2327 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2329 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2332 * i387-tdep.c (i387_print_float_info): Replace calls to
2333 register_read and deprecated_read_register_gen with calls to
2334 frame_register_read, and make the necessary adjustments to the
2337 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2339 * gdbarch.sh (register_reggroup_p): Allow default value.
2340 * gdbarch.h, gdbarch.c: Regenerate.
2342 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2344 * regcache.h: Add coment indicating replacements for deprecated
2347 2002-11-02 Andrew Cagney <cagney@redhat.com>
2349 * reggroups.h, reggroups.c: New files.
2350 * regcache.c: Include "reggroups.h".
2351 (enum regcache_dump_what): Add `regcache_dump_groups'.
2352 (regcache_dump): Contract size of the "Type" column. When
2353 specified, dump the register's groups.
2354 (maintenance_print_register_groups): New function.
2355 (_initialize_regcache): Add command `maint print register-groups'.
2356 * Makefile.in (COMMON_OBS): Add reggroups.o
2357 (SFILES): Add reggroups.c.
2358 (reggroups_h): Define.
2359 (regcache.o, gdbarch.o): Update dependencies.
2360 (reggroups.o): Specify dependencies.
2361 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2362 Add opaque declaration for `struct reggroup' in generated .h file.
2363 Include "reggroups.h" in generated .c file.
2364 gdbarch.h, gdbarch.c: Re-generate.
2366 2002-11-02 Andrew Cagney <cagney@redhat.com>
2368 * regcache.h (deprecated_read_register_gen): Rename
2370 (deprecated_write_register_gen): Rename write_register_gen.
2371 * i387-tdep.c: Update.
2372 * x86-64-linux-nat.c: Update
2374 * thread-db.c: Update.
2375 * win32-nat.c: Update.
2376 * mips-tdep.c: Update.
2377 * d10v-tdep.c: Update.
2378 * cris-tdep.c: Update.
2379 * remote-sim.c: Update.
2380 * remote-rdi.c: Update.
2381 * remote-rdp.c: Update.
2384 * blockframe.c: Update.
2385 * x86-64-tdep.c: Update.
2386 * xstormy16-tdep.c: Update.
2387 * sh-tdep.c: Update.
2388 * s390-tdep.c: Update.
2389 * rs6000-tdep.c: Update.
2390 * sparc-tdep.c: Update.
2391 * i386-tdep.c: Update.
2392 * dwarf2cfi.c: Update.
2393 * regcache.c: Update.
2395 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2397 New interix-specific files:
2398 * config/i386/nm-interix.h: New file.
2399 * config/i386/interix.mh: New file.
2400 * config/i386/interix.mt: New file.
2401 * i386-interix-nat.c: New file.
2402 * i386-interix-tdep.c: New file.
2404 2002-11-01 Andrew Cagney <cagney@redhat.com>
2406 * frame.h (deprecated_generic_get_saved_register): Rename
2407 generic_get_saved_register.
2408 * blockframe.c (deprecated_generic_get_saved_register): Update.
2409 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2410 (xstormy16_frame_saved_register): Update.
2411 * sh-tdep.c (sh_gdbarch_init): Update.
2412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2413 * ia64-tdep.c (ia64_get_saved_register): Update.
2414 * cris-tdep.c (cris_gdbarch_init): Update.
2415 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2416 * arm-tdep.c (arm_gdbarch_init): Update.
2418 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2420 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2422 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2424 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2425 trampolines in sigaction.
2427 2002-10-31 Andrew Cagney <cagney@redhat.com>
2429 * h8300-tdep.c: Include "gdb_assert.h".
2430 (h8300_print_register): Add gdbarch, file and frame parameters.
2431 Use frame_read_unsigned_register to read the register's value.
2432 Use fprintf_filtered to display output.
2433 (h8300_print_registers_info): Replace h8300_do_registers_info.
2434 (h8300_gdbarch_init): Set print_registers_info.
2436 2002-10-31 Andrew Cagney <cagney@redhat.com>
2438 * frame.c (frame_read_unsigned_register): New function.
2439 (frame_read_signed_register): New function.
2440 * frame.h (frame_read_unsigned_register): Declare.
2441 (frame_read_signed_register): Declare.
2443 2002-10-31 Andrew Cagney <cagney@redhat.com>
2445 * h8500-tdep.c (h8500_print_registers_info): New static function,
2446 clone of infcmd.c's default_print_registers_info.
2447 (h8500_do_registers_info): New funtion.
2448 (h8500_print_register_hook): Rename print_register_hook, make
2451 * config/h8500/tm-h8500.h: Update copyright.
2452 (DEPRECATED_DO_REGISTERS_INFO): Define.
2453 (h8500_do_registers_info: Declare.
2454 (PRINT_REGISTER_HOOK): Delete macro.
2455 (print_register_hook): Delete function.
2457 2002-10-31 Andrew Cagney <cagney@redhat.com>
2459 * z8k-tdep.c (z8k_print_register_hook): Make static.
2460 (z8k_print_registers_info): New static function, clone of
2461 infcmd.c's default_print_registers_info.
2462 (z8k_do_registers_info): New function. Wrap
2463 z8k_print_registers_info.
2464 * config/z8k/tm-z8k.h: Update copyright.
2465 (PRINT_REGISTER_HOOK): Delete macro.
2466 (z8k_print_register_hook): Delete declaration.
2467 (DEPRECATED_DO_REGISTERS_INFO): Define.
2468 (z8k_do_registers_info): Declare.
2470 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2472 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2473 as this is already provided by value.h, and was actually causing
2474 a compilation error because of a conflict in parameter type
2475 declaration due to a missing const keyword.
2476 (low_text_segment_addres): Fix a compilation warning.
2478 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2480 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2481 registers without a name.
2482 (mips_linux_cannot_store_register): Don't store registers without
2485 2002-10-28 David Carlton <carlton@math.stanford.edu>
2487 * symtab.c (find_addr_symbol): Delete. (It was already commented
2489 * symtab.h: Delete prototype for find_addr_symbol.
2491 2002-10-26 Andrew Cagney <cagney@redhat.com>
2493 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2495 gdbarch.h, gdbarch.c: Re-generate.
2496 * infcmd.c (default_print_registers_info): Update reference.
2497 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2498 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2499 * sh-tdep.c (sh_gdbarch_init): Ditto.
2500 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2501 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2503 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2505 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2506 cfi_init_extra_frame_info.
2507 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2508 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2510 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2511 target where necessary. Add more comments and remove the ones
2512 that don't provide any useful information.
2514 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2515 deprecated_read_register_dummy with
2516 frame_unwind_unsigned_register.
2518 * i386-tdep.c (i386_extract_struct_value_address): Use
2519 regcache_raw_read_unsigned instead of
2520 regcache_cooked_read_unsigned since we know that the register
2521 we're reading isn't a pseudo register. Rename variable 'val' into
2522 the more descriptive 'addr'.
2524 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2525 (x86_64_push_return_address): Add comment.
2526 (x86_64_pop_frame): Make static.
2527 (examine_argument): Clarify comment.
2528 (x86_64_skip_prologue): Make prolog_expact variable static.
2530 * dwarf2cfi.c: Fix some formatting problems.
2531 (context_cpy, read_encoded_pointer): Clarify comments.
2533 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2534 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2535 i386 target back into x86_64_gdbarch_init. Add some comments and
2536 remove meaningless ones.
2538 2002-10-25 Andrew Cagney <cagney@redhat.com>
2540 * complaints.h (struct deprecated_complaint): Rename `struct
2542 * complaints.c (complain): Update.
2543 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2544 incorrect comment indicating that "symfile.h" was being included
2545 for the `struct complaint' definition.
2546 * remote-vx.c: Update.
2547 * objc-lang.c: Update.
2548 * xcoffread.c: Update.
2550 * mdebugread.c: Update.
2551 * stabsread.c: Update.
2552 * dwarf2read.c: Update.
2553 * dwarfread.c: Update.
2554 * elfread.c: Update.
2555 * coffread.c: Update.
2556 * stabsread.h: Update.
2557 * dbxread.c: Update.
2558 * buildsym.c: Update.
2559 * gdbtypes.c: Update.
2560 * macrotab.c: Update.
2562 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2564 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2565 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2566 (x86_64_init_abi): ...new function.
2568 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2569 * i386v-nat.c: Include "i386-tdep.h".
2571 2002-10-25 Andrew Cagney <cagney@redhat.com>
2573 * gdbtypes.c (address_space_name_to_int): Update.
2574 (address_space_int_to_name): Update.
2575 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2576 multi-arch predicate.
2577 (address_class_name_to_type_flags): Ditto.
2578 * gdbarch.h, gdbarch.c: Re-generate.
2580 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2582 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2584 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2586 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2588 * symtab.h (INIT_SAL): Delete macro.
2590 * symtab.c (init_sal): New function.
2592 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2593 to init_sal function call.
2594 (find_sal_from_funcs_and_line): Ditto.
2595 (all_sals_for_line): Ditto.
2596 * breakpoint.c (create_internal_breakpoint): Ditto.
2597 (create_fork_vfork_event_catchpoint): Ditto.
2598 (create_exec_event_catchpoint): Ditto.
2599 (parse_breakpoint_sals): Ditto.
2600 (watch_command_1): Ditto.
2601 (handle_gnu_4_16_catch_command): Ditto.
2602 (clear_command): Ditto.
2603 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2604 * infcmd.c (run_stack_dummy): Ditto.
2605 * infrun.c (process_event_stop_test): Ditto.
2606 (check_sigtramp2): Ditto.
2607 (step_over_function): Ditto.
2608 * linespec.c (decode_line_2): Ditto.
2609 (decode_line_1): Ditto.
2610 * source.c (line_info): Ditto.
2611 * symtab.c (find_pc_sect_line): Ditto.
2613 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2615 * dwarf2cfi.c (struct context)
2616 (struct context_reg): Moved to dwarf2cfi.h
2617 (context_alloc, frame_state_alloc, context_cpy):
2618 Made extern instead of static, removed prototypes.
2619 * dwarf2cfi.h (struct context)
2620 (struct context_reg): New, moved from dwarf2cfi.c
2621 (context_alloc, frame_state_alloc, context_cpy):
2623 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2624 Changed from static to extern.
2625 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2626 (LINUX_SIGCONTEXT_FP_OFFSET)
2627 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2628 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2629 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2630 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2631 set_gdbarch_*() calls now use x86-64 specific functions
2632 instead of DWARF2 CFI ones.
2633 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2634 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2635 (x86_64_init_extra_frame_info): New prototypes.
2637 2002-10-23 David Carlton <carlton@math.stanford.edu>
2639 * linespec.c: #include "parser-defs.h".
2640 Delete prototype for find_template_name_end.
2641 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2643 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2645 * NEWS: add recent mi fixes.
2646 * varobj.c (struct varobj): Add new "updated" flag.
2647 (new_variable): Default "updated" flag to 0.
2648 (varobj_set_value): Set "updated" flag to 1 if value
2650 (varobj_update): Check varobj "updated" flag before
2651 comparing old and refreshed values. Fix for
2654 2002-10-23 David Carlton <carlton@math.stanford.edu>
2656 * parse.c (parse_exp_1): Use BLOCK_START.
2657 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2659 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2661 2002-10-23 David Carlton <carlton@math.stanford.edu>
2663 * symtab.c: Delete cplusplus_hint.
2664 Delete prototype for find_template_name_end.
2666 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2668 * symtab.h: Update comment.
2670 2002-10-23 Michael Snyder <msnyder@redhat.com>
2672 * printcmd.c (address_info): Restore quotes in output.
2673 * valops.c (value_of_local): Restore quotes in error message.
2675 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2677 * symtab.c (symbol_demangled_name): New function.
2678 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2679 turning most of it into a function.
2680 (symbol_demangled_name): Export.
2682 2002-10-23 Michael Snyder <msnyder@redhat.com>
2684 * valops.c (value_of_local): Restore quotes in error message.
2686 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2688 * symtab.c (symbol_init_language_specific): New function.
2689 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2690 turning most of it into a function.
2691 (symbol_init_language_specific): Export.
2693 2002-10-23 David Carlton <carlton@math.stanford.edu>
2695 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2696 (dwarf_attr_name): Ditto.
2697 (dwarf_type_encoding_name): Ditto.
2698 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2699 (process_die): Handle DW_TAG_namespace,
2700 DW_TAG_imported_declaration, DW_TAG_imported_module.
2701 (read_namespace): New function.
2703 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2705 * configure.in: Define NEW_PROC_API on Interix too.
2706 * configure: Regenerate.
2708 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2710 * configure: Regenerate using the proper version of autoconf.
2712 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2714 * findvar.c (read_var_value): Temporarily disable TLS code, until
2715 complete TLS support is added.
2717 2002-10-21 Jim Blandy <jimb@redhat.com>
2718 Elena Zannoni <ezannoni@redhat.com>
2720 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2721 for thread local storage locations.
2722 (struct symbol): Add objfile field.
2723 (SYMBOL_OBJFILE): Define.
2724 * dwarf2read.c (is_thread_local): New static variable.
2725 (new_symbol): If variable is in thread local fill in address class
2726 and objfile appropriately.
2727 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2729 * printcmd.c (address_info): Print the information for thread
2730 local storage variable.
2731 * findvar.c (read_var_value): In case of thread local variable,
2732 defer to the target vector code to compute address.
2734 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2736 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2737 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2739 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2741 * symtab.h (address_class): Rename
2742 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2743 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2744 * printcmd.c (address_info): Ditto.
2745 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2747 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2749 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2750 DBREG_DRX macro to acces debug registers.
2752 * Makefile.in (i386obsd-tdep.o): New target.
2754 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2755 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2757 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2758 * config/i386/obsd.mt: New file.
2759 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2760 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2761 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2762 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2763 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2764 * i386obsd-tdep.c: New file.
2766 2002-10-19 Adam Fedor <fedor@gnu.org>
2768 * objc-exp.y (name_not_typename): Fix invalid comment.
2770 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2772 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2773 to allocate partial syms and macro byte caches.
2775 2002-10-18 David Carlton <carlton@math.stanford.edu>
2777 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2779 2002-10-18 Adam Fedor <fedor@gnu.org>
2781 * stabsread.c (find_name_end): New function.
2782 (define_symbol): Use it.
2784 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2786 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2787 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2788 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2789 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2791 2002-10-17 David Carlton <carlton@math.stanford.edu>
2793 * symfile.h: Add opaque declaration for struct obstack.
2794 Declare obsavestring to take a const char *.
2795 * symfile.c (obsavestring): Make first argument a const char *.
2797 2002-10-16 Adam Fedor <fedor@gnu.org>
2799 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2800 names when matching breakpoints in current file.
2802 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2804 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2805 (read_tag_pointer_type): Add address class support.
2806 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2807 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2809 * gdbarch.h, gdbarch.c: Regenerate.
2810 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2811 (make_type_with_address_space, recursive_type_dump): Add address
2813 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2814 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2815 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2817 2002-10-16 Klee Dienes <kdienes@apple.com>
2819 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2820 to get the last character of a char[] buffer, not
2821 name[sizeof(vptr_name)-1].
2823 2002-10-14 Adam Fedor <fedor@gnu.org>
2825 * symtab.h: New objc_specific struct.
2826 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2827 (SYMBOL_DEMANGLED_NAME): Likewise.
2829 2002-10-14 Adam Fedor <fedor@gnu.org>
2831 * symfile.c (init_filename_language_table): Add ObjC file extension.
2833 2002-10-14 Adam Fedor <fedor@gnu.org>
2835 * utils.c (puts_filtered_tabular): New function.
2836 (fprintf_symbol_filtered): Get ObjC demangled name.
2837 * defs.h (puts_filtered_tabular): Declared.
2839 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2841 * c-lang.h (c_type_print_varspec_prefix): Delete.
2842 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2843 ``need_post_space'' parameter. Adjust all callers.
2845 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2847 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2848 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2849 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2850 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2852 2002-10-13 Adam Fedor <fedor@gnu.org>
2854 * source.c (print_source_lines): Update comments.
2856 2002-10-13 Adam Fedor <fedor@gnu.org>
2858 * valops.c (value_of_local): New function.
2859 (value_of_this): Use it.
2860 * value.h (value_of_local): Declared.
2862 2002-10-13 Adam Fedor <fedor@gnu.org>
2864 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2865 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2867 2002-10-12 Adam Fedor <fedor@gnu.org>
2869 * language.c (binop_result_type): Add language_objc to case.
2870 (integral_type): Likewise.
2871 (character_type): Likewise.
2872 (string_type): Likewise.
2873 (boolean_type): Likewise.
2874 (structured_type): Likewise.
2875 (binop_type_check): Likewise.
2877 2002-10-11 Adam Fedor <fedor@gnu.org>
2879 * printcmd.c (address_info): Print 'self' for ObjC.
2881 2002-10-11 Adam Fedor <fedor@gnu.org>
2883 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2886 2002-10-11 Adam Fedor <fedor@gnu.org>
2888 * language.h (CAST_IS_CONVERSION): Add language_objc.
2890 2002-10-11 Adam Fedor <fedor@gnu.org>
2892 * defs.h (enum language): Add language_objc.
2894 2002-10-11 Klee Dienes <kdienes@apple.com>
2896 * corefile.c (read_memory_typed_address): New function.
2897 * gdbcore.h (read_memory_typed_address): Add prototype.
2898 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2899 to read a value destined for a CORE_ADDR, not read_memory_integer.
2900 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2901 (f77_get_dynamic_lowerbound): Ditto.
2903 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2905 * utils.c (string_to_core_addr): After turning string into
2906 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2907 which will do necessary sign-extension, etc.
2909 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2911 * c-exp.y (THIS): Delete token and grammar rule.
2912 (yylex): Don't return THIS.
2913 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2914 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2915 * demangle.c (cplus_markers): Update comment. Put '$'
2916 first. Remove CPLUS_MARKER.
2917 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2918 * jv-exp.y (THIS): Delete token and grammar rule.
2919 (yylex): Don't return THIS.
2920 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2921 * objc-exp.y (THIS): Delete token and grammar rule.
2922 (yylex): Don't return THIS.
2923 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2924 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2925 (read_member_functions): Likewise for opname.
2926 (read_tilde_fields): Use is_cplus_marker.
2928 * defs.h (CPLUS_MARKER): Don't define.
2929 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2930 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2931 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2932 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2933 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2935 * config/i386/tm-i386v4.h: Delete file.
2936 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2937 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2938 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2939 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2940 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2941 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2942 * config/i386/i386v4.mt (TM_FILE): Likewise.
2943 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2945 2002-10-10 Marko Mlinar <markom@opencores.org>
2947 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2948 accidentially not commited 2002-10-09
2949 * gdbarch.h, gdbarch.c: Re-generate.
2951 2002-10-09 Marko Mlinar <markom@opencores.org>
2953 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2954 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2955 * gdbarch.h, gdbarch.c: Re-generate.
2957 2002-10-08 Petr Sorfa <petrs@caldera.com>
2959 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2961 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2962 so we can work on more than one compilation unit at a time. This
2963 helps prepare GDB to handle inter-CU die references.
2964 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2965 the code to be defined before struct comp_unit_head.
2966 (comp_unit_head): Added new members - offset, cu_head,
2967 begin_die, next and dwarf2_abbrevs.
2968 (dwarf2_abbrevs): Removed single static var; now member of
2969 struct comp_unit_head.
2970 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2972 (psymtab_to_symtab_1): Changed to work with the new
2973 struct comp_unit_head.
2974 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2975 constructs the dwarf2_abbrevs[] inside the cu_header.
2976 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2977 dwarf2_abbrev table to clean up.
2978 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2979 handling of dwarf2_abbrevs inside the cu_header.
2980 (read_partial_die): Now supports the call to the new
2981 dwarf2_lookup_abbrev.
2982 (read_full_die): Now supports the call to the new
2983 dwarf2_lookup_abbrev.
2985 2002-10-06 Christopher Faylor <cgf@redhat.com>
2987 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2988 insure that shell variables, such as "transformed_name" are propagated
2989 to later shell statements in rule.
2991 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2993 * config/i386/nm-i386sco.h: Add protection against
2994 multiple-inclusion. Include "i386/nm-i386v.h".
2995 (REGISTER_U_ADDR): Remove define.
2996 (i386_register_u_addr): Remove prototype.
2998 2002-10-04 Michael Snyder <msnyder@redhat.com>
3000 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3001 before treating it as a single-step event.
3003 2002-10-03 Adam Fedor <fedor@gnu.org>
3005 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3006 (objc_demangle): Remove assignment in if statements, Replace
3008 (add_msglist): Likewise.
3009 (end_msglist): Likewise.
3010 (complare_selectors): Likewise.
3011 (selectors_info): Likewise.
3012 (compare_classes): Likewise.
3013 (classes_info): Likewise.
3014 (print_object_command): Likewise.
3015 (find_objc_msgcall_submethod): Replace PTR with void *.
3016 * objc-lang.h: Remove check for __STDC__.
3018 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3020 * ui-out.h (ui_out_field_fmt_int): New prototype.
3021 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3022 of field width and alignment.
3023 * stack.c (print_frame_info_base): When printing frame level, use
3024 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3027 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3029 * MAINTAINERS: Add self to Write After Approval list.
3031 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3033 * infcmd.c (interrupt_target_command_wrapper): Delete.
3034 (interrupt_target_command): Make non static.
3035 (nofp_registers_info): Make static.
3036 * stack.c (return_command_wrapper): Delete.
3037 (return_command): Make non static.
3039 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3041 * event-top.c (gdb_setup_readline): New function. Code moved from
3042 _initialize_event_loop().
3043 (_initialize_event_loop): Call gdb_setup_readline().
3045 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3047 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3048 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3049 * gdbarch.h, gdbarch.c: Re-generate.
3051 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3054 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3056 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3057 of fill_in_vptr_fieldno.
3059 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3061 * inferior.h (registers_info, stepi_command, nexti_command,
3062 continue_command, interrupt_target_command): Export from infcmd.c.
3063 * frame.h (args_info, selected_frame_level_changed_hook,
3064 return_command): Export from stack.c.
3065 * v850ice.c (stepi_command, nexti_command, continue_command): use
3066 prototypes from inferior.h.
3067 * tracepoint.c (registers_info, args_info, locals_info): Use
3068 prototypes from frame.h and inferior.h.
3069 * Makefile.in (mi-main.o): Add dependency on frame.h.
3071 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3073 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3074 value in register 3 adjusted by ppc_gp0_regnum.
3076 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3078 2002-10-02 Marko Mlinar <markom@opencores.org>
3080 * MAINTAINERS: Add myself to the Write After Approval list.
3082 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3084 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3085 of the section for the N64 ABI, fixed.
3087 * config/mips/tm-irix6.h: Include solib.h.
3089 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3091 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3094 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3096 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3097 and that "mi0" syntax has been removed.
3099 2002-09-30 David Carlton <carlton@math.stanford.edu>
3101 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3102 * ppc-sysv-tdep.c: #include "gdb_string.h".
3103 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3106 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3108 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3109 "vrsave"'s register number.
3111 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3113 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3114 use frame_unwind_signed_register to obtain the PC.
3115 (mips_frame_chain): Handle a generic dummy frame.
3116 (mips_init_extra_frame_info): When a generic dummy frame, don't
3117 re-compute the frame base.
3118 (mips_pop_frame): Handle generic dummy frames.
3119 (mips_gdbarch_init): When generic dummy frames, set
3120 use_generic_dummy_frames, push_dummy_frame to
3121 generic_push_dummy_frame, pc_in_call_dummy to
3122 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3123 generic_save_dummy_frame_tos.
3125 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3127 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3128 against TOP when TOP was explictly set.
3129 (generic_push_dummy_frame): Set TOP to zero.
3131 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3133 * event-loop.c (start_event_loop): Rename variable 'result' to
3134 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3136 2002-09-30 Keith Seitz <keiths@redhat.com>
3138 * gdb-events.sh (selected_thread_changed): New event.
3139 * gdb-events.c: Regenerated.
3140 * gdb-events.h: Regenerated.
3142 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3144 * MAINTAINERS: Add self to Write After Approval list.
3146 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3148 * disasm.c: New file.
3149 * disasm.h: New file.
3150 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3151 (compare_lines): Ditto.
3152 (dump_insns): Ditto.
3153 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3155 (do_assembly_only): Ditto.
3156 (do_disassembly): Renamed to gdb_disassembly and moved to
3157 disasm.c. Sdded uiout argument.
3158 * Makefile.in: Add new files. Reorder SFILES list. Update
3159 dependencies. Include libgdb.a later in the insight executable.
3161 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3163 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3164 bfd/elf64-alpha-fbsd.c.
3166 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3168 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3171 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3173 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3175 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3177 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3178 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3179 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3180 (S_msg_sig_post_reply): Ditto.
3182 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3184 * sh-tdep.c (sh_use_struct_convention): Use definition according
3186 (sh_push_arguments): Store in register with correct endianess.
3187 (sh_default_store_return_value): Ditto.
3188 (sh_gdbarch_init): Set sizeof long double to 8.
3190 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3192 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3193 Fix some whitespace problems.
3195 2002-09-27 David Carlton <carlton@math.stanford.edu>
3197 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3198 (mcore-tdep.o): Ditto.
3199 (ns32k-tdep.o): Ditto.
3200 (ns32knbsd-tdep.o): Ditto.
3202 (vax-tdep.o): Ditto.
3203 * cris-tdep.c: #include "gdb_string.h"
3204 * mcore-tdep.c: Ditto.
3205 * ns32k-tdep.c: Ditto.
3206 * ns32knbsd-tdep.c: Ditto.
3208 * vax-tdep.c: Ditto.
3210 2002-09-27 David Carlton <carlton@math.stanford.edu>
3212 * config/djgpp/fnchange.lst: Add entries for
3213 gdb/testsuite/gdb.c++/m-static files.
3215 2002-09-27 Jim Wilson <wilson@redhat.com>
3217 * MAINTAINERS: Add myself to the Write After Approval list.
3219 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3221 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3224 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3226 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3229 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3231 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3232 (rs6000_struct_return_address): Delete variable.
3233 (rs6000_store_struct_return): Update.
3234 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3235 deprecated_extract_struct_value_address.
3236 (rs6000_frame_align): New function.
3237 (rs6000_gdbarch_init): Set frame_align.
3239 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3241 From Grace Sainsbury <graces@redhat.com>:
3242 * Makefile.in (gdbtk-main.o): New target.
3243 (gdb.o): New target.
3245 (main.o): Update dependencies.
3246 (gdb$(EXEEXT)): Add gdb.o.
3247 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3248 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3249 (SUBDIR_GDBTK_CLEAN): Set.
3250 (install-gdbtk): Install the insight binary.
3251 (uninstall-gdbtk): New target.
3252 (all-gdbtk, clean-gdbtk): New rule.
3253 * top.c (use_windows): Default to zero.
3254 * main.c: Include "main.h".
3256 (struct captured_main_args): Delete.
3257 (gdb_main): New function.
3261 2002-09-25 Andrew Cagney <cagney@redhat.com>
3263 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3264 (frame_map_regnum_to_name): New function.
3265 (frame_map_name_to_regnum): New function.
3266 * frame.h (frame_map_name_to_regnum): Declare.
3267 (frame_map_regnum_to_name): Declare.
3268 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3269 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3270 * parse.c: Do not include "builtin-regs.h".
3271 (target_map_name_to_register): Delete function.
3272 (write_dollar_variable): Use frame_map_name_to_regnum.
3273 * parser-defs.h (target_map_name_to_register): Delete declaration.
3274 * expprint.c: Include "frame.h".
3275 (print_subexp): Use frame_map_regnum_to_name.
3276 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3277 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3279 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3281 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3282 wasn't saved, and the next innermost frame is a dummy, return the
3283 dummy frame's link register.
3285 2002-09-24 Jim Blandy <jimb@redhat.com>
3287 Fix from Paul Breed:
3288 * main.c (captured_main): Add a `break' after the case for 'b'.
3290 2002-09-24 Keith Seitz <keiths@redhat.com>
3292 * varobj.c (c_type_of_child): Use get_target_type instead
3293 of TYPE_TARGET_TYPE.
3295 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3297 * source.c (get_current_or_default_source_symtab_and_line): Remove
3299 (set_default_source_symtab_and_line): New function. Attempts to
3300 determine a source file to list lines from if one is not currently
3302 (get_current_source_symtab_and_line): Initialize sal.pc and
3304 (set_current_source_symtab_and_line): Mark argument as const.
3305 * source.h: Update declarations and comments.
3306 * linespec.c (decode_line_1): Replace call to removed routine above.
3307 * stack.c (print_frame_info_base): Ditto.
3308 * cli/cli-cmds.c (edit_command): Ditto.
3309 (list_command): Ditto.
3311 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3313 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3314 sal.pc and sal.end fields.
3315 (get_current_or_default_source_symtab_and_line): Ditto.
3316 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3317 so we do not cause a new source symtab to be searched for (reverting an
3318 unintentional change from the 2002-09-20 patch).
3319 * scm-lang.c (scm_unpac): Ditto.
3321 2002-09-21 Andrew Cagney <cagney@redhat.com>
3323 * complaints.c (symfile_explanations): Remove new-line from
3324 ``isolated_message''.
3325 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3326 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3328 2002-09-20 Nick Clifton <nickc@redhat.com>
3330 * NEWS: Announce that V850EA ISA is no longer supported.
3331 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3333 2002-09-20 David Carlton <carlton@math.stanford.edu>
3335 * Makefile.in (c-lang.o): Correct dependencies.
3336 (utils.o): Gather dependencies.
3338 * c-lang.c: #include "gdb_string.h"
3340 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3342 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3343 * cli/cli-cmds.c (list_command): New function. Implements the new
3345 (_init_cli_cmds): Add new command definition.
3346 * gdb.1: Document edit command.
3347 * doc/gdb.texinfo: Document edit command.
3349 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3351 * source.c: Make global variables current_source_symtab and
3352 current_source_line static.
3353 (list_command): Moved to cli/cli-cmds.c.
3354 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3355 (get_first_line_listed): New accessor function.
3356 (get_lines_to_list): New accessor function.
3357 (get_current_source_symtab_and_line): New function. Retrieves the
3358 position in the source code that we consider current.
3359 (get_current_or_default_source_symtab_and_line): New function.
3360 Like the above but attempts to determine a default position if one
3361 is not currently defined.
3362 (set_current_source_symtab_and_line): New function. Sets the source
3363 code position considered current and returns the previously set one.
3364 (clear_current_source_symtab_and_line): Reset stored information about
3365 a current source line.
3366 (_initialize_source): Remove registration for the "list" command and
3368 * source.h: Add declarations for the new functions above.
3369 * symtab.h: Remove declarations for the global variables mentioned
3371 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3372 obtain current source line.
3373 * linespec.c (decode_line_1): Ditto.
3374 * macroscope.c (default_macro_scope): Ditto.
3375 * scm-lang.c (scm_unpac): Ditto.
3376 * stack.c (print_frame_info_base): Ditto.
3377 * symfile.c (clear_symtab_users): Ditto.
3378 * symtab.c (decode_line_spec): Ditto.
3379 * cli/cli-cmds.c (list_command): Moved here from source.c.
3380 (ambiguous_line_spec): Moved here from source.c.
3381 (_init_cli_cmds): Add definition for "list" and its alias.
3382 * Makefile.in: Update dependencies.
3384 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3386 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3387 with what gcc thinks is correct.
3389 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3391 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3392 multiple register push instruction.
3394 2002-09-19 Jim Blandy <jimb@redhat.com>
3396 Add support for distinct host and target character sets.
3397 * charset.c, charset.h: New files.
3398 * c-exp.y: #include "charset.h".
3399 (yylex): Convert character and string literals to the target
3400 character set, before returning them as the semantic value of the
3402 * c-lang.c: #include "charset.h".
3403 (c_emit_char): Use charset-specific methods to recognize
3404 characters with backslash escape forms, to decide which characters
3405 to print literally and which to print using numeric escape
3406 sequences, and to convert target characters to host characters
3408 * utils.c: #include "charset.h".
3409 (no_control_char_error): New function.
3410 (parse_escape): Use charset-specific methods to recognize
3411 backslash escapes, parse `control character' notation, and convert
3412 characters from the host character set to the target character set.
3413 * configure.in: Set the default host character set.
3414 Check where to find iconv, and what its argument types might be.
3415 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3416 * Makefile.in (SFILES): List charset.c.
3417 (COMMON_OBS): List charset.o.
3418 (charset.o): New rule.
3419 (charset_h): New header dependency variable.
3420 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3421 (LIBICONV): New variable, set by configure.
3422 (CLIBS): Include $(LIBICONV) here.
3423 * aclocal.m4, config.in, configure: Regenerated.
3425 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3427 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3430 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3432 * gdb_mbuild.sh: New file.
3434 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3436 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3438 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3440 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3441 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3442 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3443 valops.c, value.h: Revert previous change.
3445 2002-09-18 Michael Snyder <msnyder@redhat.com>
3447 Preliminary support for Objective-C:
3448 * defs.h (language_objc): New enum value.
3449 (puts_filtered_tabular): Declaration only, exported from utils.c.
3450 (skip_quoted): Delete, declared in completer.h.
3451 * c-exp.y: Include completer.h.
3454 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3455 New operator enum values.
3456 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3457 * language.c (binop_result_type): Handle language_objc case.
3458 (integral_type, character_type, string_type, boolean_type,
3459 structured_type, binop_type_check): Ditto.
3460 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3461 (struct objc_specific): Add to general_symbol_info.
3462 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3463 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3464 * parser-defs.h (struct objc_class_str): New struct type.
3465 (start_msglist, end_msglist, add_msglist): Declaration only,
3466 exported from objc-lang.c.
3467 * value.h (value_of_local, value_nsstring,
3468 call_function_by_hand_expecting_type): Exported from valops.c.
3469 * valops.c (find_function_addr): Export.
3470 (call_function_by_hand_expecting_type): New function.
3471 (value_of_local): New function.
3472 * symfile.c (init_filename_language_table): Add ".m" extension
3474 * utils.c (puts_filtered_tabular): New function.
3475 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3476 (set/show demangle): Extend help-string to refer to ObjC.
3477 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3478 * stabsread.c (symbol_reference_defined): Objective-C symbols
3479 may contain colons: make allowances when scanning stabs strings
3481 (objc_find_colon): New function.
3482 * printcmd.c (address_info): If language == objc then print
3483 "self" instead of "this".
3484 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3485 OP_NSSTRING, and OP_SELF.
3486 (prefixify_subexp): Ditto.
3487 * source.c (print_source_lines): Mention objc in comment.
3488 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3491 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3493 * complaints.h: Update copyright.
3494 (struct complaints): Declare.
3495 (struct complaint): Make `message' constant.
3496 (internal_complaint): Declare.
3497 (complaint): Declare.
3498 (complaint_root): Delete declaration.
3499 (symfile_complaints): Delete declaration.
3500 (struct complaints): Add opaque declaration.
3501 (clear_complaints): Add a complaints parameter.
3502 * complaints.c: Update copyright.
3503 (enum complaint_series): Define.
3504 (complaint_root): Delete.
3505 (struct complaints): Define.
3506 (complaint_sentinel, symfile_complaint_book): New variables.
3507 (symfile_explanations, symfile_complaints): New variables.
3509 (get_complaints): New function.
3510 (vcomplaint): New function.
3511 (complaint): New function.
3512 (internal_complaint): New function.
3513 (complain): Call vcomplain with symfile_complaint.
3514 (clear_complaints): Rewrite.
3515 (_initialize_complaints): Use add_setshow_command.
3516 * Makefile.in (complaints.o): Update dependencies.
3517 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3518 to call to clear_complaints.
3519 (new_symfile_objfile, reread_symbols): Ditto.
3520 (oldsyms_complaint): Delete.
3521 (empty_symtab_complaint, unknown_option_complaint): Delete.
3522 (free_named_symtabs): Use complaint instead of complain.
3524 2002-09-18 Michael Snyder <msnyder@redhat.com>
3526 Contributed by Apple Computer, Inc. Merged with current sources
3527 by Adam Fedor <fedor@doc.com> [cagney].
3529 * objc-lang.c: First clean-up round: comments, indentation.
3530 * objc-lang.h: Ditto.
3531 * objc-lang.y: Ditto.
3533 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3535 * maint.c (maintenance_internal_error): Print the parameter as the
3537 (maintenance_internal_warning): New function.
3538 (_initialize_maint_cmds): Add command `maint internal-warning'.
3540 * defs.h (internal_warning, internal_vwarning): Declare.
3541 * utils.c (struct internal_problem): Define.
3542 (internal_vproblem): New function.
3543 (internal_warning): New function.
3544 (internal_vwarning): New function.
3545 (internal_warning_problem, internal_error_problem): New variables.
3546 (internal_verror): Just call internal_vproblem.
3548 2002-09-18 Michael Snyder <msnyder@redhat.com>
3550 * objc-lang.c: New file, support for Objective-C.
3551 Preliminary check-in, not yet integrated into gdb.
3552 * objc-lang.h: New file.
3553 * objc-exp.y: New file.
3555 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3557 * infrun.c (signal_stop_update): Convert definition to ISO C.
3558 (signal_print_update): Ditto.
3559 (signal_pass_update): Ditto.
3560 * inflow.c (terminal_save_ours): Ditto.
3562 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3565 * config/djgpp/fnchange.lst: Handle name clashes between
3566 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3569 * i386-linux-tdep.h: Fix tipo.
3571 2002-09-18 Adam Fedor <fedor@gnu.org>
3573 * MAINTAINERS: Add myself to the Write After Approval list.
3575 2002-09-18 Jim Blandy <jimb@redhat.com>
3577 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3578 texthigh and textlow to reader-specific structs caused
3579 objfile_relocate to miss them. This is fixable, but the work that
3580 the change was supposed to prepare GDB for never got done anyway.
3582 2002-09-18 David Carlton <carlton@math.stanford.edu>
3584 * MAINTAINERS: Alphabetize Write After Approval list.
3586 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3589 * values.c (value_static_field): Call read_var_value.
3591 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3593 * valops.c (hand_function_call): Align the initial stack pointer
3594 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3595 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3597 * mips-tdep.c (mips_frame_align): New function.
3598 (mips_gdbarch_init): Set frame_align.
3599 * gdbarch.sh (FRAME_ALIGN): New method.
3600 * gdbarch.h, gdbarch.c: Re-generate.
3602 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3604 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3607 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3609 * NEWS: Mention that MIPS $fp behavior changed.
3610 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3611 reference to FP_REGNUM.
3612 (mipsnbsd_cannot_store_register): Ditto.
3613 * mips-linux-nat.c: Update copyright.
3614 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3615 (mips_linux_cannot_store_register): Ditto.
3616 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3617 * config/mips/tm-mips.h: Update copyright.
3618 (FP_REGNUM): Delete macro.
3619 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3620 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3621 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3622 (mips_r3041_reg_names, mips_r3051_reg_names)
3623 (mips_r3081_reg_names): Replace "fp" with "".
3626 2002-09-17 Theodore A. Roth <troth@verinet.com>
3628 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3629 generic_read_register_dummy() (PR gdb/703).
3630 (avr_push_return_address): #if 0 out unused vars.
3631 (avr_gdbarch_init): Enable use of avr_push_return_address().
3633 2002-09-17 Michael Snyder <msnyder@redhat.com>
3635 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3636 RTE will take care of it.
3638 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3640 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3641 invalid, return SP_REGNUM.
3643 2002-09-17 Michael Snyder <msnyder@redhat.com>
3645 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3646 point registers without sign extension.
3648 2002-09-17 Andrew Cagney <cagney@redhat.com>
3650 * blockframe.c (deprecated_read_register_dummy): Rename
3651 generic_read_register_dummy.
3652 * frame.c (frame_unwind_signed_register): New function.
3653 (frame_unwind_unsigned_register): New function.
3654 * frame.h (frame_unwind_signed_register): Declare.
3655 (frame_unwind_unsigned_register): Declare.
3656 (deprecated_read_register_dummy): Rename
3657 generic_read_register_dummy.
3659 * h8300-tdep.c (h8300_frame_chain): Update.
3660 (h8300_frame_saved_pc): Update.
3661 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3662 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3663 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3664 (s390_frame_chain): Update.
3665 * v850-tdep.c (v850_find_callers_reg): Update.
3666 (v850_frame_saved_pc): Update.
3667 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3668 (m32r_find_callers_reg): Update.
3669 (m32r_frame_saved_pc): Update.
3670 * sh-tdep.c (sh_find_callers_reg): Update.
3671 (sh64_get_saved_pr): Update.
3672 (sh_init_extra_frame_info): Update.
3673 (sh_init_extra_frame_info): Update.
3674 (sh64_init_extra_frame_info): Update.
3675 (sh64_init_extra_frame_info): Update.
3676 * mcore-tdep.c (mcore_find_callers_reg): Update.
3677 (mcore_frame_saved_pc): Update.
3678 (mcore_init_extra_frame_info): Update.
3679 * i386-tdep.c (i386_frame_saved_pc): Update.
3680 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3681 (ia64_init_extra_frame_info): Update.
3682 (ia64_init_extra_frame_info): Update.
3683 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3684 * cris-tdep.c (cris_init_extra_frame_info): Update.
3685 * avr-tdep.c (avr_frame_chain): Update.
3686 (avr_init_extra_frame_info): Update.
3687 (avr_frame_saved_pc): Update.
3688 * arm-tdep.c (arm_find_callers_reg): Update.
3689 (arm_init_extra_frame_info): Update.
3690 (arm_frame_saved_pc): Update.
3692 2002-09-17 Tom Tromey <tromey@redhat.com>
3694 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3697 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3699 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3700 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3702 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3705 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3707 * osfsolib.c: Remove file, replaced by solib-osf.c.
3708 * Makefile.in: Remove compilation rules for osfsolib.c.
3710 2002-09-16 David Carlton <carlton@math.stanford.edu>
3712 * cp-valprint.c (cp_print_class_method): Correct args to
3713 check_stub_method_group.
3715 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3717 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3718 `set architecture'. Unify naming convention of functions.
3719 (h8300_skip_prologue): Improve prologue analysis.
3720 (h8300_push_arguments): Rewritten to more closely match GCC's
3721 bizarre argument-passing behavior, along with the comment describing
3723 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3724 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3725 sim, remote-e7000.c, remote-hms.c and remote.c
3727 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3729 * i386-tdep.c (gdb_print_insn_i386): Removed.
3730 (i386_print_insn): New function.
3731 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3732 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3735 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3737 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3740 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3742 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3743 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3744 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3746 2002-09-13 Christopher Faylor <cgf@redhat.com>
3748 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3750 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3752 * gdbtypes.c (check_stub_method): Make static.
3753 (check_stub_method_group): New function.
3754 * gdbtypes.h: Update prototypes.
3755 * cp-support.c: New file.
3756 * cp-support.h: New file.
3758 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3759 (update_method_name_from_physname): New function.
3760 (read_member_functions): Correct method names for operators
3761 and v3 constructors/destructors. Separate v2 constructors and
3763 * Makefile.in (stabsread.o): Update dependencies.
3764 (SFILES): Add cp-support.c.
3765 (COMMON_OBS): Add cp-support.o.
3766 (cp_support_h, cp-support.o): Add.
3768 * cp-valprint.c (cp_print_class_method): Call
3769 check_stub_method_group instead of check_stub_method. Remove
3771 * p-valprint.c (pascal_object_print_class_method): Likewise.
3772 * valops.c (search_struct_method): Likewise.
3773 (find_method_list, value_struct_elt_for_reference): Likewise.
3775 2002-09-13 Andrew Cagney <cagney@redhat.com>
3777 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3778 * gdbarch.h, gdbarch.c: Regenerate.
3780 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3782 * frame.c (find_saved_register): Delete function.
3783 * frame.h (find_saved_register): Delete declaration.
3786 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3788 * mips-tdep.c (read_next_frame_reg): Re-hack using
3789 frame_register_unwind.
3791 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3793 * mips-tdep.c (mips_get_saved_register): Re-hack using
3794 frame_register_unwind.
3796 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3798 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3799 vector. Will be useful for Interix.
3800 * gdbarch.h, gdbarch.c: Regenerate.
3802 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3803 name of the malloc function by NAME_OF_MALLOC.
3805 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3807 * value.h (find_function_in_inferior): Add const keyword to
3808 one of the parameters. Allows us to invoke this function with
3810 * valops.c (find_function_in_inferior): Likewise.
3812 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3814 * exec.c (xfer_memory): Fix compilation warning with old versions
3816 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3818 2002-09-12 David Carlton <carlton@math.stanford.edu>
3820 * symtab.h: Run through gdb_indent.h.
3821 Add 2002 to Copyright year list.
3823 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3825 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3827 * MAINTAINERS: Add myself to write after approval list.
3829 2002-09-11 J. Brobecker <brobecker@gnat.com>
3831 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3833 2002-09-11 J. Brobecker <brobecker@gnat.com>
3835 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3838 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3840 * procfs.c (do_detach): Clear current signal, not just fault.
3841 Corrects problem with breakpoint trap signal leaking to detached
3844 2002-09-10 Michael Snyder <msnyder@redhat.com>
3846 * buildsym.c (finish_block): Protect against null pointer.
3848 2002-09-10 Andrew Cagney <cagney@redhat.com>
3850 * infcmd.c (default_print_registers_info): Send all output to
3851 ``file'' instead of ``gdb_stdout''.
3853 2002-09-10 Michael Snyder <msnyder@redhat.com>
3855 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3856 LONGEST, and use signed register read (addresses are sign-
3859 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3861 * event-loop.c (gdb_do_one_event): Make public.
3862 * event-loop.h (gdb_do_one_event): Declare.
3864 2002-09-10 Jeff Law <law@redhat.com>
3866 * infttrace.c (child_resume): Simplify and rework to avoid
3869 2002-09-09 Fred Fish <fnf@intrinsity.com>
3871 * printcmd.c (print_scalar_formatted): "len" is the number of
3872 target bytes, NOT the number of target bits.
3874 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3876 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3877 * top.c (init_main): Set rl_terminal_name.
3879 2002-09-08 Aidan Skinner <aidan@velvet.net>
3881 * ada-lang.c (ada_array_bound, ada_type_match,
3882 _initialize_ada_language): Fix K&R definitions.
3883 * ada-tasks.c (get_current_task): Fix K&R definitions.
3884 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3886 2002-09-07 Christopher Faylor <cgf@redhat.com>
3888 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3891 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3893 * i386-tdep.c (i386_register_virtual_type,
3894 i386_register_convertible, i386_register_convert_to_virtual,
3895 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3896 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3897 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3898 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3899 Don't set push_arguments twice.
3901 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3902 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3903 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3904 sigtramp_end to NULL.
3905 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3907 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3909 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3912 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3913 * gdbarch.h, gdbarch.c: Re-generate.
3914 * blockframe.c (find_pc_sect_partial_function): Convert to use
3915 SIGTRAMP_START_P predicate.
3917 2002-09-05 Michael Snyder <msnyder@redhat.com>
3919 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3920 generic_dummy_frame method and old method. Also distinguish
3921 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3922 (arm_extract_return_value): Use new regcache method.
3924 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3925 adjustment that doesn't conform to the ABI.
3926 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3927 saved regcache, not from current regcache.
3929 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3931 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3934 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3936 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3937 if arm_apcs_32 is false.
3939 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3941 GDB 5.3 branch created.
3943 2002-09-03 Theodore A. Roth <troth@verinet.com>
3945 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3946 generic_unwind_get_saved_register.
3948 2002-09-03 David Carlton <carlton@math.stanford.edu>
3950 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3951 argument (PR gdb/653). Update call to smash_to_method_type.
3952 (read_structure_scope): Update call to dwarf2_add_member_fn.
3954 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3956 * x86-64-linux-tdep.c: Include gdb_string.h
3957 * x86-64-linux-nat.c: Ditto.
3959 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3961 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3962 when YYDEBUG is set to 1.
3963 * c-exp.y: Likewise.
3964 * f-exp.y: Likewise.
3965 * jv-exp.y: Likewise.
3966 * m2-exp.y: Likewise.
3967 * p-exp.y: Likewise.
3969 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3971 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3973 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3974 solib_svr4_fetch_link_map_offsets to
3975 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3976 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3977 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3978 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3979 solib-svr4.o, and solib-legacy.o.
3980 * config/i386/tm-nbsd.h: Include solib.h.
3982 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3984 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3985 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3986 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3987 comment noting that this needs its own target configuration.
3988 * config/i386/nbsd.mt: New file.
3989 * config/i386/nbsdaout.mt: Remove.
3990 * config/i386/nbsdelf.mt: Ditto.
3991 * config/i386/tm-nbsdaout.h: Ditto.
3993 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3995 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3996 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3997 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3999 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4000 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4001 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4003 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4005 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4006 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4007 * i386-tdep.h (i386bsd_init_abi): New prototype.
4008 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4009 function declaration.
4010 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4011 for NetBSD-a.out or NetBSD-ELF.
4012 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4013 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4014 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4015 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4017 (i386nbsd_pc_in_sigtramp): New function.
4018 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4019 i386nbsd_pc_in_sigtramp.
4020 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4021 and i386nbsdelf_init_abi OS ABI handlers.
4022 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4023 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4025 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4027 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4028 registers if the target really has them.
4030 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4032 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4035 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4037 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4039 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4040 (alphanbsd_skip_sigtramp_frame): New functions.
4041 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4042 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4043 to alphanbsd_sigcontext_addr.
4045 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4047 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4049 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4050 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4051 nbsd_pc_in_sigtramp.
4052 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4053 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4054 * nbsd-tdep.c: Include gdb_string.h.
4055 (nbsd_pc_in_sigtramp): New function.
4056 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4057 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4058 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4059 ppcnbsd_pc_in_sigtramp.
4060 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4061 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4062 shnbsd_pc_in_sigtramp.
4063 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4064 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4065 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4067 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4069 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4070 watchpoints to NULL.
4071 (insert_breakpoints): set val field of watchpoints if NULL.
4074 2002-08-29 Jim Blandy <jimb@redhat.com>
4076 * symtab.c (lookup_symbol_aux): In the cases where we find a
4077 minimal symbol of an appropriate name and use its address to
4078 select a symtab to read and search, use `name' (as passed to us)
4079 as the demangled name when searching the symtab's global and
4080 static blocks, not the minsym's name.
4082 2002-08-29 Keith Seitz <keiths@redhat.com>
4084 * stack.c (print_frame_info_base): Always set current_source_symtab
4085 and current_source_line.
4087 2002-08-29 Donn Terry <donnte@microsoft.com>
4089 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4091 2002-08-28 Keith Seitz <keiths@redhat.com>
4093 * stack.c (select_frame): Add FIXME concerning selected-frame
4095 (select_frame_command): Send selected-frame-level-changed
4096 event notification, but only if the level actually changed.
4097 (up_silently_base): Add selected-frame-level-changed event
4099 (down_silently_base): Likewise.
4101 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4103 * Makefile.in: Update dependencies for all gdb/*.c files.
4105 2002-08-27 Tom Tromey <tromey@redhat.com>
4107 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4108 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4109 Update dependencies.
4110 * i387-tdep.c: Include gdb_string.h.
4111 * osabi.c: Likewise.
4112 * i386-linux-nat.c: Likewise.
4113 * lin-lwp.c: Likewise.
4114 * ax-gdb.c: Likewise.
4115 * signals/signals.c: Likewise.
4116 * jv-valprint.c: Likewise.
4117 * p-lang.c: Likewise.
4118 * c-valprint.c: Likewise.
4119 * cp-abi.c: Likewise.
4121 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4123 * cli/cli-script.h (copy_command_lines): Export.
4124 * breakpoint.c: Include cli/cli-script.h.
4125 * Makefile.in (breakpoint.o): Update dependencies.
4127 2002-08-26 Michael Snyder <msnyder@redhat.com>
4129 * breakpoint.c (insert_breakpoints): Protect all references
4130 to 'process_warning'. Shorten long lines.
4132 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4134 * cli/cli-script.c (copy_command_lines): New function.
4135 * defs.h (copy_command_lines): Export.
4136 * testsuite/gdb.base/commands.exp: New tests for commands
4137 attached to a temporary breakpoint, and for commands that
4138 delete the breakpoint they are attached to.
4140 2002-08-26 Michael Snyder <msnyder@redhat.com>
4142 * breakpoint.c (bpstat_stop_status): Instead of copying the
4143 pointer to the breakpoint commands struct, make a new copy
4144 of the struct and point to that.
4145 (bpstat_clear): Free the commands struct.
4146 (bpstat_clear_actions): Free the commands struct.
4147 (bpstat_do_actions): Free the command actions. Also execute
4148 the local cleanups, instead of deleting them.
4149 (delete_breakpoint): Leave the commands field of the bpstat
4150 chain alone -- it will be freed later.
4152 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4154 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4155 deleted in 2002-08-20 commit. This function is still used by
4158 2002-08-26 Keith Seitz <keiths@redhat.com>
4160 * gdb-events.sh: Add selected-frame-level-changed event.
4161 * gdb-events.c: Regenerated.
4162 * gdb-events.h: Regenerated.
4164 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4167 * inflow.c (terminal_save_ours): New function to save terminal
4169 * inferior.h (terminal_save_ours): Declare.
4170 * target.c (debug_to_terminal_save_ours): New function.
4171 (cleanup_target): Defaults to_terminal_save_ours.
4172 (update_current_target): Inherit to_terminal_save_ours.
4173 (setup_target_debug): Set to_terminal_save_ours.
4174 * target.h (target_terminal_save_ours): New to save terminal settings.
4175 (target_ops): New member to_terminal_save_ours.
4176 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4177 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4178 * inftarg.c (init_child_ops): Likewise.
4179 * m3-nat.c (init_m3_ops): Likewise.
4180 * procfs.c (init_procfs_ops): Likewise.
4181 * wince.c (init_child_ops): Likewise.
4182 * win32-nat.c (init_child_ops): Likewise.
4183 * sol-thread.c (init_sol_thread_ops): Likewise.
4185 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4187 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4188 use regcache_* functions.
4189 (i386_gdbarch_init): Set store_return_value instead of
4190 deprecated_store_return_value.
4192 * regcache.c (regcache_raw_write_signed,
4193 regcache_raw_write_unsigned): New functions.
4194 * regcache.h (regcache_raw_write_signed,
4195 regcache_raw_write_unsigned): New prototypes.
4197 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4199 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4200 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4201 source file dependencies. Cleanup corresponding generator rules.
4203 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4205 * regcache.h (register_offset_hack): Declare.
4206 (regcache_cooked_read_using_offset_hack): Declare.
4207 (regcache_cooked_write_using_offset_hack): Declare.
4209 * regcache.c (register_offset_hack): New function.
4210 (regcache_cooked_read_using_offset_hack): New function.
4211 (regcache_cooked_write_using_offset_hack): New function.
4212 (regcache_dump): Check that the registers, according to their
4213 offset, are packed hard against each other.
4214 (cooked_xfer_using_offset_hack): New function.
4216 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4218 * regcache.c (struct regcache_descr): Add field register_type.
4219 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4221 (init_regcache_descr): Initialize register_type. Pass the descr
4222 to init_legacy_regcache_descr. Use register_type instead of
4223 REGISTER_VIRTUAL_TYPE.
4224 (register_type): New function.
4225 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4226 * regcache.h (register_type): Declare.
4228 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4230 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4231 instead of deprecated_store_return_value. Fix fallout from
4232 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4234 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4236 * regcache.c (max_register_size): New function.
4237 (init_legacy_regcache_descr): Ensure that max_register_size is
4238 large enough for REGISTER_VIRTUAL_SIZE.
4239 * regcache.h (max_register_size): Declare.
4241 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4243 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4245 (e500_extract_return_value): Change type of valbuf pointer to
4248 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4250 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4253 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4254 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4255 long long) to prevent compiler warning on 64-bit systems.
4257 2002-08-23 Andrew Cagney <cagney@redhat.com>
4259 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4260 (DEPRECATED_STORE_RETURN_VALUE): New method.
4261 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4262 * gdbarch.h, gdbarch.c: Re-generate.
4264 * values.c (set_return_value): Pass current_regcache to
4266 * arch-utils.h (legacy_store_return_value): Declare.
4267 * arch-utils.c (legacy_store_return_value): New function.
4268 (legacy_extract_return_value): Update parameters.
4270 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4272 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4273 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4274 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4275 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4276 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4277 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4278 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4279 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4280 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4281 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4284 * i386-tdep.c (i386_extract_return_value): Update.
4285 * arch-utils.c (legacy_extract_return_value): Update.
4286 * frv-tdep.c (frv_gdbarch_init): Update.
4287 * cris-tdep.c (cris_gdbarch_init): Update.
4288 * d10v-tdep.c (d10v_gdbarch_init): Update.
4289 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4290 * m68k-tdep.c (m68k_gdbarch_init): Update.
4291 * mcore-tdep.c (mcore_gdbarch_init): Update.
4292 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4293 * s390-tdep.c (s390_gdbarch_init): Update.
4294 * sparc-tdep.c (sparc_gdbarch_init): Update.
4295 * sh-tdep.c (sh_gdbarch_init): Update.
4296 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4297 * v850-tdep.c (v850_gdbarch_init): Update.
4298 * avr-tdep.c (avr_gdbarch_init): Update.
4299 * ia64-tdep.c (ia64_gdbarch_init): Update.
4300 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4301 * vax-tdep.c (vax_gdbarch_init): Update.
4302 * alpha-tdep.c (alpha_gdbarch_init): Update.
4303 * arm-tdep.c (arm_gdbarch_init): Update.
4304 * mips-tdep.c (mips_gdbarch_init): Update.
4305 * i386-tdep.c (i386_gdbarch_init): Update.
4307 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4309 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4310 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4312 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4314 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4317 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4319 * infrun.c (handle_inferior_event): Move a comment outside of a
4320 function call, in order to avoid indent reformatting this part
4321 of the code in an unreadable way.
4323 2002-08-23 Grace Sainsbury <graces@redhat.com>
4325 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4326 when breakpoints fail. Move general breakpoint error messages to
4328 * breakpoint.c (insert_breakpoints): Change warnings when
4329 breakpoints are nto inserted to specify the type. Remove call to
4330 memory_error when hardware breakpoints can't be inserted. Remove
4331 multiple calls to warning so all messages are sent to the user at
4333 (delete_breakpoints): Make insert error messsages more explicit.
4335 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4337 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4338 gdbserver/ChangeLog.
4340 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4342 * i386-tdep.c: Include "objfiles.h".
4343 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4344 skip_trampoline_code.
4345 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4346 (CPLUS_MARKER): Define to '.'.
4348 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4350 (linux_corefile_thread_callback): Increase args->num_notes.
4351 (linux_make_note_section): Initialize thread_args.num_notes, and
4352 use it to determine whether notes for any threads were created.
4354 2002-08-23 Donn Terry <donnte@microsoft.com>
4356 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4357 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4359 (write_with_trace): Conditionalize out the switch branch handling
4360 PCSHOLD if the corresponding macro is not defined. Likewise for
4361 PRSABORT and PRSTOP.
4362 This change will be needed by the Interix port.
4364 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4366 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4367 write_register wherever possible instead of manipulating the
4368 register bytes directly.
4369 Assign VALUE_CONTENTS to a variable and use that.
4370 The GPR numbers are now dependent on the architecture.
4372 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4374 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4376 (skip_prologue): Add support for BookE/e500 instructions.
4377 (e500_extract_return_value): New function.
4378 (frame_get_saved_regs): Add support for saving ev registers and
4380 (e500_store_return_value): New function.
4381 (rs6000_gdbarch_init): Move up default intializations of
4382 deprecated_extract_return_value and store_return_value. Overwrite
4383 init of store_return_value with e500 specific version.
4384 Set extract_return_value for e500.
4386 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4388 * blockframe.c (generic_call_dummy_register_unwind): Use
4389 regcache_cooked_read to catch cases in which the variable is
4390 stored in a pseudo register.
4392 2002-08-22 Andrew Cagney <cagney@redhat.com>
4394 * NEWS: Mention that the i960 has been made obsolete.
4395 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4397 (remote-nrom.o): Obsolete target.
4398 (remote-nindy.o, i960-tdep.o): Ditto.
4399 * remote-nrom.c: Make file obsolete.
4400 * remote-nindy.c, remote-vx960.c: Ditto.
4401 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4402 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4403 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4404 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4405 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4406 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4407 i960-*-vxworks* obsolete.
4408 * MAINTAINERS: Note that the i960 is obsolete.
4410 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4412 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4413 detach to allow reinitialization.
4415 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4417 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4420 2002-08-22 Jim Blandy <jimb@redhat.com>
4422 * coffread.c (coff_symfile_read): Don't try to read the line
4423 number table from disk if the image file doesn't have a symbol
4424 table; we'll never actually look at the info anyway, and Windows
4425 ships DLL's with bogus file offsets for the line number data.
4427 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4429 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4432 2002-08-21 Michael Snyder <msnyder@redhat.com>
4434 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4435 (MSYMBOL_SIZE): Replace macro with function.
4436 (DEFAULT_MIPS_TYPE): Delete unused macro.
4437 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4438 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4440 2002-08-21 Jim Blandy <jimb@redhat.com>
4442 * valops.c (value_cast): Simplify and correct logic for doing a
4443 static cast from a pointer to a base class to a pointer to a
4446 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4448 * infcmd.c (default_print_registers_info): Replace
4450 (registers_info): Use gdbarch_print_registers_info instead of
4452 * inferior.h (default_print_registers_info): Replace
4454 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4455 (DO_REGISTERS_INFO): Change to a predicate function.
4456 * gdbarch.h, gdbarch.c: Regenerate.
4458 2002-08-21 Keith Seitz <keiths@redhat.com>
4460 * gdb-events.sh: Add target-changed event.
4461 * gdb-events.c: Regenerated.
4462 * gdb-events.c: Regenerated.
4463 * valops.c (value_assign): Add target-changed event notification
4464 to inlval_register, lval_memory, and lval_reg_frame_relative.
4466 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4468 * NEWS: Add an entry regarding the improvement of the next/step
4469 operation on Alpha Tru64 multi-processor machines.
4471 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4473 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4475 * Makefile.in: Update all _h macro definitions.
4476 * Makefile.in (install-gdbtk): Move to install section.
4477 (rdi-share/libangsd.a): Move to end of file.
4479 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4481 * frame.c (frame_register_unwind): When a register, set addrp to
4482 the register's byte.
4484 2002-08-20 Michael Snyder <msnyder@redhat.com>
4486 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4487 used locally, so move them from the target machine header to here.
4488 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4489 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4491 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4493 2002-08-20 Andrew Cagney <cagney@redhat.com>
4495 * NEWS: Mention that the Apollo line was made obsolete.
4496 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4497 m68*-hp-hpux* obsolete.
4498 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4499 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4500 * buildsym.c (make_blockvector): Make static.
4501 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4502 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4503 (ALLDEPFILES): Remove dstread.c.
4504 (dstread.o): Obsolete make rule.
4505 * dstread.c: Makefile obsolete.
4507 * config/m68k/hp300hpux.mt: Ditto.
4508 * config/m68k/hp300hpux.mh: Ditto.
4509 * config/m68k/hp300bsd.mt: Ditto.
4510 * config/m68k/hp300bsd.mh: Ditto.
4511 * config/m68k/apollo68b.mt: Ditto.
4512 * config/m68k/apollo68v.mh: Ditto.
4513 * config/m68k/apollo68b.mh: Ditto.
4515 2002-08-20 Michael Snyder <msnyder@redhat.com>
4517 * mips-tdep.c (mips_in_return_stub): Make static.
4518 (mips_gdbarch_init): Set in_solib_return_trampoline.
4519 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4521 2002-08-20 Michael Snyder <msnyder@redhat.com>
4523 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4524 * gdbarch.c, gdbarch.h: Regenerate.
4525 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4527 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4529 2002-08-20 Michael Snyder <msnyder@redhat.com>
4531 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4532 (mips_gdbarch_init): Set skip_trampoline_code,
4533 in_solib_call_trampoline.
4534 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4535 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4537 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4539 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4541 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4542 vector type for ev registers.
4543 (e500_pseudo_register_read): New function.
4544 (e500_pseudo_register_write): New function.
4545 (e500_dwarf2_reg_to_regnum): New function.
4546 (PPC_UISA_NOFP_SPRS): New macro.
4547 (PPC_EV_REGS): New macro.
4548 (PPC_GPRS_PSEUDO_REGS): New macro.
4549 (registers_e500): New register set for e500.
4550 (variants): Add e500 variant.
4551 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4552 before setting architectural dependent variations. Initialize ev
4553 registers numbers. Add case for e500 architecture. Set the
4554 number of pseudo registers.
4556 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4558 * rs6000-tdep.c: Clean up comments.
4560 2002-08-20 Andrew Cagney <cagney@redhat.com>
4562 * h8300-tdep.c: Re-indent file.
4564 2002-08-20 Jim Blandy <jimb@redhat.com>
4566 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4569 2002-08-20 Keith Seitz <keiths@redhat.com>
4571 * breakpoints.c (watch_command_1): Use internal breakpoint
4572 when setting a watchpoint_scope breakpoint.
4574 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4576 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4577 (build_builtin_type_vec64i): Ditto.
4578 (build_builtin_type_vec128): Ditto.
4579 (build_builtin_type_vec128i): Ditto.
4581 2002-08-19 Michael Snyder <msnyder@redhat.com>
4583 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4584 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4585 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4586 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4587 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4588 CALL_DUMMY_ADDRESS): Delete.
4589 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4590 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4591 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4592 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4593 push_return_address.
4594 (mips_register_raw_size, mips_eabi_use_struct_convention,
4595 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4596 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4597 mips_init_extra_frame_info, mips_eabi_push_arguments,
4598 mips_n32n64_push_arguments, mips_push_return_address,
4599 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4600 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4602 2002-08-19 Michael Snyder <msnyder@redhat.com>
4604 * mips-tdep.c (mips_frame_num_args): New function.
4605 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4606 frame_saved_pc, frame_args_address, frame_locals_address,
4607 frame_num_args, and frame_args_skip.
4608 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4609 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4610 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4611 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4613 2002-08-20 Michael Snyder <msnyder@redhat.com>
4615 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4616 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4617 * mips-tdep.c (mips_store_struct_return): New function.
4618 (mips_extract_struct_value_address): New function.
4619 (mips_gdbarch_init): Set store_struct_return and
4620 extract_struct_value_address.
4622 2002-08-20 David Carlton <carlton@math.stanford.edu>
4624 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4625 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4626 (read_file_scope): Check that line_header is nonzero before
4627 decoding macro information.
4629 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4631 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4632 flag the general-purpose registers as floating-point on targets
4633 that don't support the floating-point registers.
4635 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4637 * rs6000-tdep.c (altivec_register_p): Delete.
4638 (rs6000_do_altivec_registers): Delete.
4639 (rs6000_altivec_registers_info): Delete.
4640 (rs6000_do_registers_info): Delete.
4641 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4642 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4644 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4646 * infcmd.c (do_registers_info): Print vector registers in hex
4648 (print_vector_info): Check that printing registers
4650 (print_float_info): Ditto.
4652 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4654 * mips-tdep.c (mips_gdbarch_init): Update.
4655 (mips_o32_extract_return_value): Rewrite.
4656 (mips_o32_store_return_value): Rewrite.
4657 (mips_o32_xfer_return_value): New function.
4658 (mips_xfer_register): Tweak debug print message. Allow for
4659 buf_offset when dumping the value transfered.
4661 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4663 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4664 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4665 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4666 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4667 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4669 2002-08-14 Michael Snyder <msnyder@redhat.com>
4671 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4673 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4675 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4677 (P): New macro to define a register as a pseudo register.
4678 (R, R4, R8, R16, FR32, R64, R0): Updated.
4679 (struct variant): Add new fields for number of pseudo registers
4680 and number of total registers.
4681 (tot_num_registers): New macro replacing....
4682 (num_registers): ...deleted macro.
4683 (num_registers): New function.
4684 (num_pseudo_registers): New function.
4685 (variants): Update all variants to intialize new fields correctly.
4686 Postpone initialization of number of pseudo regs and real regs.
4687 (init_variants): New function.
4688 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4691 2002-08-19 David Carlton <carlton@math.stanford.edu>
4693 * valops.c (search_struct_field): Change error message to treat
4694 return value of 0 from value_static_field as meaning that field is
4696 (value_struct_elt_for_reference): Ditto.
4697 * values.c (value_static_field): Treat an unresolved location the
4698 same as a nonexistent symbol. Fix PR gdb/635.
4699 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4700 enclosed. Fix PR gdb/574.
4701 * MAINTAINERS: Add self to Write After Approval list.
4703 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4705 * mips-tdep.c (mips_xfer_register): New function.
4706 (mips_n32n64_extract_return_value): Rewrite.
4707 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4708 instead of deprecated_extract_return_value.
4710 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4712 * rs6000-tdep.c (TDEP): Delete macro.
4713 (branch_dest): Replace use of TDEP macro with its body.
4714 (rs6000_pop_frame): Ditto.
4715 (rs6000_push_arguments): Ditto.
4716 (rs6000_skip_trampoline_code): Ditto.
4717 (rs6000_frame_saved_pc): Ditto.
4718 (rs6000_frame_chain): Ditto.
4719 (rs6000_register_name): Ditto.
4720 (rs6000_register_byte): Ditto.
4721 (rs6000_register_raw_size): Ditto.
4722 (rs6000_register_virtual_type): Ditto.
4723 (rs6000_register_convertible): Ditto.
4724 (rs6000_convert_from_func_ptr_addr): Ditto.
4726 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4728 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4730 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4731 MIPS_LINUX_JB_ELEMENT_SIZE.
4732 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4733 for MAX_REGISTER_RAW_SIZE arrays.
4734 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4735 MIPS_LINUX_JB_ELEMENT_SIZE.
4737 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4739 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4741 2002-08-19 Aidan Skinner <aidan@velvet.net>
4743 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4744 ada-valprint.c ada-tasks.c.
4745 (YYFILES): Add ada-exp.y.
4746 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4747 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4748 (ada-exp.tab.o): New target.
4750 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4752 * regcache.c (regcache_xfer_part): New function.
4753 (regcache_raw_read_part): New function.
4754 (regcache_raw_write_part): New function.
4755 (regcache_cooked_read_part): New function.
4756 (regcache_cooked_write_part): New function.
4757 * regcache.h (regcache_raw_read_part): Declare.
4758 (regcache_raw_write_part): Declare.
4759 (regcache_cooked_read_part): Declare.
4760 (regcache_cooked_write_part): Declare.
4762 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4764 * remote.c (remote_open_1): Add async_p.
4765 (remote_async_open_1): Delete.
4766 (open_remote_target): Delete.
4767 (remote_open, extended_remote_open): Update calls to remote_open_1.
4768 (remote_async_open, extended_remote_async_open): Call
4769 remote_open_1 instead of remote_async_open_1.
4771 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4773 * blockframe.c: Fix a few coding standard violations.
4775 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4777 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4779 * config/i386/tm-i386sco5.h: ... here. File removed.
4780 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4782 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4783 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4784 (TM_FILE): Set to tm-i386.h.
4785 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4786 * config/i386/tm-i386v.h: Remove file.
4787 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4788 instead of "i386/tm-i386v.h".
4789 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4790 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4792 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4793 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4796 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4798 * config/i386/nm-i386v.h: Add protection against
4800 (i386_register_u_addr): Remove prototype.
4801 (register_u_addr): New prototype.
4802 (REGISTER_U_ADDR): Redefine accordingly.
4803 * i386v-nat.c: Improve several comments.
4804 (i386_register_u_addr): Change signature and rename to
4805 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4808 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4810 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4811 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4812 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4813 deprecated_extract_return_value.
4814 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4815 rename mips_o32o64_push_arguments.
4816 (mips_gdbarch_init): Update.
4817 (mips_extract_return_value): Delete.
4818 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4819 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4820 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4821 (mips_n32n64_extract_return_value): Clone
4822 mips_extract_return_value.
4823 (mips_store_return_value): Delete.
4824 (mips_o32_store_return_value): Clone mips_store_return_value.
4825 (mips_o64_store_return_value): Clone mips_store_return_value.
4826 (mips_eabi_store_return_value): Clone mips_store_return_value.
4827 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4829 2002-08-18 Aidan Skinner <aidan@velvet.net>
4831 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4832 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4834 2002-08-18 Aidan Skinner <aidan@velvet.net>
4836 * ada-lang.c: Run through gdb_indent.sh.
4837 * ada-lang.h: Run through gdb_indent.sh.
4838 * ada-tasks.c: Run through gdb_indent.sh.
4839 * ada-typeprint.c: Run through gdb_indent.sh.
4840 * ada-valprint.c: Run through gdb_indent.sh.
4842 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4844 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4847 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4849 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4851 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4852 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4854 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4855 write_register_gen instead of write_register_bytes.
4857 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4858 i[3456]-*-osf1mk* configurations have been made obsolete.
4859 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4860 i[3456]86-*-osf1mk* hosts obsolete.
4861 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4863 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4864 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4865 config/i386/i386m3.mt, config/i386/nm-m3.h,
4866 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4867 config/i386/i386mk.mh, config/i386/i386mk.mt,
4868 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4870 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4871 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4872 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4874 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4876 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4877 (hppa_value_returned_from_stack): Declare.
4878 (hppa_extract_return_value): Declare.
4879 * config/pa/hppa.mt: New file.
4880 * configure.tgt: Recognize hppa*-*-*.
4881 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4883 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4885 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4888 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4890 * top.c (gdb_rl_operate_and_get_next): Make sure
4891 operate-and-get-next functions correctly even when the history
4892 list is completely filled.
4894 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4896 * MAINTAINERS (Target Instruction Set Architectures): Rename
4897 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4898 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4899 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4900 already listed under Host/Native.
4902 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4903 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4906 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4908 * config/ia64/ia64.mt: New file.
4909 * config/alpha/alpha.mt: New file.
4910 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4911 ia64-linux-gnu. Mention that ia64-elf is broken.
4912 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4914 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4916 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4917 generic_func_frame_valid instead of func_frame_valid.
4919 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4921 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4922 procfs appears to be broken when debugging on multi-processor
4923 machines. So enable software single stepping in order to avoid
4924 using the procfs interface to do next/step operations, using
4925 internal breakpoints instead.
4927 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4928 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4929 make this pc address equal to the value it would have if the
4930 system stepping capability was used. Also set a new flag used
4931 to ensure that we don't readjust the PC one more time later.
4933 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4934 address by DECR_PC_AFTER_BREAK when software single step is
4935 in use for this architecture, as this has already been taken
4936 care of in handle_inferior_event().
4938 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4940 * infrun.c (handle_inferior_event): Minor reformatting, to make
4941 a rather long condition expression easier to read.
4943 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4945 * Makefile.in (gdbtk.o): Move to end of file.
4946 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4947 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4948 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4949 (gdbtk-wrapper.o, gdbres.o): Ditto.
4951 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4953 * Makefile.in (copying.o): Separate out compile rule.
4954 (hpux-thread.o, procfs.o, signals.o): Ditto.
4955 (v850ice.o, z8k-tdep.o): Ditto.
4956 (tui-file.o): Move to TUI section.
4957 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4958 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4960 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4962 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4963 skip_trampoline_code, for better namespace-proofing.
4965 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4967 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4969 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4971 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4973 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4974 signal, check whether we hit a breakpoint before checking for a
4975 single step breakpoint. Otherwise, GDB fails to notice that a
4976 breakpoint has been hit when stepping onto a breakpoint.
4978 2002-08-16 Keith Seitz <keiths@redhat.com>
4980 * gdb-events.sh (clear_gdb_event_hooks): New function.
4981 * gdb-events.c: Regenerate.
4982 * gdb-events.h: Regenerate.
4984 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4986 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4987 not_a_sw_breakpoint.
4988 * breakpoint.h (bpstat_stop_status): Add parameter names.
4990 2002-08-16 Grace Sainsbury <graces@redhat.com>
4992 * remote.c (remote_insert_hw_breakpoint)
4993 (remote_remove_hw_breakpoint): Fix calculation of length field
4996 2002-08-15 Michael Snyder <msnyder@redhat.com>
4998 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4999 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5000 (supply_fpregset): Ditto.
5002 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5003 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5004 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5005 (TARGET_READ_SP): Delete.
5006 (DO_REGISTERS_INFO): Delete.
5007 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5009 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5010 from macros to functions.
5012 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5013 (mips_register_convertible, mips_register_convert_to_virtual,
5014 mips_register_convert_to_raw): Make static.
5015 (mips_read_sp): New function.
5016 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5017 (mips_do_registers_info): Make static.
5018 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5019 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5020 (mips_register_convert_from_type, mips_register_convert_to_type):
5022 (mips_gdbarch_init): Set up function_start_offset,
5023 register_virtual_size, pc_in_sigtramp.
5025 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5027 * infcmd.c (vector_info): New function.
5028 (_initialize_infcmd): Add command "info vector".
5029 (print_vector_info): New function.
5031 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5032 * gdbarch.h, gdbarch.c: Regenerate.
5034 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5036 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5037 ``print_all''. Only print vector registers when ``print_all''.
5039 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5041 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5042 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5044 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5045 Add `args' parameter.
5046 * gdbarch.h, gdbarch.c: Regenerate.
5048 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5050 * infcmd.c (float_info): Call print_float_info.
5051 (print_float_info): New function. By default, print the
5052 floating-point registers.
5054 * arch-utils.h (default_print_float_info): Delete declaration.
5055 * arch-utils.c (default_print_float_info): Delete function.
5057 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5059 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5062 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5065 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5066 * configure.host: Make i[3456]86-*-aix host obsolete.
5067 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5068 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5069 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5070 config/i386/xm-i386aix.h: Make files obsolete.
5071 * i386aix-nat.c: Make file obsolete.
5072 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5073 (i386aix-nat.o): Make target obsolete.
5075 * config/i386/nm-gnu.h: Removed.
5076 * config/i386/nm-i386gnu.h: New file.
5077 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5078 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5080 * config/i386/tm-i386gnu.h: ... here. Removed.
5081 * config/i386/xm-i386gnu.h: Removed.
5082 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5083 (NAT_FILE): Set to nm-i386gnu.h.
5084 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5085 * i386-tdep.c: New file.
5086 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5087 (i386gnu-tdep.o): Specify dependencies.
5089 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5091 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5092 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5093 Adjust a few comments to reflect reality a bit closer.
5094 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5095 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5096 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5097 target_insert_watchpoint, target_remove_watchpoint):
5099 * config/i386/nm-i386sco5.h: ... here.
5100 (kernel_u_size): Add prototype. Improve a few comments and add
5101 protection against multiple inclusion.
5103 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5106 * uw-thread.c (SP_ARG0): Define if not already defined.
5107 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5109 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5111 * config/i386/tm-i386.h: Don't include "regcache.h".
5113 * i387-tdep.h (i387_print_float_info): New prototype.
5114 * i387-tdep.c (print_i387_value, print_i387_ext,
5115 print_i387_status_word, print_i387_control_word): Add `struct
5116 ui_file *' argument and use it for output.
5117 (i387_print_float_info): Renamed from i387_float_info. Add
5118 `struct gdbarch *' and `struct ui_file *' arguments and use the
5120 * i386-tdep.c: Include "i387-tdep.h".
5121 (i386_gdbarch_init): Set print_float_info.
5122 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5123 (FLOAT_INFO): Remove define.
5125 2002-08-13 Michael Snyder <msnyder@redhat.com>
5127 * mips-tdep.c (mips_push_arguments): Rename to
5128 mips_eabi_push_arguments, and tune for EABI.
5129 (MIPS_REGS_HAVE_HOME_P): Delete.
5130 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5131 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5132 Delete references to mips_regs_have_home_p.
5134 2002-08-14 Keith Seitz <keiths@redhat.com>
5136 * Makefile.in (install-gdbtk): Create insight plugin directory.
5137 Install plugins.tcl file.
5139 2002-08-14 Keith Seitz <keiths@redhat.com>
5141 * configure.in: Move SUBDIRS to near top of the file so that
5142 --enable options may add things to it.
5143 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5144 * configure: Regenerate.
5146 2002-08-13 Michael Snyder <msnyder@redhat.com>
5148 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5149 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5150 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5152 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5154 * vax-tdep.c (vax_get_saved_register): Delete function.
5155 (vax_gdbarch_init): Update.
5156 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5157 (ns32k_gdbarch_init): Update.
5158 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5159 (alpha_gdbarch_init): Update.
5161 2002-08-13 Andrew Cagney <cagney@redhat.com>
5163 * regcache.c (init_regcache_descr): Overallocate the
5164 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5165 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5167 (set_register_cached): Add range checking assertions. Use
5170 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5172 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5173 numbers for MMX registers.
5175 2002-08-13 Andrew Cagney <cagney@redhat.com>
5177 * i386-tdep.c (i386_gdbarch_init): Use
5178 generic_unwind_get_saved_register.
5180 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5182 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5183 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5185 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5186 Delete. Add comment regarding this now-deleted target method.
5188 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5190 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5191 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5192 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5193 real PC and the page number (if it's within the memory bank window).
5194 (m68hc11_pseudo_register_write): Likewise when saving.
5195 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5196 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5197 (m68hc11_register_raw_size): And use 32-bit for it.
5198 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5199 16K memory bank is used by the prog; also use the virtual pc.
5201 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5203 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5204 (m68hc11_gdbarch_init): Install it in gdbarch.
5205 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5206 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5207 (MSYMBOL_SIZE): New for documentation.
5208 (insn_return_kind): Enum to specify how a function returns.
5209 (frame_extra_info): Cleanup and record the return mode.
5210 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5211 register in address computation.
5212 (m68hc11_get_return_insn): New to obtain the return instruction used
5214 (m68hc11_frame_init_saved_regs): Take into account the return
5215 instruction used by the function for far and interrupt functions.
5216 (m68hc11_init_extra_frame_info): Take into account page register.
5217 (m68hc11_frame_args_address): Adjust according to the return mode.
5218 (show_regs): Print page register only when it's used.
5220 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5222 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5223 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5224 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5226 (m68hc11_register_raw_size): Likewise.
5228 2002-08-13 Andrew Cagney <cagney@redhat.com>
5230 * i386-tdep.c (i386_register_name): Handle mmx registers.
5231 (mmx_regnum_p): New function.
5232 (i386_mmx_names): New array.
5233 (mmx_num_regs): New variable.
5234 (i386_pseudo_register_read): New function.
5235 (i386_pseudo_register_write): New function.
5236 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5238 * regcache.c (regcache_raw_read_unsigned): New function.
5239 (regcache_raw_read_signed): New function.
5240 * regcache.h (regcache_raw_read_unsigned): Declare.
5241 (regcache_raw_read_signed): Declare.
5243 2002-08-13 Andrew Cagney <cagney@redhat.com>
5245 * regcache.c (regcache_raw_read_as_address): Delete function.
5246 (regcache_cooked_read_signed): New function.
5247 (regcache_cooked_read_unsigned): New function.
5248 * regcache.h (regcache_cooked_read_signed): Declare.
5249 (regcache_cooked_read_unsigned): Declare.
5250 (regcache_raw_read_as_address): Delete declaration.
5252 * blockframe.c (generic_read_register_dummy): Use
5253 regcache_cooked_read_unsigned.
5254 * i386-tdep.c (i386_extract_struct_value_address): Use
5255 regcache_cooked_read_unsigned.
5257 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5260 double sizes according to ELF ABI flags.
5261 (gdbarch_tdep): Record elf_flags.
5263 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5265 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5266 (m6812_prolog): They can appear in 68HC12 function prologue.
5267 (m68hc11_frame_chain): Cleanup.
5269 2002-08-12 Andrew Cagney <cagney@redhat.com>
5271 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5273 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5274 (i386_linux_register_raw_size): Delete function.
5275 (i386_linux_init_abi): Update.
5276 * i386-tdep.c (i386_register_raw_size): Delete function.
5277 (i386_register_byte): Delete function.
5278 (i386_gdbarch_init): Update.
5279 (i386_register_size): Delete array.
5280 (i386_register_offset): Delete array.
5282 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5283 (REGISTER_RAW_SIZE): Delete macro.
5284 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5285 (REGISTER_BYTE): Delete macro.
5287 2002-08-11 Aidan Skinner <aidan@velvet.net>
5289 * ada-lang.c (ada_lookup_partial_symbol)
5290 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5291 prototype names so that grep ^func works properly.
5293 * ada-lang.c (ada_array_element_type)
5294 (ada_lookup_partial_symbol): Fix typos in parameter list.
5296 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5297 Fix prototype names so that grep ^func works properly.
5299 2002-08-10 Andrew Cagney <cagney@redhat.com>
5300 Elena Zannoni <ezannoni@redhat.com>
5301 Martin M. Hunt <hunt@redhat.com>
5303 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5304 (build_builtin_type_vec128i): Set the vector bit.
5305 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5306 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5307 (build_builtin_type_vec64): New function.
5308 (build_builtin_type_vec64i): New function.
5309 (build_gdbtypes): Initialize builtin_type_vec64 and
5310 builtin_type_vec64i.
5312 2002-08-09 Andrew Cagney <cagney@redhat.com>
5314 * regcache.c (regcache_dump): Compare the register offset
5316 * arch-utils.c (generic_register_byte): New function.
5317 * arch-utils.h (generic_register_byte): Declare.
5318 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5319 * gdbarch.h, gdbarch.c: Regenerate.
5321 2002-08-09 Andrew Cagney <cagney@redhat.com>
5323 * regcache.c: Include "gdbcmd.h"
5324 (_initialize_regcache): Add commands "maintenance print
5325 registers", "maintenance print raw-registers" and "maintenance
5326 print cooked-registers".
5327 (enum regcache_dump_what): Define.
5328 (dump_endian_bytes): New function.
5329 (regcache_dump): New function.
5330 (regcache_print): New function.
5331 (maintenance_print_registers): New function.
5332 (maintenance_print_raw_registers): New function.
5333 (maintenance_print_cooked_registers): New function.
5334 * Makefile.in (regcache.o): Update dependencies.
5336 2002-08-09 Michael Snyder <msnyder@redhat.com>
5338 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5339 (mips_push_arguments): Correct some comments. Use paddr_nz
5340 for printing addresses in debug output. Replace static
5341 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5342 (mips_n32n64_push_arguments): New function, cloned from
5343 mips_push_arguments and tuned for the n32/n64 ABI.
5344 (mips_push_register): Buffer needs dynamic allocation.
5345 (mips_print_register): Ditto.
5346 (do_gp_register_row): Ditto.
5347 (mips_store_return_value): Ditto.
5348 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5350 2002-08-09 Don Howard <dhoward@redhat.com>
5352 * memattr.c (mem_info_command): Print special case of upper bound
5353 as max CORE_ADDR + 1.
5355 2002-08-08 Michael Snyder <msnyder@redhat.com>
5357 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5358 returns structs by ref if they're too big to fit in two registers.
5360 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5362 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5364 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5365 mips_find_saved_regs().
5366 (mips_pop_frame): Likewise.
5368 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5370 * blockframe.c (frame_saved_regs_register_unwind): Revise
5371 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5374 2002-08-09 Grace Sainsbury <graces@redhat.com>
5376 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5377 T-packets; the 'a' is not taken as a register number.
5378 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5379 (remote_stopped_data_address): New functions; add to target
5381 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5382 prototypes to match other implementations of this
5383 function. replace integer argument with pointer -- the length
5384 field in the Z-packet is the length of what is pointed to or 1 if
5385 pointer is null. Add to target vector.
5386 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5390 * remote.c (remote_wait): Add support to extract optional
5391 watchpoint information from T-packet. Ignore unrecognized
5392 optional info in T-packet.
5393 (remote_async_wait): Ditto.
5395 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5397 * cli/cli-dump.c: Change fopen modes to use binary open modes
5398 as defined in include/fopen-bin.h throughout.
5400 2002-08-08 Michael Snyder <msnyder@redhat.com>
5402 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5404 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5406 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5407 assertion failure by returning early after a warning.
5409 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5411 * mips-tdep.c (mips_find_saved_regs): Make static.
5412 (mips_frame_init_saved_regs): New function.
5413 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5414 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5415 (mips_find_saved_regs): Delete declaration.
5417 2002-08-08 Grace Sainsbury <graces@redhat.com>
5419 * remote.c (remote_wait, remote_async_wait): Change
5420 thread_num from int to ULONGEST.
5421 (unpack_varlen_hex): Change result parameter from
5422 int * to ULONGEST *.
5424 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5426 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5427 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5429 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5431 2002-08-08 Andrew Cagney <cagney@redhat.com>
5433 * gcore.c (override_derive_stack_segment): Delete variable.
5434 (preempt_derive_stack_segment): Delete function.
5435 (derive_stack_segment): Delete function.
5436 (default_derive_stack_segment): Renamed to derive_stack_segment.
5437 (override_derive_heap_segment): Delete variable.
5438 (preempt_derive_heap_segment): Delete function.
5439 (derive_heap_segment): Delete function.
5440 (default_derive_heap_segment): Rename to derive_heap_segment.
5442 2002-08-06 Michael Snyder <msnyder@redhat.com>
5444 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5445 * mips-tdep.c (mips_EABI_use_struct_convention,
5446 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5447 New functions. (mips_use_struct_convention): Delete.
5448 (mips_gdbarch_init): set use_gdbarch_convention.
5450 2002-08-06 Michael Snyder <msnyder@redhat.com>
5452 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5453 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5454 mips_o32_reg_struct_has_addr): New functions.
5455 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5457 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5459 * regcache.c (pseudo_register): Delete function.
5460 (fetch_register): Delete function.
5461 (store_register): Delete function.
5462 (regcache_raw_read, legacy_read_register_gen): Use
5463 target_fetch_registers instead of fetch_register.
5464 (legacy_write_register_gen, regcache_raw_write): Use
5465 target_store_register instead of store_register.
5466 (write_register_bytes): Ditto.
5468 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5469 (STORE_PSEUDO_REGISTER): Delete.
5470 * gdbarch.h, gdbarch.c: Regenerate.
5472 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5474 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5475 write dump file binary.
5477 2002-08-05 Michael Snyder <msnyder@redhat.com>
5479 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5480 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5481 (mips_gdbarch_init): Set N32 target to be mips64.
5483 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5485 * frame.c (find_saved_register): Break out of loop once saved
5486 register address is found. Don't mention sparc in loop comment
5489 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5491 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5492 mips_default_saved_regsize to 8.
5494 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5496 * gcore.c: Do not include <sys/procfs.h>.
5497 * Makefile.in (gcore.o): Update dependencies.
5499 2002-08-06 Andrew Cagney <cagney@redhat.com>
5501 * configure.tgt: Make arc-*-* obsolete.
5502 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5503 * MAINTAINERS: Make arc-elf obsolete.
5504 * arc-tdep.c: Make file obsolete.
5505 * config/arc/arc.mt: Ditto.
5506 * config/arc/tm-arc.h: Ditto.
5508 2002-08-05 Theodore A. Roth <troth@verinet.com>
5510 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5512 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5514 * mcore-tdep.c (mcore_gdbarch_init): Use
5515 generic_unwind_get_saved_register instead of
5516 generic_get_saved_register.
5517 * v850-tdep.c (v850_gdbarch_init): Ditto.
5518 * frv-tdep.c (frv_gdbarch_init): Ditto.
5519 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5520 * s390-tdep.c (s390_gdbarch_init): Ditto.
5521 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5522 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5523 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5525 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5527 * objfiles.h: Add missing #include "symfile.h"
5529 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5531 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5533 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5534 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5537 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5539 * NEWS: Cleanup and nitpick.
5541 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5543 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5545 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5547 * Makefile.in (gdbtk-bp.o): Update dependencies.
5548 (gdbtk-register.o): Ditto.
5549 (gdbtk-varobj.o): Ditto.
5551 2002-08-03 Andrew Cagney <cagney@redhat.com>
5553 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5554 m68hc11_fetch_pseudo_register.
5555 (m68hc11_pseudo_register_write): Replace
5556 m68hc11_store_pseudo_register.
5557 (m68hc11_gdbarch_init): Update.
5559 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5561 * gdbarch.sh: Include "gdb_string.h".
5562 * gdbarch.c: Regenerate.
5564 * regcache.c: Include "gdb_string.h".
5565 * ax-general.c: Ditto.
5567 * std-regs.c: Ditto.
5568 * fbsd-proc.c: Ditto.
5571 * Makefile.in (regcache.o): Update dependencies.
5572 (thread.o, gdbarch.o): Ditto.
5573 (ax-general.o, gdbarch.o): Ditto.
5574 (varobj.o, std-regs.o): Ditto.
5575 (fbsd-proc.o): Specify dependencies.
5577 2002-08-02 Andrew Cagney <cagney@redhat.com>
5579 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5581 (regcache_cooked_write): Ditto.
5583 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5585 * regcache.c (regcache_cooked_read): New function.
5586 (regcache_cooked_write): New function.
5587 (read_register_gen): Rewrite using regcache_cooked_read.
5588 (write_register_gen): Rewrite using regcache_cooked_write.
5590 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5593 2002-08-02 Andrew Cagney <cagney@redhat.com>
5595 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5596 Replace the architecture methods register_read and register_write.
5597 * gdbarch.h, gdbarch.c: Regenerate.
5598 * regcache.c (init_regcache_descr): Update.
5599 (read_register_gen): Update.
5600 (write_register_gen): Update.
5601 (supply_register): Update comment.
5603 * sh-tdep.c (sh_gdbarch_init): Update.
5604 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5605 `regcache' and `gdbarch' parameters. Make `buffer' a void
5606 pointer. Update code.
5607 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5608 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5609 void pointer. Update code.
5610 (sh64_register_write): Delete.
5611 (sh4_register_read): Delete.
5612 (sh64_register_read): Delete.
5613 (sh4_register_write): Delete.
5614 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5615 void pointer, `to' parameter a void pointer.
5616 (sh_sh64_register_convert_to_raw): Ditto.
5618 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5620 * mips-tdep.c (mips_register_virtual_type): Use architecture
5621 invariant return values.
5623 2002-08-01 Andrew Cagney <cagney@redhat.com>
5625 * linux-proc.c: Include "gdb_string.h".
5626 * Makefile.in (linux-proc.o): Update dependency list.
5628 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5630 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5633 2002-08-01 Grace Sainsbury <graces@redhat.com>
5635 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5636 to_insert_watchpoint, to_remove_watchpoint,
5637 to_stopped_by_watchpoint, to_stopped_data_address,
5638 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5639 target vecctor. Define their corresponding macros so they call
5642 * target.c: Add default and debug versions of for
5643 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5644 to_insert_watchpoint, to_remove_watchpoint,
5645 to_stopped_by_watchpoint, to_stopped_data_address,
5646 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5648 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5650 * mips-tdep.c (mips_register_virtual_type): New function.
5651 (mips_gdbarch_init): Register mips_register_virtual_type()
5652 with gdbarch machinery.
5653 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5654 this file instead of tm-bigmips.h.
5655 (MIPS_REGSIZE): Delete this macro.
5656 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5657 multiarch version in mips-tdep.c will be found.
5659 2002-08-01 Andrew Cagney <cagney@redhat.com>
5661 * NEWS: Menion that CHILL has been made obsolete.
5663 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5664 * stabsread.c (read_range_type): Ditto.
5665 * gdbtypes.h: Ditto.
5666 * language.c (binop_type_check): Ditto.
5667 (binop_result_type): Ditto.
5668 (integral_type): Ditto.
5669 (character_type): Ditto.
5670 (string_type): Ditto.
5671 (boolean_type): Ditto.
5672 (structured_type): Ditto.
5673 (lang_bool_type): Ditto.
5674 (binop_type_check): Ditto.
5675 * language.h (_LANG_chill): Ditto.
5676 * dwarfread.c (set_cu_language): Ditto.
5677 * dwarfread.c (CHILL_PRODUCER): Ditto.
5678 * dwarfread.c (handle_producer): Ditto.
5679 * expression.h (enum exp_opcode): Ditto.
5680 * eval.c: Ditto for comments.
5681 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5682 * expprint.c (print_subexp): Ditto.
5683 (print_subexp): Ditto.
5684 * valops.c (value_cast): Ditto.
5685 (search_struct_field): Ditto.
5686 * value.h (COERCE_VARYING_ARRAY): Ditto.
5687 * symfile.c (init_filename_language_table): Ditto.
5688 (add_psymbol_with_dem_name_to_list): Ditto.
5689 * valarith.c (value_binop): Ditto.
5691 * valops.c (value_slice): Ditto.
5692 * symtab.h (union language_specific): Ditto.
5693 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5694 (SYMBOL_DEMANGLED_NAME): Ditto.
5695 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5696 * defs.h (enum language): Ditto.
5697 * symtab.c (got_symtab): Ditto.
5698 * utils.c (fprintf_symbol_filtered): Ditto.
5700 * ch-typeprint.c: Make file obsolete.
5701 * ch-valprint.c: Make file obsolete.
5702 * ch-lang.h: Make file obsolete.
5703 * ch-exp.c: Make file obsolete.
5704 * ch-lang.c: Make file obsolete.
5706 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5708 (TARGET_FLAGS_TO_PASS): Ditto.
5709 (CHILLFLAGS): Obsolete.
5711 (CHILL_FOR_TARGET): Obsolete.
5712 (CHILL_LIB): Obsolete.
5713 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5715 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5716 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5718 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5721 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5723 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5724 This does not change anything at the moment, but will be helpful
5725 later when full Ada support is integrated.
5727 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5729 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5732 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5734 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5735 and save it in a local variable. Use variable in later test.
5737 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5739 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5740 test. (Thanks to Daniel Jacobowitz.)
5742 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5744 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5745 (mips_abi_strings): Add "n64".
5746 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5748 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5750 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5751 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5753 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5755 * utils.c (host_pointer_to_address, address_to_host_pointer):
5756 Use gdb_assert() instead of explicit call to internal_error().
5758 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5760 * Makefile.in (rs6000-nat.o): Update dependencies.
5762 From Nicholas Duffek:
5763 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5764 (aix-thread.o): New rule.
5765 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5766 * config/powerpc/aix432.mh: New file.
5768 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5770 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5771 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5772 (fetch_core_registers, ppc_linux_supply_gregset)
5773 (ppc_linux_supply_fpregset): New functions.
5774 (ppc_linux_regset_core_fns): New.
5775 (_initialize_ppc_linux_tdep): Call add_core_fns.
5776 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5777 and ppc_linux_supply_gregset.
5778 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5779 (supply_fpregset): Call ppc_linux_supply_fpregset.
5780 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5782 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5784 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5786 * symtab.c (lookup_symbol): Demangle before lowercasing.
5788 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5790 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5792 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5793 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5794 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5795 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5797 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5798 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5799 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5800 (avr-tdep.o, mon960-rom.o): Ditto.
5801 (aout_stabs_gnu_h): Define.
5802 (symtab_h): Remove $(gdb_obstack_h).
5804 2002-07-30 Jim Blandy <jimb@redhat.com>
5806 Patch from David Carlton <carlton@math.stanford.edu>:
5807 * gdbinit.in: Move the `dir' commands that add GDB's own source
5808 directory to the search path to the end, so that the `gdb' source
5809 directory will be searched first.
5811 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5813 * gdb_obstack.h: New file.
5814 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5815 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5816 * objfiles.h: Include "gdb_obstack.h".
5817 * Makefile.in (gdb_obstack_h): Define.
5818 (symtab_h): Add $(gdb_obstack_h).
5819 (objfiles_h): Add $(gdb_obstack_h).
5821 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5822 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5823 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5824 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5825 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5826 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5827 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5828 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5830 * Makefile.in (bcache.o): Update dependencies.
5831 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5832 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5833 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5834 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5835 (stabsread.o, symfile.o, symmisc.o): Ditto.
5836 (symtab.o, typeprint.o, macroexp.o): Ditto.
5837 (macrotab.o, mdebugread.o): Ditto.
5838 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5839 (coff_ecoff_h, aout_aout64_h): Define.
5840 (aout_stabs_gnu_h, libaout_h): Define.
5842 2002-07-29 Andrew Cagney <cagney@redhat.com>
5844 * regcache.c (struct regcache_descr): Rename nr_registers to
5845 nr_cooked_registers. Revise comments describing the structure
5847 (init_regcache_descr): Update.
5848 (init_legacy_regcache_descr): Update.
5849 (read_register_gen, write_register_gen): When a cooked register in
5850 the raw register range, directly access the value from the raw
5853 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5855 * z8k-tdep.c: Do not include "obstack.h".
5856 * h8300-tdep.c, h8500-tdep.c: Ditto.
5857 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5858 * valprint.c, v850-tdep.c: Ditto.
5859 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5860 * mn10200-tdep.c: Ditto.
5862 * Makefile.in (z8k-tdep.o): Update dependencies.
5863 (m68hc11-tdep.o, valprint.o): Ditto.
5864 (v850-tdep.o, d10v-tdep.o): Ditto.
5865 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5866 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5867 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5868 (sh_opc_h, gdb_sim_sh_h): Define.
5869 (elf_sh_h, elf_bfd_h): Define.
5870 (opcode_m68hc11_h): Define.
5871 (OPCODES_SRC, OPCODES_DIR): define.
5872 (OPCODES): Use $(OPCODES_DIR).
5873 (gdb_sim_d10v_h): Rename sim_d10v_h.
5874 (gdb_sim_arm_h): Rename sim_arm_h.
5876 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5878 * utils.c (host_pointer_to_address, address_to_host_pointer):
5879 Change internal_error() message to indicate function responsible
5882 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5884 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5885 calls to local_hex_string_custom().
5887 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5889 * irix5-nat.c: Move IRIX shared library support from here...
5890 * solib-irix.c: ...to here. Revised substantially to work with
5891 generic solib framework.
5893 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5894 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5895 * mips-irix-tdep.c: New file.
5897 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5898 (mips-irix-tdep.o, solib-irix.o): New rules.
5899 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5901 * config/mips/irix6.mt (TDEPFILES): Likewise.
5902 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5904 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5906 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5907 disabled (via ``#if 0'') includes.
5909 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5911 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5912 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5913 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5914 Add support for the fpscr register.
5915 * rs6000-nat.c (regmap, fetch_inferior_registers)
5916 (store_inferior_registers, fetch_core_registers): Likewise.
5918 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5920 * rs6000-nat.c (language.h): Include.
5921 (special_regs): Delete this array.
5922 (regmap): New function.
5923 (fetch_register, store_register): Use regmap() to map gdb
5924 register numbers to ptrace register numbers. Also, use
5925 outputs from regmap() to make decisions regarding type of
5926 ptrace() call to make. In particular, don't compare against
5927 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5928 (fetch_inferior_registers, store_inferior_registers): Where
5929 possible, obtain register numbers from tdep struct. Don't
5930 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5931 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5932 (LAST_UISA_SP_REGNUM): Delete.
5934 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5936 * rs6000-nat.c (ppc-tdep.h): Include.
5937 (fetch_registers, store_register, fetch_core_registers): Don't
5938 access registers[] directly. Instead, use supply_register() or
5939 regcache_collect() as appropriate.
5940 (find_toc_address): Format hex address with local_hex_string().
5942 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5944 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5947 2002-07-24 Tom Tromey <tromey@redhat.com>
5949 * jv-exp.y: Marked all strings with _().
5950 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5952 (MethodInvocation, CastExpression, parse_number, yyerror,
5953 java_type_from_name, push_expression_name, yylex): Typo fixes.
5955 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5957 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5958 (tee_file_flush, tee_file_write, tee_file_fputs)
5959 (tee_file_isatty): New.
5960 * ui-file.h (tee_file_new): Add prototype.
5962 2002-07-24 Aidan Skinner <aidan@velvet.net>
5964 * ada-lang.c: Change k&r style function definitions to prototyped
5966 * ada-typeprint.c: Change k&r style function definitions to prototyped
5968 * ada-valprint.c: Change k&r style function definitions to prototyped
5971 2002-07-24 Andrew Cagney <cagney@redhat.com>
5973 * README: Remove reference to remote-bug.
5974 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5976 (m88k-nat.o): Delete rule.
5977 (m88k-tdep.o): Delete rule.
5978 (remote-bug.o): Delete rule.
5979 * MAINTAINERS: Mark as obsolete.
5980 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5981 * m88k-tdep.c: Make file obsolete.
5982 * config/m88k/m88k.mh: Ditto.
5983 * config/m88k/delta88v4.mh: Ditto.
5984 * config/m88k/delta88v4.mt: Ditto.
5985 * config/m88k/delta88.mt: Ditto.
5986 * config/m88k/delta88.mh: Ditto.
5987 * remote-bug.c: Ditto.
5988 * config/m88k/tm-delta88.h: Ditto.
5989 * config/m88k/nm-delta88v4.h: Ditto.
5990 * config/m88k/xm-delta88.h: Ditto.
5991 * config/m88k/xm-dgux.h: Ditto.
5992 * config/m88k/tm-m88k.h: Ditto.
5993 * config/m88k/nm-m88k.h: Ditto.
5994 * config/m88k/tm-delta88v4.h: Ditto.
5995 * m88k-nat.c: Ditto.
5996 * cxux-nat.c: Ditto.
5997 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5998 and m88*-*-* obsolete.
5999 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6002 2002-07-24 Andrew Cagney <cagney@redhat.com>
6004 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6005 constant. Same for local pointer variables.
6006 (extract_signed_integer): Ditto.
6007 * defs.h (extract_unsigned_integer): Update.
6008 (extract_signed_integer): Update.
6010 2002-07-24 Andrew Cagney <cagney@redhat.com>
6012 * regcache.c (regcache_raw_write): Change buf parameter to a
6013 constant void pointer.
6014 (regcache_raw_read): Change buf parameter to a void pointer.
6015 (legacy_write_register_gen): Change myaddr parameter a constant
6017 (supply_register): Change val parameter to a const void pointer.
6018 * regcache.h (regcache_raw_write): Update declaration.
6019 (regcache_raw_read): Update declaration.
6020 (supply_register): Update declaration.
6022 2002-07-24 Tom Tromey <tromey@redhat.com>
6024 * defs.h (gdb_readline_wrapper): Declare.
6025 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6026 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6027 * top.c (gdb_readline_wrapper): New function.
6028 (command_line_input): Use it.
6030 2002-07-24 Andrew Cagney <cagney@redhat.com>
6032 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6033 regcache_read and regcache_write.
6034 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6035 * regcache.c: Update.
6036 * sh-tdep.c (sh64_push_arguments): Update comment.
6037 (sh_pseudo_register_read): Update.
6038 (sh_pseudo_register_write): Update.
6039 (sh4_register_read): Update.
6040 (sh4_register_write): Update.
6041 (sh64_pseudo_register_read): Update.
6042 (sh64_pseudo_register_write): Update.
6043 (sh64_register_read): Update.
6044 (sh64_register_write): Update.
6045 * i386-tdep.c (i386_extract_return_value): Update.
6046 (i386_extract_struct_value_address): Update.
6047 (i386_extract_return_value): Update.
6048 * blockframe.c (generic_read_register_dummy): Update.
6049 (generic_call_dummy_register_unwind): Update
6050 * infrun.c (write_inferior_status_register): Update.
6052 2002-07-23 Jim Blandy <jimb@redhat.com>
6054 * parser-defs.h (expression_context_pc): Make this extern.
6055 (Thanks to Michael Snyder.)
6057 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6059 GDB 5.2.1 released from 5.2 branch.
6060 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6061 * README: Update to mention 5.2.1.
6063 2002-07-23 Mark Salter <msalter@redhat.com>
6065 * remote.c (remote_read_bytes): Fix check for error.
6067 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6069 * aix-thread.c (language.h): Include.
6070 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6071 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6072 Print newlines at end of debug messages.
6073 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6074 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6076 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6078 * aix-thread.c (ppc-tdep.h): Include.
6079 (special_register_p): New function.
6080 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6081 (store_regs_user_thread): Use register number information from
6082 gdbarch_tdep struct instead of hardcoded offsets relative to
6083 FIRST_UISA_SP_REGNUM.
6084 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6085 special_register_p() instead of using FPLAST_REGNUM and
6086 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6087 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6088 will be MQ's register number.
6090 2002-07-22 Michael Snyder <msnyder@redhat.com>
6092 * aix-thread.c (ops): Rename to aix_thread_ops.
6093 (base_ops): Rename to base_target.
6094 (ops_attach): Rename to aix_thread_attach.
6095 (ops_detach): Rename to aix_thread_detach.
6096 (ops_resume): Rename to aix_thread_detach.
6097 (ops_wait): Rename to aix_thread_wait.
6098 (ops_kill): Rename to aix_thread_kill.
6099 (init_ops): Rename to init_aix_thread_ops.
6100 (ops_fetch_register): Rename to aix_thread_fetch_register.
6101 (ops_store_register): Rename to aix_thread_store_register.
6102 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6103 (ops_thread_alive): Rename to aix_thread_thread_alive.
6104 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6105 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6106 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6107 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6108 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6109 (store_regs_lib): Rename to store_regs_user_thread.
6110 (store_regs_kern): Rename to store_regs_kernel_thread.
6112 2002-07-22 Michael Snyder <msnyder@redhat.com>
6114 * aix-thread.c (ops_prepare_to_store): Eliminate.
6115 (init_ops): Don't initialize ops.prepare_to_store.
6116 (store_regs_kern): Pre-fetch register buffers from child,
6117 because some registers may not be in the cache. Copy
6118 regs from register cache only if they are cached.
6119 (store_regs_lib): Copy regs from register cache only
6121 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6122 fill_gprs64): Ditto.
6124 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6126 * aix-thread.c (gdb_assert.h): Include.
6127 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6128 register sizes (from register cache) match size of buffer holding
6130 (fill_sprs32): Change parameter types to match those in the ptrace()
6132 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6133 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6135 2002-07-22 Michael Snyder <msnyder@redhat.com>
6137 * aix-thread.c (supply_sprs64): Cosmetic change.
6138 (supply_sprs32): Cosmetic change.
6139 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6140 (fill_sprs64): Use regcache_collect instead of read_register.
6141 (store_regs_lib): Use regcache_collect instead of
6142 read_register. Use fill_sprs32 instead of fill_sprs64,
6143 if debugging a 32-bit architecture.
6144 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6145 out of the register cache, instead of passing a pointer into
6146 the register cache directly to ptrace. Use regcache_collect
6147 insteaad of read_register.
6148 (ops_prepare_to_store): Use target_read_registers instead
6149 of read_register_bytes.
6151 2002-07-20 Aidan Skinner <aidan@velvet.net>
6153 * MAINTAINERS: Add self under write after approval.
6155 2002-07-20 Aidan Skinner <aidan@velvet.net>
6157 * ada-tasks.c: Change k&r style function definitions to prototyped
6160 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6162 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6163 * x86-64-tdep.c: Include "objfiles.h".
6164 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6165 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6167 2002-07-17 Michal Ludvig <michal@suse.cz>
6169 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6170 (update_context): Initialise cfa variable.
6172 2002-07-17 Michael Snyder <msnyder@redhat.com>
6174 * aix-thread.c: Shorten some long lines.
6175 Bring comments into line with code spec.
6177 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6179 * infrun.c: Re-indent using gdb_indent.sh.
6181 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6183 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6184 Leave the indentation temporarily untouched, to minimize the diffs.
6186 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6188 * stabsread.c: Make os9k sections of the code obsolete,
6190 * stabsread.h: Make os9k sections of the code obsolete.
6192 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6194 * linux-low.c (regsets_store_inferior_registers): Add free()
6195 at the end of a loop to prevent memory leak.
6196 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6197 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6198 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6200 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6202 2002-07-17 Jim Blandy <jimb@redhat.com>
6204 * macrocmd.c (info_macro_command): Remove newline from error
6207 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6209 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6210 (sh_gdbarch_init): Use it for sh-dsp.
6212 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6214 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6215 64-bit DWARF2 format.
6217 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6219 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6220 <sys/proc.h> when not available.
6222 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6224 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6225 * stabsread.c: Make os9k sections of the code obsolete.
6226 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6227 * config/i386/i386os9k.mt: Make file obsolete.
6228 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6229 (COMMON_OBS): Remove os9kread.o
6230 (SFILES): Remove os9kread.c.
6231 (os9kread.o, remote-os9k.o): Make target obsolete.
6232 * remote-os9k.c: Make file obsolete.
6233 * os9kread.c: Make file obsolete.
6236 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6238 * NEWS: Mention that the FR30 has been made obsolete.
6239 * fr30-tdep.c: Make file obsolete.
6240 * config/fr30/tm-fr30.h: Ditto.
6241 * config/fr30/fr30.mt: Ditto.
6242 * configure.tgt: Make fr30-*-elf obsolete.
6243 * MAINTAINERS: Make fr30-elf obsolete.
6245 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6247 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6248 found is not inside a section.
6250 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6252 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6254 (pdc_realloc): Use xrealloc() instead of realloc().
6256 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6258 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6259 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6260 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6263 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6265 * aix-thread.c (ptrace_check): Eliminate goto.
6266 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6269 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6271 * aix-thread.c (gdbcmd.h): Include.
6272 (DEBUG, DBG, DBG2, dbg): Eliminate.
6273 (debug_aix_thread): New static global.
6274 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6275 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6276 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6277 invocations to DBG and DBG2 macros to test against
6278 ``debug_aix_thread'' and call fprintf_unfiltered().
6279 (_initialize_aix_thread): Add new command "set debug aix-thread".
6281 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6283 From Gerhard Tonn <TON@de.ibm.com>:
6284 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6285 instead of supply_register.
6287 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6289 * dwarf2cfi.c: Include "gdb_assert.h".
6290 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6292 (update_context): Do not use __func__. Add missing ``break''.
6293 (update_context): Do not use __func__.
6295 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6297 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6298 and its setting. Set gdbarch instruction printing functions
6299 directly. For non-rs6000 case use new function
6300 gdb_print_insn_powerpc.
6301 (gdb_print_insn_powerpc): New function.
6303 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6305 * NEWS: Mention that the d30v has been marked obsolete.
6306 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6307 * configure.tgt: Mark d30v-*-* as obsolete.
6308 * d30v-tdep.c: Mark file as obsolete.
6309 * config/d30v/d30v.mt: Ditto.
6310 * config/d30v/tm-d30v.h: Ditto.
6312 2002-07-13 Aidan Skinner <aidan@velvet.net>
6314 * ada-tasks.c (add_task_entry): replace calls to
6315 malloc() with xmalloc
6316 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6318 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6319 ada_finish_decode_line_1, all_sals_for_line
6320 ada_breakpoint_rewrite): replace calls to free() with xfree()
6322 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6324 From Nicholas Duffek (with minor changes by Martin Hunt,
6325 Louis Hamilton, and Kevin Buettner):
6326 * aix-thread.c: New file.
6328 2002-07-12 Petr Sorfa <petrs@caldera.com>
6330 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6331 complaint for invalid attribute class or form.
6332 (read_func_scope): DW_AT_frame_base
6333 better handling of DW_AT_block*.
6334 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6335 better handling of DW_AT_block*.
6336 (read_common_block): DW_AT_location
6337 better handling of DW_AT_block*.
6338 (read_partial_die): DW_AT_location better handling
6340 (new_symbol): DW_AT_external better handling of
6341 DW_AT_block*. Proper initialization of variable
6343 (attr_form_is_block): New function that returns true
6344 if the attribute's form is of DW_FORM_block*.
6346 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6348 * valops.c (find_method_list): Remove comment about
6349 removed STATIC_MEMFUNCP argument.
6350 (value_find_oload_method_list): Likewise.
6352 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6354 From Nicholas Duffek:
6355 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6356 target_new_objfile_hook.
6358 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6360 From Nicholas Duffek:
6361 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6364 2002-07-12 Andrew Cagney <cagney@redhat.com>
6366 * MAINTAINERS: Mention --enable-sim-build-warnings.
6367 (m68hc11-elf): Disable sim build warnings.
6368 (m32r-elf): Mark as broken obsolete candidate.
6369 (x86_64-linux-gnu): Mark as buildable with -Werror.
6370 (arm-elf): Change -w to ``,'' which enables warnings but not
6373 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6375 * bcache.h: Update copyright.
6376 (struct bstring, struct bcache): Move definition to "bcache.c".
6377 Replaced by opaque declaration.
6378 (bcache_xfree): Replace free_bcache.
6379 (bcache_xmalloc, bcache_memory_used): Declare.
6381 * bcache.c: Update copyright.
6382 (struct bstring, struct bcache): Moved to here from "bcache.h".
6384 (bcache_xmalloc, bcache_memory_used): New functions.
6385 (bcache_xfree): Replace function free_bcache.
6387 * Makefile.in (objfiles.o): Add $(bcache_h).
6388 (objfiles_h): Remove $(bcache_h).
6389 (symfile.o): Add $(bcache_h).
6391 * symmisc.c: Update copyright.
6392 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6393 (print_objfile_statistics): Use bcache_memory_used.
6395 * symfile.c: Include "bcache.h".
6396 (reread_symbols): Use bcache_xfree.
6397 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6398 (add_psymbol_to_list): Pass psymbol_cache by value.
6399 (add_psymbol_with_dem_name_to_list): Ditto.
6401 * objfiles.h: Update copyright.
6402 (struct bcache): Declare opaque. Do not include "bcache.h".
6403 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6405 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6407 * objfiles.c: Include "bcache.h". Update copyright.
6408 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6410 (free_objfile): Use bcache_xfree.
6412 2002-07-11 Grace Sainsbury <graces@redhat.com>
6414 * monitor.c (monitor_fetch_register): Make name a constant.
6415 (monitor_store_register): Same.
6417 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6419 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6420 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6421 (finish_block) For non-function blocks, hash the symbol table. For
6422 function blocks, mark the symbol table as unhashed.
6423 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6424 (msymbol_hash_iw): Likewise.
6425 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6427 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6428 (lookup_minimal_symbol): Likewise for both.
6429 * symtab.h (struct block): Add `hashtable' flag. Comment the
6431 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6432 (ALL_BLOCK_SYMBOLS): Update.
6433 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6434 (struct symbol): Add `hash_next' pointer.
6435 * symtab.c (lookup_block_symbol): Search using the hash table when
6437 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6438 (search_symbols, find_addr_symbol): Likewise.
6440 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6441 (read_dst_symtab): Likewise.
6442 * jv-lang.c (get_java_class_symtab): Likewise.
6443 * mdebugread.c: Include "gdb_assert.h".
6444 (shrink_block): Assert that the block being modified is not hashed.
6445 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6446 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6448 (dump_symtab): Recognize hashed blocks.
6449 * printcmd.c (print_frame_args): Assert that function blocks do not
6450 have hashed symbol tables.
6451 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6452 (fill_in_ada_prototype, debug_print_block): Likewise.
6453 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6455 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6457 * stack.c (print_frame): Use result of frame_address_in_block()
6458 instead of fi->pc when evaluating symbols.
6459 (backtrace_command_1): Ditto.
6461 2002-07-11 Andrew Cagney <cagney@redhat.com>
6463 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6466 * arm-tdep.c (arm_register_name): Make return type constant.
6468 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6470 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6472 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6473 * s390-tdep.c (s390_fp_regnum): Ditto.
6474 (s390_read_fp): Ditto.
6475 (s390_pop_frame): Ditto.
6476 (_initialize_s390_tdep): Ditto.
6477 * remote.c (get_remote_state): Ditto.
6478 * procfs.c (mappingflags): Ditto.
6479 * memattr.c (_initialize_mem): Ditto.
6480 * mcore-tdep.c (mcore_pop_frame): Ditto.
6481 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6482 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6483 * language.c (set_case_str): Ditto.
6484 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6485 * frv-tdep.c (new_variant): Ditto.
6486 (frv_stopped_data_address): Ditto.
6487 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6488 (context_alloc): Ditto.
6489 (frame_state_alloc): Ditto.
6490 (unwind_tmp_obstack_init): Ditto.
6491 (unwind_tmp_obstack_free): Ditto.
6492 (cfi_read_fp): Ditto.
6493 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6494 (cris_pop_frame): Ditto.
6495 * c-lang.c (scanning_macro_expansion): Ditto.
6496 (finished_macro_expansion): Ditto.
6497 (c_preprocess_and_parse): Ditto.
6498 * gdbarch.sh: Ditto.
6499 * gdbarch.h, gdbarch.c: Regenerate.
6500 * config/mn10200/tm-mn10200.h: Adjust indentation.
6501 * target.c: Adjust indentation.
6502 * symtab.h: Adjust indentation.
6503 * stabsread.h: Adjust indentation.
6504 * remote-es.c: Adjust indentation.
6505 * os9kread.c: Adjust indentation.
6507 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6509 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6510 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6512 2002-07-10 Grace Sainsbury <graces@redhat.com>
6514 * NEWS: Mention m68k, mcore multi-arching.
6515 * MAINTAINERS: Change status of m68k, mcore to reflect
6518 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6520 * valops.c (find_overload_match): Free oload_syms.
6522 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6524 Define HAVE_SYS_PROC_H if sys/proc.h exists
6525 * configure.in: Add check for sys/proc.h
6526 * config.in: Regenerate.
6527 * configure: Regenerate.
6529 2002-07-09 Grace Sainsbury <graces@redhat.com>
6531 * config/m68k/tm-m68k.h: Remove macros wrapped in
6532 #if !GDB_MULTI_ARCH.
6534 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6536 * config.in, configure: Regenerate.
6538 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6540 * dwarf2cfi.c: Include "gcore.h".
6541 (execute_stack_op): Fix implementation of the
6542 DW_OP_deref and DW_OP_deref_size operators by letting do their
6543 lookup in the target.
6545 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6547 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6548 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6551 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6553 Fix PR gdb/595, gdb/602
6554 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6555 Don't call value_cast, just read the vtable pointer; update comments
6558 2002-07-05 Grace Sainsbury <graces@redhat.com>
6560 * config/mcore/tm-mcore.h: Remove file.
6561 * config/mcore/mcore.mt: Remove definition of TM_FILE
6562 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6564 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6566 * i386bsd-tdep.c: Include "gdb_string.h".
6568 2002-07-04 Grace Sainsbury <graces@redhat.com>
6570 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6571 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6573 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6574 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6575 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6576 (RETVAL_REGNUM): Move macros from tm-mcore.h
6577 (mcore_reg_struct_has_addr): New function.
6578 (mcore_gdbarch_init): Added initializations for the macros removed
6581 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6583 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6584 traditonal string branding within the ELF header.
6586 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6588 * symtab.c (remove_params): New function.
6589 (make_symbol_overload_list): Use it instead of cplus_demangle.
6590 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6592 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6594 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6596 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6598 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6599 and tdep->sigtramp_end.
6600 * i386obsd-nat.c: New file.
6601 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6603 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6604 Don't call get_current_frame().
6606 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6608 * i386-nat.c (child_post_startup_inferior): New function
6609 calling i386_cleanup_dregs if
6610 I386_USE_GENERIC_WATCHPOINTS is defined.
6611 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6612 conditional to acknowledge that i386-nat.c has its
6613 own child_post_startup_inferior function.
6615 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6617 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6618 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6619 instead of MAX_REGISTER_RAW_SIZE.
6620 (i386_extract_return_value, i386_extract_struct_value_address):
6621 Convert to use regcache.
6622 (i386_gdbarch_init): Set max_register_raw_size and
6623 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6624 Set extract_return_value and extract_struct_value_address instead
6625 of their deprecated variants.
6627 Convert i386 target to generic dummy frames.
6628 * i386-tdep.c: Include "symfile.h".
6629 (i386_frameless_signal_p): Consider a function to be frameless if
6630 the pc points at the first instruction of the function.
6631 (i386_frame_chain): Handle (generic) call dummies.
6632 (i386_frame_saved_pc): Likewise.
6633 (i386_frame_init_saved_regs): Remove code dealing with call
6634 dummies on the stack.
6635 (i386_push_dummy_frame): Removed.
6636 (i386_call_dummy_words): Removed.
6637 (i386_fix_call_dummy): Removed.
6638 (i386_push_return_address): New function.
6639 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6640 parameter, and don't call get_current_frame.
6641 (i386_pop_frame): New function.
6642 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6643 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6644 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6645 call_dummy_length to 0, set call_dummy_words to NULL, set
6646 sizeof_call_dummy_words to 0, set fix_call_dummy to
6647 generic_fix_call_dummy, set pc_in_call_dummy to
6648 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6649 generic_push_dummy_frame, set push_return_address to
6650 i386_push_return_address and set frame_chain_valid to
6651 generic_file_frame_chain_valid.
6653 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6655 * gdbarch.sh (struct regcache): Add opaque declaration.
6656 (EXTRACT_RETURN_VALUE): New architecture method.
6657 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6658 * gdbarch.h, gdbarch.c: Regenerate.
6659 * arch-utils.c (legacy_extract_return_value): New function.
6660 * arch-utils.h (legacy_extract_return_value): Declare.
6661 * values.c (value_being_returned): Re-enable code handling
6662 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6663 deprecated_grub_regcache_for_registers call to block handling
6664 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6665 (EXTRACT_RETURN_VALUE): Do not define.
6667 2002-07-03 Grace Sainsbury <graces@redhat.com>
6669 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6670 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6671 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6672 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6673 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6674 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6675 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6676 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6677 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6678 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6679 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6680 argument so the function fits the prototype in the architecture
6682 (mcore_pop_frame): Remove argument so the function fits the
6683 prototype. Use get_current_frame instead of the argument.
6684 (mcore_push_arguments): Change type of struct_return so the
6685 function can be used in the architecture vector.
6686 (mcore_store_struct_return): Add.
6687 (mcore_frame_init_saved_regs): Add.
6688 (mcore_gdbarch_init): Add function calls to replace the macros
6689 removed from tm-mcore.h
6691 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6693 * infcmd.c (print_return_value): Remove compatibility code calling
6694 deprecated_grub_regcache_for_registers.
6696 * values.c: Include "regcache.h".
6697 (value_being_returned): Update. Use
6698 deprecated_grub_regcache_for_registers to extract the register
6700 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6701 ``struct regcache''.
6702 * Makefile.in (values.o): Add dependency on $(regcache_h).
6704 * inferior.h (run_stack_dummy): Change type of second parameter to
6705 a ``struct regcache''.
6706 * valops.c (hand_function_call): Change type of retbuf to ``struct
6707 regcache''. Allocate using regcache_xmalloc, clean using
6708 make_cleanup_regcache_xfree.
6709 * infcmd.c (run_stack_dummy): Update. Use
6710 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6712 * regcache.c (do_regcache_xfree): New function.
6713 (make_cleanup_regcache_xfree): New function.
6714 * regcache.h (make_cleanup_regcache_xfree): Declare.
6716 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6718 * event-top.c (command_line_handler): Don't read past
6719 beginning of buffer.
6721 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6723 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6725 (varobj_create): Store frame_id for root.
6726 (varobj_gen_name): Use xasprintf.
6727 (varobj_update): Save and restore frame using get_frame_id() and
6729 (create_child): Use xasprintf.
6730 (new_root_variable): Initialize frame_id.
6731 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6732 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6733 to prevent memory leak.
6735 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6737 * valops.c (hand_function_call): Move declaration of retbuf to
6738 start of function, allocate using malloc, add a cleanup but before
6739 the inf_status cleanup, cleanup the buffer. Rename local variable
6740 old_chain to inf_status_cleanup.
6742 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6744 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6746 * cli/cli-decode.c (cmd_func_p): New function.
6747 (cmd_func): New function.
6749 * command.h: Add cmd_func() and cmd_func_p().
6751 2002-07-03 Grace Sainsbury <graces@redhat.com>
6753 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6754 (REGISTER_SIZE): Remove.
6755 (MAX_REGISTER_RAW_SIZE): Remove.
6756 (REGISTER_VIRTUAL_TYPE): Remove.
6757 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6758 (REGISTER_NAME): Remove.
6759 (USE_GENERIC_DUMMY_FRAMES): Remove.
6760 (CALL_DUMMY): Remove.
6761 (CALL_DUMMY_START_OFFSET): Remove.
6762 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6763 (CALL_DUMMY_LOCATION): Remove.
6764 (FIX_CALL_DUMMY): Remove.
6765 (CALL_DUMMY_ADDRESS): Remove.
6766 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6767 (SAVE_DUMMY_FRAME_TOS): Remove.
6768 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6769 (mcore_register_virtual_type): New function.
6770 (mcore_register_byte): New function.
6771 (mcore_register_size): New function.
6772 (mcore_register_name): New function.
6773 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6774 macros removed from tm-mcore.h.
6775 (mcore_dump_tdep): Add.
6776 (_initialize_mcore_tdep): Add gdbarch_register call.
6778 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6780 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6781 frameless_look_for_prologue, such that we actually call this
6784 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6786 * frame.h (frame_address_in_block): New function.
6788 * blockframe.c (frame_address_in_block): New function extracted
6789 from get_frame_block().
6790 (get_frame_block): Use frame_address_in_block().
6791 (block_innermost_frame): Use frame_address_in_block() to match
6792 the frame pc address against the block boundaries rather than
6793 the frame pc directly. This prevents a failure when a frame pc
6794 is actually a return-address pointing immediately after the end
6797 2002-07-02 Grace Sainsbury <graces@redhat.com>
6799 * MAINTAINERS: Add self under write after approval.
6801 2002-07-02 Grace Sainsbury <graces@redhat.com>
6803 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6804 used in architecture vector. The default is
6805 m68k_local_breakpoint_from_pc.
6806 (m68k_local_breakpoint_from_pc): Add.
6807 (enum): Add register numbers from tm-m68k.h.
6808 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6810 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6811 GDB_MULTI_ARCH_PARTIAL.
6812 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6813 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6815 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6816 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6817 to enum in m68k-tdep.c
6819 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6821 * solib-osf.c (open_map): Compute the list of shared libraries
6822 loaded by the inferior, rather than the list of libraries loaded
6823 by GDB itself. Otherwise, GDB ends up reading the symbols from
6824 the wrong shared libraries...
6826 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6828 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6829 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6831 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6833 (FRAMELESS_SIGNAL): Remove function.
6834 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6835 i386_linux_saved_pc_after_call): Removed.
6836 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6837 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6838 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6840 * i386-tdep.c (i386_frameless_signal_p): New function.
6841 (i386_frame_chain): Deal with frameless signals.
6842 (i386_sigtramp_saved_sp): New function.
6843 (i386_frame_saved_pc): Deal with frameless signals.
6844 (i386_saved_pc_after_call): Make sure the correct value is
6845 returned just after entry into a sigtramp.
6846 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6847 i386fbsd4_sc_sp_offset): New variables.
6848 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6849 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6850 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6851 similiar to what we already did for sc_pc_offset.
6852 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6855 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6857 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6859 * config/i386/tm-x86-64linux.h: New.
6860 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6862 * config/i386/nm-x86-64.h: Rename to ...
6863 * config/i386/nm-x86-64linux.h: ... this one.
6864 * config/i386/x86-64linux.mh: Reflect the above change.
6866 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6868 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6869 with sigcontext_addr. Add sc_sp_offset.
6870 (i386bsd_sigtramp_saved_pc): Remove prototype.
6871 (i386bsd_sicontext_addr): Add prototype.
6872 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6873 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6874 (i386_svr4_sigtramp_saved_pc): Removed.
6875 (i386_svr4_sigcontext_addr): New function.
6876 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6877 Initialize tdep->sigcontext_addr instead. Initialize
6878 tdep->sc_pc_offset and tdep->sc_sp_offset.
6879 (i386_gdbarch_init): Likewise.
6880 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6882 (i386bsd_sigtramp_saved_pc): Remove function.
6883 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6884 Initialize tdep->sigcontext_addr instead. Initialize
6886 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6887 of tdep->sigtramp_saved_pc.
6888 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6889 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6892 * i386-tdep.c (i386_frameless_function_invocation,
6893 i386_frame_num_args, i386_frame_init_saved_regs,
6894 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6895 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6896 i386_extract_return_value, i386_store_return_value,
6897 i386_extract_struct_value_address, i386_register_virtual_type,
6898 i386_register_convertible, i386_register_convert_to_virtual,
6899 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6900 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6903 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6905 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6907 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6908 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6909 this macro. Include "value.h".
6911 2002-06-30 Aidan Skinner <aidan@velvet.net>
6913 * ada-exp.tab.c: remove as it's a generated file
6914 * ada-lex.c: remove as it's a generated file
6916 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6918 * config/i386/tm-i386.h (struct frame_info, struct
6919 frame_saved_regs, struct value, struct type): Remove forward
6922 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6923 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6924 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6925 (FILL_FPXREGSET): Define.
6927 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6929 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6930 i[3456]86-*-netbsd* case.
6931 * config/i386/tm-obsd.h: Removed.
6932 * config/i386/obsd.mt: Removed.
6933 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6935 (MH_CFLAGS): Add -DYYDEBUG=0.
6937 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6938 i386nbsd_sc_pc_offset on OpenBSD too.
6940 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6941 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6942 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6944 * i386bsd-tdep.c: Include "arch-utils.h".
6945 (i386bsd_aout_in_solib_call_trampoline): New function.
6946 (i386bsd_init_abi): Set in_solib_call_trampoline to
6947 i386bsd_aout_in_solib_call_trampoline.
6948 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6949 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6951 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6953 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6954 (struct obstack, struct bcache): Add opaque declarations.
6955 * Makefile.in (macrotab_h): Update
6957 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6959 * blockframe.c (generic_find_dummy_frame): Change return type to
6960 ``struct regcache''.
6961 (struct dummy_frame): Replace field ``registers'' with regcache, a
6962 struct regcache object.
6963 (generic_find_dummy_frame): Update.
6964 (generic_push_dummy_frame): Update. Use regcache_xfree,
6965 regcache_xmalloc and regcache_cpy.
6966 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6968 (deprecated_generic_find_dummy_frame): Update.
6969 (generic_read_register_dummy): Update. Use
6970 regcache_read_as_address.
6971 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6972 (generic_get_saved_register): Update. Use regcache_read.
6974 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6976 * Makefile.in (objfiles_h): Add $(bcache_h).
6977 * objfiles.h: Include "bcache.h".
6979 * Makefile.in (symtab_h): Remove $(bcache_h).
6980 * symtab.h: Do not include "bcache.h".
6982 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6984 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6985 generic_func_frame_chain_valid.
6987 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6989 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6990 * config/i386/tm-fbsd.h: Likewise.
6992 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6994 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6995 generic_unwind_get_saved_register.
6997 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6999 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7000 * regcache.c (supply_register): Add missing argument to
7001 register_buffer call.
7003 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7005 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7006 Solaris /bin/grep does not not like it. From Peter Schauer.
7008 2002-06-26 Tom Tromey <tromey@redhat.com>
7010 * command.h (add_setshow_cmd): Declare.
7011 (add_setshow_cmd_full): Declare.
7012 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7013 returns void. Use add_setshow_cmd_full.
7014 (add_setshow_cmd_full): New function.
7015 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7016 (add_setshow_boolean_cmd): Likewise.
7018 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7020 * config/vax/tm-vax.h: Protect from multiple inclusion.
7021 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7022 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7023 * config/vax/tm-vaxbsd.h: ...here. New file.
7024 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7026 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7028 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7029 (BELIEVE_PCC_PROMOTION): Remove.
7030 (AP_REGNUM): Move to...
7031 * config/vax/nm-vax.h: ...here.
7032 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7033 (vax_breakpoint_from_pc): New function.
7034 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7035 and gdbarch_believe_pcc_promotion.
7037 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7039 * Makefile.in (vax_tdep_h): Define.
7040 (vax-tdep.o): Use $(vax_tdep_h).
7041 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7042 (vax_dump_tdep): New function.
7043 (_initialize_vax_tdep): Register vax_dump_tdep.
7044 * vax-tdep.h: Include osabi.h.
7045 (struct gdbarch_tdep): New.
7047 2002-06-26 Andrew Cagney <cagney@redhat.com>
7049 * frame.h (deprecated_generic_find_dummy_frame): Rename
7050 generic_find_dummy_frame.
7051 * blockframe.c (generic_find_dummy_frame): Make static.
7052 (deprecated_generic_find_dummy_frame): New function.
7053 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7054 generic_find_dummy_frame with deprecated_find_dummy_frame.
7055 (sh64_nofp_frame_init_saved_regs): Ditto.
7056 (sh_fp_frame_init_saved_regs): Ditto.
7057 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7058 (s390_frame_chain): Ditto.
7059 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7061 2002-06-26 Grace Sainsbury <graces@redhat.com>
7063 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7064 gdbarch vector are at the top.
7066 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7067 (FRAME_ARGS_ADDRESS): Remove.
7068 (FRAME_LOCALS_ADDRESS): Remove.
7069 (FRAME_NUM_ARGS): Remove.
7070 (FRAME_ARGS_SKIP): Remove.
7071 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7072 (m68k_gdbarch_init): Add gdbarch initializations for macros
7073 undefined in tm-m68k.h
7075 2002-06-26 Grace Sainsbury <graces@redhat.com>
7077 * monitor.h: Add the function regname to monitor_ops
7078 structure. This way NUM_REGS does not have to be a constant.
7079 * monitor.c (monitor_fetch_register): Added support for regname
7080 function. The function is called if the array regnames is NULL.
7081 (monitor_store_register): Same.
7082 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7084 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7085 cpu32bug_cmds.regname to point to new function.
7086 * abug-rom.c (abug_regname): Same as above.
7087 (init_abug_cmds): Same.
7088 * dbug-rom.c (dbug_regname): Same as above.
7089 (init_dbug_cmds): Same.
7090 * remote-est.c (est_regname): Same.
7091 (init_est_cmds): Same.
7092 * rom68k-rom.c (rom68k_regname): Same.
7093 (init_rom68k_cmds): Same.
7095 2002-06-25 Tom Tromey <tromey@redhat.com>
7097 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7099 2002-06-25 Andrew Cagney <cagney@redhat.com>
7101 * infrun.c (stop_registers): Change variable's type to ``struct
7103 (xmalloc_inferior_status): Delete function.
7104 (free_inferior_status): Delete function.
7105 (normal_stop): Use regcache_cpy.
7106 (struct inferior_status): Change type of fields ``stop_registers''
7107 and ``registers'' to ``struct regcache''.
7108 (write_inferior_status_register): Use regcache_write.
7109 (save_inferior_status): Instead of calling
7110 xmalloc_inferior_status, allocate the inf_status buffer directly.
7111 Use regcache_dup_no_passthrough and regcache_dup to save the
7113 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7114 Replace the stop_registers regcache instead of overriding it. Use
7115 regcache_xfree. Instead of calling free_inferior_status, xfree
7116 the buffer directly.
7117 (discard_inferior_status): Use regcache_xfree. Instead of calling
7118 free_inferior_status, xfree the buffer directly.
7119 (build_infrun): Use regcache_xmalloc.
7120 (_initialize_infrun): Delete redundant call to build_infrun.
7122 * Makefile.in (infcmd.o): Add $(regcache_h).
7124 * infcmd.c: Include "regcache.h".
7125 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7126 obtain the address of `stop_registers' register buffer.
7127 (print_return_value): Ditto.
7129 * inferior.h (struct regcache): Add opaque declaration.
7130 (stop_registers): Change variable's declared type to ``struct
7133 2002-06-24 Tom Tromey <tromey@redhat.com>
7135 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7136 * target.c (initialize_targets): Fixed typo in
7137 trust-readonly-sections `show' documentation.
7139 * main.c: Marked all strings with _().
7141 2002-06-24 Don Howard <dhoward@redhat.com>
7143 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7144 that means max CORE_ADDR+1.
7145 (lookup_mem_region): Ditto.
7146 (mem_info_command): Ditto.
7148 2002-06-24 Grace Sainsbury <graces@redhat.com>
7150 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7151 (REGISTER_BYTES_OK): Remove.
7152 (REGISTER_BYTES): Remove.
7153 (STORE_STRUCT_RETURN): Remove.
7154 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7155 (STORE_RETURN_VALUE): Remove.
7156 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7157 (FRAME_CHAIN): Remove.
7158 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7159 (FRAME_SAVED_PC): Remove.
7160 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7161 (m68k_store_struct_return): Add.
7162 (m68k_deprecated_extract_return_value): Add.
7163 (m68k_deprecated_extract_struct_value_address): Add.
7164 (m68k_store_return_value): Add.
7165 (m68k_frame_chain): Add.
7166 (m68k_frameless_function_invocation): Add.
7167 (m68k_frame_saved_pc): Add.
7168 (m68k_gdbarch_init): added set_gdbarch calls for new
7169 functions and deleted macros.
7171 2002-06-23 Tom Tromey <tromey@redhat.com>
7173 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7174 (ALLDEPFILES): Likewise.
7175 (udiheaders): Removed.
7176 (udip2soc.o): Likewise.
7177 (udi2go32.o): Likewise.
7179 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7181 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7183 * infrun.c (_initialize_infrun): Delete unnecessary call to
7186 * regcache.h: Update comments describing the regcache_cpy family
7188 (regcache_save, regcache_restore): Delete declaration.
7189 (regcache_save_no_passthrough): Delete declaration.
7190 (regcache_restore_no_passthrough): Delete declaration.
7191 * regcache.c (regcache_save): Delete function.
7192 (regcache_save_no_passthrough): Delete function.
7193 (regcache_restore): Delete function.
7194 (regcache_restore_no_passthrough): Delete function.
7196 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7198 * config/m68k/tm-m68k.h: Fix typo.
7199 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7200 (m68k_frame_init_saved_regs): Declare.
7202 2002-06-21 Jim Blandy <jimb@redhat.com>
7204 Remove some vestiges of Harris 88k support.
7205 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7206 register numbering quirk.
7207 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7208 odd symbols occurring in Harris 88k ELF targets.
7210 2002-06-21 Tom Tromey <tromey@redhat.com>
7212 * gdb_locale.h: New file.
7213 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7214 (defs_h): Added gdb_locale.h.
7215 * configure, config.in: Rebuilt.
7216 * configure.in (PACKAGE): Define.
7217 * defs.h: Include gdb_locale.h.
7218 * main.c (captured_main): Call setlocale, bindtextdomain,
7221 2002-06-21 Dave Brolley <brolley@redhat.com>
7223 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7224 * config/frv/frv.mt: New file.
7225 * config/frv/tm-frv.h: New file.
7226 * configure.tgt: Support frv-*-*.
7227 * Makefile.in (frv-tdep.o): New target.
7228 * frv-tdep.c: New file.
7229 * NEWS: Mention frv.
7231 2002-06-21 Dave Brolley <brolley@redhat.com>
7233 * MAINTAINERS: Add self to "Write After Approval" list.
7235 2002-06-21 Grace Sainsbury <graces@redhat.com>
7237 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7238 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7239 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7240 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7241 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7243 * m68k-tdep.c: Include arch-utils.h
7244 (m68k_register_raw_size): Add.
7245 (m68k_register_virtual_size): Add.
7246 (m68k_register_virtual_type): Add.
7247 (m68k_register_name): Add.
7248 (m68k_stack_align): Add.
7249 (m68k_register_byte): Add.
7250 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7253 2002-06-21 Grace Sainsbury <graces@redhat.com>
7255 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7256 m68k_find_saved_regs.
7257 (m68k_pop_frame): Removed saved_regs structure, and replaced
7258 references to it with frame->saved_regs.
7259 (m68k_gdbarch_init): Added function calls to initialize the
7261 (m68k_fix_call_dummy): Add.
7262 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7263 (CALL_DUMMY): Remove.
7264 (CALL_DUMMY_LENGTH): Remove.
7265 (CALL_DUMMY_START_OFFSET): Remove.
7266 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7267 (FIX_CALL_DUMMY): Remove.
7268 (PUSH_DUMMY_FRAME): Remove.
7269 (POP_FRAME): Remove.
7271 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7273 * parse.c (parse_fprintf): New function used to avoid calls to
7274 fprintf in bison parser generated debug code.
7275 * parser-defs.h: Declaration of new parse_fprintf function.
7276 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7277 Set YYDEBUG to 1 by default.
7278 Set YYFPRINTF as parse_fprintf.
7280 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7282 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7284 (pointer_encoding, enum ptr_encoding): New.
7285 (execute_cfa_program): Take care about pointer encoding.
7286 (dwarf2_build_frame_info): Only call parse_frame_info for
7287 .debug_frame and .eh_frame.
7288 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7289 fixed augmentation handling, added relative addressing,
7290 ignore duplicate FDEs. Added comments.
7291 * dwarf2cfi.c: Reindented.
7293 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7295 * event-top.c (command_handler): Don't use space_at_cmd_start
7296 unless there is sbrk() on the host. Assign time and space data
7297 to union fields of the appropriate length.
7299 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7301 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7302 x86_64_register_name. Return type changed to 'const char *'.
7303 (x86_64_register_name2nr): Rename to x86_64_register_number.
7304 (x86_64_gdbarch_init): Update to reflect the change.
7305 * x86-64-tdep.h: Ditto.
7306 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7307 (supply_fpregset): Ditto.
7309 2002-06-19 Andrew Cagney <cagney@redhat.com>
7311 * regcache.h: Update copyright.
7312 (struct regcache, struct gdbarch): Add opaque declarations.
7313 (current_regcache): Declare global variable.
7314 (regcache_read, regcache_write): Add gdbarch parameter.
7315 (regcache_save, regcache_save_no_passthrough)
7316 (regcache_restore, regcache_restore_no_passthrough)
7317 (regcache_dup, regcache_dup_no_passthrough)
7318 (regcache_cpy, regcache_cpy_no_passthrough)
7319 (deprecated_grub_regcache_for_registers)
7320 (deprecated_grub_regcache_for_register_valid)
7321 (regcache_valid_p): Add function declarations.
7323 * regcache.c: Update copyright.
7324 (regcache_descr_handle): New global variable.
7325 (struct regcache_descr): Define.
7326 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7327 (regcache_descr, xfree_regcache_descr): New functions.
7328 (struct regcache): Define.
7329 (regcache_xmalloc, regcache_xfree): New functions.
7330 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7331 (regcache_dup, regcache_dup_no_passthrough): New functions.
7332 (regcache_valid_p, regcache_read_as_address): New functions.
7333 (deprecated_grub_regcache_for_registers): New function.
7334 (deprecated_grub_regcache_for_register_valid): New function.
7335 (current_regcache): New global variable.
7336 (register_buffer): Add regcache parameter. Update calls.
7337 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7338 (read_register_gen, write_register_gen): Update register_buffer
7339 call. Test for legacy_p instead of gdbarch_register_read_p or
7340 gdbarch_register_write_p.
7341 (regcache_collect): Update register_buffer call.
7342 (build_regcache): Rewrite. Use deprecated grub functions.
7343 (regcache_save, regcache_save_no_passthrough): New functions.
7344 (regcache_restore, regcache_restore_no_passthrough): New
7346 (_initialize_regcache): Create the regcache_data_handle. Swap
7347 current_regcache global variable.
7349 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7350 parameter to regcache_read and regcache_write calls.
7351 (sh4_register_read): Ditto.
7352 (sh64_pseudo_register_read): Ditto.
7353 (sh64_register_read): Ditto.
7354 (sh_pseudo_register_write): Ditto.
7355 (sh4_register_write): Ditto.
7356 (sh64_pseudo_register_write): Ditto.
7357 (sh64_register_write): Ditto.
7359 * defs.h (XCALLOC): Define.
7361 2002-06-19 Grace Sainsbury <graces@redhat.com>
7363 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7364 * m68k-tdep.c (m68k_gdbarch_init): Added.
7365 (m68k_dump_tdep): Added.
7367 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7369 * ada-lang.c (fill_in_ada_prototype): Update comment.
7371 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7373 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7375 (mips_abi_string, mips_abi_strings): New.
7376 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7377 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7378 tdep->mips_abi_string. Honor mips_abi_string. Default to
7379 O32 if no ABI is found.
7380 (mips_dump_tdep): Use mips_abi_strings.
7381 (mips_abi_update): New function.
7382 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7383 ``set mips abi'' and ``show mips abi''. Check the size of
7386 2002-06-19 Andrew Cagney <cagney@redhat.com>
7388 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7391 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7393 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7394 current frame using only the first stack size adjustment. All
7395 subsequent size adjustments are not considered to be part of
7396 the "static" part of the current frame.
7397 Compute the address of the saved registers relative to the
7398 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7399 in use in this frame.
7401 2002-06-18 Don Howard <dhoward@redhat.com>
7403 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7404 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7405 suggesting this solution.
7407 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7409 * config/romp/xm-rtbsd.h: Delete file.
7410 * config/romp/rtbsd.mh: Delete file.
7412 2002-06-18 Keith Seitz <keiths@redhat.com>
7414 * breakpoint.c (condition_command): Post breakpoint_modify
7415 when a condition is added to an existing breakpoint.
7416 (commands_command): Likewise for commands.
7417 (set_ignore_count): Likewise for ignore counts.
7418 If no tty, do not simply return, still need to send event
7420 (ignore_command): Only print a newline if the command came
7422 Don't call breakpoints_changed, since this is now properly
7423 handled by set_ignore_count.
7425 2002-06-18 Andrew Cagney <cagney@redhat.com>
7427 * MAINTAINERS: Note that cris-elf target can be compiled with
7429 * cris-tdep.c (cris_register_name): Make return type constant.
7430 (cris_breakpoint_from_pc): Ditto.
7432 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7434 * frame.h (struct frame_info): Change type of context to
7437 2002-06-17 Andrew Cagney <cagney@redhat.com>
7439 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7441 * gdbarch.h, gdbarch.c: Regenerate.
7442 * config/mips/tm-mips.h (mips_register_name): Update.
7443 * i386-tdep.h (i386_register_name): Update.
7444 * mips-tdep.c (mips_register_name): Update
7445 * alpha-tdep.c (alpha_register_name): Update.
7446 * arch-utils.c (legacy_register_name): Update.
7447 * arch-utils.h (legacy_register_name): Update.
7448 * avr-tdep.c (avr_register_name): Update.
7449 * ia64-tdep.c (ia64_register_name): Update.
7450 * i386-tdep.c (i386_register_name): Update.
7451 * sparc-tdep.c (sparc32_register_name): Update.
7452 (sparc64_register_name): Update.
7453 (sparclite_register_name): Update.
7454 (sparclet_register_name): Update.
7455 * sh-tdep.c (sh_generic_register_name): Update.
7456 (sh_sh_register_name): Update.
7457 (sh_sh3_register_name): Update.
7458 (sh_sh3e_register_name): Update.
7459 (sh_sh_dsp_register_name): Update.
7460 (sh_sh3_dsp_register_name): Update.
7461 (sh_sh4_register_name): Update.
7462 (sh_sh64_register_name): Update.
7463 * s390-tdep.c (s390_register_name): Update.
7464 * rs6000-tdep.c (rs6000_register_name): Update.
7465 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7466 (ns32k_register_name_32382): Update.
7467 * d10v-tdep.c (d10v_ts2_register_name): Update.
7468 (d10v_ts3_register_name): Update.
7469 * xstormy16-tdep.c (xstormy16_register_name): Update.
7470 * vax-tdep.c (vax_register_name): Update.
7471 * v850-tdep.c (v850_register_name): Update.
7472 * m68hc11-tdep.c (m68hc11_register_name): Update.
7473 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7474 (am33_register_name): Update.
7476 2002-06-17 Grace Sainsbury <graces@redhat.com>
7478 * m68k-tdep.c: Reindented.
7480 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7482 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7483 list of predefined types.
7485 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7487 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7488 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7489 REGISTER_CONVERT_TO_RAW): Remove defines.
7490 (i386_register_virtual_type, i386_register_convertible,
7491 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7493 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7494 macros mentioned above.
7496 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7497 (i386lynx_saved_pc_after_call): Remove prototype.
7498 * i386ly-tdep.c: Include "i386-tdep.h".
7499 (i386lynx_saved_pc_after_call): Make static. Use
7500 read_memory_nobpt instead of read_memory. Use
7501 read_memory_unsigned_integer instead of read_memory_integer.
7502 (i386lynx_init_abi): New function.
7503 (i386lynx_coff_osabi_sniffer): New function.
7504 (_initialize_i386bsd_tdep): New function.
7506 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7507 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7508 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7509 (i386_fix_call_dummy): Remove prototype.
7510 * i386-tdep.c (i386_call_dummy_words): New variable.
7511 (i386_gdbarch_init): Adjust for removal of the
7512 macros mentioned above.
7514 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7516 * command.h (add_setshow_auto_boolean_cmd): Replace
7517 add_set_auto_boolean_cmd.
7518 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7519 add_set_auto_boolean_cmd.
7520 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7521 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7522 mask-address'' command.
7523 (show_mask_address): Add cmd parameter.
7524 * remote.c (add_packet_config_cmd): Update. Change type of
7525 set_func and show_func to cmd_sfunc_ftype.
7526 (_initialize_remote): Update `set remote Z-packet'
7527 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7528 (show_remote_protocol_e_packet_cmd): Ditto.
7529 (show_remote_protocol_E_packet_cmd): Ditto.
7530 (show_remote_protocol_P_packet_cmd): Ditto.
7531 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7532 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7533 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7534 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7535 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7536 (show_remote_protocol_Z_packet_cmd): Ditto.
7537 (show_remote_protocol_binary_download_cmd): Ditto.
7538 (show_remote_cmd): Pass NULL to all of above.
7540 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7542 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7543 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7544 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7545 POP_FRAME): Remove defines.
7546 (i386_push_arguments, i386_store_struct_return,
7547 i386_extract_return_value, i386_store_return_value,
7548 i386_extract_struct_value_address, i386_push_dummy_frame,
7549 i386_pop_frame): Renove prototypes.
7550 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7551 macros mentioned above.
7553 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7555 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7556 add_set_boolean_cmd.
7557 (add_setshow_cmd): New function.
7558 * command.h (add_setshow_boolean_cmd): Replace
7559 add_set_boolean_cmd.
7560 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7561 and ``set rdiromatzero''.
7562 * maint.c (_initialize_maint_cmds): Update commented out code.
7563 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7564 * target.c (initialize_targets): Update `set
7565 trust-readonly-sections'.
7566 * remote.c (_initialize_remote): Update `set remotebreak'.
7568 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7570 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7571 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7572 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7573 fit into multi-arch framework.
7574 (i386_breakpoint_from_pc): New function.
7575 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7578 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7579 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7580 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7581 (i386_frameless_function_invocation, i386_frame_num_args,
7582 i386_frame_init_saved_regs): Remove prototypes.
7583 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7584 macros mentioned above.
7586 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7588 * cli/cli-decode.c (set_cmd_cfunc): Update.
7589 (set_cmd_sfunc): Update.
7590 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7591 (set_cmd_sfunc, set_cmd_cfunc): Update.
7592 * cli/cli-decode.h: Update.
7594 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7596 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7597 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7599 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7601 * defs.h (auto_boolean): Declare enum.
7602 * command.h (cmd_auto_boolean): Delete enum.
7603 * mips-tdep.c (mask_address_var): Update.
7604 (mips_mask_address_p): Update.
7605 (show_mask_address): Update.
7606 * remote.c (struct packet_config): Update.
7607 (update_packet_config): Update.
7608 (show_packet_config_cmd): Update.
7609 (packet_ok): Update.
7610 (add_packet_config_cmd): Update.
7611 (_initialize_remote):
7612 * command.h: Update.
7613 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7614 (do_setshow_command): Update.
7615 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7616 * cli/cli-decode.h: Update.
7618 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7620 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7621 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7622 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7623 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7624 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7625 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7627 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7628 list of DJGPP COFF targets.
7630 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7631 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7632 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7633 (FP0_REGNUM): Remove define.
7634 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7635 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7636 (i386_register_virtual_size): Remove protoype.
7637 * i386-tdep.c (i386_register_virtual_size): Removed.
7638 (i386_extract_return_value, i386_store_return_value): Use
7639 FP0_REGNUM instead of NUM_FREGS to determine whether the
7640 floating-point registers are available.
7641 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7642 Adjust for removal of macros mentioned above.
7644 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7646 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7648 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7650 (supply_gregset, fill_gregset): Remove use of register keyword and
7651 remove declaration for regmap. Use I386_NUM_GREGS instead of
7652 NUM_REGS and NUM_FREGS.
7653 (FPREGSET_FSAVE_OFFSET): Remove.
7654 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7655 NUM_FREGS to determine whether the floating-point registers are
7658 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7659 gnu_store_registers): Replace usage of NUM_GREGS with
7662 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7663 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7664 usage of NUM_GREGS with I386_NUM_GREGS.
7666 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7668 * i386bsd-nat.c: Include "i386-tdep.h".
7669 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7672 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7673 and associated comment. They no longer make any sense, since we
7674 don't use this file anymore on Linux.
7676 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7677 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7678 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7679 elements in these arrays.
7680 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7683 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7685 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7686 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7688 2002-06-14 Andrew Cagney <cagney@redhat.com>
7690 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7691 EXTRACT_RETURN_VALUE.
7692 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7693 EXTRACT_STRUCT_VALUE_ADDRESS.
7694 * gdbarch.h, gdbarch.c: Regenerate.
7696 * values.c (value_being_returned): Handle
7697 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7698 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7700 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7701 * arm-tdep.c (arm_gdbarch_init): Update.
7702 * avr-tdep.c (avr_gdbarch_init): Update.
7703 * cris-tdep.c (cris_gdbarch_init): Update.
7704 * d10v-tdep.c (d10v_gdbarch_init): Update.
7705 * ia64-tdep.c (ia64_gdbarch_init): Update.
7706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7707 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7708 * s390-tdep.c (s390_gdbarch_init): Update.
7709 * sh-tdep.c (sh_gdbarch_init): Update.
7710 * s390-tdep.c (s390_gdbarch_init): Update.
7711 * sparc-tdep.c (sparc_gdbarch_init): Update.
7712 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7713 * v850-tdep.c (v850_gdbarch_init): Update.
7714 * vax-tdep.c (vax_gdbarch_init): Update.
7715 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7716 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7718 * config/arc/tm-arc.h: Update.
7719 * config/d30v/tm-d30v.h: Update.
7720 * config/fr30/tm-fr30.h: Update.
7721 * config/h8300/tm-h8300.h: Update.
7722 * config/h8500/tm-h8500.h: Update.
7723 * config/i386/tm-i386.h: Update.
7724 * config/i386/tm-ptx.h: Update.
7725 * config/i386/tm-symmetry.h: Update.
7726 * config/i960/tm-i960.h: Update.
7727 * config/m32r/tm-m32r.h: Update.
7728 * config/m68k/tm-delta68.h: Update.
7729 * config/m68k/tm-linux.h: Update.
7730 * config/m68k/tm-m68k.h: Update.
7731 * config/m88k/tm-m88k.h: Update.
7732 * config/mcore/tm-mcore.h: Update.
7733 * config/mips/tm-mips.h: Update.
7734 * config/mn10200/tm-mn10200.h: Update.
7735 * config/pa/tm-hppa.h: Update.
7736 * config/pa/tm-hppa64.h: Update.
7737 * config/sparc/tm-sp64.h: Update.
7738 * config/sparc/tm-sparc.h: Update.
7739 * config/sparc/tm-sparclet.h: Update.
7740 * config/z8k/tm-z8k.h: Update.
7742 2002-06-14 Andrew Cagney <cagney@redhat.com>
7744 * Makefile.in (i386_linux_tdep_h): Define.
7745 (i386_tdep_h, i387_tdep_h): Define.
7746 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7747 $(i386_tdep_h) and $(i387_tdep_h).
7748 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7750 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7752 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7753 Already covered by the default.
7755 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7756 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7757 (i386_gdbarch_init): Initialize long_double_format and long_double
7760 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7761 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7763 * config/i386/i386sol2.mh: ... here.
7764 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7765 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7766 (SIGCONTEXT_PC_OFFSET): Remove define.
7767 (IN_SIGTRAMP): Remove define.
7768 * i386-sol2-tdep.c: New file.
7770 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7771 * config/i386/tm-i386nw.h: Removed.
7773 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7774 USE_STRUCT_CONVENTION): Remove defines.
7775 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7776 (get_longjmp_target): Remove prototype.
7777 (IN_SIGTRAMP): Remove define.
7778 (i386bsd_in_sigtramp): Remove prototype.
7779 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7780 function. Update comment accordingly
7781 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7782 (FRAME_SAVED_PC): Remove define.
7783 (i386bsd_frame_saved_pc): Remove prototype.
7784 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7785 GET_LONGJMP_TARGET): Remove defines.
7786 (get_longjmp_target): Remove prototype.
7787 (IN_SIGTRAMP): Remove define.
7788 (i386bsd_in_sigtramp): Remove prototype.
7789 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7790 function. Update comment accordingly
7791 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7792 (FRAME_SAVED_PC): Remove define.
7793 (i386bsd_frame_saved_pc): Remove prototype.
7794 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7796 (USE_STRUCT_CONVENTION): Remove prototype.
7797 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7799 (_initialize_i386bsd_nat): Revise logic to determine some
7800 constants at compile time when compiling a native GDB. Warn if
7801 things don't match up with what we expect.
7802 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7804 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7805 to use date stored in `struct gdbarch_tdep'.
7806 (i386bsd_sigcontext_offset): Remove varaible.
7807 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7808 stored in `struct gdbarch_tdep'.
7809 (i386bsd_frame_saved_pc): Make static.
7810 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7811 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7812 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7813 i386fbsd4_sc_pc_offset): New variables.
7814 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7815 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7817 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7819 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7820 Modify the value of i386fbsd_sigtramp_start and
7821 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7822 i386fbsd_sigtramp_end.
7823 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7826 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7827 define to i386-linux-tdep.h.
7828 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7829 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7831 (i386_linux_register_name, i386_linux_register_byte,
7832 i386_linux_register_raw_size): Remove prototypes.
7833 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7834 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7835 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7836 TARGET_WRITE_PC): Remove defines.
7837 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7838 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7839 i386_linux_write_pc): Remove prototypes.
7840 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7841 (get_longjmp_target): Remove prototype.
7842 * i386-linux-tdep.h: New file.
7843 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7844 * i386-linux-tdep.c: Include "i386-tdep.h" and
7845 "i386-linux-tdep.h".
7846 (i386_linux_register_name, i386_linux_register_byte,
7847 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7848 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7850 (i386_linux_init_abi): New function.
7851 (_initialize_i386_linux_tdep): New function.
7853 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7854 (i386_saved_pc_after_call): Remove prototype.
7855 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7856 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7857 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7858 (i386_register_name, i386_stab_reg_to_regnum,
7859 i386_dwarf_reg_to_regnum): Remove prototypes.
7860 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7861 SIZEOF_SSE_REGS): Remove defines.
7862 (REGISTER_BYTES): Remove define.
7863 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7864 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7865 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7866 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7867 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7868 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7869 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7870 (get_longjmp_target): Remove prototype.
7871 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7872 (sigtramp_saved_pc): Remove define.
7873 (i386v4_sigtramp_saved_pc): Remove prototype.
7874 * config/i386/tm-go32.h (FRAME_CHAIN,
7875 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7876 (i386go32_frame_saved_pc): Remove prototype.
7877 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7878 (get_longjmp_target): Remove prototype.
7879 * i386-tdep.h: Include "osabi.h".
7880 (enum i386_abi): Removed.
7881 (enum struct_return): New enum.
7882 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7883 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7884 sc_pc_offset members.
7885 (i386_gdbarch_register_os_abi): Remove prototype.
7886 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7887 I386_SSE_NUM_REGS): New defines.
7888 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7889 I386_SSE_SIZEOF_REGS): New defines.
7890 (i386_register_name, i386_register_byte, i386_register_raw_size):
7892 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7893 (i386bsd_sigtramp_saved_pc): New prototype.
7894 * i386-tdep.c: Don't include "elf-bfd.h".
7895 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7896 i386_frame_chain, i386_saved_pc_after_call): Make static.
7897 (i386_frame_saved_pc): Rewrite to call architecture dependent
7898 function to deal with signal handlers. Make static.
7899 (i386go32_frame_saved_pc): Removed.
7900 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7902 (i386_get_longjmp_target): New function.
7903 (default_struct_convention, pcc_struct_convention,
7904 reg_struct_convention, valid_conventions, struct_convention): New
7906 (i386_use_struct_convention): New function.
7907 (i386v4_sigtramp_saved_pc): Renamed to
7908 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7909 (i386_pc_in_sigtramp): New function.
7910 (i386_abi_names): Removed.
7911 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7912 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7914 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7915 i386_gdbarch_register_os_abi): Removed.
7916 (struct i386_abi_handler): Removed.
7917 (i386_abi_handler_list): Removed.
7918 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7920 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7921 i386_nw_init_abi): New functions.
7922 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7923 Use set_gdbarch_xxx() calls instead of relying on macros for a
7925 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7926 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7927 Register the various architecture variants defined in this file.
7929 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7931 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7932 (struct main_type): Remove arg_types member. Update comments for
7934 (TYPE_ARG_TYPES): Remove.
7935 (TYPE_FN_FIELD_ARGS): Update.
7936 (smash_to_method_type): Update prototype.
7938 * c-typeprint.c (cp_type_print_method_args): Take method type
7939 instead of argument list. Use new argument layout. Simplify.
7940 (c_type_print_args): Use new argument layout. Simplify.
7941 (c_type_print_base): Update call to cp_type_print_method_args.
7942 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7943 argument; use die->type instead. Update call to
7944 smash_to_method_type.
7945 (read_structure_scope): Update call to dwarf2_add_member_fn.
7946 * gdbtypes.c (allocate_stub_method): Update comment.
7947 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7948 Use new argument layout.
7949 (check_stub_method): Use new argument layout. Don't count
7950 void as an argument.
7951 (print_arg_types): Update comments. Use new argument layout.
7952 (recursive_dump_type): Don't print arg_types member.
7953 * hpread.c (hpread_read_struct_type): Use new argument layout.
7954 (fixup_class_method_type): Likewise.
7955 (hpread_type_lookup): Likewise.
7956 * stabsread.c (read_type): Update calls to read_args and
7957 smash_to_method_type.
7958 (read_args): Use new argument layout. Simplify.
7959 * valops.c (typecmp): Use new argument layout. Update parameters
7960 and comments. Simplify.
7961 (hand_function_call): Use new argument layout.
7962 (search_struct_method): Update call to typecmp.
7963 (find_overload_match): Use new argument layout.
7965 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7967 * NEWS: Mention multithreaded debug support for gdbserver.
7969 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7971 * MAINTAINERS: Mention NEWS.
7973 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7975 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7976 (struct mips_objfile_private, compare_pdr_entries): New.
7977 (non_heuristic_proc_desc): Read the ".pdr" section if it
7980 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7982 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7983 (arm_debug): New static variable.
7984 (_initialize_arm_tdep): Add ``set debug arm'' command.
7986 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7988 * Makefile.in (sim_arm_h): Define.
7989 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7990 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7991 (arm_register_sim_regno): New function, map an internal REGNUM
7992 onto a simulator register number.
7993 (arm_gdbarch_init): Set register_sim_regno.
7995 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7997 * MAINTAINERS: Add self.
7999 2002-06-11 Jim Blandy <jimb@redhat.com>
8001 * source.c (source_info): Mention whether the symtab has
8002 information about preprocessor macros.
8004 Call the command `info macro', not `show macro'.
8005 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8007 (_initialize_macrocmd): Register `info_macro_command' in
8008 `infolist', not `showlist'.
8010 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8012 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8013 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8014 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8015 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8016 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8018 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8019 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8020 (_initialize_mips_tdep): Remove dead code.
8021 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8022 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8023 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8024 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8025 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8026 MIPS_LAST_FP_ARG_REGNUM): Remove.
8028 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8030 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8031 (unwind_tmp_obstack_free, parse_frame_info)
8032 (update_context, cfi_read_fp, cfi_write_fp)
8033 (cfi_frame_chain, cfi_init_extra_frame_info)
8034 (cfi_virtual_frame_pointer): Use the above function.
8035 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8037 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8039 * v850-tdep.c (v850_type_is_scalar): New function.
8040 (v850_use_struct_convention): Match current gcc implementation
8041 as close as possible.
8042 (v850_push_arguments): Fix stack_offset handling. Don't write
8043 struct_addr into register. This is done by v850_store_struct_return.
8044 (v850_extract_return_value): Care for structs.
8045 (v850_store_return_value): Ditto.
8046 (v850_store_struct_return): Actually write address.
8048 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8050 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8051 without debug information too.
8053 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8055 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8056 Make multi-arch pure.
8057 * gdbarch.h, gdbarch.c: Re-generate.
8058 * arm-tdep.c (arm_print_float_info): Update.
8059 * arch-utils.h (default_print_float_info): Update.
8060 * arch-utils.c (default_print_float_info): Update.
8061 * infcmd.c (float_info): Update call.
8063 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8065 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8066 the front of the initialize list.
8068 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8070 * infrun.c (struct inferior_status): Replace fields
8071 selected_frame_address and selected_level with field
8073 (save_inferior_status): Update. Use get_frame_id.
8074 (struct restore_selected_frame_args): Delete.
8075 (restore_selected_frame): Update. Use frame_find_by_id.
8076 (restore_inferior_status): Update.
8078 * breakpoint.h (struct breakpoint): Change type of
8079 watchpoint_frame to frame_id.
8080 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8081 call to get_current_frame.
8082 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8084 (watchpoint_check): Use frame_find_by_id.
8086 * frame.h (record_selected_frame): Delete declaration.
8087 * stack.c (record_selected_frame): Delete function.
8089 * frame.h (struct frame_id): Define.
8090 (get_frame_id): Declare.
8091 (frame_find_by_id): Declare.
8092 * frame.c (frame_find_by_id): New function.
8093 (get_frame_id): New function.
8095 2002-06-10 Andrey Volkov <avolkov@transas.com>
8097 * ser-e7kpc.c: Fix duplicated define and call of
8098 _initialize_ser_e7000pc
8100 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8102 * signals/signals.c (target_signal_from_host): Fix #ifdef
8104 (do_target_signal_to_host): Likewise.
8106 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8108 * mips-tdep.c (mips_find_abi_section): New function.
8109 (mips_gdbarch_init): Call it.
8111 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8113 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8114 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8115 after Andrew's 2002-06-08 gdbarch change.
8117 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8119 * i386-linux-nat.c (suppy_gregset): Don't supply
8120 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8122 (fill_gregset): Don't fetch it under the same circumstances.
8124 2002-06-09 Andrew Cagney <cagney@redhat.com>
8126 * Makefile.in (callback_h): Define.
8127 (remote_sim_h): Update path to remote-sim.h.
8128 (remote-rdp.o): Add $(callback_h).
8129 (remote-sim.o): Use $(callback_h).
8130 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8131 * remote-rdp.c: Include "gdb/callback.h".
8133 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8135 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8136 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8138 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8140 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8141 * rdi-share/serpardr.c: Ditto.
8142 * rdi-share/unixcomm.c: Ditto.
8143 * rdi-share/serdrv.c: Ditto.
8144 * rdi-share/hostchan.h: Ditto.
8145 * rdi-share/hostchan.c: Ditto.
8146 * rdi-share/host.h: Ditto.
8147 * rdi-share/devsw.c: Ditto.
8149 * objfiles.h: Change type of obj_private to void pointer.
8150 * pa64solib.c: Update copyright. Don't include "assert.h", use
8151 strcmp instead of STREQ, use LONGEST, do not use PTR
8152 * somsolib.c: Ditto.
8154 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8155 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8156 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8158 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8160 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8161 (default_get_saved_register): Delete function.
8162 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8163 generic_unwind_get_saved_register.
8164 * gdbarch.h, gdbarch.c: Re-generate.
8166 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8168 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8169 generic_func_frame_chain_valid.
8170 * gdbarch.h, gdbarch.c: Re-generate.
8171 * blockframe.c (generic_func_frame_chain_valid): Only check
8172 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8173 passing FP to PC_IN_CALL_DUMMY.
8176 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8178 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8179 (register_gdbarch_data): Initialize init_p.
8180 (gdbarch_data): Initialize data pointer using the init function.
8181 (init_gdbarch_data): Delete function.
8182 (gdbarch_update_p): Update.
8183 (initialize_non_multiarch): Update.
8184 (struct gdbarch): Add field initialized_p.
8185 * gdbarch.h, gdbarch.c: Re-generate.
8187 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8189 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8190 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8191 better do the things actually here.
8192 * x86-64-tdep.c (x86_64_register_name2nr): New.
8193 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8194 (x86_64_gdbarch_init): Respect the above change.
8195 * x86-64-tdep.h (x86_64_register_name2nr)
8196 (x86_64_register_nr2name): Add prototypes.
8197 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8199 2002-06-06 Michael Snyder <msnyder@redhat.com>
8201 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8202 Delete extra braces and re-indent.
8203 (d10v_store_return_value): Char return values
8204 must be shifted over by one byte in R0.
8205 (d10v_extract_return_value): Delete extra braces, re-indent.
8207 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8209 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8210 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8211 (d10v_integer_to_address): Rewrite.
8212 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8213 the d10v specific functions which take care of converting to the
8216 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8218 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8219 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8221 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8223 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8225 * config/tm-linux.h: Ditto.
8226 * config/alpha/tm-alphalinux.h: Ditto.
8227 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8228 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8229 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8230 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8231 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8232 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8233 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8234 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8235 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8236 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8237 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8238 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8239 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8240 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8241 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8242 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8243 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8244 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8245 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8246 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8247 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8248 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8249 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8250 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8251 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8252 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8253 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8254 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8255 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8256 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8257 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8258 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8259 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8260 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8261 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8262 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8263 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8265 2002-05-04 Aidan Skinner <aidan@velvet.net>
8267 * ada-exp.tab.c: New file
8268 * ada-exp.y: New file
8269 * ada-lang.c: New file
8270 * ada-lang.h: New file
8271 * ada-lex.c: New file
8272 * ada-lex.l: New file
8273 * ada-tasks.c: New file
8274 * ada-typeprint.c: New file
8275 * ada-valprint.c: New file
8277 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8279 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8280 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8282 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8284 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8285 insetead of ppc-linux-tdep.o.
8286 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8287 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8289 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8291 2002-05-07 Christian Groessler <chris@groessler.org>
8292 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8293 bit register contents for little endian hosts.
8295 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8297 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8300 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8302 * gdbarch.h: Regenerate.
8304 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8306 * MAINTAINERS: Add everyone to write-after-approval list.
8308 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8310 * stack.c (frame_info): Use frame_register_unwind instead of
8311 saved_regs. Mention when the SP is on the stack or in a register.
8313 * frame.h (frame_register_unwind_ftype): Define. Document.
8314 (struct frame_info): Add field register_unwind and
8315 register_unwind_cache.
8316 (frame_register_unwind): Declare.
8317 (generic_unwind_get_saved_register): Declare.
8319 * frame.c (frame_register_unwind): New function.
8320 (generic_unwind_get_saved_register): New function.
8322 * blockframe.c (generic_call_dummy_register_unwind): New function.
8323 (frame_saved_regs_register_unwind): New function.
8324 (set_unwind_by_pc): New function.
8325 (create_new_frame): New function.
8326 (get_prev_frame): New function.
8328 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8330 * a29k-share/: Delete directory.
8331 * remote-vx29k.c: Delete file.
8333 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8335 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8336 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8338 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8340 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8341 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8344 (sparcnbsd-tdep.o): New dependency lists.
8345 * NEWS: Note new UltraSPARC NetBSD native configuration.
8346 * configure.host (sparc64-*-netbsd*): New host.
8347 * configure.tgt (sparc-*-netbsdelf*)
8348 (sparc-*-netbsd*): Set gdb_target to nbsd.
8349 (sparc64-*-netbsd*): New target.
8350 * sparc64nbsd-nat.c: New file.
8351 * sparcnbsd-nat.c: New file.
8352 * sparcnbsd-tdep.c: New file.
8353 * sparcnbsd-tdep.h: New file.
8354 * config/sparc/nbsd.mt: New file.
8355 * config/sparc/nbsd64.mh: New file.
8356 * config/sparc/nbsd64.mt: New file.
8357 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8358 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8360 * config/sparc/nbsdaout.mt: Remove.
8361 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8362 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8364 * config/sparc/nbsdelf.mt: Remove.
8365 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8366 sparc-nat.c compatiblity defines.
8367 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8368 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8369 * config/sparc/tm-nbsd64.h: New file.
8370 * config/sparc/tm-nbsdaout.h: Remove.
8371 * config/sparc/xm-nbsd.h: Remove.
8373 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8375 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8376 * sparc-tdep.c: Include osabi.h.
8377 (gdbarch_tdep): Add osabi member.
8378 (_initialize_sparc_tdep): Use gdbarch_register.
8379 (sparc_gdbarch_init): Use generic OS ABI framework.
8380 (sparc_dump_tdep): New function.
8382 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8384 * corefile.c (do_captured_read_memory_integer): Return non-zero
8386 (safe_read_memory_integer): Copy result of memory read when
8387 status is non-zero. Also, add comments.
8389 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8391 * Makefile.in (ppc_tdep_h): Define.
8394 (rs6000-tdep.o): Use $(ppc_tdep_h).
8397 (ppcnbsd-tdep.o): New dependency lists.
8398 * ppc-tdep.h: Use generic OS ABI framework.
8399 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8400 (ppc_linux_init_abi): New functions.
8401 (ppc_sysv_abi_broken_use_struct_convention)
8402 (ppc_sysv_abi_use_struct_convention)
8403 (ppc_sysv_abi_push_arguments): Move to...
8404 * ppc-sysv-tdep.c: ...here.
8405 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8406 * rs6000-tdep.c (process_note_abi_tag_sections)
8407 (get_elfosabi): Remove.
8408 (rs6000_gdbarch_init): Use generic OS ABI framework.
8409 (rs6000_dump_tdep): New function.
8410 (_initialize_rs6000_tdep): Use gdbarch_register.
8411 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8412 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8413 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8414 of ppc-linux-tdep.o.
8415 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8416 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8417 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8418 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8419 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8420 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8422 2002-05-29 Jim Blandy <jimb@redhat.com>
8424 * macroscope.c (default_macro_scope): Put `void' in empty argument
8427 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8429 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8430 * arch-utils.c: Include "sim-regno.h".
8431 * gdbarch.sh: Don't include "sim-regno.h".
8432 * gdbarch.h, gdbarch.c: Regenerate.
8433 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8435 * arch-utils.h (legacy_register_sim_regno): To here.
8436 * remote-sim.c (legacy_register_sim_regno): Move function from
8438 * arch-utils.c (legacy_register_sim_regno): To here.
8440 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8442 * sim-regno.h: New file.
8443 * Makefile.in (sim_regno_h): Define.
8444 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8445 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8446 (legacy_register_sim_regno): New function.
8447 (one2one_register_sim_regno): New function.
8448 (gdbsim_fetch_register): Rewrite.
8449 (gdbsim_store_register): Only store a register when
8450 REGISTER_SIM_REGNO is valid.
8451 * d10v-tdep.c: Include "sim-regno.h".
8452 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8453 (d10v_ts3_register_sim_regno): Ditto.
8454 * gdbarch.sh: Include "sim-regno.h".
8455 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8456 * gdbarch.h, gdbarch.c: Regenerate.
8457 * arch-utils.h (default_register_sim_regno): Delete declaration.
8458 * arch-utils.c (default_register_sim_regno): Delete function.
8460 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8462 * ppcnbsd-nat.c: Rewrite.
8463 * ppcnbsd-tdep.c: New file.
8464 * ppcnbsd-tdep.h: New file.
8465 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8466 solib.o, and solib-svr4.o.
8467 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8468 nbsd-tdep.o, and corelow.o.
8470 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8472 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8473 `tr' and `sed'. Mention that `broken' targets are not expected to
8476 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8478 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8479 Let PC point right after the prologue before looking up symbols.
8481 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8483 * i386-tdep.c (i386_register_virtual_type): Return
8484 builtin_type_vec128i for SSE registers.
8486 * gdbtypes.h (builtin_type_vec128i): Declare.
8488 * gdbtypes.c (build_builtin_type_vec128i): New function.
8489 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8490 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8491 (build_gdbtypes): Initialize new builtin vector types.
8492 (_initialize_gdbtypes): Register new vector types with gdbarch.
8494 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8496 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8497 since it has been multi-arch'd.
8498 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8499 Move Alpha and VAX multi-arch news entries to same section
8500 as other multi-arch news.
8502 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8504 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8505 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8506 static. Rename some register numbers to put them in ns32k-tdep
8508 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8509 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8511 (_initialize_ns32k_tdep): Use gdbarch_register.
8512 * ns32k-tdep.h: New file.
8513 * ns32knbsd-tdep.c: New file.
8514 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8515 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8516 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8517 REGISTER_BYTES, REGISTER_BYTE): Remove.
8518 * config/ns32k/tm-ns32k.h: New file.
8519 * config/ns32k/tm-umax.h: Remove.
8521 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8523 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8524 ns32k_store_struct_return, ns32k_extract_return_value,
8525 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8527 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8528 ns32k_saved_pc_after_call.
8529 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8530 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8531 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8532 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8533 ns32k_extract_struct_value_address.
8535 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8537 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8538 ns32k_fix_call_dummy): New.
8539 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8540 ns32k_call_dummy_words.
8541 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8542 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8543 CALL_DUMMY_NARGS): Remove.
8544 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8546 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8548 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8549 ns32k_frame_saved_pc, ns32k_frame_args_address,
8550 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8551 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8552 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8553 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8554 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8555 (BREAKPOINT): Remove..
8556 (FRAME_CHAIN): Define as ns32k_frame_chain.
8557 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8558 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8559 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8560 (FRAME_FIND_SAVED_REGS): Remove.
8561 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8562 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8563 (POP_FRAME): Define as ns32k_pop_frame.
8565 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8567 * ns32k-tdep.c (ns32k_register_byte_32082,
8568 ns32k_register_byte_32382, ns32k_register_raw_size,
8569 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8571 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8572 ns32k_register_byte_32382.
8573 * config/ns32k/tm-umax.h: Update copyright years.
8574 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8575 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8576 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8577 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8578 (ns32k_get_enter_addr): Fix prototype.
8580 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8582 * ns32k-tdep.c: Update copyright years.
8583 (ns32k_register_name_32082): New function.
8584 (ns32k_register_name_32382): Ditto.
8585 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8586 (REGISTER_NAME): Define as ns32k_register_name_32382.
8587 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8588 (REGISTER_NAME): Define as ns32k_register_name_32082.
8590 2002-05-24 Jim Blandy <jimb@redhat.com>
8592 * dwarf2read.c (free_line_header): Use xfree, not free.
8594 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8596 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8597 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8599 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8601 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8603 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8605 From Ross Alexander at NEC Europe:
8606 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8608 2002-05-23 Michael Snyder <msnyder@redhat.com>
8610 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8611 for input, rather than parse_and_eval_address.
8613 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8615 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8616 * Makefile.in (sim_d10v_h): Update definition.
8618 2002-05-24 Andrew Cagney <cagney@redhat.com>
8620 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8621 change `2002-05-22 Michael Snyder' below.
8622 (d10v_push_arguments): Ditto.
8623 (d10v_extract_return_value): Ditto.
8625 2002-05-23 Jim Blandy <jimb@redhat.com>
8627 * macrotab.c (check_for_redefinition): Don't complain if the new
8628 definition is the same as the previous one. Take more arguments
8629 to allow the comparison.
8630 (macro_define_object, macro_define_function): Pass more arguments
8631 to check_for_redefinition.
8633 2002-05-22 Michael Snyder <msnyder@redhat.com>
8635 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8636 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8637 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8638 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8639 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8640 Add a temp variable to save a call (and a memory read).
8641 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8642 if possible (so that PC_IN_CALL_DUMMY will work).
8644 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8646 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8648 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8650 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8652 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8653 (dwarf2_build_frame_info): Add offset to fde->initial_location
8654 so that frames of shared libraries are mapped correctly.
8655 (execute_stack_op): Change type of 'result' from ULONGEST to
8658 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8660 * config/alpha/tm-nbsd.h: Include solib.h.
8662 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8664 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8665 assumptions about the host's byte order.
8667 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8669 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8671 * alphanbsd-tdep.c: Include solib-svr4.h.
8672 * shnbsd-tdep.c: Ditto.
8674 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8676 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8677 nbsd-tdep.h to dependency list.
8678 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8679 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8680 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8681 nbsdaout.mh and nbsdelf.mh consistently.
8682 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8683 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8684 nbsdaout.mt and nbsdelf.mh consistently.
8685 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8686 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8687 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8688 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8689 a.out shared library stuff from here...
8690 * config/nm-nbsdaout.h: ...to here.
8691 * config/tm-nbsd.h: Remove.
8692 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8693 * config/arm/nbsd.mh: Remove.
8694 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8696 * config/arm/nbsdaout.mh: New file.
8697 * config/arm/nbsdelf.mh: New file.
8698 * config/arm/nm-nbsdaout.h: New file.
8699 * config/i386/nbsd.mh: Remove.
8700 * config/i386/nbsd.mt: Remove.
8701 * config/i386/nbsdaout.mh: New file.
8702 * config/i386/nbsdaout.mt: New file.
8703 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8704 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8705 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8706 i386_register_u_addr): Remove.
8707 * config/i386/nm-nbsdaout.h: New file.
8708 * config/i386/nm-nbsdelf.h: Remove.
8709 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8710 (USE_STRUCT_CONVENTION): Remove.
8711 * config/i386/tm-nbsdaout.h: New file.
8712 * config/i386/tm-nbsdelf.h: Remove.
8713 * config/m68k/nbsd.mh: Remove.
8714 * config/m68k/nbsd.mt: Remove.
8715 * config/m68k/nbsdaout.mh: New file.
8716 * config/m68k/nbsdaout.mt: New file.
8717 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8718 * config/m68k/nm-nbsdaout.h: New file.
8719 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8720 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8721 * config/ns32k/nbsd.mh: Remove.
8722 * config/ns32k/nbsd.mt: Remove.
8723 * config/ns32k/nbsdaout.mh: New file.
8724 * config/ns32k/nbsdaout.mt: New file.
8725 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8726 * config/ns32k/nm-nbsdaout.h: New file.
8727 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8728 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8729 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8730 (SVR4_SHARED_LIBS): Remove.
8731 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8732 * config/sparc/nbsd.mh: Remove.
8733 * config/sparc/nbsd.mt: Remove.
8734 * config/sparc/nbsdaout.mh: New file.
8735 * config/sparc/nbsdaout.mt: New file.
8736 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8737 * config/sparc/nbsdelf.mt: New file.
8738 * config/sparc/nm-nbsdaout.h: New file.
8739 * config/sparc/nm-nbsdelf.h: Remove.
8740 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8741 * config/sparc/tm-nbsdaout.h: New file.
8743 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8745 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8747 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8749 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8751 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8753 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8755 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8757 * NEWS: Note new MIPS NetBSD native configuration.
8758 * configure.host (mips*-*-netbsd*): New host.
8759 * configure.tgt (mips*-*-netbsd*): New target.
8760 * mipsnbsd-nat.c: New file.
8761 * mipsnbsd-tdep.c: New file.
8762 * mipsnbsd-tdep.h: New file.
8763 * config/mips/nbsd.mh: New file.
8764 * config/mips/nbsd.mt: New file.
8765 * config/mips/nm-nbsd.h: New file.
8766 * config/mips/tm-nbsd.h: New file.
8768 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8770 * Makefile.in (SFILES): Add osabi.c.
8771 (COMMON_OBS): Add osabi.o.
8772 (osabi.o): New dependency list.
8773 * osabi.c: New file.
8774 * osabi.h: New file.
8775 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8777 * Makefile.in (alpha_tdep_h): Define and use instead of
8779 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8780 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8782 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8783 * alpha-tdep.h: Include osabi.h.
8784 (alpha_abi): Remove.
8785 (gdbarch_tdep): Use generic OS ABI framework.
8786 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8787 gdbarch_register_osabi.
8788 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8789 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8790 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8792 * Makefile.in (sh_tdep_h): Add osabi.h.
8793 * sh-tdep.h (sh_osabi): Remove.
8794 (gdbarch_tdep): Use generic OS ABI framework.
8795 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8796 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8797 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8798 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8800 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8801 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8802 gdbarch_register_osabi.
8803 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8804 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8805 (get_elfosabi): Rename to...
8806 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8807 ABI framework support routines.
8808 (arm_gdbarch_init): Use generic OS ABI framework.
8809 (arm_dump_tdep): Likewise.
8810 (_initialize_arm_tdep): Likewise.
8811 * arm-tdep.h: Include osabi.h.
8813 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8815 (arm_gdbarch_register_os_abi): Remove prototype.
8816 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8817 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8819 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8820 * mips-tdep.c: Include osabi.h.
8821 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8824 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8826 * h8300-tdep.c: Fix formatting.
8828 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8830 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8831 printing vector registers.
8833 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8835 From Fernando Nasser:
8836 * remote.c (remote_async_open_1): Re-throw the exception when the
8838 (remote_cisco_open): Ditto.
8839 (remote_open_1): Ditto.
8841 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8843 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8844 (remote_start_remote): Add uiout parameter. Pass through to
8845 remote_start_remote_dummy.
8846 (remote_open_1): Use catch_exception instead of catch_errors.
8847 (remote_async_open_1): Ditto.
8848 (remote_cisco_open): Ditto.
8850 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8852 * remote.c (remote_start_remote): Replace PTR with void pointer.
8853 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8856 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8858 * gdb_indent.sh: Allow the script to be run in the sim directory.
8860 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8862 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8863 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8865 * corelow.c (core_open): Only call set_gdbarch_from_file if
8868 2002-05-17 Andrey Volkov <avolkov@transas.com>
8870 * h8300-tdep.c: Add support of EXR register
8871 * config/h8300/tm-h8300.h: Ditto.
8873 2002-05-17 Andrey Volkov <avolkov@transas.com>
8875 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8877 2002-05-17 Andrey Volkov <avolkov@transas.com>
8879 * h8300-tdep.c: Change literal regnums to REGNO.
8881 2002-05-17 Jim Blandy <jimb@redhat.com>
8883 * NEWS: Note addition of macro support.
8885 Expand preprocessor macros in C expressions.
8886 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8887 (scan_macro_expansion, scanning_macro_expansion,
8888 finished_macro_expansion): New function declarations.
8889 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8890 variable declarations.
8891 * parser-defs.h (expression_context_pc): New declaration.
8892 * parse.c (expression_context_pc): New variable.
8893 (parse_exp_1): Set expression_context_pc, as well as
8894 expression_context_block.
8895 * c-exp.y (yylex): If we're not already reading the result of a
8896 macro expansion, try to macro-expand the next token. When we're
8897 done scanning a macro expansion, switch back to the mainline text.
8898 Commas and `if's in a macro's expansion don't terminate the input.
8899 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8900 (macro_original_text, macro_expanded_text,
8901 expression_macro_lookup_func, expression_macro_lookup_baton): New
8903 (scan_macro_expansion, scanning_macro_expansion,
8904 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8905 c_preprocess_and_parse): New functions.
8906 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8907 c_preprocess_and_parse, instead of c_parse.
8908 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8909 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8911 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8913 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8914 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8915 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8917 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8919 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8921 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8923 * Makefile.in (sh_tdep_h): Define and use.
8924 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8925 register enum): Move to...
8926 * * sh-tdep.h: ...here.
8927 * sh-tdep.c: Include sh-tdep.h.
8928 * sh3-rom.c: Likewise.
8929 * shnbsd-tdep.c: Likewise.
8931 2002-05-16 Michael Snyder <msnyder@redhat.com>
8933 * arm-tdep.c: Spelling fix in comment.
8935 2002-05-16 Jim Blandy <jimb@redhat.com>
8937 Add commands for manually expanding macros and showing their
8939 * macrocmd.c, macroscope.c, macroscope.h: New files.
8940 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8941 (macroscope_h): New variable.
8942 (HFILES_NO_SRCDIR): Add macroscope.h.
8943 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8944 (macroscope.o, macrocmd.o): New rules.
8946 Teach the Dwarf 2 reader to read macro information.
8947 * dwarf2read.c: #include "macrotab.h".
8948 (dwarf_macinfo_buffer): New variable.
8949 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8951 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8952 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8953 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8954 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8955 dwarf2_macro_spaces_in_definition): New complaints.
8956 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8957 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8958 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8959 the partial symbol table.
8960 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8961 from what's recorded in the partial symbol table.
8962 (read_file_scope): If the compilation unit has a
8963 `DW_AT_macro_info' attribute, read its macro information.
8964 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8966 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8969 * ser-tcp.c: Don't include <netinet/udp.h>.
8971 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8973 * MAINTAINERS: Update my email address.
8975 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8977 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8978 include file of the same name.
8980 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8982 * configure.tgt: Mark v850 as multi-arched.
8983 * config/v850/tm-v850.h: Remove file.
8984 * config/v850/v850.mt: Eliminate TM_FILE.
8986 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8988 * v850-tdep.c: Full multi-arch.
8989 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8990 Define GDB_MULTI_ARCH to 2.
8992 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8994 * p-exp.y (current_type): New static variable.
8995 Carries the type of the expression at the position that is parsed.
8996 (push_current_type, pop_current_type): Two new functions. Used
8997 to store/restore current_type in expression on specific tokens.
8998 (search_field): New static variable. Set to one after parsing a point
8999 as at that point only a FIELDNAME token should be searched.
9000 (FIELDNAME): New token. After a point only a token belonging to
9001 current_type type definition is allowed.
9002 (all over token rules): reset and change current_type according
9004 (exp '[' rule): insert implicit array index field if
9005 exp is a pascal string type.
9007 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9009 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9010 frame info. Use frame_info's saved_regs instead of matching member
9011 in extra_frame_info throughout.
9012 (v850_frame_init_saved_regs): New function.
9013 (v850_init_extra_frame_info): Move most functionality into
9014 v850_frame_init_saved_regs().
9015 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9016 (v850_frame_find_saved_regs): Remove declaration.
9017 (FRAME_FIND_SAVED_REGS): Remove definition.
9018 (v850_frame_init_saved_regs): Add declaration.
9019 (FRAME_INIT_SAVED_REGS): Add definition.
9021 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9023 * v850-tdep.c: Begin multi-arch'ing v850.
9024 (v850_target_architecture_hook): Remove function.
9025 (v850_gdbarch_init): New function. Add code previously in
9026 v850_target_architecture_hook().
9027 (_initialize_v850_tdep): Don't set target_architecture_hook.
9028 Call register_gdbarch_init() instead.
9030 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9032 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9033 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9034 (fixup_class_method_type): Likewise.
9036 2002-05-15 Jim Blandy <jimb@redhat.com>
9038 Add macro structures to GDB's symbol tables. Nobody puts anything
9040 * symtab.h (struct symtab): New member: `macro_table'.
9041 * buildsym.h (pending_macros): New global variable.
9042 * buildsym.c: #include "macrotab.h".
9043 (buildsym_init): Initialize `pending_macros'.
9044 (end_symtab): If we found macro information while reading a CU's
9045 debugging info, do build a symtab structure for it. Make the
9046 symtab point to the macro information, and clear the
9047 `pending_macros' pointer which held it while we were reading the
9049 (really_free_pendings): Free any pending macro table.
9050 * objfiles.h (struct objfile): New member: `macro_cache'.
9051 * objfiles.c (allocate_objfile): Set allocate and free functions
9052 for the macro cache's objstack.
9053 (free_objfile): Empty the macro cache's obstack.
9054 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9055 set new allocate and free functions for it.
9056 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9057 free functions for the macro cache's objstack. (Why is this
9058 function building its own objfile?)
9059 * symmisc.c (print_objfile_statistics): Print statistics on the
9061 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9063 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9065 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9066 (REGISTER_U_ADDR): Delete definition.
9067 (arm_register_u_addr): Delete declaration.
9069 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9071 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9072 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9074 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9076 * regcache.c (register_valid): Revise comments refering to "Not
9077 available" and "unavailable".
9078 * frame.c (frame_register_read): Ditto.
9079 * findvar.c (value_of_register): Ditto.
9081 2002-05-15 Andrew Cagney <cagney@redhat.com>
9083 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9084 (remote-sim.o): Update dependencies.
9085 (d10v-tdep.o): Specify dependencies.
9086 (sim_d10v_h): Define.
9088 2002-05-14 Jim Blandy <jimb@redhat.com>
9090 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9091 * macrotab.c (macro_lookup_inclusion, find_definition,
9092 new_macro_table): Same.
9094 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9095 not `! strcmp ()'. This is a dubious improvement.
9096 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9098 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9099 although it's not necessary, to avoid a warning.
9101 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9103 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9104 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9105 TYPE_INSTANCE_FLAGS.
9106 (struct main_type): New.
9107 (struct type): Move most members to struct main_type. Change
9108 cv_type and as_type to new type_chain member. Add instance_flags.
9109 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9110 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9111 (finish_cv_type): Remove prototype.
9112 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9114 (alloc_type_instance): New function.
9115 (smash_type): New function.
9116 (make_pointer_type, make_reference_type, make_function_type)
9117 (smash_to_member_type, smash_to_method_type): Call smash_type.
9118 (make_qualified_type): New function.
9119 (make_type_with_address_space): Call make_qualified_type.
9120 (make_cv_type): Likewise.
9121 (finish_cv_type): Remove unnecessary function.
9122 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9123 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9124 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9125 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9126 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9127 * hpread.c (hpread_read_struct_type): Likewise.
9128 * stabsread.c (read_struct_type): Likewise.
9130 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9132 * configure.tgt: Add a catch all sh* target, for cases like
9133 sh[2,3,4]-elf and sh-hms.
9135 2002-05-14 Keith Seitz <keiths@redhat.com>
9137 * event-loop.c (create_file_handler): Don't do anything but
9138 update data when we are given a fd which we are already
9141 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9143 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9144 (update_context): Use __func__ in warnings.
9146 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9148 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9149 and tcp_close to net_open and net_close.
9150 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9151 using UDP if requested. Don't try to disable Nagle on UDP
9153 * remote.c (remote_serial_open): New function. Warn about UDP.
9154 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9156 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9158 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9160 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9162 * configure.tgt: Remove sh-hms target.
9163 * MAINTAINERS: Don't list sh-hms as a separate target.
9165 2002-05-13 Jim Blandy <jimb@redhat.com>
9167 Add first preprocessor macro-expansion files.
9168 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9169 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9170 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9171 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9172 (COMMON_OBS): Add macrotab.o, macroexp.o.
9173 (macroexp.o, macrotab.o): New rules.
9175 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9177 * config/m88k/tm-m88k.h: Update copyright.
9178 (m88k_target_write_pc): Declare
9179 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9180 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9181 (SHIFT_INST_REGS): Update definition.
9182 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9183 using old definition of TARGET_WRITE_PC.
9184 * regcache.c (generic_target_write_pc): Delete code handling
9186 * gdbarch.sh (NNPC_REGNUM): Delete.
9187 * gdbarch.h, gdbarch.c: Regenerate.
9189 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9191 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9194 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9196 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9197 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9198 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9200 * c-typeprint.c (cp_type_print_method_args): Likewise.
9201 (c_type_print_args): Likewise.
9202 * d10v-tdep.c (d10v_push_arguments): Likewise.
9203 (d10v_extract_return_value): Likewise.
9204 * expprint.c (print_subexp): Likewise.
9205 * gdbtypes.c (lookup_primitive_typename): Likewise.
9206 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9207 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9208 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9209 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9210 (TYPE_VECTOR): Likewise.
9211 * hpread.c (hpread_read_struct_type)
9212 (fix_static_member_physnames, fixup_class_method_type)
9213 (hpread_type_lookup): Likewise.
9214 * mdebugread.c (parse_symbol, parse_type): Likewise.
9215 * p-lang.c (is_pascal_string_type): Likewise.
9216 * valops.c (hand_function_call): Likewise.
9217 * x86-64-tdep.c (classify_argument): Likewise.
9219 * hpread.c (hpread_read_function_type)
9220 (hpread_read_doc_function_type): Call replace_type.
9221 * dstread.c (create_new_type): Delete.
9222 (decode_dst_structure, process_dst_function): Call alloc_type.
9223 Use type access macros.
9225 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9227 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9228 the're not supported by the current architecture.
9229 (i387_fill_fxsave): Likewise.
9231 2002-05-12 Fred Fish <fnf@redhat.com>
9233 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9234 sect_index_xxx members to index the first slot in section_offsets
9235 if all of the section_offsets are zero.
9237 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9239 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9240 checked in with last change.
9242 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9244 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9245 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9248 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9250 * Makefile.in: Update dependencies.
9252 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9254 * language.c (local_hex_string_custom): Simplify. Do not depend
9255 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9257 * memattr.c (mem_info_command): Replace calls to
9258 longest_local_hex_string and longest_local_hex_string_custom.
9259 * buildsym.c (make_blockvector): Ditto.
9260 * solib.c (info_sharedlibrary_command): Ditto.
9261 * tracepoint.c (tracepoints_info): Ditto.
9262 * symtab.c (print_msymbol_info): Ditto.
9264 * language.c (local_hex_string): Delete.
9265 (local_hex_string_custom): Delete.
9266 (longest_local_hex_string): Rename to local_hex_string.
9267 (longest_local_hex_string_custom): Rename to
9268 local_hex_string_custom.
9269 * language.h (local_hex_string): Change parameter type to LONGEST.
9270 (local_hex_string_custom): Ditto.
9271 (longest_local_hex_string): Delete declaration.
9272 (longest_local_hex_string_custom): Ditto.
9274 * solib.c: Update copyright.
9275 * memattr.c: Update copyright.
9277 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9279 * arch-utils.h (legacy_register_to_value): Declare.
9280 (legacy_value_to_register): Declare.
9281 (legacy_convert_register_p): Declare.
9282 * arch-utils.c (legacy_register_to_value): New function.
9283 (legacy_value_to_register): New function.
9284 (legacy_convert_register_p): New function.
9286 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9287 (VALUE_TO_REGISTER): Define.
9288 (CONVERT_REGISTER_P): Define.
9289 * gdbarch.h, gdbarch.c: Regenerate.
9291 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9293 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9296 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9297 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9299 * Makefile.in: Update dependencies for valops.c.
9300 * valops.c: Include "gdb_assert.h".
9301 (typecmp): Skip THIS parameter to methods.
9302 (find_method_list): Remove static_memfuncp argument,
9303 update callers. Check for stub methods.
9304 (find_value_oload_method_list): Don't set *static_memfuncp.
9305 (find_overload_match): Don't check for stub methods. Assert
9306 that methods are not stubbed. Handle static methods.
9307 (value_find_oload_method_list): Remove static_memfuncp argument.
9308 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9309 to the argument list for static stub methods.
9310 * value.h (value_find_oload_method_list): Update prototype.
9312 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9314 * arch-utils.h (generic_register_size): Declare.
9315 (generic_register_raw_size, generic_register_virtual_size): Delete
9317 * arch-utils.c (generic_register_raw_size): Delete.
9318 (generic_register_size): New function.
9319 (generic_register_virtual_size): Delete.
9321 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9322 default generic_register_size.
9323 * gdbarch.h, gdbarch.c: Re-generate.
9325 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9326 register_virtual_size.
9327 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9328 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9330 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9332 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9333 * gdbarch.h, gdbarch.c: Regenerate.
9334 * gnu-v3-abi.c: Update copyright.
9335 (vtable_address_point_offset): Update.
9336 (gnuv3_rtti_type): Update.
9337 (gnuv3_baseclass_offset): Update.
9338 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9339 (init_fetch_link_map_offsets): Update.
9340 * remote.c (get_remote_state): Update.
9342 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9344 * TODO: Remove value_headof/value_from_vtable_info comment.
9345 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9346 * values.c (value_headof, value_from_vtable_info): Delete.
9347 * value.h (value_from_vtable_info): Delete prototype.
9349 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9351 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9352 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9354 (gdb_assert_h): Define.
9355 (gdb_wait_h): Define.
9356 (gdb_regex_h): Define.
9358 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9360 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9361 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9363 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9365 * nbsd-tdep.c: Fix comment.
9367 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9369 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9370 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9371 (nbsd-tdep.o): New dependency list.
9372 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9374 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9375 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9376 * nbsd-tdep.c: New file.
9377 * nbsd-tdep.h: New file.
9378 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9380 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9381 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9382 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9383 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9385 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9387 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9388 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9389 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9390 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9391 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9392 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9394 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9396 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9397 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9398 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9399 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9400 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9401 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9402 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9404 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9406 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9407 fetch_elfcore_registers to...
9408 * i386nbsd-tdep.c: ...here.
9409 (i386nbsd_use_struct_convention): Rename to...
9410 (i386nbsd_aout_use_struct_convention): ...this.
9411 (i386nbsd_supply_reg): New function.
9412 (i386nbsd_fill_reg): New function.
9413 (fetch_core_registers): Use i386nbsd_supply_reg.
9414 (fetch_elfcore_registers): Likewise.
9415 (_initialize_i386nbsd_tdep): New function.
9416 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9417 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9418 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9419 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9420 (i386nbsd_aout_use_struct_convention): ...this.
9422 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9424 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9425 (store_inferior_registers): Use shnbsd_fill_reg.
9426 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9427 sh_nbsd_supply_register): Collapse into...
9428 (shnbsd_supply_reg): ...this.
9429 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9430 (shnbsd_fill_reg): ...this.
9431 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9432 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9433 (fetch_core_registers): Use shnbsd_supply_reg.
9434 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9435 (sh_nbsd_core_fns): Rename to...
9436 (shnbsd_core_fns): ...this.
9437 (sh_nbsd_elfcore_fns): Rename to...
9438 (shnbsd_elfcore_fns): ...this.
9439 (sh_nbsd_init_abi): Rename to...
9440 (shnbsd_init_abi): ...this.
9441 (_initialize_sh_nbsd_tdep): Rename to...
9442 (_initialize_shnbsd_tdep): ...this.
9443 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9444 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9445 sh_nbsd_fill_register): Remove prototypes.
9446 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9448 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9450 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9451 (i387-nat.o): Delete dependency list.
9452 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9453 (x86-64-linux-nat.o): Likewise.
9454 * i387-nat.c: Delete file, moving contents to...
9455 * i387-tdep.c: ...here.
9456 * i387-nat.h: Rename...
9457 * i387-tdep.h: ...to this.
9458 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9459 * i386-linux-nat.c: Likewise.
9460 * i386bsd-nat.c: Likewise.
9461 * i386gnu-nat.c: Likewise.
9462 * i386nbsd-nat.c: Likewise.
9463 * i386v4-nat.c: Likewise.
9464 * x86-64-linux-nat.c: Likewise.
9465 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9466 * config/i386/go32.mh (NATDEPFILES): Likewise.
9467 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9468 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9469 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9470 * config/i386/linux.mh (NATDEPFILES): Likewise.
9471 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9472 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9473 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9474 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9476 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9478 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9479 (alphanbsd-nat.o): Remove dependency list.
9480 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9481 * alphanbsd-nat.c: Delete. Contents moved to...
9482 * alphanbsd-tdep.c: ...here.
9483 (_initialize_alphanbsd_tdep): Register core functions.
9484 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9486 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9488 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9489 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9490 (alphanbsd-nat.o): Likewise.
9491 (alphabsd-tdep.o): New dependency list.
9492 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9493 (fill_gregset): Use alphabsd_fill_reg.
9494 (supply_fpregset): Use alphabsd_supply_fpreg.
9495 (fill_fpregset): Use alphabsd_fill_fpreg.
9496 (fetch_inferior_registers): Use struct reg and struct fpreg
9497 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9498 and alphabsd_supply_fpreg.
9499 (store_inferior_registers): Use struct reg and struct fpreg
9500 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9501 and alphabsd_fill_fpreg.
9502 * alphabsd-tdep.c: New file.
9503 * alphabsd-tdep.h: New file.
9504 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9505 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9506 alphabsd_supply_fpreg.
9507 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9508 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9510 2002-05-11 Eric Christopher <echristo@redhat.com>
9512 * mips-tdep.c (mips_double_register_type): Fix thinko.
9513 (mips_single_register_type): Ditto.
9514 * MAINTAINERS: Add self.
9516 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9518 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9519 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9520 right thing on architectures with different endianness and/or
9523 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9525 From Christian Limpach <chris@Pin.LU>
9526 * configure.in: Change sed expression which comments out
9527 NATDEPFILES to also comment out continuation lines.
9528 * configure: Regenerate.
9530 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9532 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9535 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9537 * sh-tdep.c: Include correct file.
9539 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9541 New support for sh64-elf (sh5) target.
9543 * configure.tgt: For sh64-elf target, default to sh-elf.
9545 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9546 (struct gdbarch_tdep): Add new fields for new registers and ABI
9549 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9550 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9551 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9552 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9553 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9554 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9555 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9556 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9557 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9558 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9559 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9560 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9561 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9562 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9563 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9564 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9565 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9566 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9567 sign_extend, sh64_nofp_frame_init_saved_regs,
9568 sh64_init_extra_frame_info, sh64_get_saved_register,
9569 sh64_extract_struct_value_address, sh64_pop_frame,
9570 sh64_push_arguments, sh64_extract_return_value,
9571 sh64_store_return_value, sh64_show_media_regs,
9572 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9573 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9574 sh_sh64_register_virtual_type,
9575 sh_sh64_register_convert_to_virtual,
9576 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9577 sh64_register_read, sh64_pseudo_register_write,
9578 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9579 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9580 sh64_do_pseudo_register, sh_compact_do_registers_info,
9581 sh64_do_registers_info, sh_gdbarch_init): New functions.
9583 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9585 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9587 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9589 * linespec.c (decode_line_1): Check for a double quote after
9590 a filename correctly.
9592 2002-05-10 Jim Blandy <jimb@redhat.com>
9594 Properly track the size of the current objfile's .debug_line section.
9595 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9596 (DWARF_LINE_SIZE): New macro.
9597 (dwarf2_build_psymtabs_hard): Record the line section's size in
9598 the partial symbol table.
9599 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9602 2002-05-10 Petr Sorfa <petrs@caldera.com>
9604 * ia64-tdep.c: Handle breakpoints on L instruction type
9605 in MLX instruction bundle by moving the breakpoint to
9606 the third slot (X instruction type) as L holds only data.
9608 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9610 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9611 (process_one_symbol): Complain about discarding local symbols
9612 due to a misplaced N_LBRAC entry.
9614 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9616 From Daniel Berlin <dan@cgsoftware.com>
9617 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9618 decrease the depth we are at, in the case of templates.
9620 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9622 * mips-tdep.c (mips_float_register_type): New function.
9623 (mips_double_register_type): New function.
9624 (mips_print_register): Use them.
9625 (do_fp_register_row): Likewise.
9627 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9629 * signals/signals.c (signals): Remove conditional compilation around
9630 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9631 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9633 2002-05-09 Michael Snyder <msnyder@redhat.com>
9635 * remote-rdp.c (remote_rdp_can_run): Remove.
9637 2002-05-09 Tom Tromey <tromey@redhat.com>
9639 * jv-valprint.c (java_val_print): Handle `char' as a special case
9642 2002-05-09 Michael Snyder <msnyder@redhat.com>
9644 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9645 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9646 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9647 str r(0123),[sp,#nn].
9648 (arm_skip_prologue): Ditto. Also make disassembly
9649 order-independent by placing it in a loop.
9651 2002-05-06 Michael Snyder <msnyder@redhat.com>
9653 * stabsread.c (read_type): Add recognition for new attribute:
9654 "@V;" means that an array type is actually a vector.
9655 This is analogous to the vector flag that's been added to dwarf2.
9657 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9659 * i386-tdep.h (i386_abi): New enum.
9660 (struct gdbarch_tdep): Replace os_ident member with abi.
9661 (i386_gdbarch_register_os_abi): New prototype.
9662 * i386-tdep.c (i386_abi_names): New array.
9663 (process_note_abi_tag_sections): Removed.
9664 (process_note_sections): New function.
9665 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9666 (struct i386_abi_handler): New struct.
9667 (i386_abi_handler_list): New variable.
9668 (i386_gdbarch_register_os_abi): New function.
9669 (i386_gdbarch_init): Adapt for the changes given above.
9671 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9673 * gregset.h: Say "GNU/Linux".
9675 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9677 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9678 (build_gdbtypes): Build builtin_type_v2_float.
9679 (_initialize_gdbtypes): Register new builtin type.
9681 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9683 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9684 (clear_gdbarch_swap): New function.
9685 (initialize_non_multiarch): Call.
9686 (gdbarch_update_p): Before calling init(), swap out and clear the
9687 existing architecture.
9688 * gdbarch.c: Regenerate.
9690 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9692 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9695 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9697 * sh-nbsd-nat.c: Rename to...
9698 * shnbsd-nat.c: ...this.
9699 * sh-nbsd-tdep.c: Rename to...
9700 * shnbsd-tdep.c: ...this.
9701 * sh-nbsd-tdep.h: Rename to...
9702 * shnbsd-tdep.h: ...this.
9703 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9704 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9706 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9708 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9709 concatenation for command help messages.
9711 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9713 * NEWS: Note new sh*-*-netbsdelf* configuration.
9714 * configure.host: Set gdb_host_cpu to sh for all sh*.
9715 (sh*-*-netbsdelf*): New host.
9716 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9717 (sh*-*-netbsdelf*): New target.
9718 * sh-nbsd-nat.c: New file.
9719 * sh-nbsd-tdep.c: New file.
9720 * sh-nbsd-tdep.h: New file.
9721 * config/sh/nbsd.mh: New file.
9722 * config/sh/nbsd.mt: New file.
9723 * config/sh/nm-nbsd.h: New file.
9724 * config/sh/tm-nbsd.h: New file.
9726 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9728 * sh-tdep.c (sh_osabi_names): Declare.
9729 (process_note_abi_tag_sections): New function.
9730 (get_elfosabi): Ditto.
9731 (sh_gdbarch_register_os_abi): Ditto.
9732 (sh_dump_tdep): Ditto.
9733 _initialize_sh_tdep): Use gdbarch_register to register
9734 sh_gdbarch_init and sh_dump_tdep.
9735 * config/sh/tm-sh.h (sh_osabi): Declare.
9736 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9738 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9740 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9741 (thumb_scan_prologue): Ditto.
9742 (arm_find_callers_reg): Ditto.
9743 (arm_frame_chain): Ditto.
9744 (arm_init_extra_frame_info): Ditto.
9745 (arm_frame_saved_pc): Ditto.
9746 (arm_pop_frame): Ditto.
9747 (arm_push_return_address): New function.
9748 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9749 call_dummy_location, call_dummy_breakpoint_offset_p,
9750 call_dummy_breakpoint_offset, call_dummy_p,
9751 call_dummy_stack_adjust_p, call_dummy_words,
9752 sizeof_call_dummy_words, call_dummy_start_offset,
9753 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9754 call_dummy_address, push_return_address and push_dummy_frame for
9755 generic dummy frames.
9757 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9759 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9760 size computation for alloca.
9761 (sh_fp_frame_init_saved_regs): Likewise.
9763 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9765 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9766 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9767 * arm-tdep.c (arm_store_return_value): Use them.
9768 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9769 * remote-rdp.c (remote_rdp_fetch_register): Use
9770 ARM_MAX_REGISTER_RAW_SIZE.
9771 (remote_rdp_store_register): Likewise.
9773 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9775 * dwarf2cfi.c: Code cleanup, removed unused variables,
9776 added default labels to switch {} statements.
9777 * x86-64-tdep.c: Ditto.
9778 * x86-64-linux-nat.c: Ditto.
9780 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9782 * solib.h: Protect against multiple inclusion.
9784 2002-05-06 Jim Blandy <jimb@redhat.com>
9786 Add first preprocessor macro-expansion files.
9787 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9788 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9789 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9790 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9791 (COMMON_OBS): Add macrotab.o, macroexp.o.
9792 (macroexp.o, macrotab.o): New rules.
9794 Separate the job of reading the line number info statement program
9795 header (...expialidocious) out into its own function.
9796 * dwarf2read.c (struct line_head, struct filenames, struct
9797 directories): Replace with...
9798 (struct line_header): New structure, containing the full
9799 contents of the statement program header, including the
9800 include directory and file name tables.
9801 (read_file_scope): If we have line number info, instead of just
9802 calling dwarf_decode_lines to do all the work, call
9803 dwarf_decode_line_header first to get a `struct line_header'
9804 containing the data in the statement program header, and then
9805 pass that to dwarf_decode_lines, which will pick up where that
9806 left off. Be sure to clean up the `struct line_header' object.
9807 (dwarf_decode_line_header, free_line_header, add_include_dir,
9808 add_file_name): New functions.
9809 (dwarf_decode_lines): Move all the code to read the statement
9810 program header into dwarf_decode_line_header. Take the line
9811 header it built as the first argument, instead of the offset to
9812 the compilation unit's line number info. Use the new `struct
9813 line_header' type instead of the old structures. No need to do
9814 cleanups here now, since we don't allocate anything.
9815 (dwarf2_statement_list_fits_in_line_number_section,
9816 dwarf2_line_header_too_long): New complaints.
9818 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9820 * gdbtypes.c (init_vector_type): New function.
9821 (build_builtin_type_vec128): Simplify the representation of SIMD
9823 (build_gdbtypes): Initialize new builtin vector types.
9824 (_initialize_gdbtypes): Register new vector types with gdbarch.
9825 (builtin_type_v4_float, builtin_type_v4_int32,
9826 builtin_type_v8_int16, builtin_type_v16_int8,
9827 builtin_type_v2_int32, builtin_type_v4_int16,
9828 builtin_type_v8_int8): New (renamed) SIMD types.
9830 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9832 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9833 (i387_fill_fxsave): Likewise.
9835 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9837 * alpha-tdep.c (alpha_extract_return_value): Don't use
9838 non-constant array size in prototype.
9840 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9842 From Brian Taylor <briant at model dot com>:
9843 * ui-out.c (ui_out_field_core_addr): Use the function
9844 longest_local_hex_string_custom'to format addresses > 32 bits
9847 * ui-out.c (ui_out_field_core_addr): Update comment.
9849 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9851 * stack.c (select_and_print_frame): Make static. Delete the
9853 (func_command): Update call.
9854 (select_frame_command): Delete code computing the frame level.
9855 * frame.h (select_and_print_frame): Delete declaration.
9857 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9859 * sparc-tdep.c (sparc_get_saved_register): Comment why
9860 get_prev_frame call is safe.
9862 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9864 * frame.h (select_frame): Delete level parameter.
9865 * stack.c (select_frame): Update. Use frame_relative_level to
9866 obtain the frame's level.
9867 (select_and_print_frame): Update call.
9868 (select_frame_command): Ditto.
9869 (up_silently_base): Ditto.
9870 (down_silently_base): Ditto.
9871 * ocd.c (ocd_start_remote): Ditto.
9872 * remote-rdp.c (remote_rdp_open): Ditto.
9873 * remote-mips.c (mips_initialize): Ditto.
9874 (common_open): Ditto.
9875 * remote-e7000.c (e7000_start_remote): Ditto.
9876 * m3-nat.c (select_thread): Ditto.
9877 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9878 (child_get_current_exception_event): Ditto.
9879 * varobj.c (varobj_create): Ditto.
9880 (varobj_update): Ditto.
9881 (c_value_of_root): Ditto.
9882 * tracepoint.c (finish_tfind_command): Ditto.
9883 * corelow.c (core_open): Ditto.
9884 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9885 * thread.c (info_threads_command): Ditto.
9886 (switch_to_thread): Ditto.
9887 * infrun.c (normal_stop): Ditto.
9888 (restore_selected_frame): Ditto.
9889 (restore_inferior_status): Ditto.
9890 * breakpoint.c (insert_breakpoints): Ditto.
9891 (watchpoint_check): Ditto.
9892 (bpstat_stop_status): Ditto.
9893 (do_enable_breakpoint): Ditto.
9894 * blockframe.c (flush_cached_frames): Ditto.
9895 (reinit_frame_cache): Ditto.
9897 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9899 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9902 2002-05-04 Jim Blandy <jimb@redhat.com>
9904 * gdbtypes.c (replace_type): Doc fix.
9906 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9908 * valprint.c (strcat_longest): Delete commented out function.
9911 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9913 * MAINTAINERS: Mark a29k as deleted.
9914 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9915 Move new configurations to the top.
9916 * configure.tgt: Remove a29k.
9917 * config/a29k/tm-vx29k.h: Delete.
9918 * config/a29k/vx29k.mt: Delete.
9919 * config/a29k/tm-a29k.h: Delete.
9920 * config/a29k/a29k-udi.mt: Delete.
9921 * config/a29k/a29k.mt: Delete.
9922 * a29k-tdep.c: Delete.
9923 * remote-udi.c: Delete.
9924 * remote-mm.c: Delete.
9925 * remote-eb.c: Delete.
9926 * remote-adapt.c: Delete.
9927 * Makefile.in: Remove obsolete code.
9928 * config/s390/s390x.mt: Ditto.
9929 * config/s390/s390.mt: Ditto.
9930 * config/sparc/sparclynx.mh: Ditto.
9931 * config/sparc/linux.mh: Ditto.
9932 * config/pa/hppaosf.mh: Ditto.
9933 * config/pa/hppabsd.mh: Ditto.
9934 * config/ns32k/nbsd.mt: Ditto.
9935 * config/mips/vr5000.mt: Ditto.
9936 * config/m68k/sun3os4.mh: Ditto.
9937 * config/m68k/nbsd.mt: Ditto.
9938 * config/m68k/m68klynx.mh: Ditto.
9939 * config/m32r/m32r.mt: Ditto.
9940 * config/i386/x86-64linux.mt: Ditto.
9941 * config/i386/nbsdelf.mt: Ditto.
9942 * config/i386/nbsd.mt: Ditto.
9943 * config/i386/i386lynx.mh: Ditto.
9945 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9947 * target.c (debug_print_register): New function. Handle oversize
9949 (debug_to_fetch_registers): Call.
9950 (debug_to_store_registers): Call.
9952 2002-05-03 Jim Blandy <jimb@redhat.com>
9954 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9955 (read_type): Doc fix.
9956 * gdbtypes.c (replace_type): Doc fix.
9958 * stabsread.c (multiply_defined_struct): New complaint.
9959 (read_struct_type): If the type we were passed isn't empty, or
9960 incomplete, don't read the new struct type into it; complain,
9961 and return the original type unchanged. Take a new `type_code'
9962 argument, which is the type code for the new type.
9963 (read_type): Rather than storing the type's type code here, pass
9964 it as an argument to read_struct_type, and let that take care of
9965 storing it. That way, we don't overwrite the original type code,
9966 so read_struct_type can use it to decide whether we're overwriting
9967 something we shouldn't.
9968 (complain_about_struct_wipeout): New function.
9970 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9972 * gdbarch.sh: Assert that gdbarch is non-NULL.
9973 * gdbarch.c: Regenerate.
9975 2002-05-03 Jason Merrill <jason@redhat.com>
9977 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9980 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9982 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9983 (x86_64_dwarf2gdb_regno_map_length),
9984 (x86_64_dwarf2_reg_to_regnum): Added.
9985 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9986 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9987 (_initialize_x86_64_tdep): Synced with the change above.
9988 (x86_64_skip_prologue): Reformulated message.
9990 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9992 * f-exp.y: Also use new prev_lexptr variable
9993 to improve error reporting. Based on Michael Snyder
9994 2002-04-24 dated patch to c-exp.y.
9995 * jv-exp.y: Likewise.
9996 * m2-exp.y: Likewise.
9998 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10000 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10001 we are dealing with vectors.
10003 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10005 * config/m68k/tm-nbsd.h: Obvious fix,
10006 correct machine name.
10008 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10010 * p-typeprint.c (pascal_type_print_base): Add support
10011 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10013 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10015 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10016 for fondamental pascal 'char' type.
10018 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10020 * p-lang.h (is_pascal_string_type): Declaration changed,
10021 new sixth argument of type char ** added.
10022 * p-lang.c (is_pascal_string_type): Implementation
10023 changed. Args length_pos, length_size, string_pos, char_size
10024 can now be NULL. New argument arrayname set to the field
10025 name of the char array. Return value set to char array
10026 field index plus one.
10027 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10028 is_pascal_string_type function.
10030 2002-05-02 Andrew Cagney <cagney@redhat.com>
10032 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10033 <cagney@redhat.com> change.
10034 * gdbarch.c: Regenerate.
10036 2002-05-02 Andrew Cagney <cagney@redhat.com>
10038 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10039 before probing for a new one. Detect errorenous gdbarch_init
10041 * gdbarch.c: Regenerate.
10043 2002-05-01 Andrew Cagney <cagney@redhat.com>
10045 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10046 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10047 * config/v850/tm-v850.h: Ditto. Update copyright.
10049 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10051 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10054 2002-04-30 Michael Snyder <msnyder@redhat.com>
10056 * arm-tdep.c: Whitespace clean-ups.
10057 (arm_skip_prologue): Fix thinko; two lines
10058 should have been removed as part of 4/24 change.
10060 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10062 * rs6000-tdep.c: Added comment describing how fpscr register
10063 numbers were chosen.
10065 2002-04-30 Michael Snyder <msnyder@redhat.com>
10067 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10069 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10071 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10072 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10073 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10075 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10077 From Louis Hamilton <hamilton@redhat.com>:
10078 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10079 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10080 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10081 not bfd-private xcoff data, to determine wordsize.
10082 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10084 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10086 GDB 5.2 released from 5.2 branch.
10088 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10090 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10091 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10092 (x86_64_register_info_table): Added comments with register numbers.
10094 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10096 * rs6000-tdep.c (rs6000_extract_return_value,
10097 rs6000_store_return_value): Handle returning vectors.
10098 (rs6000_gdbarch_init): Use
10099 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10100 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10102 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10104 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10105 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10107 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10109 * hpread.c (hpread_psymtab_to_symtab_1,
10110 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10111 with fprintf_unfiltered (gdb_stderr,...).
10113 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10115 * remote-array.c (printf_monitor, write_monitor,
10116 array_insert_breakpoint, array_remove_breakpoint ):
10117 Replace fprintf (stderr,...
10118 with fprintf_unfiltered (gdb_stderr,....
10119 * remote-es.c: Likewise.
10120 * remote-os9k.c: Likewise.
10121 * remote-st.c: Likewise.
10123 2002-04-28 Andreas Schwab <schwab@suse.de>
10125 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10126 linux-proc.o and gcore.o.
10128 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10130 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10131 code without frame pointers.
10133 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10135 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10136 ON_STACK is needed.
10138 2002-04-26 Ben Elliston <bje@redhat.com>
10140 * target.c (do_xfer_memory): Correct reference to the new option
10141 "trust-readonly-sections".
10143 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10145 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10146 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10147 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10149 (read_array_type): Record the fact that this array type is really a
10150 vector (i.e. are passed in by value).
10152 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10154 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10155 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10156 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10157 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10158 * alpha-linux-tdep.c: Include frame.h.
10159 (alpha_linux_sigcontext_addr): New function.
10160 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10161 alpha_linux_sigcontext_addr.
10162 * alpha-osf1-tdep.c: Include gdbcore.h.
10163 (alpha_osf1_sigcontext_addr): New function.
10164 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10165 alpha_osf1_sigcontext_addr.
10166 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10167 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10169 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10171 * stack.c (selected_frame_level):
10172 (select_frame): Do not set selected_frame_level.
10173 * frame.h (selected_frame_level): Delete declaration.
10175 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10177 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10178 convert_from_func_ptr-addr when AIX / PowerOpen.
10180 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10182 * valops.c (hand_function_call): Call
10183 generic_save_call_dummy_addr.
10184 * frame.h (generic_save_call_dummy_addr): Declare.
10185 * blockframe.c (struct dummy_frame): Add fields call_lo and
10187 (generic_find_dummy_frame): Check for PC in range call_lo to
10188 call_hi instead of entry_point_address.
10189 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10190 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10191 (generic_save_call_dummy_addr): New function.
10193 2002-04-24 David S. Miller <davem@redhat.com>
10195 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10196 sparc_skip_prologue.
10197 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10198 information to find prologue when possible.
10199 (sparc_prologue_frameless_p): Call examine_prologue directly.
10200 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10201 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10203 (SKIP_PROLOGUE): Likewise.
10205 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10207 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10208 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10209 indicate that the condition it was testing is always true.
10210 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10211 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10212 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10214 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10216 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10217 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10218 tdep->jb_pc and tdep->jb_elt_size.
10219 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10220 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10221 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10222 * alpha-nat.c (get_longjmp_target): Remove.
10223 (JB_ELEMENT_SIZE): Ditto.
10225 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10226 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10227 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10228 to alpha_get_longjmp_target.
10229 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10230 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10231 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10233 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10235 * README: Update to GDB 5.2.
10237 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10239 * gdbarch.sh (LC_ALL): Set to `c'.
10241 2002-04-25 Theodore A. Roth <troth@verinet.com>
10243 * avr-tdep.c: Ran through gdb_indent.sh.
10245 2002-04-25 Theodore A. Roth <troth@verinet.com>
10247 * MAINTAINERS: Add myself as AVR maintainer.
10248 * NEWS: Note new target avr.
10250 2002-04-25 Theodore A. Roth <troth@verinet.com>
10252 * Makefile.in: Add support for AVR target.
10253 * configure.tgt: Add support for AVR target.
10254 * avr-tdep.c: New file
10255 * config/avr/avr.mt: New file.
10257 2002-04-25 Theodore A. Roth <troth@verinet.com>
10259 * MAINTAINERS: Add myself to write-after-approval.
10261 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10263 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10264 with fprintf_unfiltered (gdb_stderr,....
10266 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10269 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10271 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10273 * p-exp.y: Also use new prev_lexptr variable
10274 to improve error reporting. Based on Michael Snyder
10275 2002-04-24 dated patch to c-exp.y.
10277 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10279 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10280 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10281 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10283 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10285 (FUNCTION_START_OFFSET): Remove.
10286 (BREAKPOINT): Ditto.
10288 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10290 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10293 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10295 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10296 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10297 alpha_linux_pc_in_sigtramp.
10298 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10299 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10300 alpha_osf1_pc_in_sigtramp.
10301 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10302 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10303 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10304 alphafbsd_pc_in_sigtramp.
10305 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10306 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10307 alphanbsd_pc_in_sigtramp.
10308 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10309 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10311 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10313 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10315 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10317 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10319 (alphanbsd-nat.o): New dependency list.
10320 (alphanbsd-tdep.o): Ditto.
10321 * NEWS: Note new native NetBSD/alpha configuration.
10322 * alphanbsd-nat.c: New file.
10323 * alphanbsd-tdep.c: Ditto.
10324 * configure.host (alpha*-*-netbsd*): New host.
10325 * configure.tgt (alpha*-*-netbsd*): New target.
10326 * config/alpha/nbsd.mh: New file.
10327 * config/alpha/nbsd.mt: Ditto.
10328 * config/alpha/nm-nbsd.h: Ditto.
10329 * config/alpha/tm-nbsd.h: Ditto.
10331 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10333 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10334 (alpha-osf1-tdep.o): New dependency list.
10335 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10336 and skip_sigtramp_frame members.
10337 * alpha-linux-tdep.c: Include gdbcore.h.
10338 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10339 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10340 * alpha-osf1-tdep.c: New file.
10341 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10343 (alpha_frame_past_sigtramp_frame): New function.
10344 (alpha_dynamic_sigtramp_offset): Ditto.
10345 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10346 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10347 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10348 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10349 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10350 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10351 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10352 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10353 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10354 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10355 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10356 to find_solib_trampoline_target.
10357 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10358 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10359 (SKIP_TRAMPOLINE_CODE): Remove.
10360 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10361 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10362 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10363 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10364 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10365 (PROC_SIGTRAMP_MAGIC): Ditto.
10366 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10367 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10368 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10369 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10370 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10372 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10374 * NEWS: Note that Alpha targets are now multi-arch.
10376 2002-04-24 Michael Snyder <msnyder@redhat.com>
10378 * parser-defs.h (prev_lexptr): New external variable.
10379 * parse.c (parse_exp_1): Set prev_lexptr to null before
10380 calling the language-specific parser.
10381 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10382 (yyerror): Use prev_lexptr in error reporting.
10384 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10386 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10387 * gregset.h: If FILL_FPXREGSET is defined, provide
10388 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10389 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10390 is defined, call fill_fpxregset.
10392 2002-04-24 Roland McGrath <roland@frob.com>
10394 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10395 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10396 (supply_gregset, supply_fpregset): New functions.
10398 * gnu-nat.c (gnu_find_memory_regions): New function.
10399 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10400 (gnu_xfer_memory): Add a cast.
10402 2002-04-24 Michael Snyder <msnyder@redhat.com>
10404 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10405 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10406 of argument regs ("str r(0123), [r11, #-nn"]).
10407 (arm_skip_prologue): Better handling for frameless functions.
10408 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10409 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10411 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10413 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10414 NUM_PSEUDO_REGS can be used.
10416 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10418 * arch-utils.h: Update copyright.
10420 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10421 * gdbarch.h, gdbarch.c: Re-generate.
10423 * inferior.h (IN_SIGTRAMP): Delete definition.
10424 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10425 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10427 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10428 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10429 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10430 (find_proc_framesize): Ditto.
10431 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10432 (alpha_init_extra_frame_info): Ditto.
10433 * infrun.c (handle_inferior_event): Ditto.
10434 (handle_inferior_event): Ditto.
10435 (check_sigtramp2): Ditto.
10436 * blockframe.c (create_new_frame): Ditto.
10437 (get_prev_frame): Ditto.
10438 * ppc-linux-tdep.c: Update comments.
10439 * i386-linux-tdep.c: Update comments.
10440 * breakpoint.c (bpstat_what): Update comment.
10442 2002-04-24 David S. Miller <davem@redhat.com>
10444 * i960-tdep.c (register_in_window_p): New function.
10445 (i960_find_saved_register): Use it instead of
10446 REGISTER_IN_WINDOW_P.
10447 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10449 * symtab.h (find_stab_function_addr): Kill extern.
10450 * minsyms.c (find_stab_function_addr): Remove from here...
10451 * dbxread.c: ... to here, and mark it static.
10453 2002-04-20 David S. Miller <davem@redhat.com>
10455 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10456 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10458 2002-04-21 David S. Miller <davem@redhat.com>
10460 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10461 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10462 (vx_write_register): Likewise.
10464 2002-04-23 J. Brobecker <brobecker@gnat.com>
10466 * source.c (is_regular_file): New function.
10467 (openp): Check wether file to open is a regular file
10468 to avoid opening directories.
10470 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10472 * findvar.c (extract_signed_integer): Cast printf argument
10473 to suppress format warning.
10474 (extract_unsigned_integer): Likewise.
10475 * infcmd.c (registers_info): Likewise.
10476 * top.c (get_prompt_1): Likewise.
10477 * valops.c (value_assign): Likewise.
10478 * valprint.c (print_decimal): Likewise.
10480 2002-04-22 H.J. Lu (hjl@gnu.org)
10482 * c-exp.y (typebase): Support
10484 [long|long long|short] [signed|unsigned] [int|]
10488 signed [long|long long|short] int
10490 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10492 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10494 * vax-tdep.h: New file.
10495 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10496 Make several routines static.
10497 (vax_get_saved_register): New function.
10498 (vax_gdbarch_init): New function.
10499 (_initialize_vax_tdep): Register vax_gdbarch_init.
10500 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10501 Remove macros now under the control of gdbarch.
10503 2002-04-22 Michael Snyder <msnyder@redhat.com>
10505 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10506 Some whitespace and coding standards tweaks.
10508 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10510 * vax-tdep.c: Include regcache.h.
10511 (vax_call_dummy_words): New.
10512 (sizeof_vax_call_dummy_words): New.
10513 (vax_fix_call_dummy): New function.
10514 (vax_saved_pc_after_call): Ditto.
10515 * config/vax/tm-vax.h: Don't include regcache.h.
10516 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10517 (CALL_DUMMY): Remove.
10518 (CALL_DUMMY_WORDS): Define.
10519 (SIZEOF_CALL_DUMMY_WORDS): Define.
10520 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10522 2002-04-18 Michael Snyder <msnyder@redhat.com>
10524 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10526 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10528 * vax-tdep.c (vax_frame_chain): New function.
10529 (vax_push_dummy_frame): Ditto.
10530 (vax_pop_frame): Ditto.
10531 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10532 (FRAMELESS_FUNCTION_INVOCATION): Use
10533 generic_frameless_function_invocation_not.
10534 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10535 (POP_FRAME): Use vax_pop_frame.
10537 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10539 * vax-tdep.c (vax_store_struct_return): New function.
10540 (vax_extract_return_value): Ditto.
10541 (vax_store_return_value): Ditto.
10542 (vax_extract_struct_value_address): Ditto.
10543 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10544 vax_store_struct_return.
10545 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10546 (STORE_RETURN_VALUE): Use vax_store_return_value.
10547 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10549 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10551 * vax-tdep.c (vax_frame_saved_pc): New function.
10552 (vax_frame_args_address_correct): Ditto.
10553 (vax_frame_args_address): Ditto.
10554 (vax_frame_locals_address): Ditto.
10555 (vax_frame_num_args): Move code to be in proximity to
10556 other frame-related functions.
10557 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10558 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10559 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10560 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10561 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10563 2002-04-22 H.J. Lu (hjl@gnu.org)
10565 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10568 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10570 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10571 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10572 (FRAME_INIT_SAVED_REGS): New macro.
10574 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10576 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10578 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10580 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10582 (fetch_osf_core_registers): Likewise.
10583 (supply_gregset): Likewise.
10585 2002-04-22 J. Brobecker <brobecker@gnat.com>
10587 * symfile.h (get_section_index): Define.
10588 * symfile.c (get_section_index): New function.
10589 * mdebugread.c (SC_IS_SBSS): New macro.
10590 (SC_IS_BSS): Return true for the scBss storage class only, as
10591 the scSBss storage class refers to the .sbss section.
10592 (parse_partial_symbols): Discard the symbols which associated
10593 section does not exist.
10594 Make sure to use the .sbss section index for symbols which
10595 storage class is scBss, rather than using the .bss section index.
10597 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10599 * vax-tdep.c: Update copyright years.
10600 (vax_register_name): New function.
10601 (vax_register_byte): Ditto.
10602 (vax_register_raw_size): Ditto.
10603 (vax_register_virtual_size): Ditto.
10604 (vax_register_virtual_type): Ditto.
10605 * config/vax/tm-vax.h: Update copyright years.
10606 (REGISTER_NAMES): Remove.
10607 (REGISTER_NAME): Define.
10608 (REGISTER_BYTE): Use vax_register_byte.
10609 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10610 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10611 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10613 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10615 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10617 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10619 2002-04-21 David S. Miller <davem@redhat.com>
10621 * arch-utils.c (generic_prologue_frameless_p): Kill
10622 SKIP_PROLOGUE_FRAMELESS_P code.
10623 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10625 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10626 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10627 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10629 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10630 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10631 (sparc_gdbarch_init): Pass it to
10632 set_gdbarch_prologue_frameless_p.
10634 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10636 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10637 (alphabsd-nat.o): New dependency list.
10639 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10641 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10643 (alpha-linux-tdep.o): New dependency list.
10644 (alphafbsd-tdep.o): Likewise.
10646 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10648 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10650 * alpha-tdep.c: ...from here.
10651 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10653 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10655 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10656 prototype from here...
10657 * alpha-tdep.h: ...to here.
10659 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10661 * frame.h (selected_frame_level): Document as deprecated.
10662 (frame_relative_level): Declare.
10663 * stack.c (frame_relative_level): New function.
10664 (selected_frame_level): Document as deprecated.
10665 (select_frame): Do not set the selected_frame_level.
10667 * stack.c (frame_info, record_selected_frame): Update.
10668 (frame_command, current_frame_command): Update.
10669 (up_silently_base, up_command, down_silently_base): Update.
10670 (down_command): Update.
10671 * inflow.c (kill_command): Update.
10672 * tracepoint.c (finish_tfind_command): Update.
10673 * corelow.c (core_open): Update.
10674 * thread.c (info_threads_command): Update.
10675 (do_captured_thread_select): Update.
10676 * infcmd.c (finish_command): Update.
10677 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10679 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10681 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10683 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10685 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10688 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10690 * alphafbsd-tdep.c: Update copyright years. Include
10692 (alphafbsd_use_struct_convention): Make static.
10693 (alphafbsd_init_abi): New function.
10694 (_initialize_alphafbsd_tdep): New function.
10695 * config/alpha/tm-fbsd.h: Update copyright years.
10696 (USE_STRUCT_CONVENTION): Remove.
10698 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10700 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10701 an Alpha ABI variant.
10702 (alpha_abi_handler_list): Declare.
10703 (alpha_gdbarch_register_os_abi): New function.
10704 (alpha_gdbarch_init): Give registered ABI variant handlers a
10705 chance to tweak the gdbarch once we have set up defaults.
10706 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10708 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10710 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10711 to standard_coerce_float_to_double.
10712 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10714 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10716 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10717 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10718 from gdbarch_tdep rather than a constant.
10719 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10720 the default text address for all Alpha Unix ABIs.
10721 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10722 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10724 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10726 * alpha-tdep.h: New file. Includes several Alpha target constants
10728 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10729 let gdbarch deal with.
10730 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10731 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10732 to dependency list.
10733 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10734 Alpha target register names.
10735 * alphabsd-nat.c: Likewise.
10736 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10737 Alpha target register names. Make serveral routines static.
10738 (alpha_get_saved_register): New function.
10739 (alpha_abi_names): New.
10740 (process_note_abi_tag_sections): New function.
10741 (get_elfosabi): New function.
10742 (alpha_gdbarch_init): New function.
10743 (alpha_dump_tdep): New function.
10744 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10746 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10748 * frame.c (find_saved_register): Delete #ifdef
10749 HAVE_REGISTER_WINDOWS code.
10750 * config/sparc/tm-sparc.h: Update comments.
10751 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10753 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10755 * i960-tdep.c (i960_find_saved_register): New function.
10756 (i960_get_saved_register): New function.
10757 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10758 (i960_get_saved_register): Declare.
10759 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10761 2002-04-20 David S. Miller <davem@redhat.com>
10763 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10765 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10767 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10768 instead of NUM_PSEUDO_REGS.
10770 2002-04-20 David S. Miller <davem@redhat.com>
10772 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10773 GDB_MULTI_ARCH_PARTIAL
10774 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10775 define, let tm-sp64.h do it.
10777 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10779 * frame.c (find_saved_register): Avoid a NULL pointer
10780 dereference and actually walk the frame list.
10782 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10784 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10785 sorted in most most-recent-used order. Document.
10786 * gdbarch.h, gdbarch.c: Regenerate.
10788 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10790 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10792 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10793 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10794 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10797 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10800 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10801 (build_builtin_type_vec128): Ditto.
10802 (append_composite_type_field): Fix calculation of type length in
10805 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10807 * config/djgpp/README: Update.
10809 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10812 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10814 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10815 (alpha_setup_arbitrary_frame): ...to this.
10816 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10817 for alpha_setup_arbitrary_frame.
10819 2002-04-18 Andrew Cagney <cagney@redhat.com>
10821 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10822 * gdbarch.h, gdbarch.c: Regenerate.
10824 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10825 * target.h (memory_breakpoint_from_pc): Update declaration.
10826 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10828 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10829 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10830 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10831 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10832 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10833 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10834 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10835 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10836 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10837 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10838 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10839 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10841 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10843 * monitor.c (monitor_insert_breakpoint): Ditto.
10844 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10846 * config/mcore/tm-mcore.h: Update copyright.
10847 * mem-break.c: Ditto.
10848 * xstormy16-tdep.c: Ditto.
10850 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10852 * p-exp.y: Add precedence rule for '^' token.
10853 This removes the shift/reduce conflicts.
10854 Remove the comment concerning these shift/reduce conflicts.
10856 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10858 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10859 (registers_powerpc_nofp): New register set for processors
10860 without floating point unit.
10862 2002-04-18 David S. Miller <davem@redhat.com>
10864 * MAINTAINERS: Add myself to write-after-approval.
10866 2002-04-17 Michael Snyder <msnyder@redhat.com>
10868 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10870 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10872 * rs6000-tdep.c (frame_initial_stack_address): Use
10873 frame_register_read to read the alloca_reg.
10875 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10877 * frame.c (find_saved_register): Find saved registers in the next
10881 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10883 * gdbarch.sh (LANG): Set to ``c''.
10885 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10887 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10889 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10891 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10894 * hpread.c (hpread_get_lntt): Add declaration.
10895 Also fix PR gdb/391.
10897 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10899 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10900 * aclocal.m4, configure: Re-generate.
10903 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10905 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10906 instead of tm_print_insn.
10908 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10910 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10912 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10914 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10915 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10916 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10918 2002-04-12 Don Howard <dhoward@redhat.com>
10920 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10921 max_user_call_depth.
10922 (init_cmd_lists): Initialize the new value;
10923 * cli/cli-script.c (execute_user_command): Limit the call depth of
10924 user defined commands. This avoids a core-dump when user commands
10925 are infinitly recursive.
10927 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10929 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10930 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10931 from tdep struct instead of DEFAULT_LR_SAVE.
10932 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10933 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10934 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10936 2002-04-12 Michael Snyder <msnyder@redhat.com>
10938 * Remote.c: Spelling fix.
10939 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10940 If no symbol found for "sbrk", try "_sbrk".
10941 (make_output_phdrs): Use bfd_section_name.
10942 (gcore_copy_callback): Use bfd_section_name.
10943 * eval.c: Indentation fix-ups.
10944 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10945 in case it gets applied to an address that is already
10946 in the instruction space.
10947 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10948 * symfile.c: Fix indentation, long lines.
10949 * source.c: White space fix-up.
10951 2002-04-12 Andrew Cagney <cagney@redhat.com>
10953 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10954 * frame.c (frame_register_read): New function. Return non-zero on
10956 (read_relative_register_raw_bytes_for_frame): Delete.
10957 (read_relative_register_raw_bytes): Delete.
10958 * frame.h (frame_register_read): Declare.
10959 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10960 * sh-tdep.c: Ditto.
10961 * infcmd.c (do_registers_info): Ditto.
10962 * hppa-tdep.c: Ditto.
10963 * rs6000-tdep.c: Ditto.
10964 * h8500-tdep.c: Ditto.
10965 * mips-tdep.c: Ditto.
10966 * h8300-tdep.c: Ditto.
10967 * z8k-tdep.c: Ditto.
10969 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10971 From Jimi X <jimix@watson.ibm.com>:
10972 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10975 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10977 From Jimi X <jimix@watson.ibm.com>:
10978 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10981 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10983 From Jimi X <jimix@watson.ibm.com>:
10984 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10985 register sets for these processor variants.
10987 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10989 * regformats/reg-ppc.dat: Support FPSCR.
10991 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10993 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10994 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10995 Add fpscr as an invalid/unfetchable register.
10996 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10997 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10998 (fill_fpregset): Add support for register fpscr.
10999 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11000 (fill_gregset): Account for the fact that register ``mq'' might
11002 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11003 (registers_power): Add fpscr to register set at slot 71.
11004 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11005 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11007 2002-04-11 Michael Snyder <msnyder@redhat.com>
11009 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11010 * configure: Regenerate.
11011 * config.in: Regenerate.
11012 * acconfig.h: Add define for _SYSCALL32.
11013 * core-sol2.c: Remove #define _SYSCALL32.
11014 * solib-legacy.c: Remove #define _SYSCALL32.
11016 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11018 * stack.c (select_frame): Cleanup internal error message, do not
11021 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11023 * stack.c (select_frame): Check that selected_frame and the
11024 specified level are as expected.
11025 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11027 * frame.h (struct frame_info): Add field `level'. Update
11029 Work-in-progress PR gdb/464.
11031 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11033 * maint.c (maint_print_section_info): Rename print_section_info.
11034 (print_bfd_section_info, print_objfile_section_info): Update.
11035 * inferior.h (struct gdbarch): Add opaque declaration.
11036 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11037 * gdbarch.h: Regenerate.
11039 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11041 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11042 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11043 (kernel_u_size): Added.
11044 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11045 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11047 2002-04-04 Jim Ingham <jingham@apple.com>
11049 * valarith.c (find_size_for_pointer_math): New function, either returns
11050 the size for a pointer's target, returns 1 for void *, or errors for
11052 (value_add, value_sub): use find_size_for_pointer_math.
11054 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11056 * linux-low.c (linux_look_up_symbols): New hook.
11057 (linux_target_ops): Add linux_look_up_symbols.
11058 * remote-utils.c (decode_address): New function.
11059 (look_up_one_symbol): New function.
11060 * server.c (handle_query): Call target look_up_symbols hook.
11061 * server.h (look_up_one_symbol): Add prototype.
11062 * target.h (struct target_ops): Add look_up_symbols hook.
11064 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11066 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11067 override FP_REGNUM with frame->fp. Update copyright.
11068 * parse.c (num_std_regs, std_regs): Delete.
11069 (target_map_name_to_register): Do not search std_regs. Update
11070 function description.
11071 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11072 declarations. Update copyright.
11075 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11077 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11078 after the last symbol in a block.
11080 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11082 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11083 is non zero as a found symbol.
11085 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11087 * findvar.c: Include "builtin-regs.h".
11088 (value_of_register): Call value_of_builtin_reg when applicable.
11089 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11090 (target_map_name_to_register): Call
11091 builtin_reg_map_name_to_regnum.
11092 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11093 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11094 (builtin_regs_h): Define.
11095 (builtin-regs.o): New target.
11096 (findvar.o): Add $(builtin_regs_h).
11097 * builtin-regs.c, builtin-regs.h: New files.
11098 * std-regs.c: New file.
11099 Partial fix for PR gdb/251.
11101 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11103 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11104 it's no longer required.
11106 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11108 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11110 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11112 From Jimi X <jimix@watson.ibm.com>:
11113 * rs6000-tdep.c (rs6000_software_single_step): Use
11114 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11115 and size. Use target_insert_breakpoint() and
11116 target_remove_breakpoint() to insert and remove breakpoints
11117 instead of explicit memory reads and writes.
11119 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11121 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11122 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11123 ELF_OBJECT_FORMAT ifdef.
11125 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11127 From Jimi X <jimix@watson.ibm.com>:
11128 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11130 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11132 From Jimi X <jimix@watson.ibm.com>:
11133 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11134 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11136 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11138 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11139 s/asprintf/xasprintf/.
11140 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11142 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11144 I believe Jeff Law denies responsability for this one:
11145 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11146 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11147 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11148 Work-around for PR gdb/366.
11150 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11152 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11153 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11154 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11156 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11158 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11159 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11162 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11164 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11167 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11169 * README (Reporting Bugs in GDB): Document the bug web page as the
11170 prefered way of submitting bugs.
11173 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11175 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11176 -1. Update comment.
11177 * gdbarch.h, gdbarch.c: Re-generate.
11179 2002-04-07 Andreas Schwab <schwab@suse.de>
11181 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11182 buffer to regcache_collect.
11184 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11186 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11187 * gdbarch.c, gdbarch.h: Re-generate.
11189 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11191 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11192 declaration. Fix -Werror.
11194 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11196 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11197 * gdbarch.c: Regenerate.
11199 2002-04-05 Michael Snyder <msnyder@redhat.com>
11201 * breakpoint.c (clear_command): Rewrite middle section to
11202 combine two loops with identical control conditions.
11203 Add a cleanup to eliminate a memory leak.
11204 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11206 2002-04-05 H.J. Lu (hjl@gnu.org)
11208 * solib-svr4.c (bkpt_names): Add "__start".
11210 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11212 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11213 as test for 64 bit target.
11215 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11217 * h8500-tdep.c (h8500_write_fp): Delete function.
11218 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11219 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11220 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11222 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11223 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11225 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11226 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11227 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11228 (d10v_write_fp): Delete function.
11229 * inferior.h (write_fp, generic_target_write_fp): Delete
11231 * regcache.c (generic_target_write_fp): Delete function.
11232 (write_fp): Delete function.
11233 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11234 * gdbarch.h, gdbarch.c: Regenerate.
11235 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11236 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11237 (sparc64_write_fp): Delete declaration.
11238 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11239 (h8500_write_fp): Delete declaration.
11241 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11243 * sparc-tdep.c (sparc64_write_fp): Delete.
11244 (sparc_push_dummy_frame): Replace write_fp call with code to store
11246 (sparc_gdbarch_init): Do not initialize write_fp.
11248 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11250 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11253 2002-03-29 Jim Blandy <jimb@redhat.com>
11255 * stack.c (get_selected_block): Add new argument `addr_in_block',
11256 used to return the exact code address we used to select the block,
11257 not just the block.
11258 * blockframe.c (get_frame_block, get_current_block): Same.
11259 * frame.h (get_frame_block, get_current_block,
11260 get_selected_block): Update declarations.
11261 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11262 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11264 2002-04-05 Michael Snyder <msnyder@redhat.com>
11266 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11269 2002-04-05 J. Brobecker <brobecker@gnat.com>
11271 * utils.c (xfullpath): New function.
11272 * defs.h (xfullpath): Add declaration.
11273 * source.c (openp): Use xfullpath in place of gdb_realpath to
11274 avoid resolving the basename part of filenames when the
11275 associated file is a symbolic link. This fixes a potential
11276 inconsistency between the filenames known to GDB and the
11277 filenames it prints in the annotations.
11278 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11279 to be able to match a filename with either the real filename, or
11280 the name of any symbolic link to this file.
11281 (lookup_partial_symtab): Ditto.
11283 2002-04-04 Michael Snyder <msnyder@redhat.com>
11285 * breakpoint.c: Add support for hardware breakpoints in overlays.
11286 (overlay_events_enabled): New state variable.
11287 (insert_breakpoints): Use overlay_events_enabled to decide
11288 whether to attempt to set a breakpoint at the overlay load addr.
11289 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11290 (remove_breakpoint): Use overlay_events_enabled to decide
11291 whether breakpoints need to be removed from overlay load addr.
11292 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11293 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11294 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11295 disable_overlay_breakpoints): Update overlay_events_enabled.
11297 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11299 * dwarf2read.c (struct function_range): New.
11300 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11301 (check_cu_functions): New.
11302 (read_file_scope): Initialize global function lists.
11303 Call dwarf_decode_line after processing children.
11304 (read_func_scope): Add to global function list.
11305 (dwarf_decode_lines): Call check_cu_functions everywhere
11306 record_line is called. Call record_line with a linenumber
11307 of 0 to mark sequence ends.
11309 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11311 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11312 change sync with glibc.
11314 2002-04-03 Jim Blandy <jimb@redhat.com>
11316 * configure.in: Call AC_C_INLINE.
11317 * configure: Regenerated.
11319 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11321 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11322 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11324 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11326 * NEWS: Mention gcore support on FreeBSD/i386.
11328 * fbsd-proc.c: New file.
11329 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11330 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11332 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11335 2002-03-29 Jim Blandy <jimb@redhat.com>
11337 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11338 unescaped newlines in string literals, but newer ones don't. So
11341 2002-03-26 Michael Snyder <msnyder@redhat.com>
11342 Andrew Cagney <cagney@redhat.com>
11344 * cli/cli-dump.c: New file. Dump memory to file,
11345 restore file to memory.
11346 * cli/cli-dump.h: New file.
11347 * Makefile.in: Add rules, dependencies for cli-dump.o.
11348 * NEWS: Mention new commands.
11350 2002-03-28 Michael Snyder <msnyder@redhat.com>
11352 * symfile.c (symbol_file_add): Move test for null symbols to later.
11354 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11356 From veksler at il.ibm.com:
11357 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11358 the xstrduped original path.
11361 2002-03-27 Michael Snyder <msnyder@redhat.com>
11363 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11364 * infcmd.c (_initialize_infcmd): Ditto.
11365 * language.c (_initialize_language): Ditto.
11366 * symfile.c (_initialize_symfile): Ditto.
11367 * top.c (_init_main): Ditto.
11368 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11370 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11372 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11373 vector registers handling.
11374 (skip_prologue): Handle new AltiVec instructions. Fill in new
11375 fields of frame data.
11376 (frame_get_saved_regs): Fill in information for AltiVec registers.
11378 2002-03-27 Jim Blandy <jimb@redhat.com>
11380 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11381 a function; leave this macro here to invoke that function.
11382 (symbol_init_mangled_name): Declaration for that function.
11383 * symtab.c (symbol_init_mangled_name): New function.
11385 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11387 * valarith.c: Replace strerror with safe_strerror.
11388 * tracepoint.c: Ditto.
11389 * lin-lwp.c: Ditto.
11390 * go32-nat.c: Ditto.
11392 * gnu-nat.c: Ditto.
11394 2002-03-27 Andreas Schwab <schwab@suse.de>
11396 * event-top.c (command_line_handler): Remove useless if.
11398 2002-03-27 Andreas Jaeger <aj@suse.de>
11400 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11403 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11405 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11406 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11407 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11408 (x86_64_linux_dr_get_status, supply_gregset),
11409 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11410 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11411 (x86_64_register_info_table): Add.
11412 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11413 (x86_64_register_raw_size, x86_64_register_virtual_type),
11414 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11415 general x86_64_register_info_table.
11416 (i386_gdbarch_init): gdbarch_register_bytes is now set
11417 dynamicaly during initialization.
11418 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11419 * gdbserver/linux-x86-64-low.c: Ditto.
11421 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11423 * gdbserver/server.c (main): Call target_signal_to_host_p
11424 and target_signal_to_host on signals received from the remote.
11425 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11426 target_signal_from_host on signals sent to the remote.
11427 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11428 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11430 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11432 * signals/signals.c: Include "server.h" in gdbserver build.
11433 (target_signal_from_name): Don't use STREQ.
11434 (_initialize_signals): Likewise. Don't include function in
11437 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11439 * signals.c: Moved to...
11440 * signals/signals.c: Here.
11441 * Makefile (signals.o): Update.
11443 2002-03-26 Jeff Law (law@redhat.com)
11445 * somread.c (som_symtab_read): Remove some commented out code and
11446 updated related comments. Do not set the minimal symbol table to
11447 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11448 in a dynamic executable.
11449 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11450 where we are unable to find the minimal symbol for the given
11453 2002-03-25 Jeff Law (law@redhat.com)
11455 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11457 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11459 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11461 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11463 * command.h: Update copyright.
11464 (struct cmd_list_element): Replace definition with opaque
11466 (enum cmd_types): Document that it will eventually be moved to
11468 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11469 (MALLOCED_REPLACEMENT): Delete macro.
11470 * Makefile.in (cli_decode_h): Add $(command_h).
11471 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11472 * top.c: Include "cli/cli-decode.h".
11473 * completer.c: Include "cli/cli-decode.h".
11474 * maint.c: Include "cli/cli-decode.h".
11475 * cli/cli-decode.h: Include "command.h".
11476 (enum command_class): Delete.
11477 (enum cmd_types): Comment out.
11478 (enum cmd_auto_boolean): Delete.
11479 (enum var_types): Delete.
11481 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11483 * cli/cli-decode.c: Include "gdb_assert.h".
11484 (add_set_or_show_cmd): New static function.
11485 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11486 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11487 all fields, such as func, from the set command.
11489 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11491 * MAINTAINERS (sh-elf): Change warning flag to -w.
11493 2002-03-23 Andrew Cagney <cagney@redhat.com>
11495 * defs.h (error): Add printf format attribute.
11496 * thread-db.c (thread_from_lwp): Fix error format string.
11497 * stack.c (parse_frame_specification): Ditto.
11498 * cli/cli-decode.c (undef_cmd_error): Ditto.
11499 * scm-lang.c (scm_lookup_name): Ditto.
11500 * tracepoint.c (trace_error): Ditto.
11501 * remote-utils.c (usage): Ditto.
11502 * remote.c (compare_sections_command): Ditto.
11505 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11507 * gdbtypes.c (append_composite_type_field): New function.
11508 (init_composite_type): New function.
11509 * gdbtypes.h (append_composite_type_field): Declare.
11510 (init_composite_type): Ditto.
11512 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11514 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11516 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11517 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11518 structure returning convention for SYSV ABI case, but not
11519 for GNU/Linux, FreeBSD, or NetBSD.
11521 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11523 * symtab.h (lookup_block_symbol): Add mangled_name argument
11526 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11527 with new mangled_name argument.
11528 * linespec.c (decode_line_1): Likewise.
11529 * valops (value_of_this): Likewise.
11530 * symtab.c (lookup_transparent_type): Likewise.
11531 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11532 (lookup_symbol): If we are given a mangled name, pass it down
11533 to lookup_symbol_aux.
11534 (lookup_block_symbol): If we are given a mangled name to check
11535 against, only return symbols which match it.
11537 2002-03-22 Christopher Faylor <cgf@redhat.com>
11539 * win32-nat.c (child_create_inferior): Check for proper shell to use
11540 here, in case the user changes it on the fly.
11541 (_initialize_inftarg): Remove shell path considerations.
11543 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11545 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11546 for gdbarch_max_register_raw_size and max_register_virtual_size.
11547 Adjust copyright year.
11549 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11551 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11552 in a function to cover the entire beginning of the function
11553 as well if it does not already.
11555 2002-03-21 Tom Rix <trix@redhat.com>
11557 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11558 (rs6000_ptrace64): Renamed from ptrace64.
11560 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11562 * gdbserver/remote-utils.c (remote_open): Don't call
11563 getprotobyname, we're all using TCP here so just use
11565 * gdbserver/gdbreplay.c (remote_open): Ditto.
11567 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11569 * regcache.c (_initialize_regcache): No need to call
11570 build_regcache() at this time; it gets called whenever
11571 the gdbarch changes.
11573 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11575 * sparc-nat.c: Include sys/param.h where possible.
11577 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11580 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11581 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11582 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11584 * stabsread.c (rs6000_builtin_type): Likewise.
11585 (read_sun_floating_type): Likewise.
11587 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11589 * stabsread.c (read_member_functions): Remove skip code for duplicate
11590 constructor/destructor methods. Use standard parsing for these
11591 methods and just do not chain them to the list of methods after
11594 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11596 * coffread.c: Remove redundant static declarations. Replace
11597 occurrences of `PTR' with `void *'.
11598 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11599 * top.h (quit_cover): Likewise.
11600 * defs.h (catch_errors): Likewise.
11602 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11604 * defs.h (XMALLOC): Define.
11605 * gdb-events.sh (XMALLOC): Delete macro.
11606 * gdb-events.c, gdb-events.h: Regenerate.
11607 * gdbarch.sh (XMALLOC): Delete macro.
11608 * gdbarch.c: Regenerate.
11609 * serial.c (XMALLOC): Delete macro.
11610 * ui-file.c (XMALLOC): Ditto.
11611 * ser-unix.h (XMALLOC): Ditto.
11612 * sh-tdep.c (XMALLOC): Ditto.
11613 * ui-out.c (XMALLOC): Ditto.
11614 * utils.c (XMALLOC): Ditto.
11615 * i386-tdep.c (XMALLOC): Ditto.
11616 * gdb-events.c (XMALLOC): Ditto.
11617 * d10v-tdep.c (XMALLOC): Ditto.
11618 * cli-out.c (XMALLOC): Ditto.
11620 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11621 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11622 * ui-file.c, ui-out.c: Ditto.
11624 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11626 * command.h (struct cmd_list_element): Add field context.
11627 (set_cmd_context, get_cmd_context): Declare.
11628 * cli/cli-decode.h: Ditto.
11629 * cli/cli-decode.c (get_cmd_context): New function.
11630 (set_cmd_context): New function.
11631 (add_cmd): Initialize context.
11632 Part of fixing PR gdb/145 and PR gdb/146.
11634 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11636 * cli/cli-decode.c (cmd_type): New function.
11637 * command.h (cmd_type): Declare.
11638 * infrun.c (set_schedlock_func): Call function cmd_type.
11639 * kod.c (kod_set_os): Call cmd_type.
11640 * cris-tdep.c (cris_version_update): Use function cmd_type.
11641 (cris_mode_update, cris_abi_update): Ditto.
11643 * command.h: (execute_cmd_post_hook): Declare.
11644 (execute_cmd_pre_hook): Declare.
11645 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11646 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11647 functions. Execute pre/post hook while ensuring that afterwords
11648 hook_in is cleared.
11649 * top.c (execute_command): Use execute_cmd_post_hook, and
11650 execute_cmd_pre_hook to execute pre/post commands.
11651 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11653 (hook_stop_stub): Call execute_cmd_pre_hook.
11655 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11657 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11658 set'' and this leads to a core dump. Move xstrdup of
11659 operating_system to after check that it is not NULL.
11661 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11663 * kod.c (kod_set_os): Remove unnecessary check that
11664 ``command->type'' is set_cmd.
11666 * valprint.c (set_input_radix): Use input_radix.
11667 (set_output_radix): Use output_radix.
11668 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11671 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11673 * value.h (struct value): Delete field ``substring_addr''. Change
11674 aligner fields to force_doublest_align, force_longest_align,
11675 force_core_addr_align and force_pointer_aligh.
11677 * value.h (struct value): Fix typo in above change.
11679 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11681 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11682 to fix internal_error from ``maintenance print architecture''.
11684 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11686 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11687 for gcc versions after gcc-2.8.1.
11689 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11691 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11692 for method resolution. Restore adjustment of ``this'' pointer after
11693 calling value_struct_elt, which was accidentally removed during the
11696 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11698 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11700 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11701 get_saved_register.
11702 * value.h (value_of_register): Update.
11704 2002-03-14 Richard Henderson <rth@redhat.com>
11706 * configure.in: Detect declaration for canonicalize_file_name.
11707 * utils.c (canonicalize_file_name): Declare, if needed.
11708 (gdb_realpath): Prefer realpath if available and usable.
11709 * config.in, configure: Rebuild.
11711 2002-03-14 Richard Henderson <rth@redhat.com>
11713 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11714 a constant array bound.
11716 * MAINTAINERS: Add myself to write-after-approval.
11718 2002-03-14 Michael Snyder <msnyder@redhat.com>
11720 * symfile.c (syms_from_objfile): Return immediately if no syms.
11721 (symbol_file_add): Return immediately if no syms.
11722 (find_sym_fns): Return immediately if no syms.
11724 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11726 * gdbserver/remote-util.c (remote_open): Print remote-side's
11727 IP address when remote debugging over the network.
11729 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11731 * config/sparc/fbsd.mh: Fix copyright.
11732 * config/sparc/fbsd.mt: Likewise.
11734 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11736 * MAINTAINERS: Fix typo in name of gdb warnings option.
11737 (x86-64): Fix formating so that this can be parsed by awk.
11739 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11741 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11742 * defs.h: Include "gdb/signals.h".
11743 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11745 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11747 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11748 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11751 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11752 Don Howard <dhoward@redhat.com>
11754 * mips-tdep.c (ST0_FR): Define.
11755 (mips2_fp_compat): New function, temporarily disabled.
11756 (mips_read_fp_register_single): New function.
11757 (mips_read_fp_register_double): New function.
11758 (mips_print_register): Use them.
11759 (do_fp_register_row): Likewise.
11761 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11763 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11766 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11768 * stabsread.c (read_member_functions): Fix is_stub test for
11769 static member functions, improve comment.
11771 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11773 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11774 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11775 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11776 commands that set boolean values.
11777 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11778 (arm_rdi_resume): Always initialize PC.
11779 (arm_rdi_open): Don't use rslt as a boolean.
11780 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11781 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11782 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11783 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11785 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11787 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11788 * configure: Rebuilt.
11790 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11792 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11793 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11795 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11797 * cli/cli-decode.c (set_cmd_completer): New function.
11798 * command.h (set_cmd_completer): Declare.
11799 * cli/cli-decode.h (set_cmd_completer): Ditto.
11801 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11802 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11803 * win32-nat.c (_initialize_inftarg): Ditto.
11804 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11805 * proc-api.c (_initialize_proc_api): Ditto.
11806 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11807 * source.c (_initialize_source): Ditto.
11808 * exec.c (_initialize_exec): Ditto.
11809 * solib.c (_initialize_solib): Ditto.
11810 * top.c (init_main): Ditto.
11811 * tracepoint.c (_initialize_tracepoint): Ditto.
11812 * symfile.c (_initialize_symfile): Ditto.
11813 * printcmd.c (_initialize_printcmd): Ditto.
11814 * infcmd.c (_initialize_infcmd): Ditto.
11815 * corefile.c (_initialize_core): Ditto.
11817 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11819 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11821 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11823 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11825 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11827 * NEWS: Update headings, 5.2 has branched.
11829 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11831 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11832 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11833 (register_addr, REGISTER_RAW_SIZE): Likewise.
11834 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11835 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11837 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11839 * MAINTAINERS (x86-64): Add myself.
11840 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11841 changed value_ptr -> struct value *
11843 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11845 * configure.host (sparc64-*-freebsd): Add.
11846 * configure.tgt: Likewise.
11847 * config/sparc/fbsd.mh: New file.
11848 * config/sparc/fbsd.mt: Likewise.
11849 * config/sparc/nm-fbsd.h: Likewise.
11850 * config/sparc/tm-fbsd.h: Likewise.
11852 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11854 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11855 regformats/reg-s390x.dat.
11857 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11859 * utils.c: Add FIXME explaining true/false problem.
11861 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11863 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11865 2002-02-28 Michael Chastain <mec@shout.net>
11867 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11869 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11871 * gdbserver/linux-s390-low.c: New file.
11872 * regformats/reg-s390.dat: New file.
11873 * regformats/reg-s390x.dat: New file.
11874 * gdbserver/configure.srv: Add S/390.
11875 * gdbserver/Makefile.in: Add S/390.
11876 * configure.tgt: Enable gdbserver for S/390.
11878 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11880 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11881 first line of the doc string for "info dos", except at the end of
11882 the sentence, since the short help stops at the first period.
11884 2002-02-28 Jason Merrill <jason@redhat.com>
11886 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11888 2002-02-27 Fred Fish <fnf@redhat.com>
11890 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11891 comment (dumy -> dummy).
11893 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11895 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11897 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11899 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11901 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11903 * gdbserver/acconfig.h: New file.
11904 * gdbserver/i387-fp.c: New file.
11905 * gdbserver/i387-fp.h: New file.
11906 * gdbserver/linux-x86-64.c: New file.
11907 * regformats/reg-x86-64.dat: New file.
11908 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11909 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11910 * gdbserver/configure.in: Add support for regsets.
11911 * gdbserver/config.in: Regenerate.
11912 * gdbserver/configure: Regenerate.
11913 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11914 * gdbserver/linux-low.h: New file.
11915 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11917 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11918 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11919 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11920 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11921 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11922 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11923 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11924 "i387-fp.h". Add PTRACE_GETREGS and friends.
11925 * gdbserver/regcache.c (supply_register): New function.
11926 (supply_register_by_name): New function.
11927 (collect_register): New function.
11928 (collect_register_by_name): New function.
11930 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11932 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11933 (config.status): Add configure.srv dependency.
11934 (server_h): Add config.h dependency.
11936 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11938 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11939 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11940 * gdbserver/configure.srv: Change i386-*-linux* to use
11943 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11945 * x86-64-tdep.c: Re-indent. Update copyright date.
11947 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11949 From Michal Ludvig <mludvig@suse.cz>:
11950 * x86-64-tdep.c (value.h): Delete.
11951 (gdb_assert.h): Include.
11952 (x86_64_register_convert_to_virtual,
11953 x86_64_register_convert_to_raw ): Add check which lets only
11954 floating-point values to be converted.
11955 (value_push): Delete.
11956 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11957 (i386_gdbarch_init): Number of register_bytes fixed.
11959 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11961 * MAINTAINERS: Add x86-64 target.
11963 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11965 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11966 * osfsolib.c (solib_map_sections): Ditto.
11967 * irix5-nat.c (solib_map_sections): Ditto.
11968 * corelow.c (gdb_check_format): Ditto.
11969 * symfile.c (symfile_bfd_open): Ditto.
11970 * solib.c (solib_map_sections): Ditto.
11973 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11975 * remote.c (_initialize_remote): By default, disable ``e'' and
11976 ``E'' step out-of-range packets.
11978 2002-02-26 Andreas Schwab <schwab@suse.de>
11980 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11981 m68k_linux_frame_saved_pc.
11982 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11984 (SIGCONTEXT_PC_OFFSET): Remove.
11985 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11986 m68k_linux_sigtramp_saved_pc): New functions.
11987 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11988 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11989 (UCONTEXT_PC_OFFSET): Define.
11990 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11991 non-RT and RT signal trampolines.
11993 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11995 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11996 (TARGET_NBPG, STACK_END_ADDR): Delete
11997 (VARIABLES_INSIDE_BLOCK): Delete.
11999 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12001 * utils.c (perror_with_name): Make string parameter constant.
12002 (print_sys_errmsg): Ditto.
12004 * defs.h (perror_with_name): Update.
12005 (print_sys_errmsg): Update.
12008 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12010 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12011 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12013 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12015 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12016 if it already matches the current architecture from the exec file.
12017 Include arch-utils.h for gdbarch_info_init prototype.
12018 * Makefile.in (rs6000-nat.o): Update dependencies.
12020 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12022 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12023 list of exported variables.
12025 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12027 * gdbserver/configure.srv: New file.
12028 * gdbserver/configure.in: Use configure.srv instead
12029 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12031 * gdbserver/configure: Regenerated.
12032 * gdbserver/terminal.h: New file.
12033 * gdbserver/Makefile.in: Update for configure changes. Remove
12034 more unneeded include paths.
12036 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12038 From wiz at danbala:
12039 * config/sparc/tm-sp64.h: Fix grammar and typos.
12042 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12044 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12045 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12046 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12047 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12048 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12049 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12050 * s390-tdep.c: Ditto.
12051 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12052 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12053 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12054 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12055 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12056 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12057 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12058 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12059 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12060 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12063 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12065 * lin-thread.c: Delete file.
12066 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12067 to gdb_proc_service.h.
12068 * configure: Re-generate.
12070 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12071 * serial.c (serial_open): Delete check for "ocd".
12074 * Makefile.in (linux-thread.o): Delete target.
12075 * linux-thread.c: Delete file.
12077 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12078 renamed SH files to be consistent.
12080 * symtab.c (sort_search_symbols): Use xfree.
12082 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12084 * arm-linux-tdep.c (arm_linux_init_abi): Register
12085 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12086 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12087 definition with undef, since we don't want the sysvr4 definition.
12088 (SKIP_TRAMPOLINE_CODE): Likewise.
12090 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12092 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12094 * configure.in: (AC_CHECK_FUNCS) Added test for
12095 canonicalize_file_name Regenerated.
12096 * config.in, configure: Regenerated.
12097 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12098 defined use canonicalize_file_name.
12100 2002-02-23 Michael Chastain <mec@shout.net>
12102 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12104 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12106 * README: Remove references to cygnus.com.
12107 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12108 dot com'' form. Remove references to cygnus.com and sourceware.
12110 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12112 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12113 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12114 1003.1-2001 no longer allows "head -1".
12115 * gdb/Makefile.in (version.c): Likewise.
12116 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12117 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12118 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12120 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12122 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12123 * command.h (cmd_cfunc_eq): Declare.
12124 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12126 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12127 ``struct cmd_list_element *''.
12128 * cli/cli-cmds.c (is_complete_command): Update. Use
12130 * top.c (execute_command): Pass the command to
12131 is_complete_command.
12132 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12134 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12136 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12137 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12138 architecture defines.
12139 * s390-tdep.c (s390_gdbarch_init): Likewise.
12141 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12143 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12144 (arm_linux_push_arguments): Likewise.
12145 (arm_linux_init_abi): Register them. Also register linux-specific
12147 (find_minsym_and_objfile): Use strcmp, not STREQ.
12148 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12149 (arm_linux_call_dummy_words): Delete declaration.
12150 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12151 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12153 (LOWEST_PC): Delete.
12155 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12157 * maint.c (print_section_info): Do not prepend `0x' to filepos
12158 output, it will be handled by local_hex_string_custom.
12160 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12162 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12163 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12164 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12166 2002-02-22 Jim Blandy <jimb@redhat.com>
12168 Indicate that the bcache functions don't change the strings
12170 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12171 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12173 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12175 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12177 2002-02-21 Christopher Faylor <cgf@redhat.com>
12179 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12180 find the complete path to a loaded DLL.
12182 2002-02-21 Fred Fish <fnf@redhat.com>
12184 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12185 that marks the end of the range of a function, enter a line number
12186 entry that has a line number of zero and a PC offset that matches
12187 the end of the function. This starts a range of PC's for which no
12188 line number information is known.
12189 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12190 PC's for which no line number info is found (line number is zero)
12191 then we didn't find any valid line information.
12192 * symtab.h: Document use of zero line number entry.
12194 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12196 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12197 (have_ptrace_getvrregs): Define for run time checks.
12198 (gdb_vrregset_t): New type for Altivec register handling.
12199 (fetch_register, store_register): Fetch/store altivec register
12201 (fetch_altivec_register, store_altivec_register): New functions.
12202 (supply_vrregset, fill_vrregset): New functions.
12203 (fetch_altivec_registers, store_altivec_registers): New functions.
12204 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12207 2002-02-21 Jiri Smid <smid@suse.cz>
12209 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12211 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12213 * Makefile.in (armnbsd-nat.o): Update dependencies.
12214 * armnbsd-nat.c (supply_gregset): New function. Common code to
12215 supply the integer register set.
12216 (supply_fparegset): New function. Similar for FPA registers.
12217 (fetch_regs, fetch_fp_regs): Use them.
12218 (fetch_core_registers): Likewise.
12219 (fetch_elfcore_registers): New function.
12220 (arm_netbsd_elfcore_fns): New core-file type specification.
12221 (_initialize_arm_netbsd_nat): Register it.
12223 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12225 * armnbsd-nat.c: Include gdbcore.h.
12226 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12227 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12228 'void' to declaration, to shut up ARI.
12229 (fetch_core_registers): Make static. Rewrite using supply_register.
12230 (arm_netbsd_core_fns): New core-file type specification.
12231 (_initialize_arm_netbsd_nat): New function.
12233 2002-02-21 Christopher Faylor <cgf@redhat.com>
12235 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12238 2002-02-20 Christopher Faylor <cgf@redhat.com>
12240 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12243 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12245 * jv-exp.y (parse_number): Change type of implicit longs
12246 to builtin_type_uint64.
12248 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12250 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12251 to be an integer instead of a `union wait'.
12253 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12255 * mips-linux-nat.c: Call the operating system GNU/Linux.
12256 * mips-linux-tdep.c: Likewise.
12257 * mips-tdep.c: Likewise.
12259 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12262 * jv-exp.y (parse_number): Handle 64-bit integers.
12264 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12266 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12267 AC_STDC_HEADERS to AC_HEADER_STDC.
12268 * gdbserver/configure: Regenerated.
12270 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12272 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12274 * sparc-tdep.c (get_longjmp_target): Likewise.
12276 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12278 * News: Add news about ARM and Multi-arch. Mention the new target
12281 2002-02-19 Jim Blandy <jimb@redhat.com>
12283 * stabsread.c (error_type_complaint): Improve error message.
12285 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12287 * gdbserver/README: Update documentation.
12288 * gdbserver/configure.in: Update configury to match documentation.
12289 * gdbserver/Makefile.in: Likewise.
12290 * gdbserver/configure: Regenerated.
12291 * gdbserver/aclocal.m4: New file, generated by aclocal.
12292 * gdbserver/config.in: New file, generated by autoheader.
12294 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12296 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12299 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12301 * arm-tdep.h (enum arm_float_model): New enum.
12302 (struct gdbarch_tdep): Add fp_model.
12303 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12304 up floating-point conversions until we know the floating-point model
12305 in use by the inferior. Don't complain about being unable to
12306 determine the ABI of the inferior when we don't have one.
12307 (arm_extract_return_value): Support different floating-point models.
12308 (arm_store_return_value): Likewise.
12309 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12311 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12313 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12315 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12316 of ``current_gdbarch''.
12318 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12320 * armnbsd-nat.c : ANSIfy all function declarations.
12321 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12322 (fetch_inferior_registers): Re-implement in terms of above.
12323 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12324 (store_inferior_registers): Re-implement in terms of above.
12326 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12328 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12330 * arm-linux-tdep.c: Likewise.
12331 * config/arm/tm-linux.h: Likewise.
12333 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12335 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12336 * config/arm/nbsd.mt (TM_FILE): Delete.
12337 * config/arm/tm-nbsd.h: Delete.
12339 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12341 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12342 Initialize CALL_DUMMY_LENGTH.
12344 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12346 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12348 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12349 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12350 defines one thing and that is incorrect for this port.
12351 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12353 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12355 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12357 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12359 * win32-nat.c (display_selector): New function. Displays information
12360 about the information returned by GetThreadSelectorEntry API function.
12361 (display_selectors): New function. Displays the infomation of
12362 the selector given as argument, or of CS, DS ans FS selectors
12363 if no argument is given.
12364 ( _initialize_inftarg): Add "w32" as info prefix command.
12365 Add "info w32 selector" as command calling display_selectors.
12367 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12369 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12370 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12373 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12375 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12377 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12379 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12380 (arm_fix_call_dummy): Call it.
12381 (arm_call_dummy_breakpoint_offset): Delete.
12382 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12383 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12385 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12387 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12388 Default to func_frame_chain_valid.
12389 * gdbarch.h, gdbarch.c: Re-generate.
12390 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12392 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12394 * ppc-linux-nat.c: Update copyright.
12395 (fetch_register, store_register): Add tid parameter, don't compute
12397 (fetch_ppc_registers, store_ppc_registers): Add tid
12398 parameter. Pass it along to callees.
12399 (fetch_inferior_registers, store_inferior_registers): Compute tid
12400 here, and pass it to calleed functions.
12401 (fill_gregset, supply_fpregset): Clean up formatting.
12403 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12405 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12406 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12408 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12410 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12411 * gdbarch.c gdbarch.h: Regenerate.
12412 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12414 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12415 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12416 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12418 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12419 * arm-tdep.c (arm_get_longjmp_target): New function.
12420 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12421 this to a positive value register arm_get_longjmp_target as the
12423 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12424 (arm_linux_init_abi): Set up longjmp description in tdep.
12425 * armnbsd-nat.c (get_longjmp_target): Delete.
12426 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12427 description in tdep.
12428 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12429 (get_longjmp_target): Delete declaration.
12430 (GET_LONGJMP_TARGET): Delete.
12431 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12432 (GET_LONGJMP_TARGET): Delete.
12434 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12436 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12437 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12438 of ``current_gdbarch''.
12440 2002-02-17 Tom Tromey <tromey@redhat.com>
12442 * cli/cli-cmds.c (compare_strings): New function.
12443 (complete_command): Only print each unique item once.
12444 * completer.h (complete_line): Declare.
12445 * completer.c (complete_line): New function.
12446 (line_completion_function): Use it.
12448 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12450 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12451 * gdbarch.h, gdbarch.c: Re-generate.
12453 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12455 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12457 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12459 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12460 * valops.c (value_arg_coerce): Don't take the address of a reference
12461 to convert an argument to a reference.
12463 2002-02-15 Christopher Faylor <cgf@redhat.com>
12465 * win32-nat.c (get_image_name): New function.
12466 (handle_load_dll): Use get_image_name function.
12467 (get_child_debug_event): Avoid registering debug events until possibly
12468 execed process is started.
12469 (child_create_inferior): Allow invocation via shell so that command
12470 line redirection, etc. works ok.
12471 (_initialize_inftarg): Add new command: "set shell" to control whether
12472 a shell is used to start a process.
12474 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12476 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12477 instead of find_register_by_number.
12478 (cannot_store_register): Likewise.
12480 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12482 * dwarf2read.c: Replace fprintf (stderr, ...) by
12483 fprintf_unfiltered (gdb_stderr, ...).
12485 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12487 * gdbserver/gdbserver.1: Document --attach.
12489 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12491 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12493 * arm-tdep.c (arm_default_arm_le_breakpoint)
12494 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12495 (arm_default_thumb_be_breakpoint): New. Initialize them from
12496 traditional breakpoint defines.
12497 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12498 (arm_gdbarch_init): Initialize new breakpoint variables.
12499 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12500 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12501 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12502 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12504 (arm_netbsd_init_abi_common): ... here; new function.
12505 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12506 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12507 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12508 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12510 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12512 * arm-tdep.h (enum arm_abi): New enum.
12513 (struct gdbarch_tdep): New structure.
12514 (LOWEST_PC): Provide a default.
12515 (arm_gdbarch_register_os_abi): Declare new function.
12516 * arm-tdep.c (arm_abi_names): New array.
12517 (process_note_abi_tag_sections): New function.
12518 (get_elfosabi): New function.
12519 (arm_gdbarch_register_os_abi): New function.
12520 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12521 support for that ABI has been built in, then call the appropriate
12522 configuration routine. Use gdbarch_num_regs() to get the number
12524 (arm_dump_tdep): New function.
12525 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12526 place-holder functions.
12527 (_initialize_arm_tdep): Register them.
12528 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12530 * armnbsd-tdep.c: New file.
12531 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12532 * config/arm/nbsd.mt (TDEPFILES): Add it.
12533 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12535 * armnbsd-nat.c: Include regcache.h.
12536 * Makefile.in (armnbsd-nat.o): Update dependency list.
12538 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12540 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12542 * gdbserver/Makefile.in: Fix typos in target rules.
12544 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12546 Fix part of PR gdb/267.
12547 * linespec.c (find_methods): Handle constructors specially for now.
12549 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12551 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12553 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12554 standard_coerce_float_to_double().
12556 2002-02-14 Christopher Faylor <cgf@redhat.com>
12558 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12561 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12563 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12564 find_variant_by_name, because it confuses the multiarch
12565 framework. Return NULL if there isn't an architecture with the
12566 user supplied name, instead of forcing a different one without
12567 recording the change with the multiarch machinery.
12568 (find_variant_by_name): Delete.
12570 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12572 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12573 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12575 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12577 * stack.c (print_frame_info_base): When calling
12578 print_frame_info_listing_hook, set current_source_symtab.
12580 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12582 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12583 and remove unused $(INCLUDE_DIR).
12584 Add regcache.c to OBS.
12585 Add generated register protocol files to clean target.
12586 Update dependencies for new objects, obsolete old target code.
12588 * gdbserver/linux-low.c: Remove all platform-specific code to
12589 new files. Remove various dead code. Update to use regcache
12591 * gdbserver/remote-utils.c (fromhex): Add return statement
12593 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12595 (input_interrupt): Add integer parameter to match prototype
12596 of a signal handler.
12597 (outreg): Use register_data ().
12598 (prepare_resume_reply): Use gdbserver_expedite_regs.
12599 * gdbserver/server.c (main): Dynamically allocate own_buf because
12600 PBUFSIZ is no longer constant. Use registers_to_string () and
12601 registers_from_string ().
12602 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12603 for error (), fatal (), and warning (). Update definition of
12604 PBUFSIZ to use regcache functionality. Add include guard.
12605 * gdbserver/utils.c (fatal): Add missing ``const''.
12606 (warning): New function.
12608 * regformats/regdat.sh: Include "regcache.h" in generated files.
12609 Provide init_registers () function.
12610 * regformats/regdef.h: Add prototype for set_register_cache ().
12613 * gdbserver/linux-arm-low.c: New file.
12614 * gdbserver/linux-i386-low.c: New file.
12615 * gdbserver/linux-ia64-low.c: New file.
12616 * gdbserver/linux-m68k-low.c: New file.
12617 * gdbserver/linux-mips-low.c: New file.
12618 * gdbserver/linux-ppc-low.c: New file.
12619 * gdbserver/linux-sh-low.c: New file.
12621 * gdbserver/regcache.c: New file.
12622 * gdbserver/regcache.h: New file.
12624 * gdbserver/low-linux.c: Removed obsolete file.
12626 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12628 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12629 * config/i386/linux.mt: Likewise.
12630 * config/ia64/linux.mt: Likewise.
12631 * config/m68k/linux.mh: Likewise.
12632 * config/powerpc/linux.mh: Likewise.
12633 * config/mips/linux.mt: Likewise.
12635 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12637 * config/i386/i386lynx.mh: Mark gdbserver variables
12638 as (currently) obsolete for this target.
12639 * config/i386/nbsd.mt: Likewise.
12640 * config/i386/nbsdelf.mt: Likewise.
12641 * config/m32r/m32r.mt: Likewise.
12642 * config/m68k/m68klynx.mh: Likewise.
12643 * config/m68k/nbsd.mt: Likewise.
12644 * config/m68k/sun3os4.mh: Likewise.
12645 * config/mips/vr5000.mt: Likewise.
12646 * config/ns32k/nbsd.mt: Likewise.
12647 * config/pa/hppabsd.mh: Likewise.
12648 * config/pa/hppaosf.mh: Likewise.
12649 * config/powerpc/nbsd.mt: Likewise.
12650 * config/rs6000/rs6000lynx.mh: Likewise.
12651 * config/s390/s390.mt: Likewise.
12652 * config/s390/s390x.mt: Likewise.
12653 * config/sparc/sparclynx.mh: Likewise.
12654 * config/sparc/sun4os4.mh: Likewise.
12655 * config/i386/x86-64linux.mt: Likewise.
12656 * config/sparc/linux.mh: Likewise.
12658 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12660 * configure.tgt: Configure gdbserver only for known working
12661 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12662 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12663 SUBDIRS if it is configured. Update comment for ${nativefile}.
12664 * configure: Regenerated.
12666 2002-02-13 Michael Snyder <msnyder@redhat.com>
12668 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12670 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12671 (default_gcore_mach): Just return 0, work around a problem in bfd.
12672 (default_gcore_target): OK to return NULL if exec_bfd is null.
12673 (make_mem_sec): Use a cast, avoid a warning.
12675 * procfs.c (find_memory_regions_callback): Use a cast instead of
12676 calling host_pointer_to_address (which complains if
12677 sizeof (host pointer) != sizeof (target pointer)).
12678 (procfs_make_note_section): Avoid overflow in psargs string.
12680 * procfs.c (procfs_make_note_section): Make the default
12681 implementation return an error.
12683 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12685 * procfs.c (procfs_make_note_section): Provide a default definition
12686 (for alpha-dec-osf4.0f). Fix typos.
12688 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12690 * linux-proc.c: Add include of regcache.h.
12691 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12693 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12695 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12696 * memattr.c (create_mem_region): Disallow useless empty region.
12697 Regions are half-open intervals, so allow [A..B) [B..C) as
12700 2002-02-13 Michael Chastain <mec@shout.net>
12702 * defs.h: Kill CONST_PTR.
12703 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12704 * c-lang.c (c_builtin_types): Likewise.
12705 * ch-lang.c (ch_builtin_types): Likewise.
12706 * f-lang.c (f_builtin_types): Likewise.
12707 * language.c (unknown_builtin_types): Likewise.
12708 * m2-lang.c (m2_builtin_types): Likewise.
12709 * p-lang.c (pascal_builtin_types): Likewise.
12710 * scm-lang.c (c_builtin_types): Likewise.
12712 2002-02-13 Keith Seitz <keiths@redhat.com>
12714 * arm-tdep.h (arm_get_next_pc): Add declaration.
12716 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12718 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12719 with other related struct-returning functions.
12720 (arm_extract_struct_value_address): New function.
12721 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12722 initialize float_format, double_format and long_double_format as
12723 appropriate to the endianness of the target.
12724 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12725 (arm_use_struct_convention): Delete declaration.
12726 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12728 2002-02-13 Keith Seitz <keiths@redhat.com>
12730 * defs.h (core_addr_to_string_nz): New function.
12732 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12734 Apply missing bits of 2002-01-15 patch.
12735 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12736 (fill_fpregset): Use i387_fill_fsave.
12738 2002-02-12 Keith Seitz <keiths@redhat.com>
12740 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12741 (core_addr_to_string_nz): New function.
12743 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12745 * arm-linux-nat.c: Really include arm-tdep.h.
12746 * config/arm/tm-linux.h (struct type, struct value): Declare.
12748 2002-02-11 Michael Snyder <msnyder@redhat.com>
12750 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12751 (gcore section): Ifdef for Solaris and Unixware only.
12752 (procfs_do_thread_registers): Unixware needs one lwpstatus
12753 per thread (not one prstatus or pstatus).
12754 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12755 not over all gdb threads. For unixware, call elfcore_write_pstatus
12756 once before iterating over threads.
12758 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12760 * arm-tdep.h: New file.
12761 * arm-tdep.c: Include arm-tdep.h.
12762 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12763 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12764 (arm_print_float_info, arm_register_type, convert_to_extended)
12765 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12766 (arm_extract_return_value, arm_register_name): Make static.
12767 (arm_software_single_step): Similarly. Fix types in declaration.
12768 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12769 (arm_store_return_value, arm_store_struct_return): New functions.
12770 (arm_gdbarch_init): Register the above functions. Also register
12771 call_dummy_start_offset, sizeof_call_dummy_words,
12772 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12773 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12774 max_register_virtual_size, register_size. Set up
12775 prologue_cache.saved_regs here, rather than ...
12776 (_initialize_arm_tdep): ... here.
12777 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12779 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12780 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12781 (arm_print_float_info, arm_register_type, convert_to_extended)
12782 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12783 (arm_extract_return_value, arm_register_name): Delete declarations.
12784 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12785 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12786 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12787 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12788 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12789 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12790 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12791 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12792 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12793 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12794 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12795 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12797 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12798 * remote-rdi.c remote-rdp.c: Likewise.
12799 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12800 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12801 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12804 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12805 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12806 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12807 from non-ARM_ prefixed definitions.
12808 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12810 * remote-rdi.c remote-rdp.c: Likewise.
12811 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12813 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12815 * arm-tdep.c (arm_frameless_function_invocation)
12816 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12817 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12818 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12819 (arm_pop_frame, arm_get_next_pc): Make static.
12820 (arm_gdbarch_init): Register above in gdbarch structure.
12821 (arm_read_fp): Renamed from arm_target_read_fp.
12822 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12823 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12824 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12825 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12826 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12827 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12828 (arm_pc_is_thumb_dummy): Delete declarations.
12829 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12830 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12831 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12832 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12834 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12836 * symtab.c (compare_search_syms): New function.
12837 (sort_search_symbols): New function.
12838 (search_symbols): Sort symbols after searching rather than
12841 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12843 * NEWS: Linux -> GNU/Linux.
12845 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12847 * gdbarch.sh: For for level one methods, disallow a definition
12848 when partially multi-arched. Add comments explaining rationale.
12849 * gdbarch.h: Re-generate.
12851 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12853 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12854 multi-arch partial.
12856 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12858 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12859 field. Use diff -u.
12860 * gdbarch.c: Re-generate.
12862 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12864 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12865 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12868 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12870 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12871 multi-arch partial.
12872 (PUSH_ARGUMENTS): Switch to using predefault.
12873 * gdbarch.c: Regenerate.
12875 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12877 * valops.c (PUSH_ARGUMENTS): Delete definition.
12878 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12879 partial. Default to default_push_arguments.
12880 * gdbarch.h, gdbarch.c: Regenerate.
12882 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12884 * defs.h (throw_exception): Rename return_to_top_level. Update
12886 * utils.c (error_stream, internal_verror, quit): Ditto.
12887 * top.c (throw_exception, catcher): Ditto.
12888 * sparclet-rom.c (sparclet_load): Ditto.
12889 * remote.c (interrupt_query, minitelnet): Ditto.
12890 * remote-sds.c (interrupt_query): Ditto.
12891 * remote-mips.c (mips_error, mips_kill): Ditto.
12892 * ocd.c (interrupt_query): Ditto.
12893 * monitor.c (monitor_interrupt_query): Ditto.
12894 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12895 * target.h: Update comment.
12897 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12899 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12901 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12902 default_double_format.
12903 * gdbarch.h, gdbarch.c: Re-generate.
12904 * findvar.c (floatformat_unknown): Delete variable definition.
12905 * doublest.h (floatformat_unknown): Delete variable declaration.
12907 2002-02-09 Jim Blandy <jimb@redhat.com>
12909 * stabsread.c (read_type): Add code to parse Sun's syntax for
12910 prototyped function types.
12912 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12914 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12915 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12917 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12919 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12920 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12921 now _initialize_xcoffsolib gets called again and overrides the
12922 commands from solib.c in a native configuration.
12924 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12926 * doublest.c (store_typed_floating): Don't try to return a value.
12929 2002-02-08 Jim Blandy <jimb@redhat.com>
12931 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12932 is prototyped and has no arguments, print its argument list as
12935 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12937 * MAINTAINERS (write-after-approval): Add myself.
12938 (paper-trail): I've escaped!
12940 2002-02-08 Christopher Faylor <cgf@redhat.com>
12942 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12944 (_initialize_check_for_gdb_ini): Ditto.
12946 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12948 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12949 xaprintf -> xasprintf.
12951 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12953 * win32-nat.c: Remove use of printf and sprintf functions.
12955 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12957 * arm-tdep.c (arm_frame_chain_valid): Make static.
12958 (arm_push_arguments): Likewise.
12959 (arm_gdbarch_init): New function.
12960 (_initialize_arm_tdep): Call it.
12961 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12962 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12963 (FRAME_CHAIN_VALID): Delete.
12964 (arm_frame_chain_valid): Delete declaration.
12965 (PUSH_ARGUMENTS): Delete.
12966 (arm_push_arguments): Delete declaration.
12967 (CALL_DUMMY_P): Delete.
12969 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12970 Corinna Vinschen <vinschen@redhat.com>
12972 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12973 on builtin float types.
12975 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12977 * utils.c: Include <curses.h> before "bfd.h".
12978 * tui/tui-hooks.c: Likewise.
12979 * tui/tui.c: Likewise.
12980 * tui/tuiCommand.c: Likewise.
12981 * tui/tuiData.c: Likewise.
12982 * tui/tuiDataWin.c: Likewise.
12983 * tui/tuiDisassem.c: Likewise.
12984 * tui/tuiGeneralWin.c: Likewise.
12985 * tui/tuiIO.c: Likewise.
12986 * tui/tuiLayout.c: Likewise.
12987 * tui/tuiRegs.c: Likewise.
12988 * tui/tuiSource.c: Likewise.
12989 * tui/tuiSourceWin.c: Likewise.
12990 * tui/tuiStack.c: Likewise.
12991 * tui/tuiWin.c: Likewise.
12993 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12995 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12996 to include space for pseudoregs as well. Update loops accordingly.
12997 (sh_fp_frame_init_saved_regs): Ditto.
12998 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13000 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13002 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13003 Add Richard Earnshaw to Arm maintainers.
13005 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13007 * defs.h (warning_begin): Delete declaration.
13009 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13012 2002-02-07 Michael Snyder <msnyder@redhat.com>
13014 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13015 Logic bug, remove misplaced else.
13017 2002-02-07 Klee Dienes <klee@apple.com>
13019 * fork-inferior.c (fork_inferior): Add '!' to the list of
13020 characters that need to be quoted when building a string for the
13021 shell. Quote '!' specifically with a backslash, since CSH chokes
13022 when trying to evaluate "str!str".
13024 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13026 * rdi-share/host.h: Only provide a typedef for bool if it is not
13029 2002-02-04 Michael Snyder <msnyder@redhat.com>
13031 * breakpoint.h (enum bptype): Add new overlay event bp type.
13032 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13034 * breakpoint.c (create_internal_breakpoint): New function.
13035 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13036 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13037 (create_thread_event_breakpoint): Ditto.
13038 (create_solib_event_breakpoint): Ditto.
13039 (create_overlay_event_breakpoint): New function.
13040 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13041 (update_breakpoints_after_exec): Delete and re-initialize
13042 overlay event breakpoints after an exec. Add FIXME comment
13043 about longjmp breakpoint.
13044 (print_it_typical): Ignore overlay event breakpoints.
13045 (print_one_breakpoint): Ditto.
13047 (bpstat_what): Do not stop for overlay event breakpoints.
13048 (delete_breakpoint): Don't delete overlay event breakpoints.
13049 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13050 (breakpoint_re_set): Re-create overlay event breakpoint.
13052 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13053 (overlay_manual_command): Disable overlay breakpoints.
13054 (overlay_off_command): Disable overlay breakpoints.
13056 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13058 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13059 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13060 to here from config/tm-arm.h.
13061 (coff_sym_is_thumb): Make static.
13062 (arm_elf_make_msymbol_special): New function.
13063 (arm_coff_make_msymbol_special): New function.
13064 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13065 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13066 (coff_sym_is_thumb): Delete declaration.
13067 (arm_elf_make_msymbol_special): Declare.
13068 (arm_coff_make_msymbol_special): Declare.
13069 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13070 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13072 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13074 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13076 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13078 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13079 * gdbarch.c gdbarch.h: Regenerate.
13080 * arch-utils.c (default_print_float_info): New function.
13081 * arch-utils.h (default_print_float_info): Prototype it.
13082 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13083 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13084 (PRINT_FLOAT_INFO): Document it.
13086 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13087 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13088 (PRINT_FLOAT_INFO): Define.
13090 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13092 * win32-nat.c (_initialize_check_for_gdb_ini):
13093 Add typecast to sprintf argument to suppress a warning.
13095 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13097 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13098 to allow easier handling of pass state.
13099 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13100 that gives exception name and address.
13101 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13102 and set last_sig value to ourstatus->value.sig. Some missing
13104 (child_continue): Correctly report continue_status.
13105 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13106 TARGET_SIGNAL_0 (new default value).
13107 (child_resume): consider sig argument passed to decide if
13108 the exception should be passed to debuggee or not.
13110 2002-02-05 Michael Snyder <msnyder@redhat.com>
13112 * regcache.c (fetch_register): Call target_fetch_register
13113 only if we don't call FETCH_PSEUDO_REGISTER.
13114 (store_register): Call target_store_register only if we
13115 don't call STORE_PSEUDO_REGISTER.
13117 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13119 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13120 ELF_MAKE_MSYMBOL_SPECIAL.
13121 * gdbarch.c, gdbarch.h: Regenerate.
13122 * arch-utils.c (default_make_msymbol_special): New function.
13123 * arch-utils.h (default_make_msymbol_special): Export.
13124 * elfread.c (elf_symtab_read): Compile use of
13125 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13127 * coffread.c (coff_symtab_read): Ditto, for
13128 COFF_MAKE_MSYMBOL_SPECIAL.
13130 2002-02-05 Jim Blandy <jimb@redhat.com>
13132 * solib-svr4.c (svr4_truncate_ptr): New function.
13133 (svr4_relocate_section_addresses): Do the address arithmetic with
13134 the appropriate truncation for target addresses, even when
13135 CORE_ADDR is larger than a target address.
13137 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13139 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13142 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13144 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13147 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13149 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13151 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13153 * gdbserver/linux-low.c: Remove unused include files.
13155 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13157 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13158 (read_inferior_memory): Use it.
13159 (write_inferior_memory): Likewise.
13161 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13163 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13164 grubbing through sys_errlist.
13166 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13168 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13170 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13171 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13173 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13175 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13176 (do_sfunc, set_cmd_sfunc): New functions.
13178 * command.h (struct cmd_list_element): Add field func.
13179 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13180 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13181 * cli/cli-decode.h: Ditto.
13183 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13184 (help_all, help_cmd_list): Ditto.
13185 (find_cmd, complete_on_cmdlist): Ditto.
13186 * top.c (execute_command): Ditto.
13188 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13191 * infcmd.c (notice_args_read): Fix function signature.
13193 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13194 * cli/cli-decode.c (add_set_cmd): Ditto.
13195 * utils.c (initialize_utils): Ditto.
13196 * maint.c (_initialize_maint_cmds): Ditto.
13197 * infrun.c (_initialize_infrun): Ditto.
13198 * demangle.c (_initialize_demangler): Ditto.
13199 * remote.c (add_packet_config_cmd): Ditto.
13200 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13201 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13202 * proc-api.c (_initialize_proc_api): Ditto.
13203 * kod.c (_initialize_kod): Ditto.
13204 * valprint.c (_initialize_valprint): Ditto.
13205 * top.c (init_main): Ditto.
13206 * infcmd.c (_initialize_infcmd): Ditto.
13207 * corefile.c (_initialize_core): Ditto.
13208 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13209 * arch-utils.c (initialize_current_architecture): Ditto.
13210 (_initialize_gdbarch_utils): Ditto.
13211 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13213 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13214 * wince.c (_initialize_inftarg): Ditto.
13215 * symfile.c (_initialize_symfile): Ditto.
13216 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13217 * language.c (_initialize_language): Ditto.
13218 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13220 2002-02-04 Michael Snyder <msnyder@redhat.com>
13222 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13224 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13226 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13227 Add rules for building the register data files.
13229 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13231 * regformats/regdat.sh: Add braces to the definition of
13232 expedite_regs_${arch}.
13234 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13236 * regformats/regdef.h (struct reg): Add comment describing the
13237 requirements for offset and size fields.
13239 2002-02-04 Andreas Schwab <schwab@suse.de>
13241 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13242 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13244 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13246 * gdbarch.sh (copyright): Update years in generated header.
13247 (SMASH_TEXT_ADDRESS): Add rule.
13248 * gdbarch.h, gdbarch.c: Re-generate.
13249 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13250 * dbxread.c: Likewise.
13251 * dwarfread.c: Likewise.
13252 * elfread.c: Likewise.
13253 * somread.c: Likewise.
13255 * arm-tdep.c (arm_smash_text_address): New function.
13256 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13258 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13260 Add support for hardware watchpoints on win32 native.
13261 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13262 CONTEXT_DEBUG_REGISTERS.
13263 (dr variable): New variable. Static array containing a local copy
13264 of debug registers.
13265 (debug_registers_changed): New variable. Reflects when debug registers
13266 are changed and need to be written to inferior.
13267 (debug_registers_used): New variable. Reflects when any debug register
13268 was set, used when new threads are created.
13269 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13271 (thread_rec): Set dr array if id is the thread of current_event .
13272 (child_continue, child_resume): Change the debug registers for all
13273 threads if debug_registers_changed.
13274 (child_add_thread): Change the debug registers if debug_registers_used.
13275 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13276 Link nm.h to new nm-cygwin.h file.
13277 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13278 of hardware registers.
13280 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13282 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13283 Restore behavour broken by 2002-01-20 Andrew Cagney
13284 <ac131313@redhat.com> IEEE_FLOAT removal.
13286 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13288 * c-valprint.c (c_val_print): Pass a proper valaddr to
13289 cp_print_class_method.
13290 * valops.c (search_struct_method): If there is only one method
13291 and args is NULL, return that method.
13293 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13295 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13296 accessing tag_name directly.
13298 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13300 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13301 of accessing tag_name directly.
13303 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13306 * gdbtypes.c (replace_type): New function.
13307 * gdbtypes.h (replace_type): Add prototype.
13308 * stabsread.c (read_type): Use replace_type.
13310 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13312 * Makefile.in (memattr.o): Add missing dependencies rule.
13314 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13316 * breakpoint.c (break_at_finish_command): Really export.
13317 (break_at_finish_at_depth_command): Ditto.
13318 (tbreak_at_finish_command): Ditto.
13319 * hppa-tdep.c: Include completer.h.
13320 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13321 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13323 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13325 * utils.c (do_write): New function.
13326 (error_stream): Rewrite combining the code from error_begin and
13328 (verror): Rewrite using error_stream.
13329 (error_begin): Delete function.
13331 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13333 * utils.c (error_begin): Make static.
13334 * defs.h (error_begin): Delete declaration.
13336 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13337 (decode_line_1): Use cplusplus_error instead of error_begin,
13338 cplusplus_hint and return_to_top_level.
13339 * coffread.c (coff_symfile_read): Use error instead of error_begin
13340 and return_to_top_level.
13341 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13343 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13345 * language.h (type_error, range_error): Make string parameter
13347 * language.c (warning_pre_print): Delete extern declaration.
13348 * dwarfread.c (warning_pre_print): Ditto.
13349 * language.c (type_error, range_error): Rewrite to use verror and
13350 vwarning instead of warning_begin.
13352 2002-02-01 Michael Snyder <msnyder@redhat.com>
13354 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13355 (set_ignore_count): Move misplaced comment back where it belongs.
13357 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13359 * command.h (NO_FUNCTION): Delete macro.
13360 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13361 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13362 * tracepoint.c (_initialize_tracepoint): Ditto.
13363 * cli/cli-decode.c (add_set_cmd): Ditto.
13364 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13366 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13368 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13369 Update ``this'' pointer when calling virtual functions.
13371 2002-02-01 Michael Snyder <msnyder@redhat.com>
13373 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13374 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13376 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13378 * regformats/reg-arm.dat: New file.
13379 * regformats/reg-i386.dat: New file.
13380 * regformats/reg-ia64.dat: New file.
13381 * regformats/reg-m68k.dat: New file.
13382 * regformats/reg-mips.dat: New file.
13383 * regformats/reg-ppc.dat: New file.
13384 * regformats/reg-sh.dat: New file.
13385 * regformats/regdef.h: New file.
13386 * regformats/regdat.sh: New file.
13388 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13390 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13391 (arm_frame_args_address, arm_frame_locals_address): New functions.
13392 (arm_frame_num_args): New function.
13393 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13394 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13395 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13397 2002-01-31 Michael Snyder <msnyder@redhat.com>
13399 * breakpoint.c (break_at_finish_command): Export.
13400 (break_at_finish_at_depth_command): Export.
13401 (tbreak_at_finish_command): Export.
13402 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13403 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13404 "txbreak" commands, which are HPPA specific.
13406 * printcmd.c (disassemble_command): Remove an ancient
13407 artifact of an old merge.
13409 * symfile.h (enum overlay_debugging_state):
13410 Define enum constant values for overlay mode.
13411 * symfile.c (overlay_debugging): Use enums instead of literals.
13412 (overlay_is_mapped, overlay_auto_command,
13413 overlay_manual_command): Ditto.
13415 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13416 breakpoint_here_p, breakpoint_inserted_here_p,
13417 breakpoint_thread_match, bpstat_stop_status,
13418 describe_other_breakpoints, check_duplicates, clear_command):
13419 Coding standard fixes.
13421 * target.c (target_xfer_memory): Add spaces, coding standard.
13422 (do_xfer_memory): Add missing line to trust-readonly
13423 code: check bfd SEC_READONLY flag for section.
13425 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13427 * PROBLEMS: Fix typo, 5.1->5.1.1.
13429 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13431 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13432 data symbols, since we search based on textlow and texthigh.
13433 (find_pc_sect_symtab): Likewise.
13435 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13437 * defs.h (vwarning): Declare.
13438 * utils.c (vwarning): New function.
13439 (warning): Call vwarning.
13440 (warning_begin): Delete function.
13442 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13443 the warning message.
13444 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13447 2002-01-30 Michael Snyder <msnyder@redhat.com>
13449 * NEWS: Mention "set trust-readonly-sections" command.
13450 Mention generate-core-file command.
13452 2002-01-15 Michael Snyder <msnyder@redhat.com>
13454 * target.c: New command, "set trust-readonly-sections on".
13455 (do_xfer_memory): Honor the suggestion to trust readonly sections
13456 by reading them from the object file instead of from the target.
13457 (initialize_targets): Register command "set trust-readonly-sections".
13459 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13461 * parse.c (target_map_name_to_register): Simplify, search regs and
13462 pseudo-regs using a single loop.
13464 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13466 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13468 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13470 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13471 * config/i386/i386v42mp.mh: Add i387-nat.o .
13472 * i386v4-nat.c: Include i387-nat.h.
13473 (supply_fpregset): Use i387_supply_fsave.
13474 (fill_fpregset): Use i387_fill_fsave.
13476 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13478 * arm-tdep.c (arm_call_dummy_words): Define.
13479 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13480 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13481 (CALL_DUMMY_WORDS): Define.
13482 (arm_call_dummy_words): Declare.
13483 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13484 (arm_linux_call_dummy_words): Declare.
13486 2002-01-30 Andreas Schwab <schwab@suse.de>
13488 * m68klinux-nat.c: Fix last change to use regcache_collect
13489 instead of referencing registers[] directly.
13491 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13493 * parse.c (target_map_name_to_register): Delete code wrapped in
13494 #ifdef REGISTER_NAME_ALIAS_HOOK.
13496 2002-01-28 Michael Snyder <msnyder@redhat.com>
13498 * regcache.c (legacy_read_register_gen): Need to be able to
13499 read pseudo-register as well as real register.
13500 (legacy_write_register_gen): Ditto.
13502 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13504 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13505 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13506 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13507 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13508 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13509 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13510 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13511 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13512 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13513 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13514 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13515 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13516 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13517 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13518 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13519 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13520 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13521 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13522 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13523 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13525 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13527 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13528 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13529 (initialize_current_architecture): Update target_byte_order using
13530 information from BFD.
13531 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13532 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13534 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13536 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13537 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13539 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13540 #ifdef INVALID_FLOAT.
13541 * infcmd.c (do_registers_info): Ditto.
13542 * values.c (unpack_double): Ditto. Add comment.
13544 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13545 already commented out.
13547 2002-01-26 Andreas Schwab <schwab@suse.de>
13549 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13550 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13551 registers and add support for PTRACE_GETREGS.
13553 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13555 GDB 5.1.1 released from 5.1 branch.
13556 * NEWS: Add 5.1.1 news.
13557 * README: Sync with 5.1 branch.
13559 2002-01-23 Fred Fish <fnf@redhat.com>
13561 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13562 stabstring on initial malloc. Reallocing will copy it for us,
13565 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13567 * Makefile.in (hpread_h): Delete.
13568 (HFILES_NO_SRCDIR): Remove hpread.h.
13569 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13570 (hpread.o): Update dependencies.
13571 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13573 * hp-psymtab-read.c: Remove file.
13574 * hp-symtab-read.c: Remove file.
13575 * hpread.h: Remove file.
13577 * hpread.c: Merge all contents of hp-psymtab-read.c,
13578 hp-symtab-read.c and hpread.h into this file, as it was prior to
13581 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13582 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13583 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13584 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13586 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13588 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13589 fill_gregset): Call gdbarch_tdep() just once, assign result to
13590 variable and use that, instead of calling the function several
13593 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13595 * configure.host: Accept sparcv9 as alias for sparc64.
13596 * configure.tgt: Likewise.
13598 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13600 * solib-aix5.c (build_so_list_from_mapfile)
13601 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13602 arguments is not reversed.
13603 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13604 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13606 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13608 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13609 modified version of obsolete sh_fetch_pseudo_register.
13610 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13611 (sh4_register_read): New function.
13612 (sh_pseudo_register_write): New function. Renamed and modified
13613 version of obsolete sh_store_pseudo_register.
13614 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13615 (sh4_register_write): New function.
13616 (sh_gdbarch_init): Remove setting of gdbarch function
13617 fetch_pseudo_register and store_pseudo_register. Remove setting of
13618 register_convert_to_raw, register_convert_to_virtual,
13619 register_convertible.
13620 (sh_sh4_register_convertible): Delete. No longer needed. All is
13621 taken care by architecture specific functions
13622 register_read/register_write.
13623 (sh_sh4_register_convert_to_virtual): Make static.
13624 (sh_sh4_register_convert_to_raw): Ditto.
13626 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13628 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13629 (floatformat_is_nan, floatformat_mantissa): Ditto.
13631 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13632 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13633 builtin_type_ieee_double_little,
13634 builtin_type_ieee_double_littlebyte_bigword,
13635 builtin_type_m68881_ext, builtin_type_i960_ext,
13636 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13637 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13638 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13639 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13641 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13643 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13644 parameter. Set frameless flag if it exists and depended of
13645 whether the scanned function is frameless or not.
13646 (xstormy16_skip_prologue): If function is frameless, return
13647 result of xstormy16_scan_prologue().
13648 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13651 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13653 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13654 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13655 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13656 sh_sh4_register_byte, sh_sh4_register_raw_size,
13657 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13658 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13659 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13660 sh_store_pseudo_register, sh_do_pseudo_register): Call
13661 gdbarch_tdep() just once, assign result to variable and use that,
13662 instead of calling the function several times.
13664 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13666 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13667 macros instead of LAST_FPU_CTRL_REGNUM.
13668 (store_register): Likewise.
13670 2002-01-21 Jim Blandy <jimb@redhat.com>
13672 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13673 is up-to-date before running the program, not just when a program
13676 2002-01-21 Fred Fish <fnf@redhat.com>
13678 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13679 when we have found all instructions we are looking for.
13681 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13683 * arm-tdep.c (arm_register_name): New function.
13684 (arm_registers_names): Make static.
13685 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13686 (arm_register_name): Declare.
13687 (REGISTER_NAME): Use it.
13689 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13690 Kevin Buettner <kevinb@redhat.com>
13692 Convert arm targets to new FRAME interface.
13693 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13694 (arm_frame_find_save_regs): Delete.
13695 (arm_frame_init_saved_regs): New.
13696 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13697 Allocate extra_info as required. Convert all uses of fsr.regs
13698 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13700 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13701 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13702 (check_prologue_cache, save_prologue_cache): Likewise.
13703 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13704 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13705 (FRAME_FIND_SAVED_REGS): Delete.
13706 (arm_frame_find_saved_regs): Delete prototype.
13707 (arm_frame_init_saved_regs): New prototype.
13708 (FRAME_INIT_SAVED_REGS): Define.
13710 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13712 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13714 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13716 From Jeff Law <law@redhat.com>:
13717 * infttrace.c: Include <sys/pstat.h>.
13718 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13719 exec file if the ttrace equivalent fails.
13721 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13723 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13724 (closeLogFile): Ditto.
13726 2002-01-20 Michael Chastain <mec@shout.net>
13728 * top.c (print_gdb_version): Bump copyright year to 2002.
13730 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13732 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13733 Zannoni and Eli Zaretskii.
13735 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13737 * buildsym.c: Update copyright years.
13738 * c-typeprint.c: Likewise.
13739 * dwarf2read.c: Likewise.
13740 * f-typeprint.c: Likewise.
13741 * gdbtypes.c: Likewise.
13742 * gdbtypes.h: Likewise.
13743 * hp-symtab-read.c: Likewise.
13744 * hpread.c: Likewise.
13745 * mdebugread.c: Likewise.
13746 * p-typeprint.c: Likewise.
13748 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13750 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13751 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13752 byte-order selectable.
13753 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13754 * arch-utils.c: Ditto.
13755 (set_endian): Ditto.
13756 (set_endian_from_file): Ditto.
13757 * gdbserver/low-sim.c (create_inferior): Ditto.
13758 * gdbarch.sh: Ditto.
13759 * gdbarch.h: Re-generate.
13760 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13761 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13762 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13763 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13764 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13765 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13766 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13767 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13769 * config/mips/tm-wince.h: Remove #undef of macro
13770 TARGET_BYTE_ORDER_SELECTABLE.
13771 * config/sh/tm-wince.h: Ditto.
13773 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13775 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13776 member function fields. Add accessor macro
13777 TYPE_FN_FIELD_ARTIFICIAL.
13778 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13779 * c-typeprint.c (c_type_print_base): Skip artificial member
13782 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13784 * f-typeprint.c: Delete unused function f_type_print_args.
13785 * p-typeprint.c: Delete unused function pascal_type_print_args.
13787 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13789 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13790 comment. Add ``artificial'' to ``union field_location''.
13792 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13794 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13795 * mdebugread.c (parse_symbol): Likewise.
13796 * stabsread.c (define_symbol): Likewise.
13797 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13798 initializing TYPE_FIELD_BITPOS to n (obsolete).
13799 (hpread_doc_function_type): Likewise.
13800 * hpread.c (hpread_function_type): Likewise.
13802 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13804 * configure.in (host_makefile_frag): Only require a host makefile
13805 fragment when a native build.
13806 * configure: Re-generate.
13808 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13810 * doublest.h (floatformat_from_type): Declare.
13811 * doublest.c (floatformat_from_type): New function.
13812 (convert_typed_floating): Use.
13814 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13815 call to function floatformat_from_type.
13817 * gdbarch.sh (IEEE_FLOAT): Delete.
13818 * gdbarch.h, gdbarch.c: Re-generate.
13819 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13820 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13821 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13822 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13823 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13824 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13825 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13826 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13827 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13828 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13829 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13830 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13832 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13833 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13834 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13835 * sh-tdep.c (sh_gdbarch_init): Ditto.
13836 * mips-tdep.c (mips_gdbarch_init): Ditto.
13837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13838 * cris-tdep.c (cris_gdbarch_init): Ditto.
13840 2002-01-20 Jiri Smid <smid@suse.cz>
13842 * configure.host, configure.tgt: Support x86-64.
13843 * NEWS: Note new target x86-64.
13845 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13846 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13847 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13848 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13849 x86-64-linux-nat.o): Fix dependencies.
13851 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13853 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13854 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13855 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13856 * config/sparc/xm-sun4os4.h: Delete file.
13857 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13859 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13861 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13862 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13863 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13864 * config/i386/i386lynx.mh (XM_FILE): Delete.
13865 * config/rs6000/xm-rs6000ly.h: Delete file.
13866 * config/sparc/xm-sparclynx.h: Delete file.
13867 * config/m68k/xm-m68klynx.h: Delete file.
13868 * config/i386/xm-i386lynx.h: Delete file.
13869 * config/xm-lynx.h: Delete file.
13870 * config/djgpp/fnchange.lst: Update.
13872 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13874 * alpha-tdep.c (alpha_register_byte): New function.
13875 (alpha_register_raw_size): Ditto.
13876 (alpha_register_virtual_size): Ditto.
13877 (alpha_skip_prologue_internal): Renamed from
13878 alpha_skip_prologue.
13879 (alpha_skip_prologue): New version that calls
13880 alpha_skip_prologue_internal.
13881 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13882 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13883 second argument from alpha_skip_prologue.
13884 (REGISTER_BYTE): Use alpha_register_byte.
13885 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13886 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13887 (FRAMELESS_FUNCTION_INVOCATION): Use
13888 generic_frameless_function_invocation_not.
13889 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13890 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13892 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13894 * config/mips/xm-news-mips.h: Delete file.
13895 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13897 * config/m88k/xm-m88k.h: Delete file.
13898 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13899 * config/m88k/xm-delta88v4.h: Ditto.
13900 * config/m88k/xm-delta88.h: Ditto.
13902 * config/alpha/xm-fbsd.h: Delete file.
13903 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13905 * config/sparc/xm-sparc.h: Delete file.
13906 * Makefile.in (xm-sun4os4.h): Delete dependency.
13907 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13908 * config/sparc/xm-sun4os4.h: Ditto.
13909 * config/sparc/xm-linux.h: Ditto.
13911 * config/i386/xm-windows.h: Delete file.
13913 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13915 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13916 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13918 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13920 * alpha-tdep.c (alpha_call_dummy_words): New.
13921 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13922 (CALL_DUMMY_P): Define.
13923 (CALL_DUMMY_WORDS): Define.
13924 (SIZEOF_CALL_DUMMY_WORDS): Define.
13926 2002-01-19 Per Bothner <per@bothner.com>
13928 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13929 isn't NULL, which can happen with some gcj-3.x-produced code.
13931 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13933 * alpha-tdep.c (alpha_register_virtual_type): New function.
13934 (alpha_init_frame_pc_first): Ditto.
13935 (alpha_fix_call_dummy): Ditto.
13936 (alpha_store_struct_return): Ditto.
13937 (alpha_extract_struct_value_address): Ditto.
13938 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13939 alpha_register_virtual_type.
13940 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13941 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13942 alpha_extract_struct_value_address.
13943 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13944 (INIT_FRAME_PC): Use init_frame_pc_noop.
13945 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13947 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13949 * i386gnu-nat.c: Include "i386-tdep.h".
13950 (fetch_fpregs): Simplify code dealing with uninitialized floating
13951 point states such that it doesn't require FP7_REGNUM.
13953 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13955 * alpha-tdep.c (frame_extra_info): New.
13956 (alpha_find_saved_regs): Make static. Use
13958 (alpha_frame_init_saved_regs): New function.
13959 (alpha_frame_saved_pc): Use frame->extra_info.
13960 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13961 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13962 (init_extra_frame_info): Rename to...
13963 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13964 (alpha_print_extra_frame_info): New function.
13965 (alpha_frame_locals_address): Ditto.
13966 (alpha_frame_args_address): Ditto.
13967 (alpha_pop_frame): Use frame->extra_info.
13968 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13969 alpha_frame_args_address.
13970 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13971 (alpha_find_saved_regs): Remove prototype.
13972 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13973 (EXTRA_FRAME_INFO): Remove.
13974 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13975 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13977 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13979 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13980 (alpha_cannot_fetch_register): Ditto.
13981 (alpha_cannot_store_register): Ditto.
13982 (alpha_register_convertible): Ditto.
13983 (alpha_use_struct_convention): Ditto.
13984 * config/alpha/tm-alpha.h: Update copyright years.
13985 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13986 (INNER_THAN): Use core_addr_lessthan.
13987 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13988 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13989 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13990 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13991 (FRAME_CHAIN): Remove unnecessary cast.
13993 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13995 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13998 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14000 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14001 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14002 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14003 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14004 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14005 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14006 * x86-64-linux-nat.c: Ditto.
14008 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14010 * alpha-tdep.c (alpha_register_name): New function.
14011 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14012 (REGISTER_NAME): Define.
14014 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14016 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14018 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14020 * alpha-tdep.c: Update copyright years.
14021 (alpha_next_pc): New function.
14022 (alpha_software_single_step): Ditto.
14023 * config/alpha/tm-alpha.h: Add prototype for
14024 alpha_software_single_step.
14026 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14028 * alphabsd-nat.c: Update copyright years.
14029 (fill_gregset): Use regcache_collect.
14030 (fill_fpregset): Likewise.
14031 (fetch_inferior_registers): Only fetch integer registers
14032 if requested to do so.
14033 (store_inferior_registers): Only store integer registers
14034 if requested to do so.
14036 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14038 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14039 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14040 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14041 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14042 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14043 * config/arm/linux.mh (XDEPFILES): Delete.
14044 * config/arm/nbsd.mh (XDEPFILES): Delete.
14045 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14046 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14047 * config/i386/i386m3.mh (XDEPFILES): Delete.
14048 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14049 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14050 * config/i386/fbsd.mh (XDEPFILES): Delete.
14051 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14052 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14053 * config/i386/i386v4.mh (XDEPFILES): Delete.
14054 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14055 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14056 * config/i386/i386aix.mh (XDEPFILES): Delete.
14057 * config/i386/go32.mh (XDEPFILES): Delete.
14058 * config/i386/cygwin.mh (XDEPFILES): Delete.
14059 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14060 * config/i386/i386mach.mh (XDEPFILES): Delete.
14061 * config/i386/i386v32.mh (XDEPFILES): Delete.
14062 * config/i386/linux.mh (XDEPFILES): Delete.
14063 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14064 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14065 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14066 * config/i386/i386sco.mh (XDEPFILES): Delete.
14067 * config/i386/i386v.mh (XDEPFILES): Delete.
14068 * config/i386/nbsd.mh (XDEPFILES): Delete.
14069 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14070 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14071 * config/i386/symmetry.mh (XDEPFILES): Delete.
14072 * config/i386/obsd.mh (XDEPFILES): Delete.
14073 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14074 * config/ia64/linux.mh (XDEPFILES): Delete.
14075 * config/ia64/aix.mh (XDEPFILES): Delete.
14076 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14077 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14078 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14079 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14080 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14081 * config/m68k/linux.mh (XDEPFILES): Delete.
14082 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14083 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14084 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14085 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14086 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14087 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14088 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14089 * config/m88k/delta88.mh (XDEPFILES): Delete.
14090 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14091 * config/m88k/m88k.mh (XDEPFILES): Delete.
14092 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14093 * config/mips/linux.mh (XDEPFILES): Delete.
14094 * config/mips/irix6.mh (XDEPFILES): Delete.
14095 * config/mips/irix5.mh (XDEPFILES): Delete.
14096 * config/mips/irix4.mh (XDEPFILES): Delete.
14097 * config/mips/irix3.mh (XDEPFILES): Delete.
14098 * config/mips/decstation.mh (XDEPFILES): Delete.
14099 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14100 (NATDEPFILES): Move core-aout.o to here.
14101 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14102 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14103 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14104 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14105 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14106 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14107 * config/pa/hpux11.mh (XDEPFILES): Delete.
14108 * config/powerpc/aix.mh (XDEPFILES): Delete.
14109 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14110 * config/powerpc/linux.mh (XDEPFILES): Delete.
14111 * config/romp/rtbsd.mh: Rename XDEPFILES.
14112 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14113 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14114 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14115 * config/s390/s390.mh (XDEPFILES): Delete.
14116 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14117 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14118 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14119 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14120 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14121 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14122 * config/sparc/linux.mh (XDEPFILES): Delete.
14123 * config/vax/vaxult.mh (XDEPFILES): Delete.
14124 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14125 * Makefile.in (DEPFILES): Remove XDEPFILES.
14127 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14129 * utils.c (internal_verror): Fix comments, default is yes not no.
14130 Update queries to match. Default to quit and dump core.
14132 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14134 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14136 * defs.h, event-top.c, gdbcmd.h: Ditto.
14137 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14138 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14139 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14140 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14141 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14142 * mi/mi-main.c:Ditto.
14144 * stack.c, symfile.c: Update copyright.
14146 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14148 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14149 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14150 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14151 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14153 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14155 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14156 * gdbserver/low-lynx.c (myattach): Likewise.
14157 * gdbserver/low-nbsd.c (myattach): Likewise.
14158 * gdbserver/low-sim.c (myattach): Likewise.
14159 * gdbserver/low-sparc.c (myattach): Likewise.
14160 * gdbserver/low-sun3.c (myattach): Likewise.
14162 * gdbserver/low-linux.c (myattach): New function.
14164 * gdbserver/server.c (attach_inferior): New function.
14165 (main): Handle "--attach".
14167 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14169 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14172 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14174 * c-typeprint.c (is_type_conversion_operator): Add additional
14175 check for non-conversion operators.
14177 2002-01-15 Michael Snyder <msnyder@redhat.com>
14179 * linux-proc.c: Add "info proc" command, a la procfs.c.
14180 (read_mapping): New function, abstract and re-use code.
14181 (linux_find_memory_regions): Use new func read_mapping.
14182 (linux_info_proc_cmd): New function, implement "info proc".
14183 (_initialize_linux_proc): Add new command "info proc".
14185 2002-01-15 Michael Snyder <msnyder@redhat.com>
14187 * symfile.c (generic_load): Use bfd_map_over_sections method
14188 instead of manipulating bfd structure members directly.
14189 (add_section_size_callback): New function, bfd sections callback
14190 used by generic_load.
14191 (load_sections_callback): New function, bfd sections callback
14192 used by generic_load.
14194 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14196 [Based on work by Jim Blandy]
14197 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14198 (builtin_type_vec128): Export.
14199 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14201 (builtin_type_vec128): New builtin type for 128 bit vector
14203 (build_gdbtypes): Initialize builtin_type_v16qi and
14204 builtin_type_v8hi. Create the vec128 register builtin type
14206 (build_builtin_type_vec128): New function.
14207 (_initialize_gdbtypes): Register builtin_type_v16qi and
14208 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14209 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14210 AltiVec register to new builtin type.
14212 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14214 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14217 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14219 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14220 CLEAN_UP_REGISTER_VALUE.
14221 * regcache.c (supply_register): Update only call.
14223 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14225 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14226 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14227 a29k-*-vxworks* targets as obsolete.
14229 2002-01-14 Michael Snyder <msnyder@redhat.com>
14231 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14232 until we can resolve portability issues.
14233 * gregset.h: Remove references to fpxregs.
14234 * gcore.c (gcore_command): Initialize note_sec to NULL.
14236 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14238 * signals.c (target_signal_to_name): Rewrite. Only use
14239 signals[].name when in bounds and non-NULL.
14241 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14243 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14244 * signals.c (target_signal_to_name): Verify that SIG is within the
14245 bounds of the signals array.
14247 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14249 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14251 2002-01-13 Keith Seitz <keiths@redhat.com>
14253 * stack.c (print_frame_info_base): Print the frame's pc
14254 only if when print_frame_info_listing_hook is not defined.
14256 2002-01-13 Keith Seitz <keiths@redhat.com>
14258 * varobj.c (varobj_set_value): Make sure that there were no
14259 errors evaluating the object before attempting to set its
14261 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14262 so this offset adjustment is no longer necessary.
14263 (create_child): Don't set the error flag if the child is
14264 a CPLUS_FAKE_CHILD.
14265 (value_of_child): If value_fetch_lazy fails, return NULL
14266 so that callers will be notified that an error occurred.
14267 (c_value_of_variable): Delay check of variable's validity
14268 until later. We actually want all structs and unions to have
14270 Do not return "???" for variables which could not be evaluated.
14271 This error condition must be returned to the caller so that it
14272 can get the error condition from gdb.
14273 (cplus_name_of_child): Adjust index for vptr before figuring
14274 out the name of the child.
14275 (cplus_value_of_child): If a child's (real) parent is not valid,
14276 don't even bother trying to give a value for it. Just return
14277 an error. Change all instances in this function.
14278 (cplus_type_of_child): If our parent is one of the "fake"
14279 parents, we need to get at the type of the real parent, and
14280 derive the child's true type using this information.
14282 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14284 From 2002-01-09 John Marshall <johnm@falch.net>:
14285 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14286 sources.redhat.com, and tweak some related URLs which had
14287 suffered from linkrot.
14289 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14292 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14293 structures passed in registers.
14295 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14297 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14298 white space which prevented compilation. Reported by DSK
14299 <dsk@student.unsw.edu.au>.
14301 2002-01-11 Michael Snyder <msnyder@redhat.com>
14303 * symfile.c (build_section_addr_info_from_section_tab):
14304 Use bfd access method instead of manipulating bfd directly.
14305 (syms_from_objfile): Ditto.
14306 (simple_overlay_update_1): Ditto.
14307 (simple_overlay_update): Ditto.
14308 (generic_load): Ditto.
14309 (overlay_unmapped_address): FIXME comment, bfd access methods.
14310 (sections_overlap): FIXME comment, bfd access methods.
14311 (pc_in_mapped_range): FIXME comment, bfd access methods.
14312 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14313 (section_is_mapped): FIXME comment, bfd access methods.
14314 (section_is_overlay): FIXME comment, bfd access methods.
14316 * symfile.c (generic_load): Whitespace and long line cleanups.
14317 Remove duplicate variable, change several local variables to
14318 more appropriate data types.
14319 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14321 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14323 From Peter Schauer:
14324 * language.c (longest_local_hex_string_custom): Use phex_nz to
14325 convert NUM to a hex string.
14327 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14329 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14331 Update Copyright year.
14333 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14335 * language.c (longest_raw_hex_string): Delete unused function.
14337 2002-01-11 Petr Sorfa <petrs@caldera.com>
14339 * MAINTAINERS (write-after-approval): Add myself.
14340 * dwarf2read.c (read_tag_string_type): Handling of
14342 (read_tag_string_type): FORTRAN fix to prevent propagation of
14344 (set_cu_language): Handling of DW_LANG_Fortran95
14346 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14348 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14349 GETPID(inferior_ptid).
14350 (store_inferior_registers): Likewise.
14352 2002-01-10 Jason Merrill <jason@redhat.com>
14354 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14357 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14359 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14360 and bfd/elf32-sh-nbsd.c.
14362 2002-01-10 Michael Snyder <msnyder@redhat.com>
14364 * NEWS: Mention --pid and corefile/proc-id behavior change.
14366 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14367 * gcore.c: Include cli/cli-decode.h instead of command.h.
14369 * main.c (captured_main): Add new command line option "--pid".
14370 If the second command line argument (following the symbol-file)
14371 begins with a digit, try to attach to it before trying to open
14373 (print_gdb_help): Document the "--pid" argument.
14375 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14377 * completer.c (command_completer): New function.
14379 * completer.h <command_completer>: Add prototype.
14381 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14382 completer for the "help" command.
14384 2002-01-09 Jason Merrill <jason@redhat.com>
14386 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14388 2002-01-09 Michael Snyder <msnyder@redhat.com>
14390 * i386-linux-nat.c (fill_fpxregset): Make global.
14391 (store_fpxregset): Ditto.
14393 * gregset.h (gdb_fpxregset_t): Define.
14394 (supply_fpxregset): Prototype.
14395 (fill_fpxregset): Prototype.
14397 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14399 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14401 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14402 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14403 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14405 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14407 * MAINTAINERS: Update target maintainer rules so that any
14408 Maintainer can approve a tested patch for a maintenance-only
14411 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14413 * MAINTAINERS (write-after-approval): Add myself.
14415 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14418 2002-01-08 Michael Snyder <msnyder@redhat.com>
14420 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14421 real name of the executable, rather than the /proc name.
14423 2002-01-03 Michael Snyder <msnyder@redhat.com>
14425 Implement a "generate-core-file" command in gdb, save target state.
14426 * gcore.c: New file. Implement new command 'generate-core-file'.
14427 Save a corefile image of the current state of the inferior.
14428 * linux-proc.c: Add linux-specific code for saving corefiles.
14429 * target.h (struct target_ops): Add new target vectors for saving
14430 corefiles; to_find_memory_regions and to_make_corefile_notes.
14431 (target_find_memory_regions): New macro.
14432 (target_make_corefile_notes): New macro.
14433 * target.c (update_current_target): Inherit new target methods.
14434 (dummy_find_memory_regions): New place-holder method.
14435 (dummy_make_corefile_notes): New place-holder method.
14436 (init_dummy_target): Initialize new dummy target vectors.
14437 * exec.c (exec_set_find_memory_regions): New function.
14438 Allow the exec_ops vector for memory regions to be taken over.
14439 (exec_make_note_section): New function, target vector method.
14440 * defs.h (exec_set_find_memory_regions): Export prototype.
14441 * procfs.c (proc_find_memory_regions): New function, corefile method.
14442 (procfs_make_note_section): New function, corefile method.
14443 (init_procfs_ops): Set new target vector pointers.
14444 (find_memory_regions_callback): New function.
14445 (procfs_do_thread_registers): New function.
14446 (procfs_corefile_thread_callback): New function.
14447 * sol-thread.c (sol_find_memory_regions): New function.
14448 (sol_make_note_section): New function.
14449 (init_sol_thread_ops): Initialize new target vectors.
14450 * inftarg.c (inftarg_set_find_memory_regions): New function.
14451 Allow to_find_memory_regions vector to be taken over.
14452 (inftarg_set_make_corefile_notes): New function.
14453 Allow to_make_corefile_notes vector to be taken over.
14454 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14455 interface layer if not target_has_execution (may be a corefile).
14456 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14457 * config/sparc/sun4sol2.mh: Ditto.
14458 * config/alpha/alpha-linux.mh: Ditto.
14459 * config/arm/linux.mh: Ditto.
14460 * config/i386/x86-64linux.mh: Ditto.
14461 * config/ia64/linux.mh: Ditto.
14462 * config/m68k/linux.mh: Ditto.
14463 * config/mips/linux.mh: Ditto.
14464 * config/powerpc/linux.mh: Ditto.
14465 * config/sparc/linux.mh: Ditto.
14467 2002-01-07 Michael Snyder <msnyder@redhat.com>
14469 * arm-linux-nat.c: Remove references to regcache.c internal data
14470 (registers[] and register_valid[]).
14472 2002-01-07 Michael Snyder <msnyder@redhat.com>
14474 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14475 so that attaching to a pid will automatically read the process's
14476 symbol file and shlibs.
14477 * Makefile.in: Add rule for linux-proc.o.
14478 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14479 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14480 * config/arm/linux.mh: Ditto.
14481 * config/i386/linux.mh: Ditto.
14482 * config/i386/x86-64linux.mh: Ditto.
14483 * config/ia64/linux.mh: Ditto.
14484 * config/m68k/linux.mh: Ditto.
14485 * config/mips/linux.mh: Ditto.
14486 * config/powerpc/linux.mh: Ditto.
14487 * config/sparc/linux.mh: Ditto.
14489 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14491 * win32-nat.c: Add i386-tdep.h dependency.
14493 2002-01-07 Michael Snyder <msnyder@redhat.com>
14495 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14496 instead of bfd_get_arch_size. Don't bail out just because
14497 there's no exec_bfd.
14499 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14500 * p-valprint.c (pascal_object_print_value): Ditto.
14501 * somread.c (som_symtab_read): Ditto.
14502 * symfile.c (simple_free_overlay_region_table): Ditto.
14503 * valops.c (value_assign): Ditto.
14505 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14506 use tilde_expand and strerror for opening save-tracepoints file.
14508 * thread-db.c (thread_db_new_objfile): Indendation fix.
14510 * infptrace.c (GDB_MAX_ALLOCA): New define.
14511 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14512 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14513 can be overridden with whatever value is appropriate to the host).
14514 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14515 alloca to allocate potentially large buffer.
14516 * rs6000-nat.c (child_xfer_memory): Ditto.
14517 * symm-nat.c (child_xfer_memory): Ditto.
14518 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14520 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14522 From Nick Clifton <nickc@redhat.com>
14523 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14525 2002-01-07 Michael Snyder <msnyder@redhat.com>
14527 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14528 Don't use exec_bfd if it's NULL.
14530 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14532 * valops.c (value_arg_coerce): Fix formatting.
14534 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14536 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14537 * gnu-nat.c: Ditto.
14539 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14541 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14542 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14543 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14544 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14545 z8k-coff have not been multi-arched. Update z8k-coff build
14548 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14550 * MAINTAINERS: Mark a29k target as obsolete.
14551 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14552 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14554 * NEWS: Note that a29k targets are obsolete.
14555 * a29k-tdep.c: Mark as obsolete.
14556 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14557 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14558 a29k-*-vxworks* targets as obsolete.
14559 * remote-adapt.c: Obsolete.
14560 * remote-eb.c: Obsolete.
14561 * remote-mm.c: Obsolete.
14562 * remote-udi.c: Obsolete.
14563 * config/a29k/a29k-udi.mt: Obsolete.
14564 * config/a29k/a29k.mt: Obsolete.
14565 * config/a29k/tm-a29k.h: Obsolete.
14566 * config/a29k/tm-vx29k.h: Obsolete.
14567 * config/a29k/vx29k.mt: Obsolete.
14569 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14571 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14572 with BFD_ENDIAN_BIG.
14574 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14576 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14577 * configure, config.in: Re-generate.
14578 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14579 * defs.h: Do not include <endian.h>.
14581 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14583 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14584 * config.in: Regenerate.
14585 * configure.in: Update copyright years.
14586 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14587 * configure: Regenerate.
14588 * i386bsd-nat.c: Update copyright years.
14589 (fill_gregset): Use regcache_collect.
14590 (fetch_inferior_registers): Only fetch integer registers
14591 if requested to do so. Add support for XMM registers
14592 using PT_GETXMMREGS.
14593 (store_inferior_registers): Only store integer registers
14594 if requested to do so. Add support for XMM registers
14595 using PT_SETXMMREGS.
14596 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14597 (store_inferior_registers): Remove.
14598 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14599 (fetch_elfcore_registers): New function.
14600 (i386nbsd_elfcore_fns): New.
14601 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14602 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14604 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14605 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14606 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14607 * config/i386/tm-nbsd.h: Update copyright years.
14608 (HAVE_SSE_REGS): Define.
14609 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14610 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14611 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14612 (SIGCONTEXT_PC_OFFSET): Remove.
14613 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14615 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14617 * configure.tgt: Remove powerpc-*-macos* target.
14618 * config/m68k/xm-mpw.h: Delete file.
14619 * config/xm-mpw.h: Delete file.
14620 * ser-mac.c: Delete file.
14621 * mpw-make.sed: Delete file.
14622 * mpw-config.in: Delete file.
14623 * mac-xdep.c: Delete file.
14624 * mac-gdb.r: Delete file.
14625 * mac-defs.h: Delete file.
14626 * mac-nat.c: Delete file.
14627 * config/powerpc/macos.mh: Delete file.
14628 * config/powerpc/macos.mt: Delete file.
14629 * config/powerpc/nm-macos.h: Delete file.
14630 * config/powerpc/tm-macos.h: Delete file.
14631 * source.c (openp, open_source_file): Remove obsolete code.
14632 * top.c (gdb_readline): Ditto.
14633 * utils.c (query): Ditto.
14634 * event-top.c (display_gdb_prompt): Ditto.
14635 * Makefile.in (ser-mac.o): Delete obsolete target.
14638 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14640 * defs.h (BIG_ENDIAN): Delete macro definition.
14641 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14642 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14643 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14644 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14645 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14646 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14647 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14648 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14649 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14650 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14651 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14652 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14653 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14654 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14655 * gdbarch.c: Re-generate.
14657 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14659 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14662 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14664 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14666 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14668 * value.h (value_ptr): Delete typedef.
14670 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14672 * i386nbsd-nat.c: Update copyright years.
14673 Include i386-tdep.h.
14675 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14677 * stabsread.c: Update copyright years.
14679 From Debashis Mahata <debashis.mahata@wipro.com>:
14680 (read_struct_fields): Deal with Sun C compiler erroneous stab
14681 output for structs and unions.
14684 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14686 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14689 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14691 * cp-abi.c: Fix whitespace.
14692 (baseclass_offset): New wrapper function.
14693 * cp-abi.h (baseclass_offset): Add prototype.
14694 (struct cp_abi_ops): Add baseclass_offset pointer.
14696 * valops.c (vb_match): Move to...
14697 * gnu-v2-abi.c (vb_match): here.
14698 * valops.c (baseclass_offset): Move to...
14699 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14701 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14703 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14704 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14705 * hpacc-abi.c (init_hpacc_ops): Likewise.
14707 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14709 * valops.c (find_overload_match): Accept obj as a
14710 reference parameter. Update it before returning.
14711 * value.h (find_overload_match): Update prototype.
14712 * eval.c (evaluate_subexp_standard): Pass object to
14713 find_overload_match by reference.
14715 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14717 * valarith.c: Replace value_ptr with struct value pointer. Remove
14718 register attribute from value declarations.
14721 * scm-lang.c (scm_lookup_name): Ditto.
14723 2002-01-03 Michael Snyder <msnyder@redhat.com>
14725 Abstract the functionality of iterating over mapped memory
14726 regions into a general purpose iterator function.
14727 * procfs.c (iterate_over_mappings): New function, general purpose
14728 iterator for memory sections.
14729 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14730 (solib_mappings_callback): New function, callback for above.
14731 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14732 (info_mappings_callback): New function, callback for above.
14734 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14736 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14738 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14739 * i386-tdep.c: Include "elf-bfd.h".
14740 (process_note_abi_tag_sections): New function.
14741 (i386_gdbarch_init): Add code to recognize various OS/ABI
14744 * maint.c (_initialize_maint_cmds): Add missing \ in
14747 For older changes see ChangeLog-2001
14753 version-control: never