1 2002-12-21 Mark Kettenis <kettenis@gnu.org>
3 * x86-64-tdep.h (x86_64_init_abi): New prototype.
4 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
5 (x86_64_init_abi): Make non-static. Set number of pseudo
7 (x86_64_gdbarch_init): Remove function.
8 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
9 Remove code dealing with dissambly.
10 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
11 (_initialize_x86_64_linux_tdep): New function.
12 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
15 2002-12-14 Mark Kettenis <kettenis@gnu.org>
17 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
18 (struct gdb_osabi_handler): Remove member `arch'. Add member
20 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
21 construct a `struct bfd_arch_info' and store it in the `struct
22 gdb_osabi_handler' that is created.
23 (gdbarch_init_osabi): Check for compatibility based on machine
24 type and architecture.
25 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
27 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
28 second argument in call to gdbarch_register_osabi.
29 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
30 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
31 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
32 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
33 * arm-tdep.c (_initialize_arm_tdep): Likewise.
34 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
35 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
36 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
37 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
38 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
39 * i386-tdep.c (_initialize_i386_tdep): Likewise.
40 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
41 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
42 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
43 _initialize_i386bsd_tdep and updated likewise.
44 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
45 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
46 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
47 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
48 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
49 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
50 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
51 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
52 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
53 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
55 2002-12-20 Kevin Buettner <kevinb@redhat.com>
57 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
58 DT_MIPS_RLD_MAP case for 64-bit targets.
60 2002-12-20 Kevin Buettner <kevinb@redhat.com>
62 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
63 ``temp_saved_regs'', not the pointer or other storage contiguous
66 2002-12-20 Kevin Buettner <kevinb@redhat.com>
68 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
69 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
70 (mips_linux_get_longjmp_target): Delete declarations.
71 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
72 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
73 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
74 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
75 (mips_linux_get_longjmp_target)
76 (mips_linux_svr4_fetch_link_map_offsets): Make static.
77 (mips_linux_init_abi): New function.
78 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
80 2002-12-19 Keith Seitz <keiths@redhat.com>
82 patch committed by Elena Zannoni <ezannoni@redhat.com>
83 * thread.c (do_captured_list_thread_ids): Call prune_threads and
84 target_find_new_threads. Fix for PR mi/669.
86 2002-12-19 David Carlton <carlton@math.stanford.edu>
88 * linespec.c (decode_line_1): Move code into decode_all_digits.
89 (decode_all_digits): New function.
91 2002-12-19 Kevin Buettner <kevinb@redhat.com>
93 * exec.c (print_section_info): Select a format string to use with
94 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
96 2002-12-18 Andrew Cagney <ac131313@redhat.com>
98 * frame.c (deprecated_update_current_frame_pc_hack): Replace
99 deprecated_update_current_frame_pc_hack.
100 (deprecated_update_frame_base_hack): New function.
101 * frame.h (deprecated_update_frame_pc_hack): Replace
102 (deprecated_update_frame_base_hack): Declare.
103 * infrun.c (normal_stop): Update.
105 2002-12-18 Andrew Cagney <ac131313@redhat.com>
107 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
108 frame_extra_info_zalloc.
109 (rs6000_frame_args_address): Use get_frame_extra_info.
110 (frame_get_saved_regs): Use get_frame_saved_regs.
111 (frame_initial_stack_address): Use get_frame_saved_regs and
112 get_frame_extra_info.
113 (frame_initial_stack_address): Use get_frame_extra_info.
115 2002-12-17 Kevin Buettner <kevinb@redhat.com>
117 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
119 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
120 checks for r3900_regnames[].
122 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
124 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
126 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
128 2002-12-17 David Carlton <carlton@math.stanford.edu>
130 * symtab.c (lookup_partial_symbol): Don't search past the end of
133 2002-12-17 Andrew Cagney <ac131313@redhat.com>
135 * stack.c (frame_info): Use get_frame_saved_regs.
136 * breakpoint.c (until_break_command): Use get_frame_pc.
138 2002-12-16 Kevin Buettner <kevinb@redhat.com>
140 * buildsym.c (block_end_complaint, anon_block_end_complaint)
141 (innerblock_complaint, innerblock_anon_complaint)
142 (blockvector_complaint): Delete deprecated complaint structs.
143 (finish_block, make_blockvector, end_symtab): Replace calls
144 to complain() with calls to complaint().
145 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
146 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
147 (unexpected_type_complaint, bad_sclass_complaint)
148 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
149 Delete deprecated complaint structs.
150 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
151 Replace calls to complain() with calls to complaint().
152 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
153 (unknown_symtype_complaint, unknown_symchar_complaint)
154 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
155 (lbrac_mismatch_complaint, repeated_header_complaint)
156 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
157 Delete deprecated complaint structs.
158 (unknown_symtype_complaint, lbrac_mismatch_complaint)
159 (repeated_header_complaint)
160 (function_outside_compiliation_unit_complaint): New functions.
161 (add_old_header_file, find_corresponding_bincl_psymtab)
162 (set_namestring, find_stab_function_addr, read_dbx_symtab)
163 (process_one_symbol): Replace calls to complain() with, possibly
164 indirect, calls to complaint().
165 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
166 (unknown_attribute_form, unknown_attribute_length)
167 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
168 (const_ignored, botched_modified_type, op_deref2, op_deref4)
169 (basereg_not_handled, dup_user_type_allocation)
170 (dup_user_type_definition, missing_tag, bad_array_element_type)
171 (subscript_data_items, unhandled_array_subscript_format)
172 (unknown_array_subscript_format, not_row_major)
173 (missing_at_name): Delete deprecated complaint structs.
174 (bad_die_ref_complaint, unknown_attribute_form_complaint)
175 (dup_user_type_definition_complaint)
176 (bad_array_element_type_complaint): New functions.
177 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
178 (decode_subscript_data_item, dwarf_read_array_type)
179 (read_tag_string_type, read_subroutine_type, read_func_scope)
180 (locval, scan_partial_symbols, decode_modified_type)
181 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
182 (attribute_size): Replace calls to complain() with, possibly
183 indirect, calls to complaint().
184 * elfread.c (section_info_complaint, section_info_dup_complaint)
185 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
186 Delete deprecated complaint structs.
187 (elf_symtab_read, elfstab_offset_sections): Replace calls to
188 complain() with calls to complaint().
189 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
191 (stub_noname_complaint): New function.
192 (check_typedef, add_mangled_type): Replace calls to complain()
193 with calls to complaint().
194 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
195 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
196 (hpread_unhandled_type_complaint, hpread_struct_complaint)
197 (hpread_array_complaint, hpread_type_lookup_complaint)
198 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
199 (hpread_unhandled_common_complaint)
200 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
201 struct definitions and declarations.
202 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
203 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
204 Replace calls to complain() with, possibly indirect, calls to
206 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
208 * mdebugread.c (bad_file_number_complaint, index_complaint)
209 (aux_index_complaint, block_index_complaint)
210 (unknown_ext_complaint, unknown_sym_complaint)
211 (unknown_st_complaint, block_overflow_complaint)
212 (basic_type_complaint, unknown_type_qual_complaint)
213 (array_index_type_complaint, bad_tag_guess_complaint)
214 (block_member_complaint, stEnd_complaint)
215 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
216 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
217 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
218 (bad_continued_complaint, bad_rfd_entry_complaint)
219 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
220 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
221 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
222 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
224 (index_complaint, unknown_ext_complaint, basic_type_complaint)
225 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
226 (unexpected_type_code_complaint)
227 (function_outside_compilation_unit_complaint): New functions.
228 (parse_symbol, parse_type, upgrade_type, parse_procedure)
229 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
230 Replace calls to complain() with, possibly indirect calls to
232 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
233 Delete deprecated complaint structs.
234 (lookup__objc_class, lookup_child_selector): Replace complain()
236 * remote-vx.c (cant_contact_target): Delete deprecated complaint
238 (vx_lookup_symbol): Replace complain() with complaint().
239 * stabsread.c (invalid_cpp_abbrev_complaint)
240 (invalid_cpp_type_complaint, member_fn_complaint)
241 (const_vol_complaint, error_type_complaint)
242 (invalid_member_complaint, range_type_base_complaint)
243 (reg_value_complaint, vtbl_notfound_complaint)
244 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
245 (unresolved_sym_chain_complaint, stabs_general_complaint)
246 (lrs_general_complaint, multiply_defined_struct): Delete
247 deprecated complaint structs.
248 (invalid_cpp_abbrev_complaint, ref_value_complaint)
249 (stabs_general_complaint, lrs_general_complaint)
250 (msg_unknown_complaint): New functions.
251 (dbx_lookup_type, read_cfront_baseclasses)
252 (read_cfront_member_functions, resolve_symbol_reference)
253 (define_symbol, resolve_live_range, add_live_range, read_type)
254 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
255 (read_one_struct_field, read_baseclasses, read_tilde_fields)
256 (read_cfront_static_fields, attach_fields_to_type)
257 (complain_about_struct_wipeout, read_range_type)
258 (common_block_start, common_block_end, cleanup_undefined_types)
259 (scan_file_globals): Replace complain() with complaint().
260 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
261 Delete deprecated complaint struct declarations.
262 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
263 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
264 (bf_not_found_complaint, ef_complaint, eb_complaint)
265 (function_outside_compilation_unit_complaint): New functions.
266 (record_include_begin, record_include_end, enter_line_range)
267 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
268 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
269 complain() with complaint().
271 2002-12-16 Andrew Cagney <ac131313@redhat.com>
273 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
274 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
275 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
276 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
277 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
278 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
279 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
280 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
281 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
282 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
283 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
284 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
285 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
286 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
287 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
288 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
289 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
290 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
291 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
292 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
293 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
294 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
295 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
296 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
297 * config/m88k/xm-dgux.h: Delete.
298 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
299 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
300 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
301 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
302 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
303 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
304 * ch-valprint.c: Delete.
306 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
308 * infrun.c (handle_inferior_event): Rearrange code to resume if
309 no catchpoint triggers for an event.
311 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
313 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
314 and TARGET_WAITKIND_VFORKED cases.
316 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
318 * infrun.c (handle_inferior_event): Assume that catchpoints
319 are not affected by DECR_PC_AFTER_BREAK.
321 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
323 * target.c (update_current_target): Don't inherit DONT_USE.
324 * target.h (struct target_ops): Remove DONT_USE.
325 (target_next): Remove macro.
327 2002-12-15 Mark Kettenis <kettenis@gnu.org>
329 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
331 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
333 * arm-tdep.c (convert_from_extended): New argument to hold the
334 type of floating point result we want to convert to. Make input
335 argument const. Fix all callers.
336 (convert_to_extended): Similarly.
337 (arm_extract_return_value): Now takes a regcache argument. Change
338 code to use regcache accessor functions. Correctly extract
339 smaller-than-word results on big-endian machines.
340 (arm_store_return_value): Now takes a regcache argument. Change
341 code to use regcache accessor functions. Correctly zero/sign extend
342 smaller than word results before storing into r0.
343 (arm_gdbarch_init): Register new-style extract_return_value and
344 store_return_value functions.
346 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
348 * thread-db.c (thread_from_lwp): Uniquify error msg.
349 (lwp_from_thread): Ditto.
350 (check_event): Ditto.
351 (find_new_threads_callback): Ditto.
352 (thread_db_pid_to_str): Ditto.
354 2002-12-13 Andrew Cagney <ac131313@redhat.com>
356 * frame.h (get_frame_saved_regs): Declare.
357 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
359 * frame.c (get_frame_saved_regs): New function.
360 (frame_saved_regs_zalloc): Return the allocated saved_regs.
362 2002-12-13 Andrew Cagney <ac131313@redhat.com>
364 * frame.c (deprecated_update_current_frame_pc_hack): New
366 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
367 * infrun.c (normal_stop): Use said function instead of directly
368 modifying the frame's PC.
370 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
372 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
374 2002-12-13 Kevin Buettner <kevinb@redhat.com>
376 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
377 config/mips/tm-irix6.h (NUM_REGS): Delete.
378 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
379 (temp_saved_regs): Declare as a pointer rather than an array.
380 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
381 that ``temp_saved_regs'' has storage allocated to it and that
382 it's the correct size.
384 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
386 * defs.h (init_last_source_visited): New prototype.
388 * source.c (add_path): New function that adds to a specified path.
389 (mod_path): Change to call add_path.
390 (init_last_source_visited): New function to allow interfaces to
391 initialize static variable: last_source_visited. Part of fix
393 * Makefile.in: Add support for mi/mi-cmd-env.c.
395 2002-12-13 Andrew Cagney <ac131313@redhat.com>
397 * frame.h (frame_id_unwind): Declare.
398 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
400 (frame_id_unwind_ftype): Declare.
401 * frame.c (frame_id_unwind): New function.
402 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
403 (create_new_frame, get_prev_frame): Pass id_unwind to
405 (frame_saved_regs_id_unwind): New function.
406 (frame_saved_regs_id_unwind): New function.
407 * dummy-frame.c (dummy_frame_id_unwind): New function.
408 (struct dummy_frame): Add field id.
409 (generic_push_dummy_frame): Initialize `id'.
410 * dummy-frame.h (dummy_frame_id_unwind): Declare.
412 2002-12-13 Andrew Cagney <ac131313@redhat.com>
414 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
415 pass that to set_momentary_breakpoint. Move comments to where they
417 * frame.h (set_current_frame): Delete declaration.
418 * frame.c (set_current_frame): Delete function.
420 2002-12-13 Andrew Cagney <ac131313@redhat.com>
422 * frame.c (frame_extra_info_zalloc): New function.
423 * frame.h (frame_extra_info_zalloc): Declare.
425 2002-12-13 Joel Brobecker <brobecker@gnat.com>
427 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
428 in the previous prototype change to set_momentary_breakpoint.
430 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
432 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
434 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
435 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
436 (stop_stepping): Remove outdated check for child vfork events.
438 2002-12-12 Andrew Cagney <ac131313@redhat.com>
440 * GDB 5.3 released from gdb_5_3-branch.
442 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
444 * corelow.c (init_core_ops): Delete references to to_require_attach
445 and to_require_detach.
446 * exec.c (init_exec_ops): Likewise.
447 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
448 hppa_require_detach directly.
449 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
450 * inftarg.c (child_detach): Remove.
451 (child_detach_from_process): Rename to child_detach, remove
453 (child_attach): Remove.
454 (child_attach_to_process): Rename to child_attach, remove after_fork
456 (init_child_ops): Delete references to to_require_attach
457 and to_require_detach.
458 * infttrace.c (hppa_require_attach): Update comment.
459 * target.c (cleanup_target, update_current_target)
460 (init_dummy_target, setup_target_debug): Delete references to
461 to_require_attach and to_require_detach.
462 (find_default_require_detach, find_default_require_attach)
463 (debug_to_require_attach, debug_to_require_detach): Remove
465 * target.h (struct target_ops): Remove to_require_attach
466 and to_require_detach.
467 (target_require_attach, target_require_detach): Delete macros.
468 (find_default_require_detach, find_default_require_attach): Delete
470 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
472 2002-12-11 Andrew Cagney <ac131313@redhat.com>
474 * frame.c (get_frame_extra_info): New function.
475 * frame.h (get_frame_extra_info): Declare.
477 2002-12-11 Andrew Cagney <ac131313@redhat.com>
479 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
480 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
481 with `struct frame_id'.
482 (set_longjmp_resume_breakpoint): Ditto.
483 * infrun.c (handle_inferior_event): Update.
484 * breakpoint.c (watch_command_1, until_break_command): Update.
485 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
486 (handle_inferior_event, step_over_function): Update.
487 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
488 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
489 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
490 * infcmd.c (finish_command, run_stack_dummy): Update.
492 2002-12-11 Kevin Buettner <kevinb@redhat.com>
494 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
495 (dwarf2_non_const_array_bound_ignored)
496 (dwarf2_missing_line_number_section)
497 (dwarf2_statement_list_fits_in_line_number_section)
498 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
499 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
500 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
501 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
502 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
503 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
504 (dwarf2_missing_member_fn_type_complaint)
505 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
506 (dwarf2_const_value_length_mismatch)
507 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
508 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
509 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
510 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
511 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
512 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
513 complaints using deprecated struct..
514 (dwarf2_non_const_array_bound_ignored_complaint)
515 (dwarf2_complex_location_expr_complaint)
516 (dwarf2_unsupported_at_frame_base_complaint)
517 (dwarf2_const_value_length_mismatch_complaint)
518 (dwarf2_macros_too_long_complaint)
519 (dwarf2_macro_malformed_definition_complaint)
520 (dwarf2_invalid_attrib_class_complaint): New functions.
521 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
522 (read_structure_scope, read_array_type, read_common_block)
523 (read_tag_pointer_type, read_base_type, read_partial_die)
524 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
525 (new_symbol, dwarf2_const_value, read_type_die)
526 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
527 (parse_macro_definition, dwarf_decode_macros): Replace calls to
528 complain() with, possibly indirect, calls to complaint().
530 2002-12-11 Andrew Cagney <cagney@redhat.com>
532 * frame.c (deprecated_get_frame_saved_regs): Rename
533 get_frame_saved_regs.
534 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
535 * sparc-tdep.c: Update.
536 * hppa-tdep.c: Update.
537 * h8500-tdep.c: Update.
539 2002-12-11 Kevin Buettner <kevinb@redhat.com>
541 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
542 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
543 ``char *'' for return and parameter types.
544 * gdbarch.h, gdbarch.c: Regenerate.
545 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
546 return type from ``char *'' to ``const char *''.
547 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
550 2002-12-11 Mark Kettenis <kettenis@gnu.org>
552 * i386-tdep.c: Include "dummy-frame.h".
553 (i386_frame_chain, i386_frame_saved_pc): Replace
554 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
555 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
557 2002-12-10 Andrew Cagney <cagney@redhat.com>
559 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
560 Change to a function with predicate.
561 * gdbarch.h, gdbarch.c: Re-generate.
562 * frame.c (get_prev_frame): Update. Test
563 DEPRECATED_INIT_FRAME_PC_P.
564 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
565 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
566 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
567 * alpha-tdep.c (alpha_gdbarch_init): Update.
568 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
569 * mips-tdep.c (mips_gdbarch_init): Update.
570 * i386-interix-tdep.c (i386_interix_init_abi): Update.
571 * arm-tdep.c: Update comments.
572 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
573 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
574 * frv-tdep.c (frv_gdbarch_init): Ditto.
575 * x86-64-tdep.c (x86_64_init_abi): Ditto.
576 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
577 * s390-tdep.c (s390_gdbarch_init): Ditto.
578 * v850-tdep.c (v850_gdbarch_init): Ditto.
579 * vax-tdep.c (vax_gdbarch_init): Ditto.
580 * sh-tdep.c (sh_gdbarch_init): Ditto.
581 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
583 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
585 * i386-tdep.c (i386_gdbarch_init): Ditto.
586 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
587 * cris-tdep.c (cris_gdbarch_init): Ditto.
588 * avr-tdep.c (avr_gdbarch_init): Ditto.
589 * arm-tdep.c (arm_gdbarch_init): Ditto.
590 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
591 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
593 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
595 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
597 * hppah-nat.c (saved_vfork_pid): Add.
598 (child_post_follow_vfork): Remove.
599 (child_follow_fork): New function.
600 (child_wait): Call detach_breakpoints after receiving the child vfork.
601 Call child_resume directly instead of going through resume ().
602 Make sure we have the exec before reporting the vfork.
603 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
604 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
605 (follow_fork): New function. Call target_follow_fork.
606 (follow_inferior_reset_breakpoints): New function broken out from
607 old follow_inferior_fork.
608 (resume): Remove hack to follow exec after vfork.
609 * inftarg.c (child_post_follow_vfork): Remove.
610 (child_follow_fork): New function.
611 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
612 * target.c (cleanup_target): Replace to_post_follow_vfork with
614 (update_current_target): Likewise.
615 (setup_target_debug): Likewise.
616 (debug_to_post_follow_vfork): Remove.
617 (debug_to_follow_fork): New function.
618 * target.h (struct target_ops): Replace to_post_folow_vfork with
620 (child_post_follow_vfork): Remove prototype.
621 (child_follow_fork): Add prototype.
622 (target_post_follow_vfork): Remove macro.
623 (target_follow_fork): Add macro.
625 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
627 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
628 (child_post_follow_vfork): Cancel pending exec event if we follow
630 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
631 events have been processed. Return a fake TARGET_WAITKIND_EXECD
632 event at the following wait call if necessary.
633 * infrun.c (follow_vfork): Don't follow_exec here.
634 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
635 case about HP/UX 10.20. Remove code pushed down to
636 hppah-nat.c:child_wait.
637 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
638 vfork_in_flight is set.
640 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
642 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
643 for the parent's fork event.
644 * infrun.c (handle_inferior_event): Only expect one fork event.
645 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
646 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
648 2002-12-10 Andrew Cagney <ac131313@redhat.com>
650 * PROBLEMS: Delete reference to PR gdb/725.
652 * MAINTAINERS (gdb.c++): Add David Carlton.
654 2002-12-09 David Carlton <carlton@math.stanford.edu>
656 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
657 * cli/cli-cmds.c: Ditto.
659 2002-12-09 Andrew Cagney <cagney@redhat.com>
661 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
662 function address in <>.
663 * gdbarch.c: Re-generate.
665 2002-12-09 David Carlton <carlton@math.stanford.edu>
667 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
669 2002-12-09 David Carlton <carlton@math.stanford.edu>
671 * linespec.c (symtab_from_filename): New function.
672 (decode_line_1): Move code into symtab_from_filename.
674 2002-12-09 Kevin Buettner <kevinb@redhat.com>
676 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
678 2002-12-07 Andrew Cagney <ac131313@redhat.com>
680 * f-valprint.c (info_common_command): Use get_frame_pc.
681 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
682 * ax-gdb.c (agent_command): Ditto.
683 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
684 (rs6000_pop_frame): Ditto.
685 (rs6000_frameless_function_invocation): Ditto.
686 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
687 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
688 * macroscope.c (default_macro_scope): Ditto.
689 * stack.c (print_frame_info_base): Ditto.
690 (print_frame, frame_info, print_frame_label_vars): Ditto.
691 (return_command, func_command, get_frame_language): Ditto.
692 * infcmd.c (finish_command): Ditto.
693 * dummy-frame.c (cached_find_dummy_frame): Ditto.
694 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
695 (break_at_finish_at_depth_command_1): Ditto.
696 (break_at_finish_command_1): Ditto.
697 (until_break_command, get_catch_sals): Ditto.
698 * blockframe.c (func_frame_chain_valid): Ditto.
699 (frameless_look_for_prologue): Ditto.
700 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
702 2002-12-08 Andrew Cagney <ac131313@redhat.com>
704 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
705 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
707 2002-12-08 Andrew Cagney <ac131313@redhat.com>
709 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
711 * gdbarch.h, gdbarch.c: Re-generate.
712 * frame.c (get_prev_frame): Explictly assign prev's pc with value
713 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
715 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
716 declaration to a function returning a CORE_ADDR.
717 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
718 * arch-utils.c (init_frame_pc_noop): Return the PC value.
719 (init_frame_pc_default): Ditto.
720 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
721 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
722 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
723 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
724 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
725 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
727 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
728 to init_frame_pc_noop.
729 (i386_interix_init_frame_pc): Delete function.
730 * z8k-tdep.c (init_frame_pc): Delete function.
731 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
732 (INIT_FRAME_PC_FIRST): Ditto.
733 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
734 (INIT_FRAME_PC_FIRST): Ditto.
735 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
736 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
738 (INIT_FRAME_PC_FIRST): Convert to an expression.
739 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
741 2002-12-08 Andrew Cagney <ac131313@redhat.com>
743 * blockframe.c: Use get_frame_base instead of directly accessing
744 the `struct frame_info' member frame.
745 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
746 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
748 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
750 * Makefile.in (readline_h): Define.
751 (completer.o): Depend on readline_h.
753 (event-top.o): Ditto.
760 (tracepoint.o): Ditto.
763 (tui-hooks.o): Ditto.
766 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
768 More cleanup from import of readline 4.3.
769 * completer.h (complete_line, readline_line_completion_function):
771 (line_completion_function): Removed, not used outside of completer.c.
772 * completer.c (readline_line_completion_function,
773 complete_function, line_completion_function): Use const for first
775 (line_completion_function): Make static.
776 (filename_completer): filename_completion_function is now called
777 rl_filename_completion_function
778 * corelow.c: Include <readline/readline.h>.
784 * top.c (init_main): No need to coerce
785 readline_line_completion_function anymore.
786 * cli/cli-dump.c: Include <readline/readline.h>.
788 2002-12-08 Andrew Cagney <ac131313@redhat.com>
790 * stack.c (frame_info): Use get_prev_frame.
791 * blockframe.c (frame_address_in_block): Ditto.
792 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
793 (rs6000_frameless_function_invocation): Ditto.
794 (rs6000_frame_saved_pc): Ditto.
795 (rs6000_frame_chain): Ditto.
796 * arch-utils.c (init_frame_pc_default): Ditto.
798 2002-12-08 Andrew Cagney <ac131313@redhat.com>
800 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
801 Delete redundant definition.
803 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
805 Import of readline 4.3:
806 * cli/cli-cmds.c: Include readline/tilde.h.
807 * cli/cli-setshow.c: Ditto.
808 * defs.h: Don't declare tilde_expand anymore, since readline
811 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
813 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
814 -Werror on this file.
816 2002-12-07 Andrew Cagney <ac131313@redhat.com>
818 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
820 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
821 * gdbarch.c: Regenerate.
823 2002-12-06 Andrew Cagney <ac131313@redhat.com>
825 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
826 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
827 provide a default value.
828 * gdbarch.h, gdbarch.c: Regenerate.
829 * frame.c (get_prev_frame): Update. Check
830 DEPRECATED_INIT_FRAME_PC_FIRST_P.
831 * s390-tdep.c (s390_gdbarch_init): Update.
832 * mips-tdep.c (mips_gdbarch_init): Update.
833 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
834 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
835 * alpha-tdep.c (alpha_gdbarch_init): Update.
837 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
839 * ia64-linux-nat.c: Include gdb_string.h.
840 * alpha-nat.c: Ditto.
841 * ppc-linux-nat.c: Ditto.
842 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
845 2002-12-05 Andrew Cagney <ac131313@redhat.com>
847 * gdbthread.h: Include "frame.h".
848 (struct thread_info): Replace step_frame_address with
850 * inferior.h: Include "frame.h".
851 (step_frame_id): Replace external variable step_frame_address.
852 * gdbthread.h (save_infrun_state): Replace step_frame_address
853 parameter with step_frame_id parameter.
854 (load_infrun_state): Ditto.
855 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
856 * infcmd.c (step_frame_id, step_1, step_once): Update.
857 * thread.c (load_infrun_state, save_infrun_state): Update.
858 * infrun.c (clear_proceed_status, save_inferior_status): Update.
859 (handle_inferior_event, step_over_function): Update.
860 (normal_stop, context_switch, restore_inferior_status): Update.
861 (struct inferior_status): Replace step_frame_address with
864 2002-12-05 David Carlton <carlton@math.stanford.edu>
866 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
867 DW_TAG_member as well as a declaration as being a C++ static data
869 (read_structure_scope): Combine tests for DW_TAG_member and
872 2002-12-05 David Carlton <carlton@math.stanford.edu>
874 * linespec.c (decode_compound): New function.
875 (decode_line_1): Move code into decode_compound.
877 2002-12-05 David Carlton <carlton@math.stanford.edu>
879 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
881 (lookup_symbol_aux): Do the 'field_of_this' check before checking
882 the static block. See PR gdb/804.
884 2002-12-05 David Carlton <carlton@math.stanford.edu>
886 * symtab.c (lookup_symbol_aux_block): New function.
887 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
889 2002-12-05 Andrew Cagney <ac131313@redhat.com>
891 * gdbarch.sh: Dump the predicate function and macro values.
892 (read): Print error on standard error.
893 * gdbarch.c: Regenerate.
895 2002-12-04 Kevin Buettner <kevinb@redhat.com>
897 * Makefile.in (mips_tdep_h): Define.
898 (mips-tdep.o): Add mips_tdep_h to dependency list.
899 * mips-tdep.h: New file.
900 * mips-tdep.c (mips-tdep.h): Include.
901 (enum mips_abi): Move to mips-tdep.h.
902 (mips_abi): New function.
904 2002-12-04 David Carlton <carlton@math.stanford.edu>
906 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
908 2002-12-04 David Carlton <carlton@math.stanford.edu>
910 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
912 (lookup_symbol_aux_minsyms): New function.
914 2002-12-04 J. Brobecker <brobecker@gnat.com>
916 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
918 2002-12-04 J. Brobecker <brobecker@gnat.com>
920 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
921 which is an obsolete macro name.
923 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
925 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
926 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
928 2002-12-03 H.J. Lu (hjl@gnu.org)
930 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
931 (create_breakpoints): Make sure the addr_string field is not
934 2002-12-03 Andrew Cagney <ac131313@redhat.com>
936 * sparc-nat.c (fetch_inferior_registers)
937 (store_inferior_registers): Add comment on problem of LWP vs
940 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
941 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
942 (lin_lwp_store_registers): Remove.
943 (init_lin_lwp_ops): Use fetch_inferior_registers
944 and store_inferior_registers directly.
945 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
946 (store_inferior_registers): Likewise.
949 2002-12-03 Andrew Cagney <ac131313@redhat.com>
951 * frame.h (get_frame_id): Convert to a function.
952 (null_frame_id, frame_id_p): Declare.
953 (frame_id_eq, frame_id_inner): Declare.
954 (frame_id_build): New function.
955 * frame.c (get_frame_id): Update. Use null_frame_id.
956 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
958 (null_frame_id, frame_id_p): Define.
959 (frame_id_eq, frame_id_inner): Define.
960 (frame_id_build): New function.
961 * varobj.c (varobj_create): Update.
962 (varobj_update): Update.
963 * valops.c (value_assign): Update.
964 (new_root_variable): Update.
965 * infrun.c (save_inferior_status): Update.
966 * breakpoint.c (watch_command_1): Update.
968 2002-12-03 J. Brobecker <brobecker@gnat.com>
970 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
973 2002-12-03 Andrew Cagney <cagney@redhat.com>
975 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
978 * PROBLEMS: Mention PR gdb/725.
980 2002-12-03 Andreas Schwab <schwab@suse.de>
982 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
984 2002-12-02 Adam Fedor <fedor@gnu.org>
985 Klee Dienes <kdienes@apple.com>
987 * objc-lang.c (objc_printstr): Add width arg to match
989 (compare_selectors): Add 'const' to arg types.
990 (compare_classes): Likewise.
991 (find_imps): Cast msym pointer to avoid compiler warning.
992 (print_object_command): Validate the address before
993 passing it to the print routine.
994 (find_objc_msgcall_submethod): Change function argument to
996 * objc-lang.h: Add 'extern' to all function declarations.
997 (value_nsstring): Add declaration.
999 2002-12-02 J. Brobecker <brobecker@gnat.com>
1001 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1002 Fixes a build failure on HP/UX.
1004 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1006 (hpread_has_name): Advance declaration to avoid a compilation warning.
1007 (pst_syms_count): Add missing variable type. By change, the compiler
1008 was defaulting to int, which seems a good choice. Fixes a compilation
1010 (pst_syms_size): Likewise.
1012 2002-12-02 J. Brobecker <brobecker@gnat.com>
1014 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1015 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1016 later to set the proper gdbarch methods depending on the osabi.
1017 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1019 2002-12-02 J. Brobecker <brobecker@gnat.com>
1021 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1022 * osabi.c (gdb_osabi_name): Add strings images for the two new
1024 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1026 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1028 * MAINTAINERS (Java): Global maintainers are responible for Java.
1029 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1030 part Java maintainers.
1032 2002-12-02 J. Brobecker <brobecker@gnat.com>
1034 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1035 Fixes a compilation failure on AiX.
1037 2002-12-02 J. Brobecker <brobecker@gnat.com>
1039 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1040 why aix-thread.o is not listed.
1042 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1044 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1045 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1046 * gdbarch.h, gdbarch.c: Re-generate.
1047 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1048 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1049 * config/pa/tm-hppa.h, frame.h: Update.
1050 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1051 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1052 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1053 * cris-tdep.c, alpha-tdep.c: Update.
1054 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1055 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1056 (get_prev_frame): Ditto.
1058 2002-11-30 Andrew Cagney <cagney@redhat.com>
1060 * exec.c (xfer_memory): Replace boolean with int.
1061 * p-exp.y: Use 0 instead of false.
1062 * corelow.c (gdb_check_format): Change return type to int from
1064 * utils.c: Don't include <curses.h> or <term.h> first.
1066 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1068 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1069 (m68hc11_register_byte): Remove.
1070 (m68hc11_gdbarch_init): Don't set the above.
1072 2002-11-29 Andrew Cagney <cagney@redhat.com>
1074 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1075 by calling get_selected_frame.
1076 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1077 set_current_frame, create_new_frame, select_frame and
1079 * remote-e7000.c (e7000_start_remote): Ditto.
1080 * remote-mips.c (common_open): Ditto
1081 * remote-rdp.c (remote_rdp_open): Ditto.
1083 2002-11-29 Andreas Schwab <schwab@suse.de>
1085 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1086 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1087 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1088 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1089 read_memory_unsigned_integer instead of read_memory_integer when
1090 dealing with addresses and instruction opcodes.
1091 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1092 (m68k_linux_frame_saved_pc): Likewise.
1094 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1096 * stack.c (selected_frame, select_frame): Move from here ...
1097 * frame.c (selected_frame, select_frame): ... to here. Include
1099 * Makefile.in (frame.o): Update dependencies.
1100 * frame.c (get_selected_frame): New function.
1101 * frame.h (get_selected_frame): Declare.
1102 (deprecated_selected_frame): Rename selected_frame.
1103 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1104 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1105 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1106 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1107 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1108 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1109 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1110 * z8k-tdep.c, cli/cli-cmds.c: Update.
1112 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1114 * frame.h (get_selected_block): Add comments.
1116 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1118 * frame.c (pc_notcurrent): New function.
1119 (find_frame_sal): New function.
1120 * frame.h (find_frame_sal): Declare.
1121 (struct symtab_and_line): Add opaque declaration.
1122 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1124 (frame_info): Ditto.
1125 * ada-lang.c (find_printable_frame): Ditto.
1127 2002-11-28 J. Brobecker <brobecker@gnat.com>
1129 * configure.in: Check that the pthdebug library is recent enough
1130 before enabling thread support on native AiX.
1131 * configure: Regenerate.
1133 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1134 from the list of object files as it is now appended by configure
1135 if thread support is enabled.
1136 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1137 if thread support is enabled.
1139 2002-11-28 Andrew Cagney <cagney@redhat.com>
1141 * stack.c (get_selected_block): In-line get_current_block.
1142 * frame.h (get_current_block): Delete declaration.
1143 * blockframe.c (get_current_block): Delete function.
1145 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1147 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1148 USE_GENERIC_DUMMY_FRAMES.
1149 * gdbarch.h, gdbarch.c: Regenerate.
1150 * valops.c, frame.c: Update.
1151 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1152 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1153 * config/pa/tm-hppa.h, blockframe.c: Update.
1154 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1155 * m68k-tdep.c, alpha-tdep.c: Ditto.
1157 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1158 * mips-tdep.c: Ditto.
1160 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1162 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1163 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1164 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1165 * gdbarch.c, gdbarch.h: Re-generate.
1166 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1167 (CALL_DUMMY_LOCATION): Delete macro definition.
1168 (PC_IN_CALL_DUMMY): Delete macro definitions.
1170 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1171 default is already generic_pc_in_call_dummy.
1172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1173 * v850-tdep.c (v850_gdbarch_init): Ditto.
1174 * sh-tdep.c (sh_gdbarch_init): Ditto.
1175 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1176 * mips-tdep.c (mips_gdbarch_init): Ditto.
1177 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1179 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1180 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1181 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1182 * avr-tdep.c (avr_gdbarch_init): Ditto.
1184 * arm-tdep.c (arm_gdbarch_init): Do not set
1185 use_generic_dummy_frames, default is already 1.
1186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1187 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1188 * v850-tdep.c (v850_gdbarch_init): Ditto.
1189 * sh-tdep.c (sh_gdbarch_init): Ditto.
1190 * s390-tdep.c (s390_gdbarch_init): Ditto.
1191 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1192 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1193 * mips-tdep.c (mips_gdbarch_init): Ditto.
1194 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1196 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1197 * i386-tdep.c (i386_gdbarch_init): Ditto.
1198 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1199 * frv-tdep.c (frv_gdbarch_init): Ditto.
1200 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1201 * cris-tdep.c (cris_gdbarch_init): Ditto.
1202 * avr-tdep.c (avr_gdbarch_init): Ditto.
1204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1205 call_dummy_location, default is already AT_ENTRY_POINT.
1206 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1207 * v850-tdep.c (v850_gdbarch_init): Ditto.
1208 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1209 * sh-tdep.c (sh_gdbarch_init): Ditto.
1210 * s390-tdep.c (s390_gdbarch_init): Ditto.
1211 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1212 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1213 * mips-tdep.c (mips_gdbarch_init): Ditto.
1214 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1216 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1217 * i386-tdep.c (i386_gdbarch_init): Ditto.
1218 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1219 * frv-tdep.c (frv_gdbarch_init): Ditto.
1220 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1221 * cris-tdep.c (cris_gdbarch_init): Ditto.
1222 * avr-tdep.c (avr_gdbarch_init): Ditto.
1223 * arm-tdep.c (arm_gdbarch_init): Ditto.
1224 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1226 2002-11-28 Andrew Cagney <cagney@redhat.com>
1228 * frame.h: Update comments on set_current_frame, create_new_frame,
1229 flush_cached_frames, reinit_frame_cache, select_frame and
1232 2002-11-27 Andrew Cagney <cagney@redhat.com>
1234 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1235 deprecated pc_in_call_dummy function.
1236 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1237 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1238 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1239 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1240 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1242 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1244 * Makefile.in: Remove Tix dependencies.
1245 * acinclude.m4: Ditto.
1246 * aclocal.m4: Ditto.
1247 * configure.in: Ditto.
1248 * configure: Regenerated.
1250 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1252 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1253 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1254 * gdbarch.c: Re-generate.
1256 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1258 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1259 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1260 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1261 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1262 pc_in_call_dummy_at_entry_point.
1263 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1264 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1265 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1266 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1267 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1268 pc_in_call_dummy_on_stack.
1269 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1270 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1271 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1272 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1273 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1275 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1277 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1278 pc_in_call_dummy_before_text_end
1279 (deprecated_pc_in_call_dummy_after_text_end): Rename
1280 pc_in_call_dummy_after_text_end.
1281 (deprecated_pc_in_call_dummy_on_stack): Rename
1282 pc_in_call_dummy_on_stack.
1283 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1284 pc_in_call_dummy_at_entry_point.
1285 * m68k-tdep.c (m68k_gdbarch_init): Update.
1286 * s390-tdep.c (s390_gdbarch_init): Update.
1287 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1288 * vax-tdep.c (vax_gdbarch_init): Update.
1289 * sparc-tdep.c (sparc_gdbarch_init): Update.
1290 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1291 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1292 * i386-tdep.c (i386_gdbarch_init): Update.
1293 * frv-tdep.c (frv_gdbarch_init): Update.
1294 * cris-tdep.c (cris_gdbarch_init): Update.
1295 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1296 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1297 (deprecated_pc_in_call_dummy_after_text_end)
1298 (deprecated_pc_in_call_dummy_on_stack)
1299 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1300 * alpha-tdep.c (alpha_gdbarch_init): Update.
1302 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1304 * acconfig.h (HAVE_PREAD64): Add.
1305 * configure.in: Check for pread64.
1306 * config.in: Regenerated.
1307 * configure: Regenerated.
1308 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1309 * linux-proc.c (linux_proc_xfer_memory): New function.
1310 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1312 2002-11-25 David Carlton <carlton@math.stanford.edu>
1314 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1317 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1319 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1320 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1322 2002-11-25 Jim Blandy <jimb@redhat.com>
1324 * symfile.c (init_objfile_sect_indices): New function.
1325 (default_symfile_offsets): Move the section-index-initializing
1326 stuff into init_objfile_sect_indices, and call that.
1328 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1329 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1331 * symfile.c (syms_from_objfile): Adjust indentation.
1333 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1334 || info_verbose isn't true.
1336 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1338 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1339 default to get_frame_base.
1340 * gdbarch.h, gdbarch.c: Regenerate.
1341 * arch-utils.c (default_frame_address): Delete function.
1342 * arch-utils.h (default_frame_address): Delete declaration
1344 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1346 * varobj.c (find_frame_addr_in_frame_chain):
1347 Use get_frame_base instead of FRAME_FP,
1350 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1352 * frame.h (FRAME_FP): Delete macro.
1353 (get_frame_base): New function declaration.
1354 * frame.c (get_frame_base): New function.
1355 (get_frame_id): Use ->frame.
1356 (frame_find_by_id): Rewrite to use get_frame_id.
1357 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1358 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1359 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1360 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1361 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1362 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1363 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1365 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1367 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1369 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1371 * frame.c (set_unwind_by_pc): Revert change below, use
1373 (get_prev_frame): Ditto.
1375 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1377 * dummy-frame.c (pc_in_dummy_frame): New function.
1378 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1379 (find_dummy_frame): Update comment.
1380 (generic_pop_current_frame): Use get_frame_type.
1381 * dummy-frame.h (pc_in_dummy_frame): Declare.
1382 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1383 (create_new_frame): Use pc_in_dummy_frame.
1384 (get_prev_frame): Use pc_in_dummy_frame.
1385 (frame_saved_regs_register_unwind): Use get_prev_frame.
1386 (deprecated_generic_get_saved_register): Use get_prev_frame.
1388 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1390 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1392 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1393 (varobj_create): Note that frame ID should be used.
1394 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1396 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1398 * breakpoint.c: Include "gdb_assert.h".
1399 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1401 * Makefile.in (breakpoint.o): Update dependencies.
1402 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1403 deprecated_frame_in_dummy.
1404 * stack.c (print_frame_info_base): Ditto.
1405 (frame_info): Ditto.
1406 (print_frame_info_base): Ditto. Delete dead code.
1408 2002-11-23 Andreas Schwab <schwab@suse.de>
1410 * Makefile.in (m68k_tdep_h): Define.
1411 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1412 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1413 * m68k-tdep.c: Move register number enum ...
1414 * m68k-tdep.h: ... to this new file and rename the constants from
1415 E_* to M68K_*. All uses changed.
1416 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1417 * abug-rom.c: Include "m68k-tdep.h". Use
1418 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1419 * cpu32bug-rom.c: Likewise.
1420 * dbug-rom.c: Likewise.
1421 * m68k-tdep.c: Likewise.
1422 * m68klinux-nat.c: Likewise.
1423 * remote-est.c: Likewise.
1424 * rom68k-rom.c: Likewise.
1425 * config/m68k/tm-linux.h: Likewise.
1427 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1429 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1430 dummy frame initialization code.
1431 * mips-tdep.c (mips_gdbarch_init): Ditto.
1433 2002-11-22 Christopher Faylor <cgf@redhat.com>
1435 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1438 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1440 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1441 to default_frame_address.
1442 * gdbarch.h, gdbarch.c: Re-generate.
1444 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1445 or frame_locals_address to default_frame_address.
1446 * m68k-tdep.c (m68k_gdbarch_init): Update.
1447 * i386-tdep.c (i386_gdbarch_init): Update.
1448 * frv-tdep.c (frv_gdbarch_init): Update.
1449 * sh-tdep.c (sh_gdbarch_init): Update.
1450 * v850-tdep.c (v850_gdbarch_init): Update.
1451 * sparc-tdep.c (sparc_gdbarch_init): Update.
1452 * mips-tdep.c (mips_gdbarch_init): Update.
1453 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1454 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1455 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1457 * cris-tdep.c (cris_frame_args_address): Delete function.
1458 (cris_frame_locals_address): Delete function.
1459 (cris_gdbarch_init): Do not set frame_args_address or
1460 frame_locals_address.
1462 2002-11-22 Michael Snyder <msnyder@redhat.com>
1464 * thread-db.c (thread_db_load): Tell the user what's going on
1465 if dlopen fails on libthread_db.
1467 2002-11-23 Andreas Schwab <schwab@suse.de>
1469 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1470 invariant return values.
1472 2002-11-22 Andreas Schwab <schwab@suse.de>
1474 * valops.c (value_slice): Move declaration of `offset' to avoid
1477 2002-11-22 Christopher Faylor <cgf@redhat.com>
1479 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1480 (struct so_stuff): Add end_addr field.
1481 (register_loaded_dll): Calculate and store end address of loaded dll.
1482 (solib_address): New function.
1483 (child_solib_loaded_library_pathname): Pass carefully constructed
1484 section info to safe_symbol_file_add rather than ignoring it.
1485 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1487 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1488 (child_create_inferior): Fix a compiler warning.
1489 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1490 (solib_address): Declare new function.
1492 2002-11-22 Andreas Schwab <schwab@suse.de>
1494 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1497 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1499 * maint.c (_initialize_maint_cmds): Fix typo. From
1500 Francesco Potorti` <pot@gnu.org>.
1502 2002-11-21 Andrew Cagney <cagney@redhat.com>
1504 * mips-tdep.c (mips_dump_tdep): Delete references to
1505 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1506 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1507 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1508 * printcmd.c (build_address_symbolic): Delete calls to
1509 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1510 (address_info): Ditto.
1513 2002-11-19 Klee Dienes <kdienes@apple.com>
1514 Adam Fedor <fedor@gnu.org>
1516 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1517 the ability to explicitly specify the quote characters and word
1518 break characters; if NULL is specified for either, use the old
1519 behavior of using the characters used by the completer.
1520 (skip_chars): New function. Convenience wrapper around
1521 skip_quoted_chars to provide the original skip_chars behavior.
1522 * completer.h (skip_quoted_chars): Add prototype.
1524 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1526 Problems reported by Paul Eggert.
1527 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1529 2002-11-19 Andreas Schwab <schwab@suse.de>
1531 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1532 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1533 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1534 (m68k_linux_frame_saved_pc): Move to ...
1535 * m68klinux-tdep.c: ... here. New file.
1536 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1537 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1539 2002-11-19 Adam Fedor <fedor@gnu.org>
1541 * objc-exp.y: Revert to old skip_quoted usage.
1543 2002-11-19 Adam Fedor <fedor@gnu.org>
1545 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1546 (objc_lang_h): Define.
1547 (YYFILES): Add objc-exp.tab.c.
1548 (local-maintainer-clean): Remove objc-exp.tab.c.
1549 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1551 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1553 * p-exp.y (typecast rule): Add automatic dereference of
1554 pascal classes if needed.
1555 (THIS): Set current_type.
1556 Automatically dereference pascal classes.
1557 (typebase rule): Add ^typebase recognition.
1559 2002-11-18 Adam Fedor <fedor@gnu.org>
1561 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1562 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1563 (op_name): Handle OP_OBJC_SELF.
1564 * Makefile.in (expprint.o): Add additional depends.
1566 2002-11-18 Adam Fedor <fedor@gnu.org>
1568 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1569 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1570 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1571 * objc-exp.y: Likewise.
1573 2002-11-18 Adam Fedor <fedor@gnu.org>
1575 * gdb/parser-defs.h: (struct objc_class_str): New structure
1576 for parsing ObjC classes.
1578 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1580 * stack.c (frame_relative_level): Copy function from here ...
1581 * frame.c (frame_relative_level): ...to here.
1583 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1585 * frame.h (enum frame_type): Define.
1586 (get_frame_type): Declare.
1587 (struct frame_info): Add field `type'. Delete field
1588 signal_handler_caller.
1589 (deprecated_set_frame_signal_handler_caller): Declare.
1590 * frame.c (get_frame_type): New function.
1591 (deprecated_set_frame_type): New function.
1592 (create_new_frame): Set the frame's type.
1593 (get_prev_frame): Similar.
1594 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1595 * s390-tdep.c: Ditto.
1596 * m68klinux-nat.c: Ditto.
1597 * ns32k-tdep.c: Ditto.
1598 * x86-64-linux-tdep.c: Ditto.
1599 * vax-tdep.c: Ditto.
1600 * rs6000-tdep.c: Ditto.
1601 * ppc-linux-tdep.c: Ditto.
1602 * i386-interix-tdep.c: Ditto.
1603 * mips-tdep.c: Ditto.
1604 * m68k-tdep.c: Ditto.
1605 * hppa-tdep.c: Ditto.
1606 * ia64-tdep.c: Ditto.
1607 * cris-tdep.c: Ditto.
1608 * arm-tdep.c: Ditto.
1609 * alpha-tdep.c: Ditto.
1610 * i386-tdep.c: Ditto.
1612 * ada-lang.c: Ditto.
1613 * blockframe.c: Update.
1614 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1615 deprecated_set_frame_type instead of signal_handler_caller.
1616 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1617 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1618 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1620 2002-11-18 Klee Dienes <kdienes@apple.com>
1622 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1624 2002-11-18 Klee Dienes <kdienes@apple.com>
1626 * buildsym.c (pop_context): Add comment.
1628 2002-11-18 Klee Dienes <kdienes@apple.com>
1630 * buildsym.h (pop_context): Convert to function, defined in
1632 * buildsym.c: Include gdb_assert.h.
1633 (pop_context): Implement as C function. Add check for stack
1635 * dbxread.c (process_one_symbol): Complain and stop processing
1636 that symbol if we are already at the top of the context stack for
1637 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1638 when processing N_RBRAC.
1640 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1642 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1644 (struct target_waitstatus): Add opaque definition.
1645 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1646 * exec.c (init_exec_ops): Likewise.
1647 * fork-child.c (clone_and_follow_inferior): Remove.
1648 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1649 * inferior.h (clone_and_follow_inferior): Remove prototype.
1650 * infrun.c (follow_fork_mode_both): Remove.
1651 (follow_fork_mode_kind_names): Remove commented out "both".
1652 (follow_inferior_fork): Remove follow_fork_mode_both support.
1653 * inftarg.c (child_clone_and_follow_inferior): Remove.
1654 (child_post_follow_inferior_by_clone): Remove.
1655 (init_child_ops): Don't set to_clone_and_follow_inferior
1656 or to_post_follow_inferior_by_clone.
1657 * target.c (default_clone_and_follow_inferior): Remove.
1658 (cleanup_target): Don't set to_clone_and_follow_inferior
1659 or to_post_follow_inferior_by_clone.
1660 (find_default_clone_and_follow_inferior): Remove.
1661 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1662 (debug_to_clone_and_follow_inferior): Remove.
1663 (debug_to_post_follow_inferior_by_clone): Remove.
1664 (setup_target_debug): Don't set to_clone_and_follow_inferior
1665 or to_post_follow_inferior_by_clone.
1666 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1667 and to_post_follow_inferior_by_clone.
1668 (child_clone_and_follow_inferior): Remove prototype.
1669 (child_post_follow_inferior_by_clone): Remove prototype.
1670 (target_clone_and_follow_inferior): Remove macro.
1671 (target_post_follow_inferior_by_clone): Remove macro.
1672 (find_default_clone_and_follow_inferior): Remove prototype.
1674 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1676 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1677 inferior_has_vforked, and inferior_has_execd instead of
1678 target_has_forked, target_has_vforked, and target_has_execd.
1679 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1680 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1681 (CHILD_WAIT): Define.
1682 (child_wait): Add prototype.
1683 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1685 (hpux_has_vforked): Likewise, from child_has_vforked.
1686 (hpux_has_execd): Likewise, from child_has_execd.
1687 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1688 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1689 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1690 and hpux_has_syscall_event instead of the target hooks.
1691 * infrun.c (inferior_has_forked, inferior_has_vforked)
1692 (inferior_has_execd): New functions.
1693 * inftarg.c (not_same_real_pid): Remove.
1694 (child_wait): Remove references to not_same_real_pid,
1695 target_has_forked, target_has_vforked, target_has_execd,
1696 and target_has_syscall_event.
1697 (child_has_forked, child_has_vforked, child_has_execd)
1698 (child_has_syscall_event): Remove.
1699 (init_child_ops): Remove references to child_has_forked,
1700 child_has_vforked, child_has_execd, and child_has_syscall_event.
1701 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1702 (hpux_has_vforked): Likewise, from child_has_vforked.
1703 (hpux_has_execd): Likewise, from child_has_execd.
1704 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1705 * target.c (cleanup_target): Remove references to
1706 to_has_forked, to_has_vforked, to_has_execd, and
1707 to_has_syscall_event.
1708 (update_current_target): Likewise.
1709 (setup_target_debug): Likewise.
1710 (debug_to_has_forked): Remove.
1711 (debug_to_has_vforked): Remove.
1712 (debug_to_has_execd): Remove.
1713 (debug_to_has_syscall_event): Remove.
1714 * target.h (struct target_ops): Remove to_has_forked.
1715 to_has_vforked, to_has_execd, and to_has_syscall_event.
1716 (child_has_forked, child_has_vforked, child_has_execd)
1717 (child_has_syscall_event): Remove prototypes.
1718 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1720 (target_has_forked, target_has_vforked, target_has_execd)
1721 (target_has_syscall_event): Remove macros.
1723 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1725 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1726 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1727 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1728 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1729 * target.c (cleanup_target): Remove reference to
1730 to_can_follow_vfork_prior_to_exec.
1731 (update_current_target): Likewise.
1732 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1733 (setup_target_debug): Remove reference to
1734 to_can_follow_vfork_prior_to_exec.
1735 * target.h (struct target_ops): Remove
1736 to_can_follow_vfork_prior_to_exec.
1737 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1738 (target_can_follow_vfork_prior_to_exec): Remove definition.
1739 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1741 * infrun.c (follow_vfork_when_exec): Remove.
1742 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1743 (follow_exec): Likewise.
1744 (handle_inferior_event): Likewise.
1745 (keep_going): Likewise.
1747 2002-11-15 Andrew Cagney <cagney@redhat.com>
1749 * frame.c (generic_unwind_get_saved_register): Make static.
1750 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1751 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1752 defaults to generic_unwind_get_saved_register.
1753 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1754 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1755 * frv-tdep.c (frv_gdbarch_init): Ditto.
1756 * i386-tdep.c (i386_gdbarch_init): Ditto.
1757 * s390-tdep.c (s390_gdbarch_init): Ditto.
1758 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1759 * v850-tdep.c (v850_gdbarch_init): Ditto.
1760 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1761 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1762 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1764 2002-11-15 Andrew Cagney <cagney@redhat.com>
1766 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1769 2002-11-15 Andrew Cagney <cagney@redhat.com>
1771 * frame.h (sigtramp_saved_pc): Delete declaration.
1772 * blockframe.c (sigtramp_saved_pc): Delete function.
1773 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1774 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1775 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1776 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1778 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1780 * frame.c (frame_pc_unwind): New function.
1781 (frame_saved_regs_pc_unwind): New function.
1782 (frame_register_unwind): Pass unwind_cache instead of
1783 register_unwind_cache.
1784 (set_unwind_by_pc): Add unwind_pc parameter, set.
1785 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1786 (get_prev_frame): Ditto.
1787 * frame.h (frame_pc_unwind_ftype): Declare.
1788 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1789 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1790 (frame_pc_unwind): Declare.
1791 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1792 (struct dummy_frame): Add comment mentioning that values are for
1794 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1795 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1796 (generic_file_frame_chain_valid): Ditto.
1797 * stack.c (frame_info): Ditto.
1799 2002-11-15 David Carlton <carlton@math.stanford.edu>
1801 * linespec.c (locate_first_half): New function.
1802 (decode_line_1): Move code into locate_first_half.
1804 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1806 * complaints.h: Add comment explaining how to eliminate a
1807 deprecated_complain call.
1808 * complaints.h: Fix spelling errors.
1810 2002-11-15 David Carlton <carlton@math.stanford.edu>
1812 * printcmd.c: Remove #include "disasm.h".
1814 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1816 * frame.h: Move the most relevant interface functions to the start
1819 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1821 * regcache.h (deprecated_registers): Rename registers.
1822 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1823 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1824 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1825 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1826 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1827 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1828 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1829 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1830 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1831 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1832 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1833 * v850ice.c: Update.
1835 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1837 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1840 2002-11-13 Andrew Cagney <cagney@redhat.com>
1842 * regcache.h (deprecated_read_register_bytes): Rename
1843 read_register_bytes.
1844 (deprecated_write_register_bytes): Rename write_register_bytes.
1845 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1846 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1847 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1848 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1849 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1850 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1851 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1852 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1853 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1854 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1855 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1856 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1857 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1858 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1860 2002-11-13 Jim Blandy <jimb@redhat.com>
1862 * findvar.c (read_var_value): Doc fix.
1864 2002-11-13 Andrew Cagney <cagney@redhat.com>
1866 * regcache.c (struct regcache): Replace passthough_p with
1868 (regcache_xmalloc): Initialize readonly_p.
1869 (build_regcache): Initialize readonly_p.
1870 (regcache_save): New function.
1871 (regcache_restore): New function.
1872 (regcache_cpy): Re-implement using regcache_save and
1874 (regcache_raw_read): Update.
1875 (regcache_cooked_read): When a read-only cache, checked for cached
1876 pseudo register values.
1877 (regcache_raw_write): Assert that the cache is not read-only.
1878 Remove code handling a non-passthrough cache.
1879 * regcache.h (regcache_save): Declare.
1880 (regcache_restore): Declare.
1882 2002-11-13 Andrew Cagney <cagney@redhat.com>
1884 * regcache.c (struct regcache_descr): Add fields
1885 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1886 (init_legacy_regcache_descr): Compute the size of a cooked
1887 register cache and then assign that to sizeof_raw_registers. Set
1888 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1889 (init_legacy_regcache_descr): Ditto.
1891 2002-11-13 Andrew Cagney <cagney@redhat.com>
1893 * regcache.c (register_buffer): Move to near start of file, update
1895 (regcache_raw_read): Use.
1896 (regcache_raw_write): Use.
1897 (struct regcache): Rename raw_registers to registers and
1898 raw_register_valid_p to register_valid_p.
1899 (regcache_xmalloc): Update.
1900 (regcache_xfree): Update.
1901 (register_buffer): Update.
1902 (regcache_cpy): Update.
1903 (regcache_cpy_no_passthrough): Update.
1904 (regcache_valid_p): Update.
1905 (deprecated_grub_regcache_for_registers): Update.
1906 (deprecated_grub_regcache_for_register_valid): Update.
1907 (set_register_cached): Update.
1908 (regcache_raw_write): Update.
1910 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1912 * p-exp.y (name_not_typename): Use copy_name to
1913 set current_type variable for fields of THIS.
1915 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1917 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1918 * monitor.c (init_base_monitor_ops): Likewise.
1919 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1920 * remote-array.c (init_array_ops): Likewise.
1921 * remote-e7000.c (init_e7000_ops): Likewise.
1922 * remote-es.c (init_es1800_ops): Likewise.
1923 (init_es1800_child_ops): Likewise.
1924 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1925 * remote-sim.c (init_gdbsim_ops): Likewise.
1926 * remote-st.c (init_st2000_ops): Likewise.
1927 * sol-thread.c (init_sol_core_ops): Likewise.
1928 (init_sol_thread_ops): Likewise.
1929 * v850ice.c (init_850ice_ops): Likewise.
1930 * win32-nat.c (init_child_ops): Likewise.
1931 * wince.c (init_child_ops): Likewise.
1933 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1935 * utils.c (gdb_realpath): Make rp a constant pointer.
1937 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1939 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1940 a constant buffer; cannonicalize_file_name(); realpath() with a
1941 pathconf() defined buffer, xstrdup().
1943 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1945 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1946 to hang2.C; hang3.c to hang3.C.
1948 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1950 * findvar.c (read_var_value): Reenable TLS code.
1952 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1953 Jim Blandy <jimb@redhat.com>
1955 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1956 * target.c (update_current_target): Add
1957 to_get_thread_local_address.
1958 * target.h (to_get_thread_local_address): Export.
1959 (target_get_thread_local_address): Define.
1960 (target_get_thread_local_address_p): Define.
1961 * thread-db.c: Include solib-svr4.h.
1962 (td_thr_tls_get_addr_p): Define.
1963 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1964 (thread_db_get_thread_local_address): New function.
1965 (init_thread_db_ops): Initialize to_get_thread_local_address.
1966 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1967 * configure: Regenerate.
1968 * config.in: Regenerate.
1970 2002-11-11 David Carlton <carlton@math.stanford.edu>
1972 * linespec.c (set_flags): New function.
1973 (decode_line_1): Move code into set_flags.
1975 2002-11-11 David Carlton <carlton@math.stanford.edu>
1977 * linespec.c (decode_line_1): Move chunks of code to separate
1979 (initialize_defaults): New function.
1980 (decode_indirect): New function.
1982 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1984 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1985 instead of void_code_ptr.
1986 (sigtramp_saved_pc): Ditto.
1988 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1991 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1993 * gdbtypes.h (struct main_type): Move artificial flag out of
1994 loc. New member of ``struct field'' named static_kind. Reduce
1995 overloaded meaning of bitsize.
1996 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1997 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1998 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2000 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2002 (template_to_fixed_record_type, template_to_static_fixed_type)
2003 (to_record_with_fixed_variant_part): Likewise.
2004 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2005 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2006 * dwarfread.c (struct_type, enum_type): Likewise.
2007 * hpread.c (hpread_read_enum_type)
2008 (hpread_read_function_type, hpread_read_doc_function_type)
2009 (hpread_read_struct_type): Likewise.
2010 * mdebugread.c (parse_symbol): Likewise.
2012 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2014 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2015 * stack.c (print_frame_info_base): Update.
2016 (print_frame_info_base, frame_info): Update.
2017 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2018 (sparc_frame_saved_pc): Update.
2019 * ada-lang.c (find_printable_frame): Update.
2020 * breakpoint.c (deprecated_frame_in_dummy): Update.
2022 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2024 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2026 (regmap): Extend to cover all registers.
2027 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2028 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2030 (fetch_register, sore_register): Simplify.
2031 (old_fetch_inferior_registers, old_store_inferior_registers):
2033 (cannot_fetch_register, cannot_store_register): Change
2034 implementation to use regmap array to decide which registers
2035 cannot be fetched/stored. This removes $orig_eax from the
2036 registers that cannot be fetched/stored.
2037 (fetch_inferior_registers): Call fetch_register directly instead
2038 of calling old_fetch_inferior_registers.
2039 (store_inferior_registers): Call store_register directly instead
2040 of calling old_store_inferior_registers.
2041 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2042 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2043 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2045 2002-11-09 Klee Dienes <kdienes@apple.com>
2047 * i387-tdep.c (i387_supply_register): When called with NULL as a
2048 buffer, mark the register as not provided (to mirror the behavior
2049 of supply_register).
2050 (i387_supply_fxsave): Ditto.
2051 (i387_supply_fsave): Ditto (inherits the behavior from
2052 i387_supply_register).
2054 2002-11-09 Klee Dienes <kdienes@apple.com>
2056 * blockframe.c (sigtramp_saved_pc): Use
2057 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2058 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2059 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2061 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2063 * frame.c (get_prev_frame): Test prev_p to identify a previously
2064 unwound frame. Initialize prev_p.
2065 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2068 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2070 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2071 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2072 more comments. Zap dead code.
2074 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2076 * infcmd.c (print_vector_info, print_float_info): Move code that
2077 checks whether the target has any registers and whether there is a
2078 selected frame up, such that it is also used if a target provides
2079 multi-arch definitions of these functions.
2081 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2083 * Makefile.in (DESTDIR): Define.
2084 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2087 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2088 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2090 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2092 * i386-linux-tdep.c: Include "reggroups.h".
2093 (i386_linux_register_reggroup_p): New function.
2094 (i386_linux_init_abi): Set register_reggroup_p to
2095 i386_linux_register_reggroup_p.
2096 * i386-tdep.h (i386_register_reggroup_p): Declare.
2097 * i386-tdep.c: Include "reggroups.h".
2098 (i386_init_reggroups): New function.
2099 (i386_add_reggroups): New function.
2100 (i386_register_reggroup_p): New function.
2101 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2102 (_initialize_i386_tdep): Call i386_init_reggroups.
2103 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2106 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2108 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2109 request that's available in *BSD.
2111 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2113 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2116 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2118 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2119 * dummy-frame.c (find_dummy_frame): Rename
2120 generic_find_dummy_frame, make static. Return the dummy frame
2121 instead of the regcache.
2122 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2123 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2124 (dummy_frame_register_unwind): Rename
2125 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2126 * dummy-frame.h (dummy_frame_register_unwind): Rename
2127 generic_call_dummy_register_unwind.
2129 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2131 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2132 except the inclusion of "i386/tm-i386.h", to...
2133 * config/i386/nm-i386v42mp.h: ...here.
2134 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2136 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2138 * Makefile.in (frame.o): Update dependencies.
2139 * blockframe.c (current_frame, frame_obstack_alloc)
2140 (frame_saved_regs_zalloc, get_current_frame)
2141 (set_current_frame, create_new_frame)
2142 (set_unwind_by_pc, get_next_frame)
2143 (flush_cached_frames, reinit_frame_cache)
2144 (frame_saved_regs_register_unwind)
2145 (deprecated_generic_get_saved_register)
2146 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2147 (_initialize_blockframe): Move frame code from here...
2148 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2149 "annotate.h" and "dummy-frame.h".
2150 (_initialize_frame): New function.
2152 2002-11-08 Jim Blandy <jimb@redhat.com>
2154 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2155 when we finish a function a context.
2156 * buildsym.h (outermost_context_p): New macro.
2157 (Bug analyzed by David Edelsohn.)
2159 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2161 * blockframe.c: Include "dummy-frame.h".
2162 (struct dummy_frame, dummy_frame_stack)
2163 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2164 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2165 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2166 (generic_save_call_dummy_addr, generic_pop_current_frame)
2167 (generic_pop_dummy_frame, generic_fix_call_dummy)
2168 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2169 dummy frame code from here...
2170 * dummy-frame.c: ...to here. New file.
2171 * dummy-frame.h: New file.
2172 (generic_call_dummy_register_unwind): Declare.
2173 (generic_find_dummy_frame): Declare.
2174 * Makefile.in (SFILES): Add dummy-frame.c.
2175 (dummy-frame.o): Specify dependencies.
2176 (dummy_frame_h): Define.
2177 (COMMON_OBS): Add dummy-frame.o.
2178 (blockframe.o): Update dependencies.
2180 2002-11-08 Jim Blandy <jimb@redhat.com>
2182 * dwarf2read.c (read_func_scope): Restore local_symbols and
2183 param_symbols after we finish the function context. (Based on a
2184 patch from David Edelsohn.)
2186 2002-11-08 David Carlton <carlton@math.stanford.edu>
2188 * linespec.c (symbol_found): New function.
2189 (minsym_found): New function.
2190 (decode_line_1): Separate out some code into separate functions.
2192 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2194 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2195 the benefit of the interix target.
2196 * i386-tdep.h (i386_frameless_signal_p): Declare.
2198 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2200 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2201 declaration that snuck in from change below.
2203 2002-11-06 Andrew Cagney <cagney@redhat.com>
2205 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2207 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2208 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2209 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2210 (i386_mxcsr_regnum_p): new function. Use instead of
2212 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2213 (i386_sse_regnum_p): Declare.
2214 (i386_mxcsr_regnum_p): Declare.
2215 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2216 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2217 (IS_FP_REGNUM): Update definition.
2218 (IS_FPU_CTRL_REGNUM): Update definition..
2219 (IS_SSE_REGNUM): Update definition..
2220 * i386v-nat.c (register_u_addr): Update.
2221 * go32-nat.c (fetch_register): Update.
2222 (store_register): Update.
2224 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2226 Preparation work to convert the hppa targets to multiarch partial.
2228 * hppa-tdep.c: Add new functions replacing macro bodies from
2229 config/pa/tm-hppa.h. These function will be used to initialize
2230 the gdbarch structure. Import some comments from tm-hppa.h,
2231 and place them where appropriate, to avoid loosing them when
2232 we cleanup this file.
2233 (hppa_reg_struct_has_addr): New function.
2234 (hppa_inner_than): New function.
2235 (hppa_stack_align): New function.
2236 (hppa_pc_requires_run_before_use): New function.
2237 (hppa_instruction_nullified): New function.
2238 (hppa_register_byte): New function.
2239 (hppa_register_virtual_type): New function.
2240 (hppa_store_struct_return): New function.
2241 (hppa_cannot_store_register): New function.
2242 (hppa_frame_args_address): New function.
2243 (hppa_frame_locals_address): New function.
2244 (hppa_smash_text_address): New function.
2245 (hppa_coerce_float_to_double): New function. Requires the inclusion
2248 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2250 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2251 gdbarch-eligible macro to a call to the new associated function
2252 created in hppa-tdep.c.
2253 (INNER_THAN): Likewise.
2254 (STACK_ALIGN): Likewise.
2255 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2256 (INSTRUCTION_NULLIFIED): Likewise.
2257 (REGISTER_BYTE): Likewise.
2258 (REGISTER_VIRTUAL_TYPE): Likewise.
2259 (STORE_STRUCT_RETURN): Likewise.
2260 (CANNOT_STORE_REGISTER): Likewise.
2261 (FRAME_ARGS_ADDRESS): Likewise.
2262 (FRAME_LOCALS_ADDRESS): Likewise.
2263 (SMASH_TEXT_ADDRESS): Likewise.
2264 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2265 (ABOUT_TO_RETURN): Delete, as no longer used.
2267 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2269 * printcmd.c (disassemble_command): Remove obsolete function.
2270 (_initialize_printcmd): Do not create disassemble command here.
2271 * cli/cli-cmds.c (disassemble_command): New function. Implements
2272 disassemble command.
2273 (init_cli_cmds): Create disassemble command here instead.
2275 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2277 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2279 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2281 * regcache.h (regcache_cooked_read_using_offset_hack)
2282 (regcache_cooked_write_using_offset_hack): Delete declarations.
2283 (register_changed): Delete declaration.
2284 * regcache.c (regcache_cooked_read_using_offset_hack)
2285 (regcache_cooked_write_using_offset_hack): Delete functions.
2286 (cooked_xfer_using_offset_hack): Delete function.
2287 (register_changed): Delete function.
2289 2002-11-07 Jim Blandy <jimb@redhat.com>
2291 * macroscope.c: #include "complaints.h".
2292 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2293 but not in the macro table.
2294 * Makefile.in (macroscope.o): Record dependency.
2296 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2298 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2300 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2302 * regcache.c (deprecated_registers_fetched): Update.
2303 * regcache.h (deprecated_registers_fetched): Rename
2305 * remote-vxsparc.c (vx_read_register): Update.
2306 * remote-vxmips.c (vx_read_register): Update.
2307 * remote-vx68.c (vx_read_register): Update.
2308 * irix5-nat.c (fetch_core_registers): Update.
2309 * mipsm3-nat.c (fetch_inferior_registers): Update.
2310 * sun3-nat.c (fetch_inferior_registers): Update.
2311 * symm-nat.c (fetch_inferior_registers): Update.
2312 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2313 (fetch_core_registers): Update.
2314 (fetch_kcore_registers): Update.
2315 * mips-nat.c (fetch_inferior_registers): Update.
2316 * corelow.c (get_core_registers): Update.
2317 * a68v-nat.c (fetch_inferior_registers): Update.
2319 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2321 Put in place the framework necessary for multiarching the hppa targets.
2322 * hppa-tdep.c (hppa_gdbarch_init): New function.
2323 (hppa_dump_tdep): New function.
2324 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2325 tdep structure dumper.
2326 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2327 until the multi-arching conversion has partially been completed.
2329 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2331 * valops.c (value_assign): Merge lval_register case into
2332 lval_reg_frame_relative. Use frame_register and
2333 regcache_cooked_write instead of get_saved_register and
2334 write_register_bytes. After flushing the register cache, try to
2335 re-select the selected frame.
2337 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2339 * regcache.h (deprecated_register_valid): Rename register_valid.
2340 * regcache.c: Update.
2341 * ia64-aix-nat.c: Update.
2342 * i386gnu-nat.c: Update.
2343 * alpha-nat.c: Update.
2344 * sparc-nat.c: Update.
2345 * lynx-nat.c: Update.
2346 * remote-mips.c: Update.
2348 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2350 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2351 to end of file, to be more consistent with the pratice followed
2354 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2356 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2357 (print_float_info): Print registers in float_reggroup.
2358 (print_vector_info): Print registers in vector_reggroup.
2359 (default_print_registers_info): When all, print registers in
2360 all_reggroup. Otherwize, print registers in general_reggroup.
2361 (registers_info): Rewrite. Add support for register groups.
2364 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2366 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2368 (symtab_symbol_info): Remove eons old ifdeffed out code.
2369 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2372 2002-11-06 Theodore A. Roth <troth@openavr.org>
2374 * c-exp.y: Add missing semi-colons.
2375 * f-exp.y: Add missing semi-colons.
2376 * m2-exp.y: Add missing semi-colons.
2377 * p-exp.y: Add missing semi-colons.
2378 Add empty action to start rule to avoid a type clash error when
2379 building with bison >= 1.50.
2381 2002-11-06 Jim Blandy <jimb@redhat.com>
2383 * macrotab.h (struct macro_source_file): Doc fix.
2385 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2387 * varobj.c (child_exists, cplus_number_of_children): Change
2388 STREQ macro references to strcmp.
2389 (cplus_name_of_child): Change code to handle the fact that
2390 fields are not necessarily contiguous with regards to their
2391 access control. This is a fix for PR gdb/792.
2393 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2395 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2396 * gdbarch.h, gdbarch.c: Regnerate.
2397 * frame.h (frame_register): Declare.
2398 * frame.c (frame_register): New function.
2399 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2400 GET_SAVED_REGISTER, otherwize call
2401 generic_unwind_get_saved_register.
2402 (frame_register_read): Use frame_register instead of
2405 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2407 From Jim Ingham <jingham@apple.com>:
2408 * event-top.c (gdb_disable_readline): New function.
2409 (_initialize_event_loop): Move comment.
2411 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2413 * event-loop.c (start_event_loop): Add comment.
2416 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2418 * infcmd.c (default_print_registers_info): Do not call
2419 PRINT_REGISTER_HOOK.
2421 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2423 * sparc-tdep.c (sparc_print_register_hook): Make static.
2424 (sparc_print_registers_info): New function.
2425 (sparc_do_registers_info): New function.
2426 (sparclet_print_registers_info): New function.
2427 (sparclet_do_registers_info): New function.
2428 (do_sparc_print_registers_info): New function.
2429 (sparc_print_registers): New static function, clone of infcmd.c's
2430 default_print_registers_info.
2431 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2432 (sparclet_do_registers_info): Declare.
2433 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2434 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2436 (sparc_do_registers_info): Declare.
2437 (PRINT_REGISTER_HOOK): Delete macro.
2438 (sparc_print_register_hook): Delete declaration.
2440 2002-11-05 David Carlton <carlton@math.stanford.edu>
2442 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2444 (lookup_symbol_aux_local): New function.
2445 (lookup_symbol_aux_symtabs): New function.
2446 (lookup_symbol_aux_psymtabs): New function.
2448 2002-11-05 David Carlton <carlton@math.stanford.edu>
2450 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2451 previous values of 'objfile' and 'block'.
2453 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2455 * values.c (value_change_enclosing_type): Set
2456 enclosing_type field correctly also for the case where
2457 more memory needs to be allocated.
2459 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2461 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2464 * i387-tdep.c (i387_print_float_info): Replace calls to
2465 register_read and deprecated_read_register_gen with calls to
2466 frame_register_read, and make the necessary adjustments to the
2469 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2471 * gdbarch.sh (register_reggroup_p): Allow default value.
2472 * gdbarch.h, gdbarch.c: Regenerate.
2474 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2476 * regcache.h: Add coment indicating replacements for deprecated
2479 2002-11-02 Andrew Cagney <cagney@redhat.com>
2481 * reggroups.h, reggroups.c: New files.
2482 * regcache.c: Include "reggroups.h".
2483 (enum regcache_dump_what): Add `regcache_dump_groups'.
2484 (regcache_dump): Contract size of the "Type" column. When
2485 specified, dump the register's groups.
2486 (maintenance_print_register_groups): New function.
2487 (_initialize_regcache): Add command `maint print register-groups'.
2488 * Makefile.in (COMMON_OBS): Add reggroups.o
2489 (SFILES): Add reggroups.c.
2490 (reggroups_h): Define.
2491 (regcache.o, gdbarch.o): Update dependencies.
2492 (reggroups.o): Specify dependencies.
2493 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2494 Add opaque declaration for `struct reggroup' in generated .h file.
2495 Include "reggroups.h" in generated .c file.
2496 gdbarch.h, gdbarch.c: Re-generate.
2498 2002-11-02 Andrew Cagney <cagney@redhat.com>
2500 * regcache.h (deprecated_read_register_gen): Rename
2502 (deprecated_write_register_gen): Rename write_register_gen.
2503 * i387-tdep.c: Update.
2504 * x86-64-linux-nat.c: Update
2506 * thread-db.c: Update.
2507 * win32-nat.c: Update.
2508 * mips-tdep.c: Update.
2509 * d10v-tdep.c: Update.
2510 * cris-tdep.c: Update.
2511 * remote-sim.c: Update.
2512 * remote-rdi.c: Update.
2513 * remote-rdp.c: Update.
2516 * blockframe.c: Update.
2517 * x86-64-tdep.c: Update.
2518 * xstormy16-tdep.c: Update.
2519 * sh-tdep.c: Update.
2520 * s390-tdep.c: Update.
2521 * rs6000-tdep.c: Update.
2522 * sparc-tdep.c: Update.
2523 * i386-tdep.c: Update.
2524 * dwarf2cfi.c: Update.
2525 * regcache.c: Update.
2527 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2529 New interix-specific files:
2530 * config/i386/nm-interix.h: New file.
2531 * config/i386/interix.mh: New file.
2532 * config/i386/interix.mt: New file.
2533 * i386-interix-nat.c: New file.
2534 * i386-interix-tdep.c: New file.
2536 2002-11-01 Andrew Cagney <cagney@redhat.com>
2538 * frame.h (deprecated_generic_get_saved_register): Rename
2539 generic_get_saved_register.
2540 * blockframe.c (deprecated_generic_get_saved_register): Update.
2541 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2542 (xstormy16_frame_saved_register): Update.
2543 * sh-tdep.c (sh_gdbarch_init): Update.
2544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2545 * ia64-tdep.c (ia64_get_saved_register): Update.
2546 * cris-tdep.c (cris_gdbarch_init): Update.
2547 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2548 * arm-tdep.c (arm_gdbarch_init): Update.
2550 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2552 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2554 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2556 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2557 trampolines in sigaction.
2559 2002-10-31 Andrew Cagney <cagney@redhat.com>
2561 * h8300-tdep.c: Include "gdb_assert.h".
2562 (h8300_print_register): Add gdbarch, file and frame parameters.
2563 Use frame_read_unsigned_register to read the register's value.
2564 Use fprintf_filtered to display output.
2565 (h8300_print_registers_info): Replace h8300_do_registers_info.
2566 (h8300_gdbarch_init): Set print_registers_info.
2568 2002-10-31 Andrew Cagney <cagney@redhat.com>
2570 * frame.c (frame_read_unsigned_register): New function.
2571 (frame_read_signed_register): New function.
2572 * frame.h (frame_read_unsigned_register): Declare.
2573 (frame_read_signed_register): Declare.
2575 2002-10-31 Andrew Cagney <cagney@redhat.com>
2577 * h8500-tdep.c (h8500_print_registers_info): New static function,
2578 clone of infcmd.c's default_print_registers_info.
2579 (h8500_do_registers_info): New funtion.
2580 (h8500_print_register_hook): Rename print_register_hook, make
2583 * config/h8500/tm-h8500.h: Update copyright.
2584 (DEPRECATED_DO_REGISTERS_INFO): Define.
2585 (h8500_do_registers_info: Declare.
2586 (PRINT_REGISTER_HOOK): Delete macro.
2587 (print_register_hook): Delete function.
2589 2002-10-31 Andrew Cagney <cagney@redhat.com>
2591 * z8k-tdep.c (z8k_print_register_hook): Make static.
2592 (z8k_print_registers_info): New static function, clone of
2593 infcmd.c's default_print_registers_info.
2594 (z8k_do_registers_info): New function. Wrap
2595 z8k_print_registers_info.
2596 * config/z8k/tm-z8k.h: Update copyright.
2597 (PRINT_REGISTER_HOOK): Delete macro.
2598 (z8k_print_register_hook): Delete declaration.
2599 (DEPRECATED_DO_REGISTERS_INFO): Define.
2600 (z8k_do_registers_info): Declare.
2602 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2604 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2605 as this is already provided by value.h, and was actually causing
2606 a compilation error because of a conflict in parameter type
2607 declaration due to a missing const keyword.
2608 (low_text_segment_addres): Fix a compilation warning.
2610 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2612 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2613 registers without a name.
2614 (mips_linux_cannot_store_register): Don't store registers without
2617 2002-10-28 David Carlton <carlton@math.stanford.edu>
2619 * symtab.c (find_addr_symbol): Delete. (It was already commented
2621 * symtab.h: Delete prototype for find_addr_symbol.
2623 2002-10-26 Andrew Cagney <cagney@redhat.com>
2625 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2627 gdbarch.h, gdbarch.c: Re-generate.
2628 * infcmd.c (default_print_registers_info): Update reference.
2629 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2630 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2631 * sh-tdep.c (sh_gdbarch_init): Ditto.
2632 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2633 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2635 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2637 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2638 cfi_init_extra_frame_info.
2639 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2640 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2642 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2643 target where necessary. Add more comments and remove the ones
2644 that don't provide any useful information.
2646 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2647 deprecated_read_register_dummy with
2648 frame_unwind_unsigned_register.
2650 * i386-tdep.c (i386_extract_struct_value_address): Use
2651 regcache_raw_read_unsigned instead of
2652 regcache_cooked_read_unsigned since we know that the register
2653 we're reading isn't a pseudo register. Rename variable 'val' into
2654 the more descriptive 'addr'.
2656 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2657 (x86_64_push_return_address): Add comment.
2658 (x86_64_pop_frame): Make static.
2659 (examine_argument): Clarify comment.
2660 (x86_64_skip_prologue): Make prolog_expact variable static.
2662 * dwarf2cfi.c: Fix some formatting problems.
2663 (context_cpy, read_encoded_pointer): Clarify comments.
2665 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2666 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2667 i386 target back into x86_64_gdbarch_init. Add some comments and
2668 remove meaningless ones.
2670 2002-10-25 Andrew Cagney <cagney@redhat.com>
2672 * complaints.h (struct deprecated_complaint): Rename `struct
2674 * complaints.c (complain): Update.
2675 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2676 incorrect comment indicating that "symfile.h" was being included
2677 for the `struct complaint' definition.
2678 * remote-vx.c: Update.
2679 * objc-lang.c: Update.
2680 * xcoffread.c: Update.
2682 * mdebugread.c: Update.
2683 * stabsread.c: Update.
2684 * dwarf2read.c: Update.
2685 * dwarfread.c: Update.
2686 * elfread.c: Update.
2687 * coffread.c: Update.
2688 * stabsread.h: Update.
2689 * dbxread.c: Update.
2690 * buildsym.c: Update.
2691 * gdbtypes.c: Update.
2692 * macrotab.c: Update.
2694 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2696 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2697 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2698 (x86_64_init_abi): ...new function.
2700 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2701 * i386v-nat.c: Include "i386-tdep.h".
2703 2002-10-25 Andrew Cagney <cagney@redhat.com>
2705 * gdbtypes.c (address_space_name_to_int): Update.
2706 (address_space_int_to_name): Update.
2707 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2708 multi-arch predicate.
2709 (address_class_name_to_type_flags): Ditto.
2710 * gdbarch.h, gdbarch.c: Re-generate.
2712 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2714 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2716 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2718 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2720 * symtab.h (INIT_SAL): Delete macro.
2722 * symtab.c (init_sal): New function.
2724 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2725 to init_sal function call.
2726 (find_sal_from_funcs_and_line): Ditto.
2727 (all_sals_for_line): Ditto.
2728 * breakpoint.c (create_internal_breakpoint): Ditto.
2729 (create_fork_vfork_event_catchpoint): Ditto.
2730 (create_exec_event_catchpoint): Ditto.
2731 (parse_breakpoint_sals): Ditto.
2732 (watch_command_1): Ditto.
2733 (handle_gnu_4_16_catch_command): Ditto.
2734 (clear_command): Ditto.
2735 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2736 * infcmd.c (run_stack_dummy): Ditto.
2737 * infrun.c (process_event_stop_test): Ditto.
2738 (check_sigtramp2): Ditto.
2739 (step_over_function): Ditto.
2740 * linespec.c (decode_line_2): Ditto.
2741 (decode_line_1): Ditto.
2742 * source.c (line_info): Ditto.
2743 * symtab.c (find_pc_sect_line): Ditto.
2745 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2747 * dwarf2cfi.c (struct context)
2748 (struct context_reg): Moved to dwarf2cfi.h
2749 (context_alloc, frame_state_alloc, context_cpy):
2750 Made extern instead of static, removed prototypes.
2751 * dwarf2cfi.h (struct context)
2752 (struct context_reg): New, moved from dwarf2cfi.c
2753 (context_alloc, frame_state_alloc, context_cpy):
2755 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2756 Changed from static to extern.
2757 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2758 (LINUX_SIGCONTEXT_FP_OFFSET)
2759 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2760 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2761 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2762 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2763 set_gdbarch_*() calls now use x86-64 specific functions
2764 instead of DWARF2 CFI ones.
2765 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2766 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2767 (x86_64_init_extra_frame_info): New prototypes.
2769 2002-10-23 David Carlton <carlton@math.stanford.edu>
2771 * linespec.c: #include "parser-defs.h".
2772 Delete prototype for find_template_name_end.
2773 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2775 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2777 * NEWS: add recent mi fixes.
2778 * varobj.c (struct varobj): Add new "updated" flag.
2779 (new_variable): Default "updated" flag to 0.
2780 (varobj_set_value): Set "updated" flag to 1 if value
2782 (varobj_update): Check varobj "updated" flag before
2783 comparing old and refreshed values. Fix for
2786 2002-10-23 David Carlton <carlton@math.stanford.edu>
2788 * parse.c (parse_exp_1): Use BLOCK_START.
2789 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2791 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2793 2002-10-23 David Carlton <carlton@math.stanford.edu>
2795 * symtab.c: Delete cplusplus_hint.
2796 Delete prototype for find_template_name_end.
2798 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2800 * symtab.h: Update comment.
2802 2002-10-23 Michael Snyder <msnyder@redhat.com>
2804 * printcmd.c (address_info): Restore quotes in output.
2805 * valops.c (value_of_local): Restore quotes in error message.
2807 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2809 * symtab.c (symbol_demangled_name): New function.
2810 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2811 turning most of it into a function.
2812 (symbol_demangled_name): Export.
2814 2002-10-23 Michael Snyder <msnyder@redhat.com>
2816 * valops.c (value_of_local): Restore quotes in error message.
2818 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2820 * symtab.c (symbol_init_language_specific): New function.
2821 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2822 turning most of it into a function.
2823 (symbol_init_language_specific): Export.
2825 2002-10-23 David Carlton <carlton@math.stanford.edu>
2827 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2828 (dwarf_attr_name): Ditto.
2829 (dwarf_type_encoding_name): Ditto.
2830 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2831 (process_die): Handle DW_TAG_namespace,
2832 DW_TAG_imported_declaration, DW_TAG_imported_module.
2833 (read_namespace): New function.
2835 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2837 * configure.in: Define NEW_PROC_API on Interix too.
2838 * configure: Regenerate.
2840 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2842 * configure: Regenerate using the proper version of autoconf.
2844 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2846 * findvar.c (read_var_value): Temporarily disable TLS code, until
2847 complete TLS support is added.
2849 2002-10-21 Jim Blandy <jimb@redhat.com>
2850 Elena Zannoni <ezannoni@redhat.com>
2852 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2853 for thread local storage locations.
2854 (struct symbol): Add objfile field.
2855 (SYMBOL_OBJFILE): Define.
2856 * dwarf2read.c (is_thread_local): New static variable.
2857 (new_symbol): If variable is in thread local fill in address class
2858 and objfile appropriately.
2859 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2861 * printcmd.c (address_info): Print the information for thread
2862 local storage variable.
2863 * findvar.c (read_var_value): In case of thread local variable,
2864 defer to the target vector code to compute address.
2866 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2868 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2869 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2871 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2873 * symtab.h (address_class): Rename
2874 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2875 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2876 * printcmd.c (address_info): Ditto.
2877 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2879 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2881 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2882 DBREG_DRX macro to acces debug registers.
2884 * Makefile.in (i386obsd-tdep.o): New target.
2886 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2887 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2889 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2890 * config/i386/obsd.mt: New file.
2891 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2892 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2893 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2894 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2895 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2896 * i386obsd-tdep.c: New file.
2898 2002-10-19 Adam Fedor <fedor@gnu.org>
2900 * objc-exp.y (name_not_typename): Fix invalid comment.
2902 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2904 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2905 to allocate partial syms and macro byte caches.
2907 2002-10-18 David Carlton <carlton@math.stanford.edu>
2909 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2911 2002-10-18 Adam Fedor <fedor@gnu.org>
2913 * stabsread.c (find_name_end): New function.
2914 (define_symbol): Use it.
2916 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2918 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2919 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2920 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2921 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2923 2002-10-17 David Carlton <carlton@math.stanford.edu>
2925 * symfile.h: Add opaque declaration for struct obstack.
2926 Declare obsavestring to take a const char *.
2927 * symfile.c (obsavestring): Make first argument a const char *.
2929 2002-10-16 Adam Fedor <fedor@gnu.org>
2931 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2932 names when matching breakpoints in current file.
2934 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2936 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2937 (read_tag_pointer_type): Add address class support.
2938 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2939 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2941 * gdbarch.h, gdbarch.c: Regenerate.
2942 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2943 (make_type_with_address_space, recursive_type_dump): Add address
2945 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2946 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2947 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2949 2002-10-16 Klee Dienes <kdienes@apple.com>
2951 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2952 to get the last character of a char[] buffer, not
2953 name[sizeof(vptr_name)-1].
2955 2002-10-14 Adam Fedor <fedor@gnu.org>
2957 * symtab.h: New objc_specific struct.
2958 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2959 (SYMBOL_DEMANGLED_NAME): Likewise.
2961 2002-10-14 Adam Fedor <fedor@gnu.org>
2963 * symfile.c (init_filename_language_table): Add ObjC file extension.
2965 2002-10-14 Adam Fedor <fedor@gnu.org>
2967 * utils.c (puts_filtered_tabular): New function.
2968 (fprintf_symbol_filtered): Get ObjC demangled name.
2969 * defs.h (puts_filtered_tabular): Declared.
2971 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2973 * c-lang.h (c_type_print_varspec_prefix): Delete.
2974 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2975 ``need_post_space'' parameter. Adjust all callers.
2977 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2979 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2980 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2981 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2982 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2984 2002-10-13 Adam Fedor <fedor@gnu.org>
2986 * source.c (print_source_lines): Update comments.
2988 2002-10-13 Adam Fedor <fedor@gnu.org>
2990 * valops.c (value_of_local): New function.
2991 (value_of_this): Use it.
2992 * value.h (value_of_local): Declared.
2994 2002-10-13 Adam Fedor <fedor@gnu.org>
2996 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2997 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2999 2002-10-12 Adam Fedor <fedor@gnu.org>
3001 * language.c (binop_result_type): Add language_objc to case.
3002 (integral_type): Likewise.
3003 (character_type): Likewise.
3004 (string_type): Likewise.
3005 (boolean_type): Likewise.
3006 (structured_type): Likewise.
3007 (binop_type_check): Likewise.
3009 2002-10-11 Adam Fedor <fedor@gnu.org>
3011 * printcmd.c (address_info): Print 'self' for ObjC.
3013 2002-10-11 Adam Fedor <fedor@gnu.org>
3015 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3018 2002-10-11 Adam Fedor <fedor@gnu.org>
3020 * language.h (CAST_IS_CONVERSION): Add language_objc.
3022 2002-10-11 Adam Fedor <fedor@gnu.org>
3024 * defs.h (enum language): Add language_objc.
3026 2002-10-11 Klee Dienes <kdienes@apple.com>
3028 * corefile.c (read_memory_typed_address): New function.
3029 * gdbcore.h (read_memory_typed_address): Add prototype.
3030 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3031 to read a value destined for a CORE_ADDR, not read_memory_integer.
3032 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3033 (f77_get_dynamic_lowerbound): Ditto.
3035 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3037 * utils.c (string_to_core_addr): After turning string into
3038 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3039 which will do necessary sign-extension, etc.
3041 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3043 * c-exp.y (THIS): Delete token and grammar rule.
3044 (yylex): Don't return THIS.
3045 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3046 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3047 * demangle.c (cplus_markers): Update comment. Put '$'
3048 first. Remove CPLUS_MARKER.
3049 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3050 * jv-exp.y (THIS): Delete token and grammar rule.
3051 (yylex): Don't return THIS.
3052 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3053 * objc-exp.y (THIS): Delete token and grammar rule.
3054 (yylex): Don't return THIS.
3055 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3056 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3057 (read_member_functions): Likewise for opname.
3058 (read_tilde_fields): Use is_cplus_marker.
3060 * defs.h (CPLUS_MARKER): Don't define.
3061 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3062 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3063 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3064 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3065 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3067 * config/i386/tm-i386v4.h: Delete file.
3068 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3069 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3070 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3071 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3072 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3073 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3074 * config/i386/i386v4.mt (TM_FILE): Likewise.
3075 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3077 2002-10-10 Marko Mlinar <markom@opencores.org>
3079 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3080 accidentially not commited 2002-10-09
3081 * gdbarch.h, gdbarch.c: Re-generate.
3083 2002-10-09 Marko Mlinar <markom@opencores.org>
3085 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3086 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3087 * gdbarch.h, gdbarch.c: Re-generate.
3089 2002-10-08 Petr Sorfa <petrs@caldera.com>
3091 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3093 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3094 so we can work on more than one compilation unit at a time. This
3095 helps prepare GDB to handle inter-CU die references.
3096 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3097 the code to be defined before struct comp_unit_head.
3098 (comp_unit_head): Added new members - offset, cu_head,
3099 begin_die, next and dwarf2_abbrevs.
3100 (dwarf2_abbrevs): Removed single static var; now member of
3101 struct comp_unit_head.
3102 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3104 (psymtab_to_symtab_1): Changed to work with the new
3105 struct comp_unit_head.
3106 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3107 constructs the dwarf2_abbrevs[] inside the cu_header.
3108 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3109 dwarf2_abbrev table to clean up.
3110 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3111 handling of dwarf2_abbrevs inside the cu_header.
3112 (read_partial_die): Now supports the call to the new
3113 dwarf2_lookup_abbrev.
3114 (read_full_die): Now supports the call to the new
3115 dwarf2_lookup_abbrev.
3117 2002-10-06 Christopher Faylor <cgf@redhat.com>
3119 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3120 insure that shell variables, such as "transformed_name" are propagated
3121 to later shell statements in rule.
3123 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3125 * config/i386/nm-i386sco.h: Add protection against
3126 multiple-inclusion. Include "i386/nm-i386v.h".
3127 (REGISTER_U_ADDR): Remove define.
3128 (i386_register_u_addr): Remove prototype.
3130 2002-10-04 Michael Snyder <msnyder@redhat.com>
3132 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3133 before treating it as a single-step event.
3135 2002-10-03 Adam Fedor <fedor@gnu.org>
3137 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3138 (objc_demangle): Remove assignment in if statements, Replace
3140 (add_msglist): Likewise.
3141 (end_msglist): Likewise.
3142 (complare_selectors): Likewise.
3143 (selectors_info): Likewise.
3144 (compare_classes): Likewise.
3145 (classes_info): Likewise.
3146 (print_object_command): Likewise.
3147 (find_objc_msgcall_submethod): Replace PTR with void *.
3148 * objc-lang.h: Remove check for __STDC__.
3150 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3152 * ui-out.h (ui_out_field_fmt_int): New prototype.
3153 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3154 of field width and alignment.
3155 * stack.c (print_frame_info_base): When printing frame level, use
3156 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3159 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3161 * MAINTAINERS: Add self to Write After Approval list.
3163 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3165 * infcmd.c (interrupt_target_command_wrapper): Delete.
3166 (interrupt_target_command): Make non static.
3167 (nofp_registers_info): Make static.
3168 * stack.c (return_command_wrapper): Delete.
3169 (return_command): Make non static.
3171 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3173 * event-top.c (gdb_setup_readline): New function. Code moved from
3174 _initialize_event_loop().
3175 (_initialize_event_loop): Call gdb_setup_readline().
3177 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3179 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3180 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3181 * gdbarch.h, gdbarch.c: Re-generate.
3183 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3186 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3188 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3189 of fill_in_vptr_fieldno.
3191 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3193 * inferior.h (registers_info, stepi_command, nexti_command,
3194 continue_command, interrupt_target_command): Export from infcmd.c.
3195 * frame.h (args_info, selected_frame_level_changed_hook,
3196 return_command): Export from stack.c.
3197 * v850ice.c (stepi_command, nexti_command, continue_command): use
3198 prototypes from inferior.h.
3199 * tracepoint.c (registers_info, args_info, locals_info): Use
3200 prototypes from frame.h and inferior.h.
3201 * Makefile.in (mi-main.o): Add dependency on frame.h.
3203 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3205 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3206 value in register 3 adjusted by ppc_gp0_regnum.
3208 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3210 2002-10-02 Marko Mlinar <markom@opencores.org>
3212 * MAINTAINERS: Add myself to the Write After Approval list.
3214 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3216 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3217 of the section for the N64 ABI, fixed.
3219 * config/mips/tm-irix6.h: Include solib.h.
3221 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3223 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3226 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3228 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3229 and that "mi0" syntax has been removed.
3231 2002-09-30 David Carlton <carlton@math.stanford.edu>
3233 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3234 * ppc-sysv-tdep.c: #include "gdb_string.h".
3235 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3238 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3240 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3241 "vrsave"'s register number.
3243 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3245 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3246 use frame_unwind_signed_register to obtain the PC.
3247 (mips_frame_chain): Handle a generic dummy frame.
3248 (mips_init_extra_frame_info): When a generic dummy frame, don't
3249 re-compute the frame base.
3250 (mips_pop_frame): Handle generic dummy frames.
3251 (mips_gdbarch_init): When generic dummy frames, set
3252 use_generic_dummy_frames, push_dummy_frame to
3253 generic_push_dummy_frame, pc_in_call_dummy to
3254 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3255 generic_save_dummy_frame_tos.
3257 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3259 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3260 against TOP when TOP was explictly set.
3261 (generic_push_dummy_frame): Set TOP to zero.
3263 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3265 * event-loop.c (start_event_loop): Rename variable 'result' to
3266 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3268 2002-09-30 Keith Seitz <keiths@redhat.com>
3270 * gdb-events.sh (selected_thread_changed): New event.
3271 * gdb-events.c: Regenerated.
3272 * gdb-events.h: Regenerated.
3274 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3276 * MAINTAINERS: Add self to Write After Approval list.
3278 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3280 * disasm.c: New file.
3281 * disasm.h: New file.
3282 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3283 (compare_lines): Ditto.
3284 (dump_insns): Ditto.
3285 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3287 (do_assembly_only): Ditto.
3288 (do_disassembly): Renamed to gdb_disassembly and moved to
3289 disasm.c. Sdded uiout argument.
3290 * Makefile.in: Add new files. Reorder SFILES list. Update
3291 dependencies. Include libgdb.a later in the insight executable.
3293 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3295 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3296 bfd/elf64-alpha-fbsd.c.
3298 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3300 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3303 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3305 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3307 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3309 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3310 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3311 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3312 (S_msg_sig_post_reply): Ditto.
3314 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3316 * sh-tdep.c (sh_use_struct_convention): Use definition according
3318 (sh_push_arguments): Store in register with correct endianess.
3319 (sh_default_store_return_value): Ditto.
3320 (sh_gdbarch_init): Set sizeof long double to 8.
3322 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3324 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3325 Fix some whitespace problems.
3327 2002-09-27 David Carlton <carlton@math.stanford.edu>
3329 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3330 (mcore-tdep.o): Ditto.
3331 (ns32k-tdep.o): Ditto.
3332 (ns32knbsd-tdep.o): Ditto.
3334 (vax-tdep.o): Ditto.
3335 * cris-tdep.c: #include "gdb_string.h"
3336 * mcore-tdep.c: Ditto.
3337 * ns32k-tdep.c: Ditto.
3338 * ns32knbsd-tdep.c: Ditto.
3340 * vax-tdep.c: Ditto.
3342 2002-09-27 David Carlton <carlton@math.stanford.edu>
3344 * config/djgpp/fnchange.lst: Add entries for
3345 gdb/testsuite/gdb.c++/m-static files.
3347 2002-09-27 Jim Wilson <wilson@redhat.com>
3349 * MAINTAINERS: Add myself to the Write After Approval list.
3351 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3353 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3356 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3358 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3361 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3363 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3364 (rs6000_struct_return_address): Delete variable.
3365 (rs6000_store_struct_return): Update.
3366 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3367 deprecated_extract_struct_value_address.
3368 (rs6000_frame_align): New function.
3369 (rs6000_gdbarch_init): Set frame_align.
3371 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3373 From Grace Sainsbury <graces@redhat.com>:
3374 * Makefile.in (gdbtk-main.o): New target.
3375 (gdb.o): New target.
3377 (main.o): Update dependencies.
3378 (gdb$(EXEEXT)): Add gdb.o.
3379 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3380 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3381 (SUBDIR_GDBTK_CLEAN): Set.
3382 (install-gdbtk): Install the insight binary.
3383 (uninstall-gdbtk): New target.
3384 (all-gdbtk, clean-gdbtk): New rule.
3385 * top.c (use_windows): Default to zero.
3386 * main.c: Include "main.h".
3388 (struct captured_main_args): Delete.
3389 (gdb_main): New function.
3393 2002-09-25 Andrew Cagney <cagney@redhat.com>
3395 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3396 (frame_map_regnum_to_name): New function.
3397 (frame_map_name_to_regnum): New function.
3398 * frame.h (frame_map_name_to_regnum): Declare.
3399 (frame_map_regnum_to_name): Declare.
3400 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3401 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3402 * parse.c: Do not include "builtin-regs.h".
3403 (target_map_name_to_register): Delete function.
3404 (write_dollar_variable): Use frame_map_name_to_regnum.
3405 * parser-defs.h (target_map_name_to_register): Delete declaration.
3406 * expprint.c: Include "frame.h".
3407 (print_subexp): Use frame_map_regnum_to_name.
3408 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3409 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3411 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3413 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3414 wasn't saved, and the next innermost frame is a dummy, return the
3415 dummy frame's link register.
3417 2002-09-24 Jim Blandy <jimb@redhat.com>
3419 Fix from Paul Breed:
3420 * main.c (captured_main): Add a `break' after the case for 'b'.
3422 2002-09-24 Keith Seitz <keiths@redhat.com>
3424 * varobj.c (c_type_of_child): Use get_target_type instead
3425 of TYPE_TARGET_TYPE.
3427 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3429 * source.c (get_current_or_default_source_symtab_and_line): Remove
3431 (set_default_source_symtab_and_line): New function. Attempts to
3432 determine a source file to list lines from if one is not currently
3434 (get_current_source_symtab_and_line): Initialize sal.pc and
3436 (set_current_source_symtab_and_line): Mark argument as const.
3437 * source.h: Update declarations and comments.
3438 * linespec.c (decode_line_1): Replace call to removed routine above.
3439 * stack.c (print_frame_info_base): Ditto.
3440 * cli/cli-cmds.c (edit_command): Ditto.
3441 (list_command): Ditto.
3443 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3445 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3446 sal.pc and sal.end fields.
3447 (get_current_or_default_source_symtab_and_line): Ditto.
3448 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3449 so we do not cause a new source symtab to be searched for (reverting an
3450 unintentional change from the 2002-09-20 patch).
3451 * scm-lang.c (scm_unpac): Ditto.
3453 2002-09-21 Andrew Cagney <cagney@redhat.com>
3455 * complaints.c (symfile_explanations): Remove new-line from
3456 ``isolated_message''.
3457 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3458 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3460 2002-09-20 Nick Clifton <nickc@redhat.com>
3462 * NEWS: Announce that V850EA ISA is no longer supported.
3463 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3465 2002-09-20 David Carlton <carlton@math.stanford.edu>
3467 * Makefile.in (c-lang.o): Correct dependencies.
3468 (utils.o): Gather dependencies.
3470 * c-lang.c: #include "gdb_string.h"
3472 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3474 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3475 * cli/cli-cmds.c (list_command): New function. Implements the new
3477 (_init_cli_cmds): Add new command definition.
3478 * gdb.1: Document edit command.
3479 * doc/gdb.texinfo: Document edit command.
3481 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3483 * source.c: Make global variables current_source_symtab and
3484 current_source_line static.
3485 (list_command): Moved to cli/cli-cmds.c.
3486 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3487 (get_first_line_listed): New accessor function.
3488 (get_lines_to_list): New accessor function.
3489 (get_current_source_symtab_and_line): New function. Retrieves the
3490 position in the source code that we consider current.
3491 (get_current_or_default_source_symtab_and_line): New function.
3492 Like the above but attempts to determine a default position if one
3493 is not currently defined.
3494 (set_current_source_symtab_and_line): New function. Sets the source
3495 code position considered current and returns the previously set one.
3496 (clear_current_source_symtab_and_line): Reset stored information about
3497 a current source line.
3498 (_initialize_source): Remove registration for the "list" command and
3500 * source.h: Add declarations for the new functions above.
3501 * symtab.h: Remove declarations for the global variables mentioned
3503 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3504 obtain current source line.
3505 * linespec.c (decode_line_1): Ditto.
3506 * macroscope.c (default_macro_scope): Ditto.
3507 * scm-lang.c (scm_unpac): Ditto.
3508 * stack.c (print_frame_info_base): Ditto.
3509 * symfile.c (clear_symtab_users): Ditto.
3510 * symtab.c (decode_line_spec): Ditto.
3511 * cli/cli-cmds.c (list_command): Moved here from source.c.
3512 (ambiguous_line_spec): Moved here from source.c.
3513 (_init_cli_cmds): Add definition for "list" and its alias.
3514 * Makefile.in: Update dependencies.
3516 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3518 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3519 with what gcc thinks is correct.
3521 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3523 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3524 multiple register push instruction.
3526 2002-09-19 Jim Blandy <jimb@redhat.com>
3528 Add support for distinct host and target character sets.
3529 * charset.c, charset.h: New files.
3530 * c-exp.y: #include "charset.h".
3531 (yylex): Convert character and string literals to the target
3532 character set, before returning them as the semantic value of the
3534 * c-lang.c: #include "charset.h".
3535 (c_emit_char): Use charset-specific methods to recognize
3536 characters with backslash escape forms, to decide which characters
3537 to print literally and which to print using numeric escape
3538 sequences, and to convert target characters to host characters
3540 * utils.c: #include "charset.h".
3541 (no_control_char_error): New function.
3542 (parse_escape): Use charset-specific methods to recognize
3543 backslash escapes, parse `control character' notation, and convert
3544 characters from the host character set to the target character set.
3545 * configure.in: Set the default host character set.
3546 Check where to find iconv, and what its argument types might be.
3547 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3548 * Makefile.in (SFILES): List charset.c.
3549 (COMMON_OBS): List charset.o.
3550 (charset.o): New rule.
3551 (charset_h): New header dependency variable.
3552 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3553 (LIBICONV): New variable, set by configure.
3554 (CLIBS): Include $(LIBICONV) here.
3555 * aclocal.m4, config.in, configure: Regenerated.
3557 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3559 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3562 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3564 * gdb_mbuild.sh: New file.
3566 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3568 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3570 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3572 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3573 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3574 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3575 valops.c, value.h: Revert previous change.
3577 2002-09-18 Michael Snyder <msnyder@redhat.com>
3579 Preliminary support for Objective-C:
3580 * defs.h (language_objc): New enum value.
3581 (puts_filtered_tabular): Declaration only, exported from utils.c.
3582 (skip_quoted): Delete, declared in completer.h.
3583 * c-exp.y: Include completer.h.
3586 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3587 New operator enum values.
3588 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3589 * language.c (binop_result_type): Handle language_objc case.
3590 (integral_type, character_type, string_type, boolean_type,
3591 structured_type, binop_type_check): Ditto.
3592 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3593 (struct objc_specific): Add to general_symbol_info.
3594 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3595 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3596 * parser-defs.h (struct objc_class_str): New struct type.
3597 (start_msglist, end_msglist, add_msglist): Declaration only,
3598 exported from objc-lang.c.
3599 * value.h (value_of_local, value_nsstring,
3600 call_function_by_hand_expecting_type): Exported from valops.c.
3601 * valops.c (find_function_addr): Export.
3602 (call_function_by_hand_expecting_type): New function.
3603 (value_of_local): New function.
3604 * symfile.c (init_filename_language_table): Add ".m" extension
3606 * utils.c (puts_filtered_tabular): New function.
3607 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3608 (set/show demangle): Extend help-string to refer to ObjC.
3609 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3610 * stabsread.c (symbol_reference_defined): Objective-C symbols
3611 may contain colons: make allowances when scanning stabs strings
3613 (objc_find_colon): New function.
3614 * printcmd.c (address_info): If language == objc then print
3615 "self" instead of "this".
3616 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3617 OP_NSSTRING, and OP_SELF.
3618 (prefixify_subexp): Ditto.
3619 * source.c (print_source_lines): Mention objc in comment.
3620 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3623 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3625 * complaints.h: Update copyright.
3626 (struct complaints): Declare.
3627 (struct complaint): Make `message' constant.
3628 (internal_complaint): Declare.
3629 (complaint): Declare.
3630 (complaint_root): Delete declaration.
3631 (symfile_complaints): Delete declaration.
3632 (struct complaints): Add opaque declaration.
3633 (clear_complaints): Add a complaints parameter.
3634 * complaints.c: Update copyright.
3635 (enum complaint_series): Define.
3636 (complaint_root): Delete.
3637 (struct complaints): Define.
3638 (complaint_sentinel, symfile_complaint_book): New variables.
3639 (symfile_explanations, symfile_complaints): New variables.
3641 (get_complaints): New function.
3642 (vcomplaint): New function.
3643 (complaint): New function.
3644 (internal_complaint): New function.
3645 (complain): Call vcomplain with symfile_complaint.
3646 (clear_complaints): Rewrite.
3647 (_initialize_complaints): Use add_setshow_command.
3648 * Makefile.in (complaints.o): Update dependencies.
3649 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3650 to call to clear_complaints.
3651 (new_symfile_objfile, reread_symbols): Ditto.
3652 (oldsyms_complaint): Delete.
3653 (empty_symtab_complaint, unknown_option_complaint): Delete.
3654 (free_named_symtabs): Use complaint instead of complain.
3656 2002-09-18 Michael Snyder <msnyder@redhat.com>
3658 Contributed by Apple Computer, Inc. Merged with current sources
3659 by Adam Fedor <fedor@doc.com> [cagney].
3661 * objc-lang.c: First clean-up round: comments, indentation.
3662 * objc-lang.h: Ditto.
3663 * objc-lang.y: Ditto.
3665 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3667 * maint.c (maintenance_internal_error): Print the parameter as the
3669 (maintenance_internal_warning): New function.
3670 (_initialize_maint_cmds): Add command `maint internal-warning'.
3672 * defs.h (internal_warning, internal_vwarning): Declare.
3673 * utils.c (struct internal_problem): Define.
3674 (internal_vproblem): New function.
3675 (internal_warning): New function.
3676 (internal_vwarning): New function.
3677 (internal_warning_problem, internal_error_problem): New variables.
3678 (internal_verror): Just call internal_vproblem.
3680 2002-09-18 Michael Snyder <msnyder@redhat.com>
3682 * objc-lang.c: New file, support for Objective-C.
3683 Preliminary check-in, not yet integrated into gdb.
3684 * objc-lang.h: New file.
3685 * objc-exp.y: New file.
3687 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3689 * infrun.c (signal_stop_update): Convert definition to ISO C.
3690 (signal_print_update): Ditto.
3691 (signal_pass_update): Ditto.
3692 * inflow.c (terminal_save_ours): Ditto.
3694 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3697 * config/djgpp/fnchange.lst: Handle name clashes between
3698 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3701 * i386-linux-tdep.h: Fix tipo.
3703 2002-09-18 Adam Fedor <fedor@gnu.org>
3705 * MAINTAINERS: Add myself to the Write After Approval list.
3707 2002-09-18 Jim Blandy <jimb@redhat.com>
3709 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3710 texthigh and textlow to reader-specific structs caused
3711 objfile_relocate to miss them. This is fixable, but the work that
3712 the change was supposed to prepare GDB for never got done anyway.
3714 2002-09-18 David Carlton <carlton@math.stanford.edu>
3716 * MAINTAINERS: Alphabetize Write After Approval list.
3718 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3721 * values.c (value_static_field): Call read_var_value.
3723 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3725 * valops.c (hand_function_call): Align the initial stack pointer
3726 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3727 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3729 * mips-tdep.c (mips_frame_align): New function.
3730 (mips_gdbarch_init): Set frame_align.
3731 * gdbarch.sh (FRAME_ALIGN): New method.
3732 * gdbarch.h, gdbarch.c: Re-generate.
3734 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3736 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3739 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3741 * NEWS: Mention that MIPS $fp behavior changed.
3742 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3743 reference to FP_REGNUM.
3744 (mipsnbsd_cannot_store_register): Ditto.
3745 * mips-linux-nat.c: Update copyright.
3746 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3747 (mips_linux_cannot_store_register): Ditto.
3748 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3749 * config/mips/tm-mips.h: Update copyright.
3750 (FP_REGNUM): Delete macro.
3751 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3752 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3753 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3754 (mips_r3041_reg_names, mips_r3051_reg_names)
3755 (mips_r3081_reg_names): Replace "fp" with "".
3758 2002-09-17 Theodore A. Roth <troth@verinet.com>
3760 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3761 generic_read_register_dummy() (PR gdb/703).
3762 (avr_push_return_address): #if 0 out unused vars.
3763 (avr_gdbarch_init): Enable use of avr_push_return_address().
3765 2002-09-17 Michael Snyder <msnyder@redhat.com>
3767 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3768 RTE will take care of it.
3770 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3772 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3773 invalid, return SP_REGNUM.
3775 2002-09-17 Michael Snyder <msnyder@redhat.com>
3777 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3778 point registers without sign extension.
3780 2002-09-17 Andrew Cagney <cagney@redhat.com>
3782 * blockframe.c (deprecated_read_register_dummy): Rename
3783 generic_read_register_dummy.
3784 * frame.c (frame_unwind_signed_register): New function.
3785 (frame_unwind_unsigned_register): New function.
3786 * frame.h (frame_unwind_signed_register): Declare.
3787 (frame_unwind_unsigned_register): Declare.
3788 (deprecated_read_register_dummy): Rename
3789 generic_read_register_dummy.
3791 * h8300-tdep.c (h8300_frame_chain): Update.
3792 (h8300_frame_saved_pc): Update.
3793 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3794 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3795 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3796 (s390_frame_chain): Update.
3797 * v850-tdep.c (v850_find_callers_reg): Update.
3798 (v850_frame_saved_pc): Update.
3799 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3800 (m32r_find_callers_reg): Update.
3801 (m32r_frame_saved_pc): Update.
3802 * sh-tdep.c (sh_find_callers_reg): Update.
3803 (sh64_get_saved_pr): Update.
3804 (sh_init_extra_frame_info): Update.
3805 (sh_init_extra_frame_info): Update.
3806 (sh64_init_extra_frame_info): Update.
3807 (sh64_init_extra_frame_info): Update.
3808 * mcore-tdep.c (mcore_find_callers_reg): Update.
3809 (mcore_frame_saved_pc): Update.
3810 (mcore_init_extra_frame_info): Update.
3811 * i386-tdep.c (i386_frame_saved_pc): Update.
3812 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3813 (ia64_init_extra_frame_info): Update.
3814 (ia64_init_extra_frame_info): Update.
3815 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3816 * cris-tdep.c (cris_init_extra_frame_info): Update.
3817 * avr-tdep.c (avr_frame_chain): Update.
3818 (avr_init_extra_frame_info): Update.
3819 (avr_frame_saved_pc): Update.
3820 * arm-tdep.c (arm_find_callers_reg): Update.
3821 (arm_init_extra_frame_info): Update.
3822 (arm_frame_saved_pc): Update.
3824 2002-09-17 Tom Tromey <tromey@redhat.com>
3826 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3829 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3831 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3832 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3834 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3837 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3839 * osfsolib.c: Remove file, replaced by solib-osf.c.
3840 * Makefile.in: Remove compilation rules for osfsolib.c.
3842 2002-09-16 David Carlton <carlton@math.stanford.edu>
3844 * cp-valprint.c (cp_print_class_method): Correct args to
3845 check_stub_method_group.
3847 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3849 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3850 `set architecture'. Unify naming convention of functions.
3851 (h8300_skip_prologue): Improve prologue analysis.
3852 (h8300_push_arguments): Rewritten to more closely match GCC's
3853 bizarre argument-passing behavior, along with the comment describing
3855 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3856 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3857 sim, remote-e7000.c, remote-hms.c and remote.c
3859 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3861 * i386-tdep.c (gdb_print_insn_i386): Removed.
3862 (i386_print_insn): New function.
3863 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3864 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3867 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3869 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3872 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3874 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3875 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3876 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3878 2002-09-13 Christopher Faylor <cgf@redhat.com>
3880 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3882 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3884 * gdbtypes.c (check_stub_method): Make static.
3885 (check_stub_method_group): New function.
3886 * gdbtypes.h: Update prototypes.
3887 * cp-support.c: New file.
3888 * cp-support.h: New file.
3890 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3891 (update_method_name_from_physname): New function.
3892 (read_member_functions): Correct method names for operators
3893 and v3 constructors/destructors. Separate v2 constructors and
3895 * Makefile.in (stabsread.o): Update dependencies.
3896 (SFILES): Add cp-support.c.
3897 (COMMON_OBS): Add cp-support.o.
3898 (cp_support_h, cp-support.o): Add.
3900 * cp-valprint.c (cp_print_class_method): Call
3901 check_stub_method_group instead of check_stub_method. Remove
3903 * p-valprint.c (pascal_object_print_class_method): Likewise.
3904 * valops.c (search_struct_method): Likewise.
3905 (find_method_list, value_struct_elt_for_reference): Likewise.
3907 2002-09-13 Andrew Cagney <cagney@redhat.com>
3909 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3910 * gdbarch.h, gdbarch.c: Regenerate.
3912 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3914 * frame.c (find_saved_register): Delete function.
3915 * frame.h (find_saved_register): Delete declaration.
3918 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3920 * mips-tdep.c (read_next_frame_reg): Re-hack using
3921 frame_register_unwind.
3923 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3925 * mips-tdep.c (mips_get_saved_register): Re-hack using
3926 frame_register_unwind.
3928 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3930 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3931 vector. Will be useful for Interix.
3932 * gdbarch.h, gdbarch.c: Regenerate.
3934 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3935 name of the malloc function by NAME_OF_MALLOC.
3937 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3939 * value.h (find_function_in_inferior): Add const keyword to
3940 one of the parameters. Allows us to invoke this function with
3942 * valops.c (find_function_in_inferior): Likewise.
3944 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3946 * exec.c (xfer_memory): Fix compilation warning with old versions
3948 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3950 2002-09-12 David Carlton <carlton@math.stanford.edu>
3952 * symtab.h: Run through gdb_indent.h.
3953 Add 2002 to Copyright year list.
3955 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3957 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3959 * MAINTAINERS: Add myself to write after approval list.
3961 2002-09-11 J. Brobecker <brobecker@gnat.com>
3963 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3965 2002-09-11 J. Brobecker <brobecker@gnat.com>
3967 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3970 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3972 * procfs.c (do_detach): Clear current signal, not just fault.
3973 Corrects problem with breakpoint trap signal leaking to detached
3976 2002-09-10 Michael Snyder <msnyder@redhat.com>
3978 * buildsym.c (finish_block): Protect against null pointer.
3980 2002-09-10 Andrew Cagney <cagney@redhat.com>
3982 * infcmd.c (default_print_registers_info): Send all output to
3983 ``file'' instead of ``gdb_stdout''.
3985 2002-09-10 Michael Snyder <msnyder@redhat.com>
3987 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3988 LONGEST, and use signed register read (addresses are sign-
3991 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3993 * event-loop.c (gdb_do_one_event): Make public.
3994 * event-loop.h (gdb_do_one_event): Declare.
3996 2002-09-10 Jeff Law <law@redhat.com>
3998 * infttrace.c (child_resume): Simplify and rework to avoid
4001 2002-09-09 Fred Fish <fnf@intrinsity.com>
4003 * printcmd.c (print_scalar_formatted): "len" is the number of
4004 target bytes, NOT the number of target bits.
4006 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4008 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4009 * top.c (init_main): Set rl_terminal_name.
4011 2002-09-08 Aidan Skinner <aidan@velvet.net>
4013 * ada-lang.c (ada_array_bound, ada_type_match,
4014 _initialize_ada_language): Fix K&R definitions.
4015 * ada-tasks.c (get_current_task): Fix K&R definitions.
4016 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4018 2002-09-07 Christopher Faylor <cgf@redhat.com>
4020 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4023 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4025 * i386-tdep.c (i386_register_virtual_type,
4026 i386_register_convertible, i386_register_convert_to_virtual,
4027 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4028 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4029 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4030 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4031 Don't set push_arguments twice.
4033 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4034 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4035 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4036 sigtramp_end to NULL.
4037 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4039 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4041 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4044 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4045 * gdbarch.h, gdbarch.c: Re-generate.
4046 * blockframe.c (find_pc_sect_partial_function): Convert to use
4047 SIGTRAMP_START_P predicate.
4049 2002-09-05 Michael Snyder <msnyder@redhat.com>
4051 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4052 generic_dummy_frame method and old method. Also distinguish
4053 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4054 (arm_extract_return_value): Use new regcache method.
4056 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4057 adjustment that doesn't conform to the ABI.
4058 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4059 saved regcache, not from current regcache.
4061 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4063 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4066 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4068 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4069 if arm_apcs_32 is false.
4071 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4073 GDB 5.3 branch created.
4075 2002-09-03 Theodore A. Roth <troth@verinet.com>
4077 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4078 generic_unwind_get_saved_register.
4080 2002-09-03 David Carlton <carlton@math.stanford.edu>
4082 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4083 argument (PR gdb/653). Update call to smash_to_method_type.
4084 (read_structure_scope): Update call to dwarf2_add_member_fn.
4086 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4088 * x86-64-linux-tdep.c: Include gdb_string.h
4089 * x86-64-linux-nat.c: Ditto.
4091 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4093 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4094 when YYDEBUG is set to 1.
4095 * c-exp.y: Likewise.
4096 * f-exp.y: Likewise.
4097 * jv-exp.y: Likewise.
4098 * m2-exp.y: Likewise.
4099 * p-exp.y: Likewise.
4101 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4103 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4105 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4106 solib_svr4_fetch_link_map_offsets to
4107 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4108 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4109 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4110 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4111 solib-svr4.o, and solib-legacy.o.
4112 * config/i386/tm-nbsd.h: Include solib.h.
4114 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4116 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4117 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4118 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4119 comment noting that this needs its own target configuration.
4120 * config/i386/nbsd.mt: New file.
4121 * config/i386/nbsdaout.mt: Remove.
4122 * config/i386/nbsdelf.mt: Ditto.
4123 * config/i386/tm-nbsdaout.h: Ditto.
4125 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4127 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4128 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4129 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4131 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4132 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4133 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4135 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4137 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4138 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4139 * i386-tdep.h (i386bsd_init_abi): New prototype.
4140 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4141 function declaration.
4142 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4143 for NetBSD-a.out or NetBSD-ELF.
4144 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4145 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4146 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4147 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4149 (i386nbsd_pc_in_sigtramp): New function.
4150 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4151 i386nbsd_pc_in_sigtramp.
4152 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4153 and i386nbsdelf_init_abi OS ABI handlers.
4154 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4155 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4157 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4159 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4160 registers if the target really has them.
4162 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4164 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4167 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4169 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4171 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4172 (alphanbsd_skip_sigtramp_frame): New functions.
4173 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4174 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4175 to alphanbsd_sigcontext_addr.
4177 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4179 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4181 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4182 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4183 nbsd_pc_in_sigtramp.
4184 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4185 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4186 * nbsd-tdep.c: Include gdb_string.h.
4187 (nbsd_pc_in_sigtramp): New function.
4188 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4189 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4190 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4191 ppcnbsd_pc_in_sigtramp.
4192 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4193 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4194 shnbsd_pc_in_sigtramp.
4195 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4196 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4197 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4199 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4201 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4202 watchpoints to NULL.
4203 (insert_breakpoints): set val field of watchpoints if NULL.
4206 2002-08-29 Jim Blandy <jimb@redhat.com>
4208 * symtab.c (lookup_symbol_aux): In the cases where we find a
4209 minimal symbol of an appropriate name and use its address to
4210 select a symtab to read and search, use `name' (as passed to us)
4211 as the demangled name when searching the symtab's global and
4212 static blocks, not the minsym's name.
4214 2002-08-29 Keith Seitz <keiths@redhat.com>
4216 * stack.c (print_frame_info_base): Always set current_source_symtab
4217 and current_source_line.
4219 2002-08-29 Donn Terry <donnte@microsoft.com>
4221 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4223 2002-08-28 Keith Seitz <keiths@redhat.com>
4225 * stack.c (select_frame): Add FIXME concerning selected-frame
4227 (select_frame_command): Send selected-frame-level-changed
4228 event notification, but only if the level actually changed.
4229 (up_silently_base): Add selected-frame-level-changed event
4231 (down_silently_base): Likewise.
4233 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4235 * Makefile.in: Update dependencies for all gdb/*.c files.
4237 2002-08-27 Tom Tromey <tromey@redhat.com>
4239 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4240 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4241 Update dependencies.
4242 * i387-tdep.c: Include gdb_string.h.
4243 * osabi.c: Likewise.
4244 * i386-linux-nat.c: Likewise.
4245 * lin-lwp.c: Likewise.
4246 * ax-gdb.c: Likewise.
4247 * signals/signals.c: Likewise.
4248 * jv-valprint.c: Likewise.
4249 * p-lang.c: Likewise.
4250 * c-valprint.c: Likewise.
4251 * cp-abi.c: Likewise.
4253 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4255 * cli/cli-script.h (copy_command_lines): Export.
4256 * breakpoint.c: Include cli/cli-script.h.
4257 * Makefile.in (breakpoint.o): Update dependencies.
4259 2002-08-26 Michael Snyder <msnyder@redhat.com>
4261 * breakpoint.c (insert_breakpoints): Protect all references
4262 to 'process_warning'. Shorten long lines.
4264 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4266 * cli/cli-script.c (copy_command_lines): New function.
4267 * defs.h (copy_command_lines): Export.
4268 * testsuite/gdb.base/commands.exp: New tests for commands
4269 attached to a temporary breakpoint, and for commands that
4270 delete the breakpoint they are attached to.
4272 2002-08-26 Michael Snyder <msnyder@redhat.com>
4274 * breakpoint.c (bpstat_stop_status): Instead of copying the
4275 pointer to the breakpoint commands struct, make a new copy
4276 of the struct and point to that.
4277 (bpstat_clear): Free the commands struct.
4278 (bpstat_clear_actions): Free the commands struct.
4279 (bpstat_do_actions): Free the command actions. Also execute
4280 the local cleanups, instead of deleting them.
4281 (delete_breakpoint): Leave the commands field of the bpstat
4282 chain alone -- it will be freed later.
4284 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4286 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4287 deleted in 2002-08-20 commit. This function is still used by
4290 2002-08-26 Keith Seitz <keiths@redhat.com>
4292 * gdb-events.sh: Add selected-frame-level-changed event.
4293 * gdb-events.c: Regenerated.
4294 * gdb-events.h: Regenerated.
4296 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4299 * inflow.c (terminal_save_ours): New function to save terminal
4301 * inferior.h (terminal_save_ours): Declare.
4302 * target.c (debug_to_terminal_save_ours): New function.
4303 (cleanup_target): Defaults to_terminal_save_ours.
4304 (update_current_target): Inherit to_terminal_save_ours.
4305 (setup_target_debug): Set to_terminal_save_ours.
4306 * target.h (target_terminal_save_ours): New to save terminal settings.
4307 (target_ops): New member to_terminal_save_ours.
4308 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4309 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4310 * inftarg.c (init_child_ops): Likewise.
4311 * m3-nat.c (init_m3_ops): Likewise.
4312 * procfs.c (init_procfs_ops): Likewise.
4313 * wince.c (init_child_ops): Likewise.
4314 * win32-nat.c (init_child_ops): Likewise.
4315 * sol-thread.c (init_sol_thread_ops): Likewise.
4317 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4319 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4320 use regcache_* functions.
4321 (i386_gdbarch_init): Set store_return_value instead of
4322 deprecated_store_return_value.
4324 * regcache.c (regcache_raw_write_signed,
4325 regcache_raw_write_unsigned): New functions.
4326 * regcache.h (regcache_raw_write_signed,
4327 regcache_raw_write_unsigned): New prototypes.
4329 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4331 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4332 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4333 source file dependencies. Cleanup corresponding generator rules.
4335 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4337 * regcache.h (register_offset_hack): Declare.
4338 (regcache_cooked_read_using_offset_hack): Declare.
4339 (regcache_cooked_write_using_offset_hack): Declare.
4341 * regcache.c (register_offset_hack): New function.
4342 (regcache_cooked_read_using_offset_hack): New function.
4343 (regcache_cooked_write_using_offset_hack): New function.
4344 (regcache_dump): Check that the registers, according to their
4345 offset, are packed hard against each other.
4346 (cooked_xfer_using_offset_hack): New function.
4348 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4350 * regcache.c (struct regcache_descr): Add field register_type.
4351 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4353 (init_regcache_descr): Initialize register_type. Pass the descr
4354 to init_legacy_regcache_descr. Use register_type instead of
4355 REGISTER_VIRTUAL_TYPE.
4356 (register_type): New function.
4357 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4358 * regcache.h (register_type): Declare.
4360 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4362 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4363 instead of deprecated_store_return_value. Fix fallout from
4364 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4366 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4368 * regcache.c (max_register_size): New function.
4369 (init_legacy_regcache_descr): Ensure that max_register_size is
4370 large enough for REGISTER_VIRTUAL_SIZE.
4371 * regcache.h (max_register_size): Declare.
4373 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4375 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4377 (e500_extract_return_value): Change type of valbuf pointer to
4380 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4382 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4385 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4386 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4387 long long) to prevent compiler warning on 64-bit systems.
4389 2002-08-23 Andrew Cagney <cagney@redhat.com>
4391 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4392 (DEPRECATED_STORE_RETURN_VALUE): New method.
4393 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4394 * gdbarch.h, gdbarch.c: Re-generate.
4396 * values.c (set_return_value): Pass current_regcache to
4398 * arch-utils.h (legacy_store_return_value): Declare.
4399 * arch-utils.c (legacy_store_return_value): New function.
4400 (legacy_extract_return_value): Update parameters.
4402 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4404 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4405 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4406 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4407 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4408 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4409 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4410 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4411 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4412 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4413 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4416 * i386-tdep.c (i386_extract_return_value): Update.
4417 * arch-utils.c (legacy_extract_return_value): Update.
4418 * frv-tdep.c (frv_gdbarch_init): Update.
4419 * cris-tdep.c (cris_gdbarch_init): Update.
4420 * d10v-tdep.c (d10v_gdbarch_init): Update.
4421 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4422 * m68k-tdep.c (m68k_gdbarch_init): Update.
4423 * mcore-tdep.c (mcore_gdbarch_init): Update.
4424 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4425 * s390-tdep.c (s390_gdbarch_init): Update.
4426 * sparc-tdep.c (sparc_gdbarch_init): Update.
4427 * sh-tdep.c (sh_gdbarch_init): Update.
4428 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4429 * v850-tdep.c (v850_gdbarch_init): Update.
4430 * avr-tdep.c (avr_gdbarch_init): Update.
4431 * ia64-tdep.c (ia64_gdbarch_init): Update.
4432 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4433 * vax-tdep.c (vax_gdbarch_init): Update.
4434 * alpha-tdep.c (alpha_gdbarch_init): Update.
4435 * arm-tdep.c (arm_gdbarch_init): Update.
4436 * mips-tdep.c (mips_gdbarch_init): Update.
4437 * i386-tdep.c (i386_gdbarch_init): Update.
4439 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4441 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4442 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4444 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4446 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4449 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4451 * infrun.c (handle_inferior_event): Move a comment outside of a
4452 function call, in order to avoid indent reformatting this part
4453 of the code in an unreadable way.
4455 2002-08-23 Grace Sainsbury <graces@redhat.com>
4457 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4458 when breakpoints fail. Move general breakpoint error messages to
4460 * breakpoint.c (insert_breakpoints): Change warnings when
4461 breakpoints are nto inserted to specify the type. Remove call to
4462 memory_error when hardware breakpoints can't be inserted. Remove
4463 multiple calls to warning so all messages are sent to the user at
4465 (delete_breakpoints): Make insert error messsages more explicit.
4467 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4469 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4470 gdbserver/ChangeLog.
4472 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4474 * i386-tdep.c: Include "objfiles.h".
4475 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4476 skip_trampoline_code.
4477 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4478 (CPLUS_MARKER): Define to '.'.
4480 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4482 (linux_corefile_thread_callback): Increase args->num_notes.
4483 (linux_make_note_section): Initialize thread_args.num_notes, and
4484 use it to determine whether notes for any threads were created.
4486 2002-08-23 Donn Terry <donnte@microsoft.com>
4488 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4489 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4491 (write_with_trace): Conditionalize out the switch branch handling
4492 PCSHOLD if the corresponding macro is not defined. Likewise for
4493 PRSABORT and PRSTOP.
4494 This change will be needed by the Interix port.
4496 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4498 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4499 write_register wherever possible instead of manipulating the
4500 register bytes directly.
4501 Assign VALUE_CONTENTS to a variable and use that.
4502 The GPR numbers are now dependent on the architecture.
4504 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4506 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4508 (skip_prologue): Add support for BookE/e500 instructions.
4509 (e500_extract_return_value): New function.
4510 (frame_get_saved_regs): Add support for saving ev registers and
4512 (e500_store_return_value): New function.
4513 (rs6000_gdbarch_init): Move up default intializations of
4514 deprecated_extract_return_value and store_return_value. Overwrite
4515 init of store_return_value with e500 specific version.
4516 Set extract_return_value for e500.
4518 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4520 * blockframe.c (generic_call_dummy_register_unwind): Use
4521 regcache_cooked_read to catch cases in which the variable is
4522 stored in a pseudo register.
4524 2002-08-22 Andrew Cagney <cagney@redhat.com>
4526 * NEWS: Mention that the i960 has been made obsolete.
4527 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4529 (remote-nrom.o): Obsolete target.
4530 (remote-nindy.o, i960-tdep.o): Ditto.
4531 * remote-nrom.c: Make file obsolete.
4532 * remote-nindy.c, remote-vx960.c: Ditto.
4533 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4534 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4535 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4536 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4537 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4538 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4539 i960-*-vxworks* obsolete.
4540 * MAINTAINERS: Note that the i960 is obsolete.
4542 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4544 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4545 detach to allow reinitialization.
4547 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4549 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4552 2002-08-22 Jim Blandy <jimb@redhat.com>
4554 * coffread.c (coff_symfile_read): Don't try to read the line
4555 number table from disk if the image file doesn't have a symbol
4556 table; we'll never actually look at the info anyway, and Windows
4557 ships DLL's with bogus file offsets for the line number data.
4559 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4561 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4564 2002-08-21 Michael Snyder <msnyder@redhat.com>
4566 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4567 (MSYMBOL_SIZE): Replace macro with function.
4568 (DEFAULT_MIPS_TYPE): Delete unused macro.
4569 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4570 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4572 2002-08-21 Jim Blandy <jimb@redhat.com>
4574 * valops.c (value_cast): Simplify and correct logic for doing a
4575 static cast from a pointer to a base class to a pointer to a
4578 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4580 * infcmd.c (default_print_registers_info): Replace
4582 (registers_info): Use gdbarch_print_registers_info instead of
4584 * inferior.h (default_print_registers_info): Replace
4586 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4587 (DO_REGISTERS_INFO): Change to a predicate function.
4588 * gdbarch.h, gdbarch.c: Regenerate.
4590 2002-08-21 Keith Seitz <keiths@redhat.com>
4592 * gdb-events.sh: Add target-changed event.
4593 * gdb-events.c: Regenerated.
4594 * gdb-events.c: Regenerated.
4595 * valops.c (value_assign): Add target-changed event notification
4596 to inlval_register, lval_memory, and lval_reg_frame_relative.
4598 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4600 * NEWS: Add an entry regarding the improvement of the next/step
4601 operation on Alpha Tru64 multi-processor machines.
4603 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4605 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4607 * Makefile.in: Update all _h macro definitions.
4608 * Makefile.in (install-gdbtk): Move to install section.
4609 (rdi-share/libangsd.a): Move to end of file.
4611 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4613 * frame.c (frame_register_unwind): When a register, set addrp to
4614 the register's byte.
4616 2002-08-20 Michael Snyder <msnyder@redhat.com>
4618 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4619 used locally, so move them from the target machine header to here.
4620 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4621 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4623 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4625 2002-08-20 Andrew Cagney <cagney@redhat.com>
4627 * NEWS: Mention that the Apollo line was made obsolete.
4628 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4629 m68*-hp-hpux* obsolete.
4630 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4631 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4632 * buildsym.c (make_blockvector): Make static.
4633 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4634 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4635 (ALLDEPFILES): Remove dstread.c.
4636 (dstread.o): Obsolete make rule.
4637 * dstread.c: Makefile obsolete.
4639 * config/m68k/hp300hpux.mt: Ditto.
4640 * config/m68k/hp300hpux.mh: Ditto.
4641 * config/m68k/hp300bsd.mt: Ditto.
4642 * config/m68k/hp300bsd.mh: Ditto.
4643 * config/m68k/apollo68b.mt: Ditto.
4644 * config/m68k/apollo68v.mh: Ditto.
4645 * config/m68k/apollo68b.mh: Ditto.
4647 2002-08-20 Michael Snyder <msnyder@redhat.com>
4649 * mips-tdep.c (mips_in_return_stub): Make static.
4650 (mips_gdbarch_init): Set in_solib_return_trampoline.
4651 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4653 2002-08-20 Michael Snyder <msnyder@redhat.com>
4655 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4656 * gdbarch.c, gdbarch.h: Regenerate.
4657 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4659 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4661 2002-08-20 Michael Snyder <msnyder@redhat.com>
4663 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4664 (mips_gdbarch_init): Set skip_trampoline_code,
4665 in_solib_call_trampoline.
4666 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4667 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4669 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4671 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4673 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4674 vector type for ev registers.
4675 (e500_pseudo_register_read): New function.
4676 (e500_pseudo_register_write): New function.
4677 (e500_dwarf2_reg_to_regnum): New function.
4678 (PPC_UISA_NOFP_SPRS): New macro.
4679 (PPC_EV_REGS): New macro.
4680 (PPC_GPRS_PSEUDO_REGS): New macro.
4681 (registers_e500): New register set for e500.
4682 (variants): Add e500 variant.
4683 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4684 before setting architectural dependent variations. Initialize ev
4685 registers numbers. Add case for e500 architecture. Set the
4686 number of pseudo registers.
4688 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4690 * rs6000-tdep.c: Clean up comments.
4692 2002-08-20 Andrew Cagney <cagney@redhat.com>
4694 * h8300-tdep.c: Re-indent file.
4696 2002-08-20 Jim Blandy <jimb@redhat.com>
4698 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4701 2002-08-20 Keith Seitz <keiths@redhat.com>
4703 * breakpoints.c (watch_command_1): Use internal breakpoint
4704 when setting a watchpoint_scope breakpoint.
4706 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4708 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4709 (build_builtin_type_vec64i): Ditto.
4710 (build_builtin_type_vec128): Ditto.
4711 (build_builtin_type_vec128i): Ditto.
4713 2002-08-19 Michael Snyder <msnyder@redhat.com>
4715 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4716 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4717 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4718 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4719 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4720 CALL_DUMMY_ADDRESS): Delete.
4721 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4722 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4723 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4724 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4725 push_return_address.
4726 (mips_register_raw_size, mips_eabi_use_struct_convention,
4727 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4728 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4729 mips_init_extra_frame_info, mips_eabi_push_arguments,
4730 mips_n32n64_push_arguments, mips_push_return_address,
4731 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4732 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4734 2002-08-19 Michael Snyder <msnyder@redhat.com>
4736 * mips-tdep.c (mips_frame_num_args): New function.
4737 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4738 frame_saved_pc, frame_args_address, frame_locals_address,
4739 frame_num_args, and frame_args_skip.
4740 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4741 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4742 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4743 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4745 2002-08-20 Michael Snyder <msnyder@redhat.com>
4747 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4748 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4749 * mips-tdep.c (mips_store_struct_return): New function.
4750 (mips_extract_struct_value_address): New function.
4751 (mips_gdbarch_init): Set store_struct_return and
4752 extract_struct_value_address.
4754 2002-08-20 David Carlton <carlton@math.stanford.edu>
4756 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4757 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4758 (read_file_scope): Check that line_header is nonzero before
4759 decoding macro information.
4761 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4763 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4764 flag the general-purpose registers as floating-point on targets
4765 that don't support the floating-point registers.
4767 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4769 * rs6000-tdep.c (altivec_register_p): Delete.
4770 (rs6000_do_altivec_registers): Delete.
4771 (rs6000_altivec_registers_info): Delete.
4772 (rs6000_do_registers_info): Delete.
4773 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4774 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4776 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4778 * infcmd.c (do_registers_info): Print vector registers in hex
4780 (print_vector_info): Check that printing registers
4782 (print_float_info): Ditto.
4784 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4786 * mips-tdep.c (mips_gdbarch_init): Update.
4787 (mips_o32_extract_return_value): Rewrite.
4788 (mips_o32_store_return_value): Rewrite.
4789 (mips_o32_xfer_return_value): New function.
4790 (mips_xfer_register): Tweak debug print message. Allow for
4791 buf_offset when dumping the value transfered.
4793 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4795 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4796 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4797 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4798 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4799 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4801 2002-08-14 Michael Snyder <msnyder@redhat.com>
4803 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4805 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4807 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4809 (P): New macro to define a register as a pseudo register.
4810 (R, R4, R8, R16, FR32, R64, R0): Updated.
4811 (struct variant): Add new fields for number of pseudo registers
4812 and number of total registers.
4813 (tot_num_registers): New macro replacing....
4814 (num_registers): ...deleted macro.
4815 (num_registers): New function.
4816 (num_pseudo_registers): New function.
4817 (variants): Update all variants to intialize new fields correctly.
4818 Postpone initialization of number of pseudo regs and real regs.
4819 (init_variants): New function.
4820 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4823 2002-08-19 David Carlton <carlton@math.stanford.edu>
4825 * valops.c (search_struct_field): Change error message to treat
4826 return value of 0 from value_static_field as meaning that field is
4828 (value_struct_elt_for_reference): Ditto.
4829 * values.c (value_static_field): Treat an unresolved location the
4830 same as a nonexistent symbol. Fix PR gdb/635.
4831 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4832 enclosed. Fix PR gdb/574.
4833 * MAINTAINERS: Add self to Write After Approval list.
4835 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4837 * mips-tdep.c (mips_xfer_register): New function.
4838 (mips_n32n64_extract_return_value): Rewrite.
4839 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4840 instead of deprecated_extract_return_value.
4842 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4844 * rs6000-tdep.c (TDEP): Delete macro.
4845 (branch_dest): Replace use of TDEP macro with its body.
4846 (rs6000_pop_frame): Ditto.
4847 (rs6000_push_arguments): Ditto.
4848 (rs6000_skip_trampoline_code): Ditto.
4849 (rs6000_frame_saved_pc): Ditto.
4850 (rs6000_frame_chain): Ditto.
4851 (rs6000_register_name): Ditto.
4852 (rs6000_register_byte): Ditto.
4853 (rs6000_register_raw_size): Ditto.
4854 (rs6000_register_virtual_type): Ditto.
4855 (rs6000_register_convertible): Ditto.
4856 (rs6000_convert_from_func_ptr_addr): Ditto.
4858 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4860 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4862 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4863 MIPS_LINUX_JB_ELEMENT_SIZE.
4864 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4865 for MAX_REGISTER_RAW_SIZE arrays.
4866 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4867 MIPS_LINUX_JB_ELEMENT_SIZE.
4869 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4871 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4873 2002-08-19 Aidan Skinner <aidan@velvet.net>
4875 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4876 ada-valprint.c ada-tasks.c.
4877 (YYFILES): Add ada-exp.y.
4878 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4879 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4880 (ada-exp.tab.o): New target.
4882 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4884 * regcache.c (regcache_xfer_part): New function.
4885 (regcache_raw_read_part): New function.
4886 (regcache_raw_write_part): New function.
4887 (regcache_cooked_read_part): New function.
4888 (regcache_cooked_write_part): New function.
4889 * regcache.h (regcache_raw_read_part): Declare.
4890 (regcache_raw_write_part): Declare.
4891 (regcache_cooked_read_part): Declare.
4892 (regcache_cooked_write_part): Declare.
4894 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4896 * remote.c (remote_open_1): Add async_p.
4897 (remote_async_open_1): Delete.
4898 (open_remote_target): Delete.
4899 (remote_open, extended_remote_open): Update calls to remote_open_1.
4900 (remote_async_open, extended_remote_async_open): Call
4901 remote_open_1 instead of remote_async_open_1.
4903 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4905 * blockframe.c: Fix a few coding standard violations.
4907 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4909 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4911 * config/i386/tm-i386sco5.h: ... here. File removed.
4912 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4914 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4915 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4916 (TM_FILE): Set to tm-i386.h.
4917 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4918 * config/i386/tm-i386v.h: Remove file.
4919 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4920 instead of "i386/tm-i386v.h".
4921 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4922 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4924 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4925 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4928 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4930 * config/i386/nm-i386v.h: Add protection against
4932 (i386_register_u_addr): Remove prototype.
4933 (register_u_addr): New prototype.
4934 (REGISTER_U_ADDR): Redefine accordingly.
4935 * i386v-nat.c: Improve several comments.
4936 (i386_register_u_addr): Change signature and rename to
4937 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4940 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4942 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4943 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4944 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4945 deprecated_extract_return_value.
4946 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4947 rename mips_o32o64_push_arguments.
4948 (mips_gdbarch_init): Update.
4949 (mips_extract_return_value): Delete.
4950 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4951 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4952 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4953 (mips_n32n64_extract_return_value): Clone
4954 mips_extract_return_value.
4955 (mips_store_return_value): Delete.
4956 (mips_o32_store_return_value): Clone mips_store_return_value.
4957 (mips_o64_store_return_value): Clone mips_store_return_value.
4958 (mips_eabi_store_return_value): Clone mips_store_return_value.
4959 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4961 2002-08-18 Aidan Skinner <aidan@velvet.net>
4963 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4964 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4966 2002-08-18 Aidan Skinner <aidan@velvet.net>
4968 * ada-lang.c: Run through gdb_indent.sh.
4969 * ada-lang.h: Run through gdb_indent.sh.
4970 * ada-tasks.c: Run through gdb_indent.sh.
4971 * ada-typeprint.c: Run through gdb_indent.sh.
4972 * ada-valprint.c: Run through gdb_indent.sh.
4974 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4976 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4979 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4981 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4983 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4984 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4986 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4987 write_register_gen instead of write_register_bytes.
4989 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4990 i[3456]-*-osf1mk* configurations have been made obsolete.
4991 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4992 i[3456]86-*-osf1mk* hosts obsolete.
4993 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4995 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4996 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4997 config/i386/i386m3.mt, config/i386/nm-m3.h,
4998 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4999 config/i386/i386mk.mh, config/i386/i386mk.mt,
5000 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5002 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5003 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5004 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5006 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5008 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5009 (hppa_value_returned_from_stack): Declare.
5010 (hppa_extract_return_value): Declare.
5011 * config/pa/hppa.mt: New file.
5012 * configure.tgt: Recognize hppa*-*-*.
5013 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5015 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5017 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5020 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5022 * top.c (gdb_rl_operate_and_get_next): Make sure
5023 operate-and-get-next functions correctly even when the history
5024 list is completely filled.
5026 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5028 * MAINTAINERS (Target Instruction Set Architectures): Rename
5029 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5030 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5031 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5032 already listed under Host/Native.
5034 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5035 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5038 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5040 * config/ia64/ia64.mt: New file.
5041 * config/alpha/alpha.mt: New file.
5042 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5043 ia64-linux-gnu. Mention that ia64-elf is broken.
5044 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5046 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5048 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5049 generic_func_frame_valid instead of func_frame_valid.
5051 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5053 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5054 procfs appears to be broken when debugging on multi-processor
5055 machines. So enable software single stepping in order to avoid
5056 using the procfs interface to do next/step operations, using
5057 internal breakpoints instead.
5059 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5060 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5061 make this pc address equal to the value it would have if the
5062 system stepping capability was used. Also set a new flag used
5063 to ensure that we don't readjust the PC one more time later.
5065 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5066 address by DECR_PC_AFTER_BREAK when software single step is
5067 in use for this architecture, as this has already been taken
5068 care of in handle_inferior_event().
5070 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5072 * infrun.c (handle_inferior_event): Minor reformatting, to make
5073 a rather long condition expression easier to read.
5075 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5077 * Makefile.in (gdbtk.o): Move to end of file.
5078 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5079 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5080 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5081 (gdbtk-wrapper.o, gdbres.o): Ditto.
5083 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5085 * Makefile.in (copying.o): Separate out compile rule.
5086 (hpux-thread.o, procfs.o, signals.o): Ditto.
5087 (v850ice.o, z8k-tdep.o): Ditto.
5088 (tui-file.o): Move to TUI section.
5089 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5090 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5092 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5094 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5095 skip_trampoline_code, for better namespace-proofing.
5097 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5099 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5101 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5103 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5105 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5106 signal, check whether we hit a breakpoint before checking for a
5107 single step breakpoint. Otherwise, GDB fails to notice that a
5108 breakpoint has been hit when stepping onto a breakpoint.
5110 2002-08-16 Keith Seitz <keiths@redhat.com>
5112 * gdb-events.sh (clear_gdb_event_hooks): New function.
5113 * gdb-events.c: Regenerate.
5114 * gdb-events.h: Regenerate.
5116 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5118 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5119 not_a_sw_breakpoint.
5120 * breakpoint.h (bpstat_stop_status): Add parameter names.
5122 2002-08-16 Grace Sainsbury <graces@redhat.com>
5124 * remote.c (remote_insert_hw_breakpoint)
5125 (remote_remove_hw_breakpoint): Fix calculation of length field
5128 2002-08-15 Michael Snyder <msnyder@redhat.com>
5130 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5131 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5132 (supply_fpregset): Ditto.
5134 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5135 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5136 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5137 (TARGET_READ_SP): Delete.
5138 (DO_REGISTERS_INFO): Delete.
5139 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5141 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5142 from macros to functions.
5144 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5145 (mips_register_convertible, mips_register_convert_to_virtual,
5146 mips_register_convert_to_raw): Make static.
5147 (mips_read_sp): New function.
5148 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5149 (mips_do_registers_info): Make static.
5150 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5151 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5152 (mips_register_convert_from_type, mips_register_convert_to_type):
5154 (mips_gdbarch_init): Set up function_start_offset,
5155 register_virtual_size, pc_in_sigtramp.
5157 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5159 * infcmd.c (vector_info): New function.
5160 (_initialize_infcmd): Add command "info vector".
5161 (print_vector_info): New function.
5163 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5164 * gdbarch.h, gdbarch.c: Regenerate.
5166 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5168 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5169 ``print_all''. Only print vector registers when ``print_all''.
5171 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5173 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5174 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5176 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5177 Add `args' parameter.
5178 * gdbarch.h, gdbarch.c: Regenerate.
5180 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5182 * infcmd.c (float_info): Call print_float_info.
5183 (print_float_info): New function. By default, print the
5184 floating-point registers.
5186 * arch-utils.h (default_print_float_info): Delete declaration.
5187 * arch-utils.c (default_print_float_info): Delete function.
5189 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5191 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5194 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5197 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5198 * configure.host: Make i[3456]86-*-aix host obsolete.
5199 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5200 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5201 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5202 config/i386/xm-i386aix.h: Make files obsolete.
5203 * i386aix-nat.c: Make file obsolete.
5204 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5205 (i386aix-nat.o): Make target obsolete.
5207 * config/i386/nm-gnu.h: Removed.
5208 * config/i386/nm-i386gnu.h: New file.
5209 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5210 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5212 * config/i386/tm-i386gnu.h: ... here. Removed.
5213 * config/i386/xm-i386gnu.h: Removed.
5214 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5215 (NAT_FILE): Set to nm-i386gnu.h.
5216 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5217 * i386-tdep.c: New file.
5218 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5219 (i386gnu-tdep.o): Specify dependencies.
5221 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5223 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5224 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5225 Adjust a few comments to reflect reality a bit closer.
5226 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5227 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5228 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5229 target_insert_watchpoint, target_remove_watchpoint):
5231 * config/i386/nm-i386sco5.h: ... here.
5232 (kernel_u_size): Add prototype. Improve a few comments and add
5233 protection against multiple inclusion.
5235 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5238 * uw-thread.c (SP_ARG0): Define if not already defined.
5239 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5241 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5243 * config/i386/tm-i386.h: Don't include "regcache.h".
5245 * i387-tdep.h (i387_print_float_info): New prototype.
5246 * i387-tdep.c (print_i387_value, print_i387_ext,
5247 print_i387_status_word, print_i387_control_word): Add `struct
5248 ui_file *' argument and use it for output.
5249 (i387_print_float_info): Renamed from i387_float_info. Add
5250 `struct gdbarch *' and `struct ui_file *' arguments and use the
5252 * i386-tdep.c: Include "i387-tdep.h".
5253 (i386_gdbarch_init): Set print_float_info.
5254 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5255 (FLOAT_INFO): Remove define.
5257 2002-08-13 Michael Snyder <msnyder@redhat.com>
5259 * mips-tdep.c (mips_push_arguments): Rename to
5260 mips_eabi_push_arguments, and tune for EABI.
5261 (MIPS_REGS_HAVE_HOME_P): Delete.
5262 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5263 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5264 Delete references to mips_regs_have_home_p.
5266 2002-08-14 Keith Seitz <keiths@redhat.com>
5268 * Makefile.in (install-gdbtk): Create insight plugin directory.
5269 Install plugins.tcl file.
5271 2002-08-14 Keith Seitz <keiths@redhat.com>
5273 * configure.in: Move SUBDIRS to near top of the file so that
5274 --enable options may add things to it.
5275 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5276 * configure: Regenerate.
5278 2002-08-13 Michael Snyder <msnyder@redhat.com>
5280 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5281 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5282 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5284 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5286 * vax-tdep.c (vax_get_saved_register): Delete function.
5287 (vax_gdbarch_init): Update.
5288 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5289 (ns32k_gdbarch_init): Update.
5290 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5291 (alpha_gdbarch_init): Update.
5293 2002-08-13 Andrew Cagney <cagney@redhat.com>
5295 * regcache.c (init_regcache_descr): Overallocate the
5296 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5297 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5299 (set_register_cached): Add range checking assertions. Use
5302 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5304 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5305 numbers for MMX registers.
5307 2002-08-13 Andrew Cagney <cagney@redhat.com>
5309 * i386-tdep.c (i386_gdbarch_init): Use
5310 generic_unwind_get_saved_register.
5312 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5314 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5315 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5317 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5318 Delete. Add comment regarding this now-deleted target method.
5320 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5322 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5323 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5324 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5325 real PC and the page number (if it's within the memory bank window).
5326 (m68hc11_pseudo_register_write): Likewise when saving.
5327 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5328 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5329 (m68hc11_register_raw_size): And use 32-bit for it.
5330 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5331 16K memory bank is used by the prog; also use the virtual pc.
5333 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5335 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5336 (m68hc11_gdbarch_init): Install it in gdbarch.
5337 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5338 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5339 (MSYMBOL_SIZE): New for documentation.
5340 (insn_return_kind): Enum to specify how a function returns.
5341 (frame_extra_info): Cleanup and record the return mode.
5342 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5343 register in address computation.
5344 (m68hc11_get_return_insn): New to obtain the return instruction used
5346 (m68hc11_frame_init_saved_regs): Take into account the return
5347 instruction used by the function for far and interrupt functions.
5348 (m68hc11_init_extra_frame_info): Take into account page register.
5349 (m68hc11_frame_args_address): Adjust according to the return mode.
5350 (show_regs): Print page register only when it's used.
5352 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5354 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5355 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5356 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5358 (m68hc11_register_raw_size): Likewise.
5360 2002-08-13 Andrew Cagney <cagney@redhat.com>
5362 * i386-tdep.c (i386_register_name): Handle mmx registers.
5363 (mmx_regnum_p): New function.
5364 (i386_mmx_names): New array.
5365 (mmx_num_regs): New variable.
5366 (i386_pseudo_register_read): New function.
5367 (i386_pseudo_register_write): New function.
5368 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5370 * regcache.c (regcache_raw_read_unsigned): New function.
5371 (regcache_raw_read_signed): New function.
5372 * regcache.h (regcache_raw_read_unsigned): Declare.
5373 (regcache_raw_read_signed): Declare.
5375 2002-08-13 Andrew Cagney <cagney@redhat.com>
5377 * regcache.c (regcache_raw_read_as_address): Delete function.
5378 (regcache_cooked_read_signed): New function.
5379 (regcache_cooked_read_unsigned): New function.
5380 * regcache.h (regcache_cooked_read_signed): Declare.
5381 (regcache_cooked_read_unsigned): Declare.
5382 (regcache_raw_read_as_address): Delete declaration.
5384 * blockframe.c (generic_read_register_dummy): Use
5385 regcache_cooked_read_unsigned.
5386 * i386-tdep.c (i386_extract_struct_value_address): Use
5387 regcache_cooked_read_unsigned.
5389 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5391 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5392 double sizes according to ELF ABI flags.
5393 (gdbarch_tdep): Record elf_flags.
5395 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5397 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5398 (m6812_prolog): They can appear in 68HC12 function prologue.
5399 (m68hc11_frame_chain): Cleanup.
5401 2002-08-12 Andrew Cagney <cagney@redhat.com>
5403 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5405 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5406 (i386_linux_register_raw_size): Delete function.
5407 (i386_linux_init_abi): Update.
5408 * i386-tdep.c (i386_register_raw_size): Delete function.
5409 (i386_register_byte): Delete function.
5410 (i386_gdbarch_init): Update.
5411 (i386_register_size): Delete array.
5412 (i386_register_offset): Delete array.
5414 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5415 (REGISTER_RAW_SIZE): Delete macro.
5416 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5417 (REGISTER_BYTE): Delete macro.
5419 2002-08-11 Aidan Skinner <aidan@velvet.net>
5421 * ada-lang.c (ada_lookup_partial_symbol)
5422 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5423 prototype names so that grep ^func works properly.
5425 * ada-lang.c (ada_array_element_type)
5426 (ada_lookup_partial_symbol): Fix typos in parameter list.
5428 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5429 Fix prototype names so that grep ^func works properly.
5431 2002-08-10 Andrew Cagney <cagney@redhat.com>
5432 Elena Zannoni <ezannoni@redhat.com>
5433 Martin M. Hunt <hunt@redhat.com>
5435 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5436 (build_builtin_type_vec128i): Set the vector bit.
5437 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5438 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5439 (build_builtin_type_vec64): New function.
5440 (build_builtin_type_vec64i): New function.
5441 (build_gdbtypes): Initialize builtin_type_vec64 and
5442 builtin_type_vec64i.
5444 2002-08-09 Andrew Cagney <cagney@redhat.com>
5446 * regcache.c (regcache_dump): Compare the register offset
5448 * arch-utils.c (generic_register_byte): New function.
5449 * arch-utils.h (generic_register_byte): Declare.
5450 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5451 * gdbarch.h, gdbarch.c: Regenerate.
5453 2002-08-09 Andrew Cagney <cagney@redhat.com>
5455 * regcache.c: Include "gdbcmd.h"
5456 (_initialize_regcache): Add commands "maintenance print
5457 registers", "maintenance print raw-registers" and "maintenance
5458 print cooked-registers".
5459 (enum regcache_dump_what): Define.
5460 (dump_endian_bytes): New function.
5461 (regcache_dump): New function.
5462 (regcache_print): New function.
5463 (maintenance_print_registers): New function.
5464 (maintenance_print_raw_registers): New function.
5465 (maintenance_print_cooked_registers): New function.
5466 * Makefile.in (regcache.o): Update dependencies.
5468 2002-08-09 Michael Snyder <msnyder@redhat.com>
5470 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5471 (mips_push_arguments): Correct some comments. Use paddr_nz
5472 for printing addresses in debug output. Replace static
5473 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5474 (mips_n32n64_push_arguments): New function, cloned from
5475 mips_push_arguments and tuned for the n32/n64 ABI.
5476 (mips_push_register): Buffer needs dynamic allocation.
5477 (mips_print_register): Ditto.
5478 (do_gp_register_row): Ditto.
5479 (mips_store_return_value): Ditto.
5480 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5482 2002-08-09 Don Howard <dhoward@redhat.com>
5484 * memattr.c (mem_info_command): Print special case of upper bound
5485 as max CORE_ADDR + 1.
5487 2002-08-08 Michael Snyder <msnyder@redhat.com>
5489 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5490 returns structs by ref if they're too big to fit in two registers.
5492 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5494 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5496 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5497 mips_find_saved_regs().
5498 (mips_pop_frame): Likewise.
5500 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5502 * blockframe.c (frame_saved_regs_register_unwind): Revise
5503 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5506 2002-08-09 Grace Sainsbury <graces@redhat.com>
5508 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5509 T-packets; the 'a' is not taken as a register number.
5510 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5511 (remote_stopped_data_address): New functions; add to target
5513 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5514 prototypes to match other implementations of this
5515 function. replace integer argument with pointer -- the length
5516 field in the Z-packet is the length of what is pointed to or 1 if
5517 pointer is null. Add to target vector.
5518 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5522 * remote.c (remote_wait): Add support to extract optional
5523 watchpoint information from T-packet. Ignore unrecognized
5524 optional info in T-packet.
5525 (remote_async_wait): Ditto.
5527 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5529 * cli/cli-dump.c: Change fopen modes to use binary open modes
5530 as defined in include/fopen-bin.h throughout.
5532 2002-08-08 Michael Snyder <msnyder@redhat.com>
5534 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5536 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5538 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5539 assertion failure by returning early after a warning.
5541 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5543 * mips-tdep.c (mips_find_saved_regs): Make static.
5544 (mips_frame_init_saved_regs): New function.
5545 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5546 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5547 (mips_find_saved_regs): Delete declaration.
5549 2002-08-08 Grace Sainsbury <graces@redhat.com>
5551 * remote.c (remote_wait, remote_async_wait): Change
5552 thread_num from int to ULONGEST.
5553 (unpack_varlen_hex): Change result parameter from
5554 int * to ULONGEST *.
5556 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5558 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5559 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5561 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5563 2002-08-08 Andrew Cagney <cagney@redhat.com>
5565 * gcore.c (override_derive_stack_segment): Delete variable.
5566 (preempt_derive_stack_segment): Delete function.
5567 (derive_stack_segment): Delete function.
5568 (default_derive_stack_segment): Renamed to derive_stack_segment.
5569 (override_derive_heap_segment): Delete variable.
5570 (preempt_derive_heap_segment): Delete function.
5571 (derive_heap_segment): Delete function.
5572 (default_derive_heap_segment): Rename to derive_heap_segment.
5574 2002-08-06 Michael Snyder <msnyder@redhat.com>
5576 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5577 * mips-tdep.c (mips_EABI_use_struct_convention,
5578 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5579 New functions. (mips_use_struct_convention): Delete.
5580 (mips_gdbarch_init): set use_gdbarch_convention.
5582 2002-08-06 Michael Snyder <msnyder@redhat.com>
5584 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5585 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5586 mips_o32_reg_struct_has_addr): New functions.
5587 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5589 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5591 * regcache.c (pseudo_register): Delete function.
5592 (fetch_register): Delete function.
5593 (store_register): Delete function.
5594 (regcache_raw_read, legacy_read_register_gen): Use
5595 target_fetch_registers instead of fetch_register.
5596 (legacy_write_register_gen, regcache_raw_write): Use
5597 target_store_register instead of store_register.
5598 (write_register_bytes): Ditto.
5600 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5601 (STORE_PSEUDO_REGISTER): Delete.
5602 * gdbarch.h, gdbarch.c: Regenerate.
5604 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5606 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5607 write dump file binary.
5609 2002-08-05 Michael Snyder <msnyder@redhat.com>
5611 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5612 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5613 (mips_gdbarch_init): Set N32 target to be mips64.
5615 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5617 * frame.c (find_saved_register): Break out of loop once saved
5618 register address is found. Don't mention sparc in loop comment
5621 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5623 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5624 mips_default_saved_regsize to 8.
5626 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5628 * gcore.c: Do not include <sys/procfs.h>.
5629 * Makefile.in (gcore.o): Update dependencies.
5631 2002-08-06 Andrew Cagney <cagney@redhat.com>
5633 * configure.tgt: Make arc-*-* obsolete.
5634 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5635 * MAINTAINERS: Make arc-elf obsolete.
5636 * arc-tdep.c: Make file obsolete.
5637 * config/arc/arc.mt: Ditto.
5638 * config/arc/tm-arc.h: Ditto.
5640 2002-08-05 Theodore A. Roth <troth@verinet.com>
5642 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5644 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5646 * mcore-tdep.c (mcore_gdbarch_init): Use
5647 generic_unwind_get_saved_register instead of
5648 generic_get_saved_register.
5649 * v850-tdep.c (v850_gdbarch_init): Ditto.
5650 * frv-tdep.c (frv_gdbarch_init): Ditto.
5651 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5652 * s390-tdep.c (s390_gdbarch_init): Ditto.
5653 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5654 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5655 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5657 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5659 * objfiles.h: Add missing #include "symfile.h"
5661 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5663 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5665 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5666 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5669 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5671 * NEWS: Cleanup and nitpick.
5673 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5675 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5677 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5679 * Makefile.in (gdbtk-bp.o): Update dependencies.
5680 (gdbtk-register.o): Ditto.
5681 (gdbtk-varobj.o): Ditto.
5683 2002-08-03 Andrew Cagney <cagney@redhat.com>
5685 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5686 m68hc11_fetch_pseudo_register.
5687 (m68hc11_pseudo_register_write): Replace
5688 m68hc11_store_pseudo_register.
5689 (m68hc11_gdbarch_init): Update.
5691 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5693 * gdbarch.sh: Include "gdb_string.h".
5694 * gdbarch.c: Regenerate.
5696 * regcache.c: Include "gdb_string.h".
5697 * ax-general.c: Ditto.
5699 * std-regs.c: Ditto.
5700 * fbsd-proc.c: Ditto.
5703 * Makefile.in (regcache.o): Update dependencies.
5704 (thread.o, gdbarch.o): Ditto.
5705 (ax-general.o, gdbarch.o): Ditto.
5706 (varobj.o, std-regs.o): Ditto.
5707 (fbsd-proc.o): Specify dependencies.
5709 2002-08-02 Andrew Cagney <cagney@redhat.com>
5711 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5713 (regcache_cooked_write): Ditto.
5715 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5717 * regcache.c (regcache_cooked_read): New function.
5718 (regcache_cooked_write): New function.
5719 (read_register_gen): Rewrite using regcache_cooked_read.
5720 (write_register_gen): Rewrite using regcache_cooked_write.
5722 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5725 2002-08-02 Andrew Cagney <cagney@redhat.com>
5727 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5728 Replace the architecture methods register_read and register_write.
5729 * gdbarch.h, gdbarch.c: Regenerate.
5730 * regcache.c (init_regcache_descr): Update.
5731 (read_register_gen): Update.
5732 (write_register_gen): Update.
5733 (supply_register): Update comment.
5735 * sh-tdep.c (sh_gdbarch_init): Update.
5736 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5737 `regcache' and `gdbarch' parameters. Make `buffer' a void
5738 pointer. Update code.
5739 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5740 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5741 void pointer. Update code.
5742 (sh64_register_write): Delete.
5743 (sh4_register_read): Delete.
5744 (sh64_register_read): Delete.
5745 (sh4_register_write): Delete.
5746 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5747 void pointer, `to' parameter a void pointer.
5748 (sh_sh64_register_convert_to_raw): Ditto.
5750 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5752 * mips-tdep.c (mips_register_virtual_type): Use architecture
5753 invariant return values.
5755 2002-08-01 Andrew Cagney <cagney@redhat.com>
5757 * linux-proc.c: Include "gdb_string.h".
5758 * Makefile.in (linux-proc.o): Update dependency list.
5760 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5762 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5765 2002-08-01 Grace Sainsbury <graces@redhat.com>
5767 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5768 to_insert_watchpoint, to_remove_watchpoint,
5769 to_stopped_by_watchpoint, to_stopped_data_address,
5770 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5771 target vecctor. Define their corresponding macros so they call
5774 * target.c: Add default and debug versions of for
5775 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5776 to_insert_watchpoint, to_remove_watchpoint,
5777 to_stopped_by_watchpoint, to_stopped_data_address,
5778 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5780 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5782 * mips-tdep.c (mips_register_virtual_type): New function.
5783 (mips_gdbarch_init): Register mips_register_virtual_type()
5784 with gdbarch machinery.
5785 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5786 this file instead of tm-bigmips.h.
5787 (MIPS_REGSIZE): Delete this macro.
5788 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5789 multiarch version in mips-tdep.c will be found.
5791 2002-08-01 Andrew Cagney <cagney@redhat.com>
5793 * NEWS: Menion that CHILL has been made obsolete.
5795 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5796 * stabsread.c (read_range_type): Ditto.
5797 * gdbtypes.h: Ditto.
5798 * language.c (binop_type_check): Ditto.
5799 (binop_result_type): Ditto.
5800 (integral_type): Ditto.
5801 (character_type): Ditto.
5802 (string_type): Ditto.
5803 (boolean_type): Ditto.
5804 (structured_type): Ditto.
5805 (lang_bool_type): Ditto.
5806 (binop_type_check): Ditto.
5807 * language.h (_LANG_chill): Ditto.
5808 * dwarfread.c (set_cu_language): Ditto.
5809 * dwarfread.c (CHILL_PRODUCER): Ditto.
5810 * dwarfread.c (handle_producer): Ditto.
5811 * expression.h (enum exp_opcode): Ditto.
5812 * eval.c: Ditto for comments.
5813 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5814 * expprint.c (print_subexp): Ditto.
5815 (print_subexp): Ditto.
5816 * valops.c (value_cast): Ditto.
5817 (search_struct_field): Ditto.
5818 * value.h (COERCE_VARYING_ARRAY): Ditto.
5819 * symfile.c (init_filename_language_table): Ditto.
5820 (add_psymbol_with_dem_name_to_list): Ditto.
5821 * valarith.c (value_binop): Ditto.
5823 * valops.c (value_slice): Ditto.
5824 * symtab.h (union language_specific): Ditto.
5825 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5826 (SYMBOL_DEMANGLED_NAME): Ditto.
5827 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5828 * defs.h (enum language): Ditto.
5829 * symtab.c (got_symtab): Ditto.
5830 * utils.c (fprintf_symbol_filtered): Ditto.
5832 * ch-typeprint.c: Make file obsolete.
5833 * ch-valprint.c: Make file obsolete.
5834 * ch-lang.h: Make file obsolete.
5835 * ch-exp.c: Make file obsolete.
5836 * ch-lang.c: Make file obsolete.
5838 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5840 (TARGET_FLAGS_TO_PASS): Ditto.
5841 (CHILLFLAGS): Obsolete.
5843 (CHILL_FOR_TARGET): Obsolete.
5844 (CHILL_LIB): Obsolete.
5845 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5847 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5848 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5850 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5853 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5855 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5856 This does not change anything at the moment, but will be helpful
5857 later when full Ada support is integrated.
5859 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5861 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5864 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5866 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5867 and save it in a local variable. Use variable in later test.
5869 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5871 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5872 test. (Thanks to Daniel Jacobowitz.)
5874 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5876 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5877 (mips_abi_strings): Add "n64".
5878 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5880 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5882 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5883 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5885 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5887 * utils.c (host_pointer_to_address, address_to_host_pointer):
5888 Use gdb_assert() instead of explicit call to internal_error().
5890 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5892 * Makefile.in (rs6000-nat.o): Update dependencies.
5894 From Nicholas Duffek:
5895 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5896 (aix-thread.o): New rule.
5897 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5898 * config/powerpc/aix432.mh: New file.
5900 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5902 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5903 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5904 (fetch_core_registers, ppc_linux_supply_gregset)
5905 (ppc_linux_supply_fpregset): New functions.
5906 (ppc_linux_regset_core_fns): New.
5907 (_initialize_ppc_linux_tdep): Call add_core_fns.
5908 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5909 and ppc_linux_supply_gregset.
5910 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5911 (supply_fpregset): Call ppc_linux_supply_fpregset.
5912 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5914 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5916 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5918 * symtab.c (lookup_symbol): Demangle before lowercasing.
5920 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5922 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5924 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5925 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5926 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5927 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5929 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5930 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5931 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5932 (avr-tdep.o, mon960-rom.o): Ditto.
5933 (aout_stabs_gnu_h): Define.
5934 (symtab_h): Remove $(gdb_obstack_h).
5936 2002-07-30 Jim Blandy <jimb@redhat.com>
5938 Patch from David Carlton <carlton@math.stanford.edu>:
5939 * gdbinit.in: Move the `dir' commands that add GDB's own source
5940 directory to the search path to the end, so that the `gdb' source
5941 directory will be searched first.
5943 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5945 * gdb_obstack.h: New file.
5946 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5947 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5948 * objfiles.h: Include "gdb_obstack.h".
5949 * Makefile.in (gdb_obstack_h): Define.
5950 (symtab_h): Add $(gdb_obstack_h).
5951 (objfiles_h): Add $(gdb_obstack_h).
5953 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5954 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5955 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5956 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5957 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5958 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5959 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5960 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5962 * Makefile.in (bcache.o): Update dependencies.
5963 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5964 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5965 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5966 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5967 (stabsread.o, symfile.o, symmisc.o): Ditto.
5968 (symtab.o, typeprint.o, macroexp.o): Ditto.
5969 (macrotab.o, mdebugread.o): Ditto.
5970 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5971 (coff_ecoff_h, aout_aout64_h): Define.
5972 (aout_stabs_gnu_h, libaout_h): Define.
5974 2002-07-29 Andrew Cagney <cagney@redhat.com>
5976 * regcache.c (struct regcache_descr): Rename nr_registers to
5977 nr_cooked_registers. Revise comments describing the structure
5979 (init_regcache_descr): Update.
5980 (init_legacy_regcache_descr): Update.
5981 (read_register_gen, write_register_gen): When a cooked register in
5982 the raw register range, directly access the value from the raw
5985 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5987 * z8k-tdep.c: Do not include "obstack.h".
5988 * h8300-tdep.c, h8500-tdep.c: Ditto.
5989 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5990 * valprint.c, v850-tdep.c: Ditto.
5991 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5992 * mn10200-tdep.c: Ditto.
5994 * Makefile.in (z8k-tdep.o): Update dependencies.
5995 (m68hc11-tdep.o, valprint.o): Ditto.
5996 (v850-tdep.o, d10v-tdep.o): Ditto.
5997 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5998 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5999 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6000 (sh_opc_h, gdb_sim_sh_h): Define.
6001 (elf_sh_h, elf_bfd_h): Define.
6002 (opcode_m68hc11_h): Define.
6003 (OPCODES_SRC, OPCODES_DIR): define.
6004 (OPCODES): Use $(OPCODES_DIR).
6005 (gdb_sim_d10v_h): Rename sim_d10v_h.
6006 (gdb_sim_arm_h): Rename sim_arm_h.
6008 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6010 * utils.c (host_pointer_to_address, address_to_host_pointer):
6011 Change internal_error() message to indicate function responsible
6014 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6016 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6017 calls to local_hex_string_custom().
6019 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6021 * irix5-nat.c: Move IRIX shared library support from here...
6022 * solib-irix.c: ...to here. Revised substantially to work with
6023 generic solib framework.
6025 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6026 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6027 * mips-irix-tdep.c: New file.
6029 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6030 (mips-irix-tdep.o, solib-irix.o): New rules.
6031 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6033 * config/mips/irix6.mt (TDEPFILES): Likewise.
6034 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6036 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6038 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6039 disabled (via ``#if 0'') includes.
6041 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6043 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6044 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6045 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6046 Add support for the fpscr register.
6047 * rs6000-nat.c (regmap, fetch_inferior_registers)
6048 (store_inferior_registers, fetch_core_registers): Likewise.
6050 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6052 * rs6000-nat.c (language.h): Include.
6053 (special_regs): Delete this array.
6054 (regmap): New function.
6055 (fetch_register, store_register): Use regmap() to map gdb
6056 register numbers to ptrace register numbers. Also, use
6057 outputs from regmap() to make decisions regarding type of
6058 ptrace() call to make. In particular, don't compare against
6059 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6060 (fetch_inferior_registers, store_inferior_registers): Where
6061 possible, obtain register numbers from tdep struct. Don't
6062 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6063 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6064 (LAST_UISA_SP_REGNUM): Delete.
6066 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6068 * rs6000-nat.c (ppc-tdep.h): Include.
6069 (fetch_registers, store_register, fetch_core_registers): Don't
6070 access registers[] directly. Instead, use supply_register() or
6071 regcache_collect() as appropriate.
6072 (find_toc_address): Format hex address with local_hex_string().
6074 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6076 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6079 2002-07-24 Tom Tromey <tromey@redhat.com>
6081 * jv-exp.y: Marked all strings with _().
6082 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6084 (MethodInvocation, CastExpression, parse_number, yyerror,
6085 java_type_from_name, push_expression_name, yylex): Typo fixes.
6087 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6089 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6090 (tee_file_flush, tee_file_write, tee_file_fputs)
6091 (tee_file_isatty): New.
6092 * ui-file.h (tee_file_new): Add prototype.
6094 2002-07-24 Aidan Skinner <aidan@velvet.net>
6096 * ada-lang.c: Change k&r style function definitions to prototyped
6098 * ada-typeprint.c: Change k&r style function definitions to prototyped
6100 * ada-valprint.c: Change k&r style function definitions to prototyped
6103 2002-07-24 Andrew Cagney <cagney@redhat.com>
6105 * README: Remove reference to remote-bug.
6106 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6108 (m88k-nat.o): Delete rule.
6109 (m88k-tdep.o): Delete rule.
6110 (remote-bug.o): Delete rule.
6111 * MAINTAINERS: Mark as obsolete.
6112 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6113 * m88k-tdep.c: Make file obsolete.
6114 * config/m88k/m88k.mh: Ditto.
6115 * config/m88k/delta88v4.mh: Ditto.
6116 * config/m88k/delta88v4.mt: Ditto.
6117 * config/m88k/delta88.mt: Ditto.
6118 * config/m88k/delta88.mh: Ditto.
6119 * remote-bug.c: Ditto.
6120 * config/m88k/tm-delta88.h: Ditto.
6121 * config/m88k/nm-delta88v4.h: Ditto.
6122 * config/m88k/xm-delta88.h: Ditto.
6123 * config/m88k/xm-dgux.h: Ditto.
6124 * config/m88k/tm-m88k.h: Ditto.
6125 * config/m88k/nm-m88k.h: Ditto.
6126 * config/m88k/tm-delta88v4.h: Ditto.
6127 * m88k-nat.c: Ditto.
6128 * cxux-nat.c: Ditto.
6129 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6130 and m88*-*-* obsolete.
6131 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6134 2002-07-24 Andrew Cagney <cagney@redhat.com>
6136 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6137 constant. Same for local pointer variables.
6138 (extract_signed_integer): Ditto.
6139 * defs.h (extract_unsigned_integer): Update.
6140 (extract_signed_integer): Update.
6142 2002-07-24 Andrew Cagney <cagney@redhat.com>
6144 * regcache.c (regcache_raw_write): Change buf parameter to a
6145 constant void pointer.
6146 (regcache_raw_read): Change buf parameter to a void pointer.
6147 (legacy_write_register_gen): Change myaddr parameter a constant
6149 (supply_register): Change val parameter to a const void pointer.
6150 * regcache.h (regcache_raw_write): Update declaration.
6151 (regcache_raw_read): Update declaration.
6152 (supply_register): Update declaration.
6154 2002-07-24 Tom Tromey <tromey@redhat.com>
6156 * defs.h (gdb_readline_wrapper): Declare.
6157 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6158 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6159 * top.c (gdb_readline_wrapper): New function.
6160 (command_line_input): Use it.
6162 2002-07-24 Andrew Cagney <cagney@redhat.com>
6164 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6165 regcache_read and regcache_write.
6166 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6167 * regcache.c: Update.
6168 * sh-tdep.c (sh64_push_arguments): Update comment.
6169 (sh_pseudo_register_read): Update.
6170 (sh_pseudo_register_write): Update.
6171 (sh4_register_read): Update.
6172 (sh4_register_write): Update.
6173 (sh64_pseudo_register_read): Update.
6174 (sh64_pseudo_register_write): Update.
6175 (sh64_register_read): Update.
6176 (sh64_register_write): Update.
6177 * i386-tdep.c (i386_extract_return_value): Update.
6178 (i386_extract_struct_value_address): Update.
6179 (i386_extract_return_value): Update.
6180 * blockframe.c (generic_read_register_dummy): Update.
6181 (generic_call_dummy_register_unwind): Update
6182 * infrun.c (write_inferior_status_register): Update.
6184 2002-07-23 Jim Blandy <jimb@redhat.com>
6186 * parser-defs.h (expression_context_pc): Make this extern.
6187 (Thanks to Michael Snyder.)
6189 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6191 GDB 5.2.1 released from 5.2 branch.
6192 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6193 * README: Update to mention 5.2.1.
6195 2002-07-23 Mark Salter <msalter@redhat.com>
6197 * remote.c (remote_read_bytes): Fix check for error.
6199 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6201 * aix-thread.c (language.h): Include.
6202 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6203 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6204 Print newlines at end of debug messages.
6205 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6206 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6208 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6210 * aix-thread.c (ppc-tdep.h): Include.
6211 (special_register_p): New function.
6212 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6213 (store_regs_user_thread): Use register number information from
6214 gdbarch_tdep struct instead of hardcoded offsets relative to
6215 FIRST_UISA_SP_REGNUM.
6216 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6217 special_register_p() instead of using FPLAST_REGNUM and
6218 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6219 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6220 will be MQ's register number.
6222 2002-07-22 Michael Snyder <msnyder@redhat.com>
6224 * aix-thread.c (ops): Rename to aix_thread_ops.
6225 (base_ops): Rename to base_target.
6226 (ops_attach): Rename to aix_thread_attach.
6227 (ops_detach): Rename to aix_thread_detach.
6228 (ops_resume): Rename to aix_thread_detach.
6229 (ops_wait): Rename to aix_thread_wait.
6230 (ops_kill): Rename to aix_thread_kill.
6231 (init_ops): Rename to init_aix_thread_ops.
6232 (ops_fetch_register): Rename to aix_thread_fetch_register.
6233 (ops_store_register): Rename to aix_thread_store_register.
6234 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6235 (ops_thread_alive): Rename to aix_thread_thread_alive.
6236 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6237 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6238 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6239 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6240 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6241 (store_regs_lib): Rename to store_regs_user_thread.
6242 (store_regs_kern): Rename to store_regs_kernel_thread.
6244 2002-07-22 Michael Snyder <msnyder@redhat.com>
6246 * aix-thread.c (ops_prepare_to_store): Eliminate.
6247 (init_ops): Don't initialize ops.prepare_to_store.
6248 (store_regs_kern): Pre-fetch register buffers from child,
6249 because some registers may not be in the cache. Copy
6250 regs from register cache only if they are cached.
6251 (store_regs_lib): Copy regs from register cache only
6253 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6254 fill_gprs64): Ditto.
6256 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6258 * aix-thread.c (gdb_assert.h): Include.
6259 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6260 register sizes (from register cache) match size of buffer holding
6262 (fill_sprs32): Change parameter types to match those in the ptrace()
6264 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6265 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6267 2002-07-22 Michael Snyder <msnyder@redhat.com>
6269 * aix-thread.c (supply_sprs64): Cosmetic change.
6270 (supply_sprs32): Cosmetic change.
6271 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6272 (fill_sprs64): Use regcache_collect instead of read_register.
6273 (store_regs_lib): Use regcache_collect instead of
6274 read_register. Use fill_sprs32 instead of fill_sprs64,
6275 if debugging a 32-bit architecture.
6276 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6277 out of the register cache, instead of passing a pointer into
6278 the register cache directly to ptrace. Use regcache_collect
6279 insteaad of read_register.
6280 (ops_prepare_to_store): Use target_read_registers instead
6281 of read_register_bytes.
6283 2002-07-20 Aidan Skinner <aidan@velvet.net>
6285 * MAINTAINERS: Add self under write after approval.
6287 2002-07-20 Aidan Skinner <aidan@velvet.net>
6289 * ada-tasks.c: Change k&r style function definitions to prototyped
6292 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6294 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6295 * x86-64-tdep.c: Include "objfiles.h".
6296 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6297 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6299 2002-07-17 Michal Ludvig <michal@suse.cz>
6301 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6302 (update_context): Initialise cfa variable.
6304 2002-07-17 Michael Snyder <msnyder@redhat.com>
6306 * aix-thread.c: Shorten some long lines.
6307 Bring comments into line with code spec.
6309 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6311 * infrun.c: Re-indent using gdb_indent.sh.
6313 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6315 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6316 Leave the indentation temporarily untouched, to minimize the diffs.
6318 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6320 * stabsread.c: Make os9k sections of the code obsolete,
6322 * stabsread.h: Make os9k sections of the code obsolete.
6324 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6326 * linux-low.c (regsets_store_inferior_registers): Add free()
6327 at the end of a loop to prevent memory leak.
6328 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6329 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6330 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6332 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6334 2002-07-17 Jim Blandy <jimb@redhat.com>
6336 * macrocmd.c (info_macro_command): Remove newline from error
6339 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6341 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6342 (sh_gdbarch_init): Use it for sh-dsp.
6344 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6346 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6347 64-bit DWARF2 format.
6349 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6351 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6352 <sys/proc.h> when not available.
6354 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6356 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6357 * stabsread.c: Make os9k sections of the code obsolete.
6358 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6359 * config/i386/i386os9k.mt: Make file obsolete.
6360 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6361 (COMMON_OBS): Remove os9kread.o
6362 (SFILES): Remove os9kread.c.
6363 (os9kread.o, remote-os9k.o): Make target obsolete.
6364 * remote-os9k.c: Make file obsolete.
6365 * os9kread.c: Make file obsolete.
6368 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6370 * NEWS: Mention that the FR30 has been made obsolete.
6371 * fr30-tdep.c: Make file obsolete.
6372 * config/fr30/tm-fr30.h: Ditto.
6373 * config/fr30/fr30.mt: Ditto.
6374 * configure.tgt: Make fr30-*-elf obsolete.
6375 * MAINTAINERS: Make fr30-elf obsolete.
6377 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6379 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6380 found is not inside a section.
6382 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6384 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6386 (pdc_realloc): Use xrealloc() instead of realloc().
6388 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6390 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6391 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6392 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6395 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6397 * aix-thread.c (ptrace_check): Eliminate goto.
6398 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6401 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6403 * aix-thread.c (gdbcmd.h): Include.
6404 (DEBUG, DBG, DBG2, dbg): Eliminate.
6405 (debug_aix_thread): New static global.
6406 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6407 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6408 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6409 invocations to DBG and DBG2 macros to test against
6410 ``debug_aix_thread'' and call fprintf_unfiltered().
6411 (_initialize_aix_thread): Add new command "set debug aix-thread".
6413 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6415 From Gerhard Tonn <TON@de.ibm.com>:
6416 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6417 instead of supply_register.
6419 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6421 * dwarf2cfi.c: Include "gdb_assert.h".
6422 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6424 (update_context): Do not use __func__. Add missing ``break''.
6425 (update_context): Do not use __func__.
6427 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6429 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6430 and its setting. Set gdbarch instruction printing functions
6431 directly. For non-rs6000 case use new function
6432 gdb_print_insn_powerpc.
6433 (gdb_print_insn_powerpc): New function.
6435 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6437 * NEWS: Mention that the d30v has been marked obsolete.
6438 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6439 * configure.tgt: Mark d30v-*-* as obsolete.
6440 * d30v-tdep.c: Mark file as obsolete.
6441 * config/d30v/d30v.mt: Ditto.
6442 * config/d30v/tm-d30v.h: Ditto.
6444 2002-07-13 Aidan Skinner <aidan@velvet.net>
6446 * ada-tasks.c (add_task_entry): replace calls to
6447 malloc() with xmalloc
6448 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6450 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6451 ada_finish_decode_line_1, all_sals_for_line
6452 ada_breakpoint_rewrite): replace calls to free() with xfree()
6454 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6456 From Nicholas Duffek (with minor changes by Martin Hunt,
6457 Louis Hamilton, and Kevin Buettner):
6458 * aix-thread.c: New file.
6460 2002-07-12 Petr Sorfa <petrs@caldera.com>
6462 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6463 complaint for invalid attribute class or form.
6464 (read_func_scope): DW_AT_frame_base
6465 better handling of DW_AT_block*.
6466 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6467 better handling of DW_AT_block*.
6468 (read_common_block): DW_AT_location
6469 better handling of DW_AT_block*.
6470 (read_partial_die): DW_AT_location better handling
6472 (new_symbol): DW_AT_external better handling of
6473 DW_AT_block*. Proper initialization of variable
6475 (attr_form_is_block): New function that returns true
6476 if the attribute's form is of DW_FORM_block*.
6478 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6480 * valops.c (find_method_list): Remove comment about
6481 removed STATIC_MEMFUNCP argument.
6482 (value_find_oload_method_list): Likewise.
6484 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6486 From Nicholas Duffek:
6487 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6488 target_new_objfile_hook.
6490 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6492 From Nicholas Duffek:
6493 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6496 2002-07-12 Andrew Cagney <cagney@redhat.com>
6498 * MAINTAINERS: Mention --enable-sim-build-warnings.
6499 (m68hc11-elf): Disable sim build warnings.
6500 (m32r-elf): Mark as broken obsolete candidate.
6501 (x86_64-linux-gnu): Mark as buildable with -Werror.
6502 (arm-elf): Change -w to ``,'' which enables warnings but not
6505 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6507 * bcache.h: Update copyright.
6508 (struct bstring, struct bcache): Move definition to "bcache.c".
6509 Replaced by opaque declaration.
6510 (bcache_xfree): Replace free_bcache.
6511 (bcache_xmalloc, bcache_memory_used): Declare.
6513 * bcache.c: Update copyright.
6514 (struct bstring, struct bcache): Moved to here from "bcache.h".
6516 (bcache_xmalloc, bcache_memory_used): New functions.
6517 (bcache_xfree): Replace function free_bcache.
6519 * Makefile.in (objfiles.o): Add $(bcache_h).
6520 (objfiles_h): Remove $(bcache_h).
6521 (symfile.o): Add $(bcache_h).
6523 * symmisc.c: Update copyright.
6524 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6525 (print_objfile_statistics): Use bcache_memory_used.
6527 * symfile.c: Include "bcache.h".
6528 (reread_symbols): Use bcache_xfree.
6529 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6530 (add_psymbol_to_list): Pass psymbol_cache by value.
6531 (add_psymbol_with_dem_name_to_list): Ditto.
6533 * objfiles.h: Update copyright.
6534 (struct bcache): Declare opaque. Do not include "bcache.h".
6535 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6537 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6539 * objfiles.c: Include "bcache.h". Update copyright.
6540 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6542 (free_objfile): Use bcache_xfree.
6544 2002-07-11 Grace Sainsbury <graces@redhat.com>
6546 * monitor.c (monitor_fetch_register): Make name a constant.
6547 (monitor_store_register): Same.
6549 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6551 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6552 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6553 (finish_block) For non-function blocks, hash the symbol table. For
6554 function blocks, mark the symbol table as unhashed.
6555 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6556 (msymbol_hash_iw): Likewise.
6557 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6559 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6560 (lookup_minimal_symbol): Likewise for both.
6561 * symtab.h (struct block): Add `hashtable' flag. Comment the
6563 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6564 (ALL_BLOCK_SYMBOLS): Update.
6565 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6566 (struct symbol): Add `hash_next' pointer.
6567 * symtab.c (lookup_block_symbol): Search using the hash table when
6569 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6570 (search_symbols, find_addr_symbol): Likewise.
6572 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6573 (read_dst_symtab): Likewise.
6574 * jv-lang.c (get_java_class_symtab): Likewise.
6575 * mdebugread.c: Include "gdb_assert.h".
6576 (shrink_block): Assert that the block being modified is not hashed.
6577 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6578 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6580 (dump_symtab): Recognize hashed blocks.
6581 * printcmd.c (print_frame_args): Assert that function blocks do not
6582 have hashed symbol tables.
6583 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6584 (fill_in_ada_prototype, debug_print_block): Likewise.
6585 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6587 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6589 * stack.c (print_frame): Use result of frame_address_in_block()
6590 instead of fi->pc when evaluating symbols.
6591 (backtrace_command_1): Ditto.
6593 2002-07-11 Andrew Cagney <cagney@redhat.com>
6595 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6598 * arm-tdep.c (arm_register_name): Make return type constant.
6600 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6602 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6604 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6605 * s390-tdep.c (s390_fp_regnum): Ditto.
6606 (s390_read_fp): Ditto.
6607 (s390_pop_frame): Ditto.
6608 (_initialize_s390_tdep): Ditto.
6609 * remote.c (get_remote_state): Ditto.
6610 * procfs.c (mappingflags): Ditto.
6611 * memattr.c (_initialize_mem): Ditto.
6612 * mcore-tdep.c (mcore_pop_frame): Ditto.
6613 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6614 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6615 * language.c (set_case_str): Ditto.
6616 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6617 * frv-tdep.c (new_variant): Ditto.
6618 (frv_stopped_data_address): Ditto.
6619 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6620 (context_alloc): Ditto.
6621 (frame_state_alloc): Ditto.
6622 (unwind_tmp_obstack_init): Ditto.
6623 (unwind_tmp_obstack_free): Ditto.
6624 (cfi_read_fp): Ditto.
6625 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6626 (cris_pop_frame): Ditto.
6627 * c-lang.c (scanning_macro_expansion): Ditto.
6628 (finished_macro_expansion): Ditto.
6629 (c_preprocess_and_parse): Ditto.
6630 * gdbarch.sh: Ditto.
6631 * gdbarch.h, gdbarch.c: Regenerate.
6632 * config/mn10200/tm-mn10200.h: Adjust indentation.
6633 * target.c: Adjust indentation.
6634 * symtab.h: Adjust indentation.
6635 * stabsread.h: Adjust indentation.
6636 * remote-es.c: Adjust indentation.
6637 * os9kread.c: Adjust indentation.
6639 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6641 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6642 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6644 2002-07-10 Grace Sainsbury <graces@redhat.com>
6646 * NEWS: Mention m68k, mcore multi-arching.
6647 * MAINTAINERS: Change status of m68k, mcore to reflect
6650 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6652 * valops.c (find_overload_match): Free oload_syms.
6654 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6656 Define HAVE_SYS_PROC_H if sys/proc.h exists
6657 * configure.in: Add check for sys/proc.h
6658 * config.in: Regenerate.
6659 * configure: Regenerate.
6661 2002-07-09 Grace Sainsbury <graces@redhat.com>
6663 * config/m68k/tm-m68k.h: Remove macros wrapped in
6664 #if !GDB_MULTI_ARCH.
6666 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6668 * config.in, configure: Regenerate.
6670 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6672 * dwarf2cfi.c: Include "gcore.h".
6673 (execute_stack_op): Fix implementation of the
6674 DW_OP_deref and DW_OP_deref_size operators by letting do their
6675 lookup in the target.
6677 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6679 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6680 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6683 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6685 Fix PR gdb/595, gdb/602
6686 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6687 Don't call value_cast, just read the vtable pointer; update comments
6690 2002-07-05 Grace Sainsbury <graces@redhat.com>
6692 * config/mcore/tm-mcore.h: Remove file.
6693 * config/mcore/mcore.mt: Remove definition of TM_FILE
6694 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6696 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6698 * i386bsd-tdep.c: Include "gdb_string.h".
6700 2002-07-04 Grace Sainsbury <graces@redhat.com>
6702 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6703 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6705 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6706 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6707 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6708 (RETVAL_REGNUM): Move macros from tm-mcore.h
6709 (mcore_reg_struct_has_addr): New function.
6710 (mcore_gdbarch_init): Added initializations for the macros removed
6713 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6715 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6716 traditonal string branding within the ELF header.
6718 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6720 * symtab.c (remove_params): New function.
6721 (make_symbol_overload_list): Use it instead of cplus_demangle.
6722 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6724 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6726 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6728 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6730 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6731 and tdep->sigtramp_end.
6732 * i386obsd-nat.c: New file.
6733 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6735 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6736 Don't call get_current_frame().
6738 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6740 * i386-nat.c (child_post_startup_inferior): New function
6741 calling i386_cleanup_dregs if
6742 I386_USE_GENERIC_WATCHPOINTS is defined.
6743 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6744 conditional to acknowledge that i386-nat.c has its
6745 own child_post_startup_inferior function.
6747 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6749 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6750 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6751 instead of MAX_REGISTER_RAW_SIZE.
6752 (i386_extract_return_value, i386_extract_struct_value_address):
6753 Convert to use regcache.
6754 (i386_gdbarch_init): Set max_register_raw_size and
6755 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6756 Set extract_return_value and extract_struct_value_address instead
6757 of their deprecated variants.
6759 Convert i386 target to generic dummy frames.
6760 * i386-tdep.c: Include "symfile.h".
6761 (i386_frameless_signal_p): Consider a function to be frameless if
6762 the pc points at the first instruction of the function.
6763 (i386_frame_chain): Handle (generic) call dummies.
6764 (i386_frame_saved_pc): Likewise.
6765 (i386_frame_init_saved_regs): Remove code dealing with call
6766 dummies on the stack.
6767 (i386_push_dummy_frame): Removed.
6768 (i386_call_dummy_words): Removed.
6769 (i386_fix_call_dummy): Removed.
6770 (i386_push_return_address): New function.
6771 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6772 parameter, and don't call get_current_frame.
6773 (i386_pop_frame): New function.
6774 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6775 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6776 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6777 call_dummy_length to 0, set call_dummy_words to NULL, set
6778 sizeof_call_dummy_words to 0, set fix_call_dummy to
6779 generic_fix_call_dummy, set pc_in_call_dummy to
6780 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6781 generic_push_dummy_frame, set push_return_address to
6782 i386_push_return_address and set frame_chain_valid to
6783 generic_file_frame_chain_valid.
6785 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6787 * gdbarch.sh (struct regcache): Add opaque declaration.
6788 (EXTRACT_RETURN_VALUE): New architecture method.
6789 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6790 * gdbarch.h, gdbarch.c: Regenerate.
6791 * arch-utils.c (legacy_extract_return_value): New function.
6792 * arch-utils.h (legacy_extract_return_value): Declare.
6793 * values.c (value_being_returned): Re-enable code handling
6794 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6795 deprecated_grub_regcache_for_registers call to block handling
6796 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6797 (EXTRACT_RETURN_VALUE): Do not define.
6799 2002-07-03 Grace Sainsbury <graces@redhat.com>
6801 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6802 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6803 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6804 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6805 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6806 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6807 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6808 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6809 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6810 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6811 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6812 argument so the function fits the prototype in the architecture
6814 (mcore_pop_frame): Remove argument so the function fits the
6815 prototype. Use get_current_frame instead of the argument.
6816 (mcore_push_arguments): Change type of struct_return so the
6817 function can be used in the architecture vector.
6818 (mcore_store_struct_return): Add.
6819 (mcore_frame_init_saved_regs): Add.
6820 (mcore_gdbarch_init): Add function calls to replace the macros
6821 removed from tm-mcore.h
6823 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6825 * infcmd.c (print_return_value): Remove compatibility code calling
6826 deprecated_grub_regcache_for_registers.
6828 * values.c: Include "regcache.h".
6829 (value_being_returned): Update. Use
6830 deprecated_grub_regcache_for_registers to extract the register
6832 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6833 ``struct regcache''.
6834 * Makefile.in (values.o): Add dependency on $(regcache_h).
6836 * inferior.h (run_stack_dummy): Change type of second parameter to
6837 a ``struct regcache''.
6838 * valops.c (hand_function_call): Change type of retbuf to ``struct
6839 regcache''. Allocate using regcache_xmalloc, clean using
6840 make_cleanup_regcache_xfree.
6841 * infcmd.c (run_stack_dummy): Update. Use
6842 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6844 * regcache.c (do_regcache_xfree): New function.
6845 (make_cleanup_regcache_xfree): New function.
6846 * regcache.h (make_cleanup_regcache_xfree): Declare.
6848 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6850 * event-top.c (command_line_handler): Don't read past
6851 beginning of buffer.
6853 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6855 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6857 (varobj_create): Store frame_id for root.
6858 (varobj_gen_name): Use xasprintf.
6859 (varobj_update): Save and restore frame using get_frame_id() and
6861 (create_child): Use xasprintf.
6862 (new_root_variable): Initialize frame_id.
6863 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6864 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6865 to prevent memory leak.
6867 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6869 * valops.c (hand_function_call): Move declaration of retbuf to
6870 start of function, allocate using malloc, add a cleanup but before
6871 the inf_status cleanup, cleanup the buffer. Rename local variable
6872 old_chain to inf_status_cleanup.
6874 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6876 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6878 * cli/cli-decode.c (cmd_func_p): New function.
6879 (cmd_func): New function.
6881 * command.h: Add cmd_func() and cmd_func_p().
6883 2002-07-03 Grace Sainsbury <graces@redhat.com>
6885 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6886 (REGISTER_SIZE): Remove.
6887 (MAX_REGISTER_RAW_SIZE): Remove.
6888 (REGISTER_VIRTUAL_TYPE): Remove.
6889 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6890 (REGISTER_NAME): Remove.
6891 (USE_GENERIC_DUMMY_FRAMES): Remove.
6892 (CALL_DUMMY): Remove.
6893 (CALL_DUMMY_START_OFFSET): Remove.
6894 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6895 (CALL_DUMMY_LOCATION): Remove.
6896 (FIX_CALL_DUMMY): Remove.
6897 (CALL_DUMMY_ADDRESS): Remove.
6898 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6899 (SAVE_DUMMY_FRAME_TOS): Remove.
6900 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6901 (mcore_register_virtual_type): New function.
6902 (mcore_register_byte): New function.
6903 (mcore_register_size): New function.
6904 (mcore_register_name): New function.
6905 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6906 macros removed from tm-mcore.h.
6907 (mcore_dump_tdep): Add.
6908 (_initialize_mcore_tdep): Add gdbarch_register call.
6910 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6912 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6913 frameless_look_for_prologue, such that we actually call this
6916 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6918 * frame.h (frame_address_in_block): New function.
6920 * blockframe.c (frame_address_in_block): New function extracted
6921 from get_frame_block().
6922 (get_frame_block): Use frame_address_in_block().
6923 (block_innermost_frame): Use frame_address_in_block() to match
6924 the frame pc address against the block boundaries rather than
6925 the frame pc directly. This prevents a failure when a frame pc
6926 is actually a return-address pointing immediately after the end
6929 2002-07-02 Grace Sainsbury <graces@redhat.com>
6931 * MAINTAINERS: Add self under write after approval.
6933 2002-07-02 Grace Sainsbury <graces@redhat.com>
6935 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6936 used in architecture vector. The default is
6937 m68k_local_breakpoint_from_pc.
6938 (m68k_local_breakpoint_from_pc): Add.
6939 (enum): Add register numbers from tm-m68k.h.
6940 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6942 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6943 GDB_MULTI_ARCH_PARTIAL.
6944 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6945 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6947 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6948 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6949 to enum in m68k-tdep.c
6951 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6953 * solib-osf.c (open_map): Compute the list of shared libraries
6954 loaded by the inferior, rather than the list of libraries loaded
6955 by GDB itself. Otherwise, GDB ends up reading the symbols from
6956 the wrong shared libraries...
6958 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6960 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6961 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6963 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6965 (FRAMELESS_SIGNAL): Remove function.
6966 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6967 i386_linux_saved_pc_after_call): Removed.
6968 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6969 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6970 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6972 * i386-tdep.c (i386_frameless_signal_p): New function.
6973 (i386_frame_chain): Deal with frameless signals.
6974 (i386_sigtramp_saved_sp): New function.
6975 (i386_frame_saved_pc): Deal with frameless signals.
6976 (i386_saved_pc_after_call): Make sure the correct value is
6977 returned just after entry into a sigtramp.
6978 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6979 i386fbsd4_sc_sp_offset): New variables.
6980 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6981 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6982 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6983 similiar to what we already did for sc_pc_offset.
6984 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6987 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6989 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6991 * config/i386/tm-x86-64linux.h: New.
6992 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6994 * config/i386/nm-x86-64.h: Rename to ...
6995 * config/i386/nm-x86-64linux.h: ... this one.
6996 * config/i386/x86-64linux.mh: Reflect the above change.
6998 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7000 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7001 with sigcontext_addr. Add sc_sp_offset.
7002 (i386bsd_sigtramp_saved_pc): Remove prototype.
7003 (i386bsd_sicontext_addr): Add prototype.
7004 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7005 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7006 (i386_svr4_sigtramp_saved_pc): Removed.
7007 (i386_svr4_sigcontext_addr): New function.
7008 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7009 Initialize tdep->sigcontext_addr instead. Initialize
7010 tdep->sc_pc_offset and tdep->sc_sp_offset.
7011 (i386_gdbarch_init): Likewise.
7012 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7014 (i386bsd_sigtramp_saved_pc): Remove function.
7015 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7016 Initialize tdep->sigcontext_addr instead. Initialize
7018 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7019 of tdep->sigtramp_saved_pc.
7020 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7021 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7024 * i386-tdep.c (i386_frameless_function_invocation,
7025 i386_frame_num_args, i386_frame_init_saved_regs,
7026 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7027 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7028 i386_extract_return_value, i386_store_return_value,
7029 i386_extract_struct_value_address, i386_register_virtual_type,
7030 i386_register_convertible, i386_register_convert_to_virtual,
7031 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7032 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7035 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7037 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7039 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7040 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7041 this macro. Include "value.h".
7043 2002-06-30 Aidan Skinner <aidan@velvet.net>
7045 * ada-exp.tab.c: remove as it's a generated file
7046 * ada-lex.c: remove as it's a generated file
7048 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7050 * config/i386/tm-i386.h (struct frame_info, struct
7051 frame_saved_regs, struct value, struct type): Remove forward
7054 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7055 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7056 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7057 (FILL_FPXREGSET): Define.
7059 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7061 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7062 i[3456]86-*-netbsd* case.
7063 * config/i386/tm-obsd.h: Removed.
7064 * config/i386/obsd.mt: Removed.
7065 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7067 (MH_CFLAGS): Add -DYYDEBUG=0.
7069 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7070 i386nbsd_sc_pc_offset on OpenBSD too.
7072 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7073 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7074 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7076 * i386bsd-tdep.c: Include "arch-utils.h".
7077 (i386bsd_aout_in_solib_call_trampoline): New function.
7078 (i386bsd_init_abi): Set in_solib_call_trampoline to
7079 i386bsd_aout_in_solib_call_trampoline.
7080 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7081 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7083 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7085 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7086 (struct obstack, struct bcache): Add opaque declarations.
7087 * Makefile.in (macrotab_h): Update
7089 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7091 * blockframe.c (generic_find_dummy_frame): Change return type to
7092 ``struct regcache''.
7093 (struct dummy_frame): Replace field ``registers'' with regcache, a
7094 struct regcache object.
7095 (generic_find_dummy_frame): Update.
7096 (generic_push_dummy_frame): Update. Use regcache_xfree,
7097 regcache_xmalloc and regcache_cpy.
7098 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7100 (deprecated_generic_find_dummy_frame): Update.
7101 (generic_read_register_dummy): Update. Use
7102 regcache_read_as_address.
7103 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7104 (generic_get_saved_register): Update. Use regcache_read.
7106 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7108 * Makefile.in (objfiles_h): Add $(bcache_h).
7109 * objfiles.h: Include "bcache.h".
7111 * Makefile.in (symtab_h): Remove $(bcache_h).
7112 * symtab.h: Do not include "bcache.h".
7114 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7116 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7117 generic_func_frame_chain_valid.
7119 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7121 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7122 * config/i386/tm-fbsd.h: Likewise.
7124 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7126 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7127 generic_unwind_get_saved_register.
7129 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7131 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7132 * regcache.c (supply_register): Add missing argument to
7133 register_buffer call.
7135 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7137 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7138 Solaris /bin/grep does not not like it. From Peter Schauer.
7140 2002-06-26 Tom Tromey <tromey@redhat.com>
7142 * command.h (add_setshow_cmd): Declare.
7143 (add_setshow_cmd_full): Declare.
7144 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7145 returns void. Use add_setshow_cmd_full.
7146 (add_setshow_cmd_full): New function.
7147 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7148 (add_setshow_boolean_cmd): Likewise.
7150 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7152 * config/vax/tm-vax.h: Protect from multiple inclusion.
7153 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7154 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7155 * config/vax/tm-vaxbsd.h: ...here. New file.
7156 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7158 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7160 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7161 (BELIEVE_PCC_PROMOTION): Remove.
7162 (AP_REGNUM): Move to...
7163 * config/vax/nm-vax.h: ...here.
7164 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7165 (vax_breakpoint_from_pc): New function.
7166 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7167 and gdbarch_believe_pcc_promotion.
7169 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7171 * Makefile.in (vax_tdep_h): Define.
7172 (vax-tdep.o): Use $(vax_tdep_h).
7173 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7174 (vax_dump_tdep): New function.
7175 (_initialize_vax_tdep): Register vax_dump_tdep.
7176 * vax-tdep.h: Include osabi.h.
7177 (struct gdbarch_tdep): New.
7179 2002-06-26 Andrew Cagney <cagney@redhat.com>
7181 * frame.h (deprecated_generic_find_dummy_frame): Rename
7182 generic_find_dummy_frame.
7183 * blockframe.c (generic_find_dummy_frame): Make static.
7184 (deprecated_generic_find_dummy_frame): New function.
7185 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7186 generic_find_dummy_frame with deprecated_find_dummy_frame.
7187 (sh64_nofp_frame_init_saved_regs): Ditto.
7188 (sh_fp_frame_init_saved_regs): Ditto.
7189 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7190 (s390_frame_chain): Ditto.
7191 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7193 2002-06-26 Grace Sainsbury <graces@redhat.com>
7195 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7196 gdbarch vector are at the top.
7198 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7199 (FRAME_ARGS_ADDRESS): Remove.
7200 (FRAME_LOCALS_ADDRESS): Remove.
7201 (FRAME_NUM_ARGS): Remove.
7202 (FRAME_ARGS_SKIP): Remove.
7203 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7204 (m68k_gdbarch_init): Add gdbarch initializations for macros
7205 undefined in tm-m68k.h
7207 2002-06-26 Grace Sainsbury <graces@redhat.com>
7209 * monitor.h: Add the function regname to monitor_ops
7210 structure. This way NUM_REGS does not have to be a constant.
7211 * monitor.c (monitor_fetch_register): Added support for regname
7212 function. The function is called if the array regnames is NULL.
7213 (monitor_store_register): Same.
7214 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7216 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7217 cpu32bug_cmds.regname to point to new function.
7218 * abug-rom.c (abug_regname): Same as above.
7219 (init_abug_cmds): Same.
7220 * dbug-rom.c (dbug_regname): Same as above.
7221 (init_dbug_cmds): Same.
7222 * remote-est.c (est_regname): Same.
7223 (init_est_cmds): Same.
7224 * rom68k-rom.c (rom68k_regname): Same.
7225 (init_rom68k_cmds): Same.
7227 2002-06-25 Tom Tromey <tromey@redhat.com>
7229 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7231 2002-06-25 Andrew Cagney <cagney@redhat.com>
7233 * infrun.c (stop_registers): Change variable's type to ``struct
7235 (xmalloc_inferior_status): Delete function.
7236 (free_inferior_status): Delete function.
7237 (normal_stop): Use regcache_cpy.
7238 (struct inferior_status): Change type of fields ``stop_registers''
7239 and ``registers'' to ``struct regcache''.
7240 (write_inferior_status_register): Use regcache_write.
7241 (save_inferior_status): Instead of calling
7242 xmalloc_inferior_status, allocate the inf_status buffer directly.
7243 Use regcache_dup_no_passthrough and regcache_dup to save the
7245 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7246 Replace the stop_registers regcache instead of overriding it. Use
7247 regcache_xfree. Instead of calling free_inferior_status, xfree
7248 the buffer directly.
7249 (discard_inferior_status): Use regcache_xfree. Instead of calling
7250 free_inferior_status, xfree the buffer directly.
7251 (build_infrun): Use regcache_xmalloc.
7252 (_initialize_infrun): Delete redundant call to build_infrun.
7254 * Makefile.in (infcmd.o): Add $(regcache_h).
7256 * infcmd.c: Include "regcache.h".
7257 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7258 obtain the address of `stop_registers' register buffer.
7259 (print_return_value): Ditto.
7261 * inferior.h (struct regcache): Add opaque declaration.
7262 (stop_registers): Change variable's declared type to ``struct
7265 2002-06-24 Tom Tromey <tromey@redhat.com>
7267 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7268 * target.c (initialize_targets): Fixed typo in
7269 trust-readonly-sections `show' documentation.
7271 * main.c: Marked all strings with _().
7273 2002-06-24 Don Howard <dhoward@redhat.com>
7275 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7276 that means max CORE_ADDR+1.
7277 (lookup_mem_region): Ditto.
7278 (mem_info_command): Ditto.
7280 2002-06-24 Grace Sainsbury <graces@redhat.com>
7282 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7283 (REGISTER_BYTES_OK): Remove.
7284 (REGISTER_BYTES): Remove.
7285 (STORE_STRUCT_RETURN): Remove.
7286 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7287 (STORE_RETURN_VALUE): Remove.
7288 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7289 (FRAME_CHAIN): Remove.
7290 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7291 (FRAME_SAVED_PC): Remove.
7292 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7293 (m68k_store_struct_return): Add.
7294 (m68k_deprecated_extract_return_value): Add.
7295 (m68k_deprecated_extract_struct_value_address): Add.
7296 (m68k_store_return_value): Add.
7297 (m68k_frame_chain): Add.
7298 (m68k_frameless_function_invocation): Add.
7299 (m68k_frame_saved_pc): Add.
7300 (m68k_gdbarch_init): added set_gdbarch calls for new
7301 functions and deleted macros.
7303 2002-06-23 Tom Tromey <tromey@redhat.com>
7305 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7306 (ALLDEPFILES): Likewise.
7307 (udiheaders): Removed.
7308 (udip2soc.o): Likewise.
7309 (udi2go32.o): Likewise.
7311 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7313 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7315 * infrun.c (_initialize_infrun): Delete unnecessary call to
7318 * regcache.h: Update comments describing the regcache_cpy family
7320 (regcache_save, regcache_restore): Delete declaration.
7321 (regcache_save_no_passthrough): Delete declaration.
7322 (regcache_restore_no_passthrough): Delete declaration.
7323 * regcache.c (regcache_save): Delete function.
7324 (regcache_save_no_passthrough): Delete function.
7325 (regcache_restore): Delete function.
7326 (regcache_restore_no_passthrough): Delete function.
7328 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7330 * config/m68k/tm-m68k.h: Fix typo.
7331 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7332 (m68k_frame_init_saved_regs): Declare.
7334 2002-06-21 Jim Blandy <jimb@redhat.com>
7336 Remove some vestiges of Harris 88k support.
7337 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7338 register numbering quirk.
7339 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7340 odd symbols occurring in Harris 88k ELF targets.
7342 2002-06-21 Tom Tromey <tromey@redhat.com>
7344 * gdb_locale.h: New file.
7345 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7346 (defs_h): Added gdb_locale.h.
7347 * configure, config.in: Rebuilt.
7348 * configure.in (PACKAGE): Define.
7349 * defs.h: Include gdb_locale.h.
7350 * main.c (captured_main): Call setlocale, bindtextdomain,
7353 2002-06-21 Dave Brolley <brolley@redhat.com>
7355 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7356 * config/frv/frv.mt: New file.
7357 * config/frv/tm-frv.h: New file.
7358 * configure.tgt: Support frv-*-*.
7359 * Makefile.in (frv-tdep.o): New target.
7360 * frv-tdep.c: New file.
7361 * NEWS: Mention frv.
7363 2002-06-21 Dave Brolley <brolley@redhat.com>
7365 * MAINTAINERS: Add self to "Write After Approval" list.
7367 2002-06-21 Grace Sainsbury <graces@redhat.com>
7369 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7370 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7371 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7372 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7373 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7375 * m68k-tdep.c: Include arch-utils.h
7376 (m68k_register_raw_size): Add.
7377 (m68k_register_virtual_size): Add.
7378 (m68k_register_virtual_type): Add.
7379 (m68k_register_name): Add.
7380 (m68k_stack_align): Add.
7381 (m68k_register_byte): Add.
7382 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7385 2002-06-21 Grace Sainsbury <graces@redhat.com>
7387 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7388 m68k_find_saved_regs.
7389 (m68k_pop_frame): Removed saved_regs structure, and replaced
7390 references to it with frame->saved_regs.
7391 (m68k_gdbarch_init): Added function calls to initialize the
7393 (m68k_fix_call_dummy): Add.
7394 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7395 (CALL_DUMMY): Remove.
7396 (CALL_DUMMY_LENGTH): Remove.
7397 (CALL_DUMMY_START_OFFSET): Remove.
7398 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7399 (FIX_CALL_DUMMY): Remove.
7400 (PUSH_DUMMY_FRAME): Remove.
7401 (POP_FRAME): Remove.
7403 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7405 * parse.c (parse_fprintf): New function used to avoid calls to
7406 fprintf in bison parser generated debug code.
7407 * parser-defs.h: Declaration of new parse_fprintf function.
7408 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7409 Set YYDEBUG to 1 by default.
7410 Set YYFPRINTF as parse_fprintf.
7412 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7414 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7416 (pointer_encoding, enum ptr_encoding): New.
7417 (execute_cfa_program): Take care about pointer encoding.
7418 (dwarf2_build_frame_info): Only call parse_frame_info for
7419 .debug_frame and .eh_frame.
7420 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7421 fixed augmentation handling, added relative addressing,
7422 ignore duplicate FDEs. Added comments.
7423 * dwarf2cfi.c: Reindented.
7425 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7427 * event-top.c (command_handler): Don't use space_at_cmd_start
7428 unless there is sbrk() on the host. Assign time and space data
7429 to union fields of the appropriate length.
7431 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7433 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7434 x86_64_register_name. Return type changed to 'const char *'.
7435 (x86_64_register_name2nr): Rename to x86_64_register_number.
7436 (x86_64_gdbarch_init): Update to reflect the change.
7437 * x86-64-tdep.h: Ditto.
7438 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7439 (supply_fpregset): Ditto.
7441 2002-06-19 Andrew Cagney <cagney@redhat.com>
7443 * regcache.h: Update copyright.
7444 (struct regcache, struct gdbarch): Add opaque declarations.
7445 (current_regcache): Declare global variable.
7446 (regcache_read, regcache_write): Add gdbarch parameter.
7447 (regcache_save, regcache_save_no_passthrough)
7448 (regcache_restore, regcache_restore_no_passthrough)
7449 (regcache_dup, regcache_dup_no_passthrough)
7450 (regcache_cpy, regcache_cpy_no_passthrough)
7451 (deprecated_grub_regcache_for_registers)
7452 (deprecated_grub_regcache_for_register_valid)
7453 (regcache_valid_p): Add function declarations.
7455 * regcache.c: Update copyright.
7456 (regcache_descr_handle): New global variable.
7457 (struct regcache_descr): Define.
7458 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7459 (regcache_descr, xfree_regcache_descr): New functions.
7460 (struct regcache): Define.
7461 (regcache_xmalloc, regcache_xfree): New functions.
7462 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7463 (regcache_dup, regcache_dup_no_passthrough): New functions.
7464 (regcache_valid_p, regcache_read_as_address): New functions.
7465 (deprecated_grub_regcache_for_registers): New function.
7466 (deprecated_grub_regcache_for_register_valid): New function.
7467 (current_regcache): New global variable.
7468 (register_buffer): Add regcache parameter. Update calls.
7469 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7470 (read_register_gen, write_register_gen): Update register_buffer
7471 call. Test for legacy_p instead of gdbarch_register_read_p or
7472 gdbarch_register_write_p.
7473 (regcache_collect): Update register_buffer call.
7474 (build_regcache): Rewrite. Use deprecated grub functions.
7475 (regcache_save, regcache_save_no_passthrough): New functions.
7476 (regcache_restore, regcache_restore_no_passthrough): New
7478 (_initialize_regcache): Create the regcache_data_handle. Swap
7479 current_regcache global variable.
7481 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7482 parameter to regcache_read and regcache_write calls.
7483 (sh4_register_read): Ditto.
7484 (sh64_pseudo_register_read): Ditto.
7485 (sh64_register_read): Ditto.
7486 (sh_pseudo_register_write): Ditto.
7487 (sh4_register_write): Ditto.
7488 (sh64_pseudo_register_write): Ditto.
7489 (sh64_register_write): Ditto.
7491 * defs.h (XCALLOC): Define.
7493 2002-06-19 Grace Sainsbury <graces@redhat.com>
7495 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7496 * m68k-tdep.c (m68k_gdbarch_init): Added.
7497 (m68k_dump_tdep): Added.
7499 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7501 * ada-lang.c (fill_in_ada_prototype): Update comment.
7503 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7505 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7507 (mips_abi_string, mips_abi_strings): New.
7508 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7509 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7510 tdep->mips_abi_string. Honor mips_abi_string. Default to
7511 O32 if no ABI is found.
7512 (mips_dump_tdep): Use mips_abi_strings.
7513 (mips_abi_update): New function.
7514 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7515 ``set mips abi'' and ``show mips abi''. Check the size of
7518 2002-06-19 Andrew Cagney <cagney@redhat.com>
7520 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7523 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7525 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7526 current frame using only the first stack size adjustment. All
7527 subsequent size adjustments are not considered to be part of
7528 the "static" part of the current frame.
7529 Compute the address of the saved registers relative to the
7530 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7531 in use in this frame.
7533 2002-06-18 Don Howard <dhoward@redhat.com>
7535 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7536 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7537 suggesting this solution.
7539 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7541 * config/romp/xm-rtbsd.h: Delete file.
7542 * config/romp/rtbsd.mh: Delete file.
7544 2002-06-18 Keith Seitz <keiths@redhat.com>
7546 * breakpoint.c (condition_command): Post breakpoint_modify
7547 when a condition is added to an existing breakpoint.
7548 (commands_command): Likewise for commands.
7549 (set_ignore_count): Likewise for ignore counts.
7550 If no tty, do not simply return, still need to send event
7552 (ignore_command): Only print a newline if the command came
7554 Don't call breakpoints_changed, since this is now properly
7555 handled by set_ignore_count.
7557 2002-06-18 Andrew Cagney <cagney@redhat.com>
7559 * MAINTAINERS: Note that cris-elf target can be compiled with
7561 * cris-tdep.c (cris_register_name): Make return type constant.
7562 (cris_breakpoint_from_pc): Ditto.
7564 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7566 * frame.h (struct frame_info): Change type of context to
7569 2002-06-17 Andrew Cagney <cagney@redhat.com>
7571 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7573 * gdbarch.h, gdbarch.c: Regenerate.
7574 * config/mips/tm-mips.h (mips_register_name): Update.
7575 * i386-tdep.h (i386_register_name): Update.
7576 * mips-tdep.c (mips_register_name): Update
7577 * alpha-tdep.c (alpha_register_name): Update.
7578 * arch-utils.c (legacy_register_name): Update.
7579 * arch-utils.h (legacy_register_name): Update.
7580 * avr-tdep.c (avr_register_name): Update.
7581 * ia64-tdep.c (ia64_register_name): Update.
7582 * i386-tdep.c (i386_register_name): Update.
7583 * sparc-tdep.c (sparc32_register_name): Update.
7584 (sparc64_register_name): Update.
7585 (sparclite_register_name): Update.
7586 (sparclet_register_name): Update.
7587 * sh-tdep.c (sh_generic_register_name): Update.
7588 (sh_sh_register_name): Update.
7589 (sh_sh3_register_name): Update.
7590 (sh_sh3e_register_name): Update.
7591 (sh_sh_dsp_register_name): Update.
7592 (sh_sh3_dsp_register_name): Update.
7593 (sh_sh4_register_name): Update.
7594 (sh_sh64_register_name): Update.
7595 * s390-tdep.c (s390_register_name): Update.
7596 * rs6000-tdep.c (rs6000_register_name): Update.
7597 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7598 (ns32k_register_name_32382): Update.
7599 * d10v-tdep.c (d10v_ts2_register_name): Update.
7600 (d10v_ts3_register_name): Update.
7601 * xstormy16-tdep.c (xstormy16_register_name): Update.
7602 * vax-tdep.c (vax_register_name): Update.
7603 * v850-tdep.c (v850_register_name): Update.
7604 * m68hc11-tdep.c (m68hc11_register_name): Update.
7605 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7606 (am33_register_name): Update.
7608 2002-06-17 Grace Sainsbury <graces@redhat.com>
7610 * m68k-tdep.c: Reindented.
7612 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7614 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7615 list of predefined types.
7617 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7619 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7620 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7621 REGISTER_CONVERT_TO_RAW): Remove defines.
7622 (i386_register_virtual_type, i386_register_convertible,
7623 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7625 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7626 macros mentioned above.
7628 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7629 (i386lynx_saved_pc_after_call): Remove prototype.
7630 * i386ly-tdep.c: Include "i386-tdep.h".
7631 (i386lynx_saved_pc_after_call): Make static. Use
7632 read_memory_nobpt instead of read_memory. Use
7633 read_memory_unsigned_integer instead of read_memory_integer.
7634 (i386lynx_init_abi): New function.
7635 (i386lynx_coff_osabi_sniffer): New function.
7636 (_initialize_i386bsd_tdep): New function.
7638 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7639 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7640 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7641 (i386_fix_call_dummy): Remove prototype.
7642 * i386-tdep.c (i386_call_dummy_words): New variable.
7643 (i386_gdbarch_init): Adjust for removal of the
7644 macros mentioned above.
7646 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7648 * command.h (add_setshow_auto_boolean_cmd): Replace
7649 add_set_auto_boolean_cmd.
7650 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7651 add_set_auto_boolean_cmd.
7652 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7653 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7654 mask-address'' command.
7655 (show_mask_address): Add cmd parameter.
7656 * remote.c (add_packet_config_cmd): Update. Change type of
7657 set_func and show_func to cmd_sfunc_ftype.
7658 (_initialize_remote): Update `set remote Z-packet'
7659 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7660 (show_remote_protocol_e_packet_cmd): Ditto.
7661 (show_remote_protocol_E_packet_cmd): Ditto.
7662 (show_remote_protocol_P_packet_cmd): Ditto.
7663 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7664 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7665 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7666 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7667 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7668 (show_remote_protocol_Z_packet_cmd): Ditto.
7669 (show_remote_protocol_binary_download_cmd): Ditto.
7670 (show_remote_cmd): Pass NULL to all of above.
7672 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7674 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7675 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7676 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7677 POP_FRAME): Remove defines.
7678 (i386_push_arguments, i386_store_struct_return,
7679 i386_extract_return_value, i386_store_return_value,
7680 i386_extract_struct_value_address, i386_push_dummy_frame,
7681 i386_pop_frame): Renove prototypes.
7682 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7683 macros mentioned above.
7685 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7687 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7688 add_set_boolean_cmd.
7689 (add_setshow_cmd): New function.
7690 * command.h (add_setshow_boolean_cmd): Replace
7691 add_set_boolean_cmd.
7692 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7693 and ``set rdiromatzero''.
7694 * maint.c (_initialize_maint_cmds): Update commented out code.
7695 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7696 * target.c (initialize_targets): Update `set
7697 trust-readonly-sections'.
7698 * remote.c (_initialize_remote): Update `set remotebreak'.
7700 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7702 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7703 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7704 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7705 fit into multi-arch framework.
7706 (i386_breakpoint_from_pc): New function.
7707 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7710 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7711 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7712 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7713 (i386_frameless_function_invocation, i386_frame_num_args,
7714 i386_frame_init_saved_regs): Remove prototypes.
7715 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7716 macros mentioned above.
7718 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7720 * cli/cli-decode.c (set_cmd_cfunc): Update.
7721 (set_cmd_sfunc): Update.
7722 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7723 (set_cmd_sfunc, set_cmd_cfunc): Update.
7724 * cli/cli-decode.h: Update.
7726 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7728 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7729 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7731 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7733 * defs.h (auto_boolean): Declare enum.
7734 * command.h (cmd_auto_boolean): Delete enum.
7735 * mips-tdep.c (mask_address_var): Update.
7736 (mips_mask_address_p): Update.
7737 (show_mask_address): Update.
7738 * remote.c (struct packet_config): Update.
7739 (update_packet_config): Update.
7740 (show_packet_config_cmd): Update.
7741 (packet_ok): Update.
7742 (add_packet_config_cmd): Update.
7743 (_initialize_remote):
7744 * command.h: Update.
7745 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7746 (do_setshow_command): Update.
7747 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7748 * cli/cli-decode.h: Update.
7750 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7752 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7753 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7754 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7755 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7756 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7757 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7759 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7760 list of DJGPP COFF targets.
7762 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7763 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7764 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7765 (FP0_REGNUM): Remove define.
7766 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7767 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7768 (i386_register_virtual_size): Remove protoype.
7769 * i386-tdep.c (i386_register_virtual_size): Removed.
7770 (i386_extract_return_value, i386_store_return_value): Use
7771 FP0_REGNUM instead of NUM_FREGS to determine whether the
7772 floating-point registers are available.
7773 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7774 Adjust for removal of macros mentioned above.
7776 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7778 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7780 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7782 (supply_gregset, fill_gregset): Remove use of register keyword and
7783 remove declaration for regmap. Use I386_NUM_GREGS instead of
7784 NUM_REGS and NUM_FREGS.
7785 (FPREGSET_FSAVE_OFFSET): Remove.
7786 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7787 NUM_FREGS to determine whether the floating-point registers are
7790 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7791 gnu_store_registers): Replace usage of NUM_GREGS with
7794 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7795 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7796 usage of NUM_GREGS with I386_NUM_GREGS.
7798 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7800 * i386bsd-nat.c: Include "i386-tdep.h".
7801 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7804 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7805 and associated comment. They no longer make any sense, since we
7806 don't use this file anymore on Linux.
7808 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7809 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7810 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7811 elements in these arrays.
7812 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7815 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7817 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7818 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7820 2002-06-14 Andrew Cagney <cagney@redhat.com>
7822 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7823 EXTRACT_RETURN_VALUE.
7824 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7825 EXTRACT_STRUCT_VALUE_ADDRESS.
7826 * gdbarch.h, gdbarch.c: Regenerate.
7828 * values.c (value_being_returned): Handle
7829 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7830 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7832 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7833 * arm-tdep.c (arm_gdbarch_init): Update.
7834 * avr-tdep.c (avr_gdbarch_init): Update.
7835 * cris-tdep.c (cris_gdbarch_init): Update.
7836 * d10v-tdep.c (d10v_gdbarch_init): Update.
7837 * ia64-tdep.c (ia64_gdbarch_init): Update.
7838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7840 * s390-tdep.c (s390_gdbarch_init): Update.
7841 * sh-tdep.c (sh_gdbarch_init): Update.
7842 * s390-tdep.c (s390_gdbarch_init): Update.
7843 * sparc-tdep.c (sparc_gdbarch_init): Update.
7844 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7845 * v850-tdep.c (v850_gdbarch_init): Update.
7846 * vax-tdep.c (vax_gdbarch_init): Update.
7847 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7850 * config/arc/tm-arc.h: Update.
7851 * config/d30v/tm-d30v.h: Update.
7852 * config/fr30/tm-fr30.h: Update.
7853 * config/h8300/tm-h8300.h: Update.
7854 * config/h8500/tm-h8500.h: Update.
7855 * config/i386/tm-i386.h: Update.
7856 * config/i386/tm-ptx.h: Update.
7857 * config/i386/tm-symmetry.h: Update.
7858 * config/i960/tm-i960.h: Update.
7859 * config/m32r/tm-m32r.h: Update.
7860 * config/m68k/tm-delta68.h: Update.
7861 * config/m68k/tm-linux.h: Update.
7862 * config/m68k/tm-m68k.h: Update.
7863 * config/m88k/tm-m88k.h: Update.
7864 * config/mcore/tm-mcore.h: Update.
7865 * config/mips/tm-mips.h: Update.
7866 * config/mn10200/tm-mn10200.h: Update.
7867 * config/pa/tm-hppa.h: Update.
7868 * config/pa/tm-hppa64.h: Update.
7869 * config/sparc/tm-sp64.h: Update.
7870 * config/sparc/tm-sparc.h: Update.
7871 * config/sparc/tm-sparclet.h: Update.
7872 * config/z8k/tm-z8k.h: Update.
7874 2002-06-14 Andrew Cagney <cagney@redhat.com>
7876 * Makefile.in (i386_linux_tdep_h): Define.
7877 (i386_tdep_h, i387_tdep_h): Define.
7878 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7879 $(i386_tdep_h) and $(i387_tdep_h).
7880 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7882 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7884 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7885 Already covered by the default.
7887 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7888 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7889 (i386_gdbarch_init): Initialize long_double_format and long_double
7892 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7893 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7895 * config/i386/i386sol2.mh: ... here.
7896 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7897 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7898 (SIGCONTEXT_PC_OFFSET): Remove define.
7899 (IN_SIGTRAMP): Remove define.
7900 * i386-sol2-tdep.c: New file.
7902 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7903 * config/i386/tm-i386nw.h: Removed.
7905 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7906 USE_STRUCT_CONVENTION): Remove defines.
7907 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7908 (get_longjmp_target): Remove prototype.
7909 (IN_SIGTRAMP): Remove define.
7910 (i386bsd_in_sigtramp): Remove prototype.
7911 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7912 function. Update comment accordingly
7913 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7914 (FRAME_SAVED_PC): Remove define.
7915 (i386bsd_frame_saved_pc): Remove prototype.
7916 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7917 GET_LONGJMP_TARGET): Remove defines.
7918 (get_longjmp_target): Remove prototype.
7919 (IN_SIGTRAMP): Remove define.
7920 (i386bsd_in_sigtramp): Remove prototype.
7921 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7922 function. Update comment accordingly
7923 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7924 (FRAME_SAVED_PC): Remove define.
7925 (i386bsd_frame_saved_pc): Remove prototype.
7926 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7928 (USE_STRUCT_CONVENTION): Remove prototype.
7929 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7931 (_initialize_i386bsd_nat): Revise logic to determine some
7932 constants at compile time when compiling a native GDB. Warn if
7933 things don't match up with what we expect.
7934 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7936 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7937 to use date stored in `struct gdbarch_tdep'.
7938 (i386bsd_sigcontext_offset): Remove varaible.
7939 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7940 stored in `struct gdbarch_tdep'.
7941 (i386bsd_frame_saved_pc): Make static.
7942 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7943 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7944 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7945 i386fbsd4_sc_pc_offset): New variables.
7946 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7947 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7949 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7951 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7952 Modify the value of i386fbsd_sigtramp_start and
7953 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7954 i386fbsd_sigtramp_end.
7955 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7958 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7959 define to i386-linux-tdep.h.
7960 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7961 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7963 (i386_linux_register_name, i386_linux_register_byte,
7964 i386_linux_register_raw_size): Remove prototypes.
7965 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7966 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7967 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7968 TARGET_WRITE_PC): Remove defines.
7969 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7970 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7971 i386_linux_write_pc): Remove prototypes.
7972 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7973 (get_longjmp_target): Remove prototype.
7974 * i386-linux-tdep.h: New file.
7975 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7976 * i386-linux-tdep.c: Include "i386-tdep.h" and
7977 "i386-linux-tdep.h".
7978 (i386_linux_register_name, i386_linux_register_byte,
7979 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7980 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7982 (i386_linux_init_abi): New function.
7983 (_initialize_i386_linux_tdep): New function.
7985 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7986 (i386_saved_pc_after_call): Remove prototype.
7987 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7988 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7989 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7990 (i386_register_name, i386_stab_reg_to_regnum,
7991 i386_dwarf_reg_to_regnum): Remove prototypes.
7992 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7993 SIZEOF_SSE_REGS): Remove defines.
7994 (REGISTER_BYTES): Remove define.
7995 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7996 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7997 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7998 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7999 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8000 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8001 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8002 (get_longjmp_target): Remove prototype.
8003 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8004 (sigtramp_saved_pc): Remove define.
8005 (i386v4_sigtramp_saved_pc): Remove prototype.
8006 * config/i386/tm-go32.h (FRAME_CHAIN,
8007 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8008 (i386go32_frame_saved_pc): Remove prototype.
8009 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8010 (get_longjmp_target): Remove prototype.
8011 * i386-tdep.h: Include "osabi.h".
8012 (enum i386_abi): Removed.
8013 (enum struct_return): New enum.
8014 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8015 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8016 sc_pc_offset members.
8017 (i386_gdbarch_register_os_abi): Remove prototype.
8018 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8019 I386_SSE_NUM_REGS): New defines.
8020 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8021 I386_SSE_SIZEOF_REGS): New defines.
8022 (i386_register_name, i386_register_byte, i386_register_raw_size):
8024 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8025 (i386bsd_sigtramp_saved_pc): New prototype.
8026 * i386-tdep.c: Don't include "elf-bfd.h".
8027 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8028 i386_frame_chain, i386_saved_pc_after_call): Make static.
8029 (i386_frame_saved_pc): Rewrite to call architecture dependent
8030 function to deal with signal handlers. Make static.
8031 (i386go32_frame_saved_pc): Removed.
8032 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8034 (i386_get_longjmp_target): New function.
8035 (default_struct_convention, pcc_struct_convention,
8036 reg_struct_convention, valid_conventions, struct_convention): New
8038 (i386_use_struct_convention): New function.
8039 (i386v4_sigtramp_saved_pc): Renamed to
8040 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8041 (i386_pc_in_sigtramp): New function.
8042 (i386_abi_names): Removed.
8043 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8044 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8046 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8047 i386_gdbarch_register_os_abi): Removed.
8048 (struct i386_abi_handler): Removed.
8049 (i386_abi_handler_list): Removed.
8050 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8052 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8053 i386_nw_init_abi): New functions.
8054 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8055 Use set_gdbarch_xxx() calls instead of relying on macros for a
8057 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8058 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8059 Register the various architecture variants defined in this file.
8061 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8063 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8064 (struct main_type): Remove arg_types member. Update comments for
8066 (TYPE_ARG_TYPES): Remove.
8067 (TYPE_FN_FIELD_ARGS): Update.
8068 (smash_to_method_type): Update prototype.
8070 * c-typeprint.c (cp_type_print_method_args): Take method type
8071 instead of argument list. Use new argument layout. Simplify.
8072 (c_type_print_args): Use new argument layout. Simplify.
8073 (c_type_print_base): Update call to cp_type_print_method_args.
8074 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8075 argument; use die->type instead. Update call to
8076 smash_to_method_type.
8077 (read_structure_scope): Update call to dwarf2_add_member_fn.
8078 * gdbtypes.c (allocate_stub_method): Update comment.
8079 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8080 Use new argument layout.
8081 (check_stub_method): Use new argument layout. Don't count
8082 void as an argument.
8083 (print_arg_types): Update comments. Use new argument layout.
8084 (recursive_dump_type): Don't print arg_types member.
8085 * hpread.c (hpread_read_struct_type): Use new argument layout.
8086 (fixup_class_method_type): Likewise.
8087 (hpread_type_lookup): Likewise.
8088 * stabsread.c (read_type): Update calls to read_args and
8089 smash_to_method_type.
8090 (read_args): Use new argument layout. Simplify.
8091 * valops.c (typecmp): Use new argument layout. Update parameters
8092 and comments. Simplify.
8093 (hand_function_call): Use new argument layout.
8094 (search_struct_method): Update call to typecmp.
8095 (find_overload_match): Use new argument layout.
8097 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8099 * NEWS: Mention multithreaded debug support for gdbserver.
8101 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8103 * MAINTAINERS: Mention NEWS.
8105 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8107 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8108 (struct mips_objfile_private, compare_pdr_entries): New.
8109 (non_heuristic_proc_desc): Read the ".pdr" section if it
8112 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8114 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8115 (arm_debug): New static variable.
8116 (_initialize_arm_tdep): Add ``set debug arm'' command.
8118 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8120 * Makefile.in (sim_arm_h): Define.
8121 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8122 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8123 (arm_register_sim_regno): New function, map an internal REGNUM
8124 onto a simulator register number.
8125 (arm_gdbarch_init): Set register_sim_regno.
8127 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8129 * MAINTAINERS: Add self.
8131 2002-06-11 Jim Blandy <jimb@redhat.com>
8133 * source.c (source_info): Mention whether the symtab has
8134 information about preprocessor macros.
8136 Call the command `info macro', not `show macro'.
8137 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8139 (_initialize_macrocmd): Register `info_macro_command' in
8140 `infolist', not `showlist'.
8142 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8144 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8145 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8146 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8147 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8148 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8150 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8151 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8152 (_initialize_mips_tdep): Remove dead code.
8153 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8154 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8155 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8156 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8157 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8158 MIPS_LAST_FP_ARG_REGNUM): Remove.
8160 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8162 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8163 (unwind_tmp_obstack_free, parse_frame_info)
8164 (update_context, cfi_read_fp, cfi_write_fp)
8165 (cfi_frame_chain, cfi_init_extra_frame_info)
8166 (cfi_virtual_frame_pointer): Use the above function.
8167 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8169 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8171 * v850-tdep.c (v850_type_is_scalar): New function.
8172 (v850_use_struct_convention): Match current gcc implementation
8173 as close as possible.
8174 (v850_push_arguments): Fix stack_offset handling. Don't write
8175 struct_addr into register. This is done by v850_store_struct_return.
8176 (v850_extract_return_value): Care for structs.
8177 (v850_store_return_value): Ditto.
8178 (v850_store_struct_return): Actually write address.
8180 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8182 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8183 without debug information too.
8185 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8187 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8188 Make multi-arch pure.
8189 * gdbarch.h, gdbarch.c: Re-generate.
8190 * arm-tdep.c (arm_print_float_info): Update.
8191 * arch-utils.h (default_print_float_info): Update.
8192 * arch-utils.c (default_print_float_info): Update.
8193 * infcmd.c (float_info): Update call.
8195 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8197 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8198 the front of the initialize list.
8200 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8202 * infrun.c (struct inferior_status): Replace fields
8203 selected_frame_address and selected_level with field
8205 (save_inferior_status): Update. Use get_frame_id.
8206 (struct restore_selected_frame_args): Delete.
8207 (restore_selected_frame): Update. Use frame_find_by_id.
8208 (restore_inferior_status): Update.
8210 * breakpoint.h (struct breakpoint): Change type of
8211 watchpoint_frame to frame_id.
8212 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8213 call to get_current_frame.
8214 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8216 (watchpoint_check): Use frame_find_by_id.
8218 * frame.h (record_selected_frame): Delete declaration.
8219 * stack.c (record_selected_frame): Delete function.
8221 * frame.h (struct frame_id): Define.
8222 (get_frame_id): Declare.
8223 (frame_find_by_id): Declare.
8224 * frame.c (frame_find_by_id): New function.
8225 (get_frame_id): New function.
8227 2002-06-10 Andrey Volkov <avolkov@transas.com>
8229 * ser-e7kpc.c: Fix duplicated define and call of
8230 _initialize_ser_e7000pc
8232 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8234 * signals/signals.c (target_signal_from_host): Fix #ifdef
8236 (do_target_signal_to_host): Likewise.
8238 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8240 * mips-tdep.c (mips_find_abi_section): New function.
8241 (mips_gdbarch_init): Call it.
8243 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8245 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8246 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8247 after Andrew's 2002-06-08 gdbarch change.
8249 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8251 * i386-linux-nat.c (suppy_gregset): Don't supply
8252 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8254 (fill_gregset): Don't fetch it under the same circumstances.
8256 2002-06-09 Andrew Cagney <cagney@redhat.com>
8258 * Makefile.in (callback_h): Define.
8259 (remote_sim_h): Update path to remote-sim.h.
8260 (remote-rdp.o): Add $(callback_h).
8261 (remote-sim.o): Use $(callback_h).
8262 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8263 * remote-rdp.c: Include "gdb/callback.h".
8265 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8267 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8268 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8270 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8272 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8273 * rdi-share/serpardr.c: Ditto.
8274 * rdi-share/unixcomm.c: Ditto.
8275 * rdi-share/serdrv.c: Ditto.
8276 * rdi-share/hostchan.h: Ditto.
8277 * rdi-share/hostchan.c: Ditto.
8278 * rdi-share/host.h: Ditto.
8279 * rdi-share/devsw.c: Ditto.
8281 * objfiles.h: Change type of obj_private to void pointer.
8282 * pa64solib.c: Update copyright. Don't include "assert.h", use
8283 strcmp instead of STREQ, use LONGEST, do not use PTR
8284 * somsolib.c: Ditto.
8286 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8287 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8288 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8290 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8292 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8293 (default_get_saved_register): Delete function.
8294 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8295 generic_unwind_get_saved_register.
8296 * gdbarch.h, gdbarch.c: Re-generate.
8298 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8300 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8301 generic_func_frame_chain_valid.
8302 * gdbarch.h, gdbarch.c: Re-generate.
8303 * blockframe.c (generic_func_frame_chain_valid): Only check
8304 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8305 passing FP to PC_IN_CALL_DUMMY.
8308 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8310 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8311 (register_gdbarch_data): Initialize init_p.
8312 (gdbarch_data): Initialize data pointer using the init function.
8313 (init_gdbarch_data): Delete function.
8314 (gdbarch_update_p): Update.
8315 (initialize_non_multiarch): Update.
8316 (struct gdbarch): Add field initialized_p.
8317 * gdbarch.h, gdbarch.c: Re-generate.
8319 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8321 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8322 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8323 better do the things actually here.
8324 * x86-64-tdep.c (x86_64_register_name2nr): New.
8325 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8326 (x86_64_gdbarch_init): Respect the above change.
8327 * x86-64-tdep.h (x86_64_register_name2nr)
8328 (x86_64_register_nr2name): Add prototypes.
8329 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8331 2002-06-06 Michael Snyder <msnyder@redhat.com>
8333 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8334 Delete extra braces and re-indent.
8335 (d10v_store_return_value): Char return values
8336 must be shifted over by one byte in R0.
8337 (d10v_extract_return_value): Delete extra braces, re-indent.
8339 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8341 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8342 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8343 (d10v_integer_to_address): Rewrite.
8344 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8345 the d10v specific functions which take care of converting to the
8348 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8350 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8351 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8353 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8355 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8357 * config/tm-linux.h: Ditto.
8358 * config/alpha/tm-alphalinux.h: Ditto.
8359 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8360 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8361 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8362 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8363 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8364 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8365 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8366 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8367 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8368 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8369 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8370 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8371 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8372 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8373 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8374 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8375 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8376 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8377 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8378 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8379 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8380 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8381 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8382 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8383 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8384 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8385 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8386 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8387 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8388 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8389 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8390 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8391 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8392 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8393 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8394 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8395 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8397 2002-05-04 Aidan Skinner <aidan@velvet.net>
8399 * ada-exp.tab.c: New file
8400 * ada-exp.y: New file
8401 * ada-lang.c: New file
8402 * ada-lang.h: New file
8403 * ada-lex.c: New file
8404 * ada-lex.l: New file
8405 * ada-tasks.c: New file
8406 * ada-typeprint.c: New file
8407 * ada-valprint.c: New file
8409 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8411 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8412 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8414 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8416 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8417 insetead of ppc-linux-tdep.o.
8418 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8419 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8421 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8423 2002-05-07 Christian Groessler <chris@groessler.org>
8424 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8425 bit register contents for little endian hosts.
8427 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8429 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8432 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8434 * gdbarch.h: Regenerate.
8436 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8438 * MAINTAINERS: Add everyone to write-after-approval list.
8440 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8442 * stack.c (frame_info): Use frame_register_unwind instead of
8443 saved_regs. Mention when the SP is on the stack or in a register.
8445 * frame.h (frame_register_unwind_ftype): Define. Document.
8446 (struct frame_info): Add field register_unwind and
8447 register_unwind_cache.
8448 (frame_register_unwind): Declare.
8449 (generic_unwind_get_saved_register): Declare.
8451 * frame.c (frame_register_unwind): New function.
8452 (generic_unwind_get_saved_register): New function.
8454 * blockframe.c (generic_call_dummy_register_unwind): New function.
8455 (frame_saved_regs_register_unwind): New function.
8456 (set_unwind_by_pc): New function.
8457 (create_new_frame): New function.
8458 (get_prev_frame): New function.
8460 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8462 * a29k-share/: Delete directory.
8463 * remote-vx29k.c: Delete file.
8465 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8467 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8468 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8470 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8472 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8473 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8476 (sparcnbsd-tdep.o): New dependency lists.
8477 * NEWS: Note new UltraSPARC NetBSD native configuration.
8478 * configure.host (sparc64-*-netbsd*): New host.
8479 * configure.tgt (sparc-*-netbsdelf*)
8480 (sparc-*-netbsd*): Set gdb_target to nbsd.
8481 (sparc64-*-netbsd*): New target.
8482 * sparc64nbsd-nat.c: New file.
8483 * sparcnbsd-nat.c: New file.
8484 * sparcnbsd-tdep.c: New file.
8485 * sparcnbsd-tdep.h: New file.
8486 * config/sparc/nbsd.mt: New file.
8487 * config/sparc/nbsd64.mh: New file.
8488 * config/sparc/nbsd64.mt: New file.
8489 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8490 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8492 * config/sparc/nbsdaout.mt: Remove.
8493 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8494 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8496 * config/sparc/nbsdelf.mt: Remove.
8497 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8498 sparc-nat.c compatiblity defines.
8499 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8500 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8501 * config/sparc/tm-nbsd64.h: New file.
8502 * config/sparc/tm-nbsdaout.h: Remove.
8503 * config/sparc/xm-nbsd.h: Remove.
8505 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8507 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8508 * sparc-tdep.c: Include osabi.h.
8509 (gdbarch_tdep): Add osabi member.
8510 (_initialize_sparc_tdep): Use gdbarch_register.
8511 (sparc_gdbarch_init): Use generic OS ABI framework.
8512 (sparc_dump_tdep): New function.
8514 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8516 * corefile.c (do_captured_read_memory_integer): Return non-zero
8518 (safe_read_memory_integer): Copy result of memory read when
8519 status is non-zero. Also, add comments.
8521 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8523 * Makefile.in (ppc_tdep_h): Define.
8526 (rs6000-tdep.o): Use $(ppc_tdep_h).
8529 (ppcnbsd-tdep.o): New dependency lists.
8530 * ppc-tdep.h: Use generic OS ABI framework.
8531 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8532 (ppc_linux_init_abi): New functions.
8533 (ppc_sysv_abi_broken_use_struct_convention)
8534 (ppc_sysv_abi_use_struct_convention)
8535 (ppc_sysv_abi_push_arguments): Move to...
8536 * ppc-sysv-tdep.c: ...here.
8537 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8538 * rs6000-tdep.c (process_note_abi_tag_sections)
8539 (get_elfosabi): Remove.
8540 (rs6000_gdbarch_init): Use generic OS ABI framework.
8541 (rs6000_dump_tdep): New function.
8542 (_initialize_rs6000_tdep): Use gdbarch_register.
8543 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8544 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8545 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8546 of ppc-linux-tdep.o.
8547 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8548 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8549 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8550 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8551 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8552 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8554 2002-05-29 Jim Blandy <jimb@redhat.com>
8556 * macroscope.c (default_macro_scope): Put `void' in empty argument
8559 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8561 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8562 * arch-utils.c: Include "sim-regno.h".
8563 * gdbarch.sh: Don't include "sim-regno.h".
8564 * gdbarch.h, gdbarch.c: Regenerate.
8565 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8567 * arch-utils.h (legacy_register_sim_regno): To here.
8568 * remote-sim.c (legacy_register_sim_regno): Move function from
8570 * arch-utils.c (legacy_register_sim_regno): To here.
8572 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8574 * sim-regno.h: New file.
8575 * Makefile.in (sim_regno_h): Define.
8576 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8577 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8578 (legacy_register_sim_regno): New function.
8579 (one2one_register_sim_regno): New function.
8580 (gdbsim_fetch_register): Rewrite.
8581 (gdbsim_store_register): Only store a register when
8582 REGISTER_SIM_REGNO is valid.
8583 * d10v-tdep.c: Include "sim-regno.h".
8584 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8585 (d10v_ts3_register_sim_regno): Ditto.
8586 * gdbarch.sh: Include "sim-regno.h".
8587 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8588 * gdbarch.h, gdbarch.c: Regenerate.
8589 * arch-utils.h (default_register_sim_regno): Delete declaration.
8590 * arch-utils.c (default_register_sim_regno): Delete function.
8592 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8594 * ppcnbsd-nat.c: Rewrite.
8595 * ppcnbsd-tdep.c: New file.
8596 * ppcnbsd-tdep.h: New file.
8597 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8598 solib.o, and solib-svr4.o.
8599 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8600 nbsd-tdep.o, and corelow.o.
8602 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8604 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8605 `tr' and `sed'. Mention that `broken' targets are not expected to
8608 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8610 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8611 Let PC point right after the prologue before looking up symbols.
8613 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8615 * i386-tdep.c (i386_register_virtual_type): Return
8616 builtin_type_vec128i for SSE registers.
8618 * gdbtypes.h (builtin_type_vec128i): Declare.
8620 * gdbtypes.c (build_builtin_type_vec128i): New function.
8621 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8622 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8623 (build_gdbtypes): Initialize new builtin vector types.
8624 (_initialize_gdbtypes): Register new vector types with gdbarch.
8626 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8628 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8629 since it has been multi-arch'd.
8630 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8631 Move Alpha and VAX multi-arch news entries to same section
8632 as other multi-arch news.
8634 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8636 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8637 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8638 static. Rename some register numbers to put them in ns32k-tdep
8640 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8641 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8643 (_initialize_ns32k_tdep): Use gdbarch_register.
8644 * ns32k-tdep.h: New file.
8645 * ns32knbsd-tdep.c: New file.
8646 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8647 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8648 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8649 REGISTER_BYTES, REGISTER_BYTE): Remove.
8650 * config/ns32k/tm-ns32k.h: New file.
8651 * config/ns32k/tm-umax.h: Remove.
8653 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8655 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8656 ns32k_store_struct_return, ns32k_extract_return_value,
8657 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8659 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8660 ns32k_saved_pc_after_call.
8661 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8662 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8663 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8664 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8665 ns32k_extract_struct_value_address.
8667 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8669 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8670 ns32k_fix_call_dummy): New.
8671 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8672 ns32k_call_dummy_words.
8673 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8674 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8675 CALL_DUMMY_NARGS): Remove.
8676 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8678 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8680 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8681 ns32k_frame_saved_pc, ns32k_frame_args_address,
8682 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8683 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8684 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8685 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8686 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8687 (BREAKPOINT): Remove..
8688 (FRAME_CHAIN): Define as ns32k_frame_chain.
8689 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8690 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8691 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8692 (FRAME_FIND_SAVED_REGS): Remove.
8693 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8694 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8695 (POP_FRAME): Define as ns32k_pop_frame.
8697 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8699 * ns32k-tdep.c (ns32k_register_byte_32082,
8700 ns32k_register_byte_32382, ns32k_register_raw_size,
8701 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8703 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8704 ns32k_register_byte_32382.
8705 * config/ns32k/tm-umax.h: Update copyright years.
8706 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8707 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8708 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8709 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8710 (ns32k_get_enter_addr): Fix prototype.
8712 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8714 * ns32k-tdep.c: Update copyright years.
8715 (ns32k_register_name_32082): New function.
8716 (ns32k_register_name_32382): Ditto.
8717 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8718 (REGISTER_NAME): Define as ns32k_register_name_32382.
8719 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8720 (REGISTER_NAME): Define as ns32k_register_name_32082.
8722 2002-05-24 Jim Blandy <jimb@redhat.com>
8724 * dwarf2read.c (free_line_header): Use xfree, not free.
8726 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8728 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8729 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8731 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8733 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8735 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8737 From Ross Alexander at NEC Europe:
8738 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8740 2002-05-23 Michael Snyder <msnyder@redhat.com>
8742 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8743 for input, rather than parse_and_eval_address.
8745 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8747 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8748 * Makefile.in (sim_d10v_h): Update definition.
8750 2002-05-24 Andrew Cagney <cagney@redhat.com>
8752 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8753 change `2002-05-22 Michael Snyder' below.
8754 (d10v_push_arguments): Ditto.
8755 (d10v_extract_return_value): Ditto.
8757 2002-05-23 Jim Blandy <jimb@redhat.com>
8759 * macrotab.c (check_for_redefinition): Don't complain if the new
8760 definition is the same as the previous one. Take more arguments
8761 to allow the comparison.
8762 (macro_define_object, macro_define_function): Pass more arguments
8763 to check_for_redefinition.
8765 2002-05-22 Michael Snyder <msnyder@redhat.com>
8767 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8768 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8769 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8770 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8771 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8772 Add a temp variable to save a call (and a memory read).
8773 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8774 if possible (so that PC_IN_CALL_DUMMY will work).
8776 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8778 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8780 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8782 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8784 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8785 (dwarf2_build_frame_info): Add offset to fde->initial_location
8786 so that frames of shared libraries are mapped correctly.
8787 (execute_stack_op): Change type of 'result' from ULONGEST to
8790 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8792 * config/alpha/tm-nbsd.h: Include solib.h.
8794 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8796 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8797 assumptions about the host's byte order.
8799 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8801 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8803 * alphanbsd-tdep.c: Include solib-svr4.h.
8804 * shnbsd-tdep.c: Ditto.
8806 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8808 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8809 nbsd-tdep.h to dependency list.
8810 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8811 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8812 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8813 nbsdaout.mh and nbsdelf.mh consistently.
8814 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8815 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8816 nbsdaout.mt and nbsdelf.mh consistently.
8817 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8818 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8819 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8820 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8821 a.out shared library stuff from here...
8822 * config/nm-nbsdaout.h: ...to here.
8823 * config/tm-nbsd.h: Remove.
8824 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8825 * config/arm/nbsd.mh: Remove.
8826 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8828 * config/arm/nbsdaout.mh: New file.
8829 * config/arm/nbsdelf.mh: New file.
8830 * config/arm/nm-nbsdaout.h: New file.
8831 * config/i386/nbsd.mh: Remove.
8832 * config/i386/nbsd.mt: Remove.
8833 * config/i386/nbsdaout.mh: New file.
8834 * config/i386/nbsdaout.mt: New file.
8835 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8836 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8837 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8838 i386_register_u_addr): Remove.
8839 * config/i386/nm-nbsdaout.h: New file.
8840 * config/i386/nm-nbsdelf.h: Remove.
8841 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8842 (USE_STRUCT_CONVENTION): Remove.
8843 * config/i386/tm-nbsdaout.h: New file.
8844 * config/i386/tm-nbsdelf.h: Remove.
8845 * config/m68k/nbsd.mh: Remove.
8846 * config/m68k/nbsd.mt: Remove.
8847 * config/m68k/nbsdaout.mh: New file.
8848 * config/m68k/nbsdaout.mt: New file.
8849 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8850 * config/m68k/nm-nbsdaout.h: New file.
8851 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8852 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8853 * config/ns32k/nbsd.mh: Remove.
8854 * config/ns32k/nbsd.mt: Remove.
8855 * config/ns32k/nbsdaout.mh: New file.
8856 * config/ns32k/nbsdaout.mt: New file.
8857 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8858 * config/ns32k/nm-nbsdaout.h: New file.
8859 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8860 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8861 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8862 (SVR4_SHARED_LIBS): Remove.
8863 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8864 * config/sparc/nbsd.mh: Remove.
8865 * config/sparc/nbsd.mt: Remove.
8866 * config/sparc/nbsdaout.mh: New file.
8867 * config/sparc/nbsdaout.mt: New file.
8868 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8869 * config/sparc/nbsdelf.mt: New file.
8870 * config/sparc/nm-nbsdaout.h: New file.
8871 * config/sparc/nm-nbsdelf.h: Remove.
8872 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8873 * config/sparc/tm-nbsdaout.h: New file.
8875 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8877 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8879 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8881 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8883 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8885 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8887 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8889 * NEWS: Note new MIPS NetBSD native configuration.
8890 * configure.host (mips*-*-netbsd*): New host.
8891 * configure.tgt (mips*-*-netbsd*): New target.
8892 * mipsnbsd-nat.c: New file.
8893 * mipsnbsd-tdep.c: New file.
8894 * mipsnbsd-tdep.h: New file.
8895 * config/mips/nbsd.mh: New file.
8896 * config/mips/nbsd.mt: New file.
8897 * config/mips/nm-nbsd.h: New file.
8898 * config/mips/tm-nbsd.h: New file.
8900 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8902 * Makefile.in (SFILES): Add osabi.c.
8903 (COMMON_OBS): Add osabi.o.
8904 (osabi.o): New dependency list.
8905 * osabi.c: New file.
8906 * osabi.h: New file.
8907 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8909 * Makefile.in (alpha_tdep_h): Define and use instead of
8911 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8912 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8914 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8915 * alpha-tdep.h: Include osabi.h.
8916 (alpha_abi): Remove.
8917 (gdbarch_tdep): Use generic OS ABI framework.
8918 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8919 gdbarch_register_osabi.
8920 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8921 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8922 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8924 * Makefile.in (sh_tdep_h): Add osabi.h.
8925 * sh-tdep.h (sh_osabi): Remove.
8926 (gdbarch_tdep): Use generic OS ABI framework.
8927 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8928 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8929 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8930 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8932 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8933 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8934 gdbarch_register_osabi.
8935 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8936 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8937 (get_elfosabi): Rename to...
8938 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8939 ABI framework support routines.
8940 (arm_gdbarch_init): Use generic OS ABI framework.
8941 (arm_dump_tdep): Likewise.
8942 (_initialize_arm_tdep): Likewise.
8943 * arm-tdep.h: Include osabi.h.
8945 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8947 (arm_gdbarch_register_os_abi): Remove prototype.
8948 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8949 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8951 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8952 * mips-tdep.c: Include osabi.h.
8953 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8956 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8958 * h8300-tdep.c: Fix formatting.
8960 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8962 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8963 printing vector registers.
8965 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8967 From Fernando Nasser:
8968 * remote.c (remote_async_open_1): Re-throw the exception when the
8970 (remote_cisco_open): Ditto.
8971 (remote_open_1): Ditto.
8973 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8975 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8976 (remote_start_remote): Add uiout parameter. Pass through to
8977 remote_start_remote_dummy.
8978 (remote_open_1): Use catch_exception instead of catch_errors.
8979 (remote_async_open_1): Ditto.
8980 (remote_cisco_open): Ditto.
8982 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8984 * remote.c (remote_start_remote): Replace PTR with void pointer.
8985 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8988 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8990 * gdb_indent.sh: Allow the script to be run in the sim directory.
8992 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8994 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8995 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8997 * corelow.c (core_open): Only call set_gdbarch_from_file if
9000 2002-05-17 Andrey Volkov <avolkov@transas.com>
9002 * h8300-tdep.c: Add support of EXR register
9003 * config/h8300/tm-h8300.h: Ditto.
9005 2002-05-17 Andrey Volkov <avolkov@transas.com>
9007 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9009 2002-05-17 Andrey Volkov <avolkov@transas.com>
9011 * h8300-tdep.c: Change literal regnums to REGNO.
9013 2002-05-17 Jim Blandy <jimb@redhat.com>
9015 * NEWS: Note addition of macro support.
9017 Expand preprocessor macros in C expressions.
9018 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9019 (scan_macro_expansion, scanning_macro_expansion,
9020 finished_macro_expansion): New function declarations.
9021 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9022 variable declarations.
9023 * parser-defs.h (expression_context_pc): New declaration.
9024 * parse.c (expression_context_pc): New variable.
9025 (parse_exp_1): Set expression_context_pc, as well as
9026 expression_context_block.
9027 * c-exp.y (yylex): If we're not already reading the result of a
9028 macro expansion, try to macro-expand the next token. When we're
9029 done scanning a macro expansion, switch back to the mainline text.
9030 Commas and `if's in a macro's expansion don't terminate the input.
9031 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9032 (macro_original_text, macro_expanded_text,
9033 expression_macro_lookup_func, expression_macro_lookup_baton): New
9035 (scan_macro_expansion, scanning_macro_expansion,
9036 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9037 c_preprocess_and_parse): New functions.
9038 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9039 c_preprocess_and_parse, instead of c_parse.
9040 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9041 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9043 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9045 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9046 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9047 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9049 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9051 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9053 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9055 * Makefile.in (sh_tdep_h): Define and use.
9056 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9057 register enum): Move to...
9058 * * sh-tdep.h: ...here.
9059 * sh-tdep.c: Include sh-tdep.h.
9060 * sh3-rom.c: Likewise.
9061 * shnbsd-tdep.c: Likewise.
9063 2002-05-16 Michael Snyder <msnyder@redhat.com>
9065 * arm-tdep.c: Spelling fix in comment.
9067 2002-05-16 Jim Blandy <jimb@redhat.com>
9069 Add commands for manually expanding macros and showing their
9071 * macrocmd.c, macroscope.c, macroscope.h: New files.
9072 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9073 (macroscope_h): New variable.
9074 (HFILES_NO_SRCDIR): Add macroscope.h.
9075 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9076 (macroscope.o, macrocmd.o): New rules.
9078 Teach the Dwarf 2 reader to read macro information.
9079 * dwarf2read.c: #include "macrotab.h".
9080 (dwarf_macinfo_buffer): New variable.
9081 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9083 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9084 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9085 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9086 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9087 dwarf2_macro_spaces_in_definition): New complaints.
9088 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9089 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9090 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9091 the partial symbol table.
9092 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9093 from what's recorded in the partial symbol table.
9094 (read_file_scope): If the compilation unit has a
9095 `DW_AT_macro_info' attribute, read its macro information.
9096 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9098 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9101 * ser-tcp.c: Don't include <netinet/udp.h>.
9103 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9105 * MAINTAINERS: Update my email address.
9107 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9109 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9110 include file of the same name.
9112 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9114 * configure.tgt: Mark v850 as multi-arched.
9115 * config/v850/tm-v850.h: Remove file.
9116 * config/v850/v850.mt: Eliminate TM_FILE.
9118 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9120 * v850-tdep.c: Full multi-arch.
9121 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9122 Define GDB_MULTI_ARCH to 2.
9124 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9126 * p-exp.y (current_type): New static variable.
9127 Carries the type of the expression at the position that is parsed.
9128 (push_current_type, pop_current_type): Two new functions. Used
9129 to store/restore current_type in expression on specific tokens.
9130 (search_field): New static variable. Set to one after parsing a point
9131 as at that point only a FIELDNAME token should be searched.
9132 (FIELDNAME): New token. After a point only a token belonging to
9133 current_type type definition is allowed.
9134 (all over token rules): reset and change current_type according
9136 (exp '[' rule): insert implicit array index field if
9137 exp is a pascal string type.
9139 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9141 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9142 frame info. Use frame_info's saved_regs instead of matching member
9143 in extra_frame_info throughout.
9144 (v850_frame_init_saved_regs): New function.
9145 (v850_init_extra_frame_info): Move most functionality into
9146 v850_frame_init_saved_regs().
9147 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9148 (v850_frame_find_saved_regs): Remove declaration.
9149 (FRAME_FIND_SAVED_REGS): Remove definition.
9150 (v850_frame_init_saved_regs): Add declaration.
9151 (FRAME_INIT_SAVED_REGS): Add definition.
9153 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9155 * v850-tdep.c: Begin multi-arch'ing v850.
9156 (v850_target_architecture_hook): Remove function.
9157 (v850_gdbarch_init): New function. Add code previously in
9158 v850_target_architecture_hook().
9159 (_initialize_v850_tdep): Don't set target_architecture_hook.
9160 Call register_gdbarch_init() instead.
9162 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9164 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9165 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9166 (fixup_class_method_type): Likewise.
9168 2002-05-15 Jim Blandy <jimb@redhat.com>
9170 Add macro structures to GDB's symbol tables. Nobody puts anything
9172 * symtab.h (struct symtab): New member: `macro_table'.
9173 * buildsym.h (pending_macros): New global variable.
9174 * buildsym.c: #include "macrotab.h".
9175 (buildsym_init): Initialize `pending_macros'.
9176 (end_symtab): If we found macro information while reading a CU's
9177 debugging info, do build a symtab structure for it. Make the
9178 symtab point to the macro information, and clear the
9179 `pending_macros' pointer which held it while we were reading the
9181 (really_free_pendings): Free any pending macro table.
9182 * objfiles.h (struct objfile): New member: `macro_cache'.
9183 * objfiles.c (allocate_objfile): Set allocate and free functions
9184 for the macro cache's objstack.
9185 (free_objfile): Empty the macro cache's obstack.
9186 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9187 set new allocate and free functions for it.
9188 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9189 free functions for the macro cache's objstack. (Why is this
9190 function building its own objfile?)
9191 * symmisc.c (print_objfile_statistics): Print statistics on the
9193 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9195 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9197 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9198 (REGISTER_U_ADDR): Delete definition.
9199 (arm_register_u_addr): Delete declaration.
9201 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9203 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9204 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9206 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9208 * regcache.c (register_valid): Revise comments refering to "Not
9209 available" and "unavailable".
9210 * frame.c (frame_register_read): Ditto.
9211 * findvar.c (value_of_register): Ditto.
9213 2002-05-15 Andrew Cagney <cagney@redhat.com>
9215 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9216 (remote-sim.o): Update dependencies.
9217 (d10v-tdep.o): Specify dependencies.
9218 (sim_d10v_h): Define.
9220 2002-05-14 Jim Blandy <jimb@redhat.com>
9222 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9223 * macrotab.c (macro_lookup_inclusion, find_definition,
9224 new_macro_table): Same.
9226 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9227 not `! strcmp ()'. This is a dubious improvement.
9228 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9230 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9231 although it's not necessary, to avoid a warning.
9233 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9235 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9236 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9237 TYPE_INSTANCE_FLAGS.
9238 (struct main_type): New.
9239 (struct type): Move most members to struct main_type. Change
9240 cv_type and as_type to new type_chain member. Add instance_flags.
9241 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9242 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9243 (finish_cv_type): Remove prototype.
9244 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9246 (alloc_type_instance): New function.
9247 (smash_type): New function.
9248 (make_pointer_type, make_reference_type, make_function_type)
9249 (smash_to_member_type, smash_to_method_type): Call smash_type.
9250 (make_qualified_type): New function.
9251 (make_type_with_address_space): Call make_qualified_type.
9252 (make_cv_type): Likewise.
9253 (finish_cv_type): Remove unnecessary function.
9254 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9255 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9256 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9257 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9258 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9259 * hpread.c (hpread_read_struct_type): Likewise.
9260 * stabsread.c (read_struct_type): Likewise.
9262 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9264 * configure.tgt: Add a catch all sh* target, for cases like
9265 sh[2,3,4]-elf and sh-hms.
9267 2002-05-14 Keith Seitz <keiths@redhat.com>
9269 * event-loop.c (create_file_handler): Don't do anything but
9270 update data when we are given a fd which we are already
9273 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9275 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9276 (update_context): Use __func__ in warnings.
9278 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9280 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9281 and tcp_close to net_open and net_close.
9282 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9283 using UDP if requested. Don't try to disable Nagle on UDP
9285 * remote.c (remote_serial_open): New function. Warn about UDP.
9286 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9288 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9290 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9292 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9294 * configure.tgt: Remove sh-hms target.
9295 * MAINTAINERS: Don't list sh-hms as a separate target.
9297 2002-05-13 Jim Blandy <jimb@redhat.com>
9299 Add first preprocessor macro-expansion files.
9300 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9301 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9302 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9303 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9304 (COMMON_OBS): Add macrotab.o, macroexp.o.
9305 (macroexp.o, macrotab.o): New rules.
9307 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9309 * config/m88k/tm-m88k.h: Update copyright.
9310 (m88k_target_write_pc): Declare
9311 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9312 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9313 (SHIFT_INST_REGS): Update definition.
9314 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9315 using old definition of TARGET_WRITE_PC.
9316 * regcache.c (generic_target_write_pc): Delete code handling
9318 * gdbarch.sh (NNPC_REGNUM): Delete.
9319 * gdbarch.h, gdbarch.c: Regenerate.
9321 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9323 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9326 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9328 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9329 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9330 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9332 * c-typeprint.c (cp_type_print_method_args): Likewise.
9333 (c_type_print_args): Likewise.
9334 * d10v-tdep.c (d10v_push_arguments): Likewise.
9335 (d10v_extract_return_value): Likewise.
9336 * expprint.c (print_subexp): Likewise.
9337 * gdbtypes.c (lookup_primitive_typename): Likewise.
9338 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9339 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9340 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9341 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9342 (TYPE_VECTOR): Likewise.
9343 * hpread.c (hpread_read_struct_type)
9344 (fix_static_member_physnames, fixup_class_method_type)
9345 (hpread_type_lookup): Likewise.
9346 * mdebugread.c (parse_symbol, parse_type): Likewise.
9347 * p-lang.c (is_pascal_string_type): Likewise.
9348 * valops.c (hand_function_call): Likewise.
9349 * x86-64-tdep.c (classify_argument): Likewise.
9351 * hpread.c (hpread_read_function_type)
9352 (hpread_read_doc_function_type): Call replace_type.
9353 * dstread.c (create_new_type): Delete.
9354 (decode_dst_structure, process_dst_function): Call alloc_type.
9355 Use type access macros.
9357 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9359 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9360 the're not supported by the current architecture.
9361 (i387_fill_fxsave): Likewise.
9363 2002-05-12 Fred Fish <fnf@redhat.com>
9365 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9366 sect_index_xxx members to index the first slot in section_offsets
9367 if all of the section_offsets are zero.
9369 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9371 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9372 checked in with last change.
9374 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9376 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9377 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9380 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9382 * Makefile.in: Update dependencies.
9384 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9386 * language.c (local_hex_string_custom): Simplify. Do not depend
9387 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9389 * memattr.c (mem_info_command): Replace calls to
9390 longest_local_hex_string and longest_local_hex_string_custom.
9391 * buildsym.c (make_blockvector): Ditto.
9392 * solib.c (info_sharedlibrary_command): Ditto.
9393 * tracepoint.c (tracepoints_info): Ditto.
9394 * symtab.c (print_msymbol_info): Ditto.
9396 * language.c (local_hex_string): Delete.
9397 (local_hex_string_custom): Delete.
9398 (longest_local_hex_string): Rename to local_hex_string.
9399 (longest_local_hex_string_custom): Rename to
9400 local_hex_string_custom.
9401 * language.h (local_hex_string): Change parameter type to LONGEST.
9402 (local_hex_string_custom): Ditto.
9403 (longest_local_hex_string): Delete declaration.
9404 (longest_local_hex_string_custom): Ditto.
9406 * solib.c: Update copyright.
9407 * memattr.c: Update copyright.
9409 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9411 * arch-utils.h (legacy_register_to_value): Declare.
9412 (legacy_value_to_register): Declare.
9413 (legacy_convert_register_p): Declare.
9414 * arch-utils.c (legacy_register_to_value): New function.
9415 (legacy_value_to_register): New function.
9416 (legacy_convert_register_p): New function.
9418 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9419 (VALUE_TO_REGISTER): Define.
9420 (CONVERT_REGISTER_P): Define.
9421 * gdbarch.h, gdbarch.c: Regenerate.
9423 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9425 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9428 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9429 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9431 * Makefile.in: Update dependencies for valops.c.
9432 * valops.c: Include "gdb_assert.h".
9433 (typecmp): Skip THIS parameter to methods.
9434 (find_method_list): Remove static_memfuncp argument,
9435 update callers. Check for stub methods.
9436 (find_value_oload_method_list): Don't set *static_memfuncp.
9437 (find_overload_match): Don't check for stub methods. Assert
9438 that methods are not stubbed. Handle static methods.
9439 (value_find_oload_method_list): Remove static_memfuncp argument.
9440 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9441 to the argument list for static stub methods.
9442 * value.h (value_find_oload_method_list): Update prototype.
9444 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9446 * arch-utils.h (generic_register_size): Declare.
9447 (generic_register_raw_size, generic_register_virtual_size): Delete
9449 * arch-utils.c (generic_register_raw_size): Delete.
9450 (generic_register_size): New function.
9451 (generic_register_virtual_size): Delete.
9453 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9454 default generic_register_size.
9455 * gdbarch.h, gdbarch.c: Re-generate.
9457 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9458 register_virtual_size.
9459 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9460 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9462 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9464 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9465 * gdbarch.h, gdbarch.c: Regenerate.
9466 * gnu-v3-abi.c: Update copyright.
9467 (vtable_address_point_offset): Update.
9468 (gnuv3_rtti_type): Update.
9469 (gnuv3_baseclass_offset): Update.
9470 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9471 (init_fetch_link_map_offsets): Update.
9472 * remote.c (get_remote_state): Update.
9474 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9476 * TODO: Remove value_headof/value_from_vtable_info comment.
9477 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9478 * values.c (value_headof, value_from_vtable_info): Delete.
9479 * value.h (value_from_vtable_info): Delete prototype.
9481 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9483 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9484 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9486 (gdb_assert_h): Define.
9487 (gdb_wait_h): Define.
9488 (gdb_regex_h): Define.
9490 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9492 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9493 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9495 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9497 * nbsd-tdep.c: Fix comment.
9499 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9501 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9502 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9503 (nbsd-tdep.o): New dependency list.
9504 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9506 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9507 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9508 * nbsd-tdep.c: New file.
9509 * nbsd-tdep.h: New file.
9510 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9512 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9513 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9514 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9515 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9517 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9519 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9520 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9521 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9522 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9523 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9524 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9526 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9528 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9529 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9530 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9531 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9532 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9533 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9534 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9536 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9538 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9539 fetch_elfcore_registers to...
9540 * i386nbsd-tdep.c: ...here.
9541 (i386nbsd_use_struct_convention): Rename to...
9542 (i386nbsd_aout_use_struct_convention): ...this.
9543 (i386nbsd_supply_reg): New function.
9544 (i386nbsd_fill_reg): New function.
9545 (fetch_core_registers): Use i386nbsd_supply_reg.
9546 (fetch_elfcore_registers): Likewise.
9547 (_initialize_i386nbsd_tdep): New function.
9548 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9549 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9550 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9551 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9552 (i386nbsd_aout_use_struct_convention): ...this.
9554 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9556 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9557 (store_inferior_registers): Use shnbsd_fill_reg.
9558 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9559 sh_nbsd_supply_register): Collapse into...
9560 (shnbsd_supply_reg): ...this.
9561 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9562 (shnbsd_fill_reg): ...this.
9563 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9564 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9565 (fetch_core_registers): Use shnbsd_supply_reg.
9566 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9567 (sh_nbsd_core_fns): Rename to...
9568 (shnbsd_core_fns): ...this.
9569 (sh_nbsd_elfcore_fns): Rename to...
9570 (shnbsd_elfcore_fns): ...this.
9571 (sh_nbsd_init_abi): Rename to...
9572 (shnbsd_init_abi): ...this.
9573 (_initialize_sh_nbsd_tdep): Rename to...
9574 (_initialize_shnbsd_tdep): ...this.
9575 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9576 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9577 sh_nbsd_fill_register): Remove prototypes.
9578 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9580 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9582 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9583 (i387-nat.o): Delete dependency list.
9584 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9585 (x86-64-linux-nat.o): Likewise.
9586 * i387-nat.c: Delete file, moving contents to...
9587 * i387-tdep.c: ...here.
9588 * i387-nat.h: Rename...
9589 * i387-tdep.h: ...to this.
9590 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9591 * i386-linux-nat.c: Likewise.
9592 * i386bsd-nat.c: Likewise.
9593 * i386gnu-nat.c: Likewise.
9594 * i386nbsd-nat.c: Likewise.
9595 * i386v4-nat.c: Likewise.
9596 * x86-64-linux-nat.c: Likewise.
9597 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9598 * config/i386/go32.mh (NATDEPFILES): Likewise.
9599 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9600 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9601 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9602 * config/i386/linux.mh (NATDEPFILES): Likewise.
9603 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9604 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9605 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9606 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9608 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9610 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9611 (alphanbsd-nat.o): Remove dependency list.
9612 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9613 * alphanbsd-nat.c: Delete. Contents moved to...
9614 * alphanbsd-tdep.c: ...here.
9615 (_initialize_alphanbsd_tdep): Register core functions.
9616 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9618 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9620 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9621 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9622 (alphanbsd-nat.o): Likewise.
9623 (alphabsd-tdep.o): New dependency list.
9624 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9625 (fill_gregset): Use alphabsd_fill_reg.
9626 (supply_fpregset): Use alphabsd_supply_fpreg.
9627 (fill_fpregset): Use alphabsd_fill_fpreg.
9628 (fetch_inferior_registers): Use struct reg and struct fpreg
9629 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9630 and alphabsd_supply_fpreg.
9631 (store_inferior_registers): Use struct reg and struct fpreg
9632 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9633 and alphabsd_fill_fpreg.
9634 * alphabsd-tdep.c: New file.
9635 * alphabsd-tdep.h: New file.
9636 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9637 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9638 alphabsd_supply_fpreg.
9639 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9640 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9642 2002-05-11 Eric Christopher <echristo@redhat.com>
9644 * mips-tdep.c (mips_double_register_type): Fix thinko.
9645 (mips_single_register_type): Ditto.
9646 * MAINTAINERS: Add self.
9648 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9650 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9651 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9652 right thing on architectures with different endianness and/or
9655 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9657 From Christian Limpach <chris@Pin.LU>
9658 * configure.in: Change sed expression which comments out
9659 NATDEPFILES to also comment out continuation lines.
9660 * configure: Regenerate.
9662 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9664 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9667 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9669 * sh-tdep.c: Include correct file.
9671 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9673 New support for sh64-elf (sh5) target.
9675 * configure.tgt: For sh64-elf target, default to sh-elf.
9677 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9678 (struct gdbarch_tdep): Add new fields for new registers and ABI
9681 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9682 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9683 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9684 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9685 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9686 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9687 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9688 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9689 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9690 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9691 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9692 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9693 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9694 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9695 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9696 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9697 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9698 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9699 sign_extend, sh64_nofp_frame_init_saved_regs,
9700 sh64_init_extra_frame_info, sh64_get_saved_register,
9701 sh64_extract_struct_value_address, sh64_pop_frame,
9702 sh64_push_arguments, sh64_extract_return_value,
9703 sh64_store_return_value, sh64_show_media_regs,
9704 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9705 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9706 sh_sh64_register_virtual_type,
9707 sh_sh64_register_convert_to_virtual,
9708 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9709 sh64_register_read, sh64_pseudo_register_write,
9710 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9711 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9712 sh64_do_pseudo_register, sh_compact_do_registers_info,
9713 sh64_do_registers_info, sh_gdbarch_init): New functions.
9715 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9717 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9719 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9721 * linespec.c (decode_line_1): Check for a double quote after
9722 a filename correctly.
9724 2002-05-10 Jim Blandy <jimb@redhat.com>
9726 Properly track the size of the current objfile's .debug_line section.
9727 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9728 (DWARF_LINE_SIZE): New macro.
9729 (dwarf2_build_psymtabs_hard): Record the line section's size in
9730 the partial symbol table.
9731 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9734 2002-05-10 Petr Sorfa <petrs@caldera.com>
9736 * ia64-tdep.c: Handle breakpoints on L instruction type
9737 in MLX instruction bundle by moving the breakpoint to
9738 the third slot (X instruction type) as L holds only data.
9740 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9742 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9743 (process_one_symbol): Complain about discarding local symbols
9744 due to a misplaced N_LBRAC entry.
9746 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9748 From Daniel Berlin <dan@cgsoftware.com>
9749 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9750 decrease the depth we are at, in the case of templates.
9752 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9754 * mips-tdep.c (mips_float_register_type): New function.
9755 (mips_double_register_type): New function.
9756 (mips_print_register): Use them.
9757 (do_fp_register_row): Likewise.
9759 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9761 * signals/signals.c (signals): Remove conditional compilation around
9762 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9763 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9765 2002-05-09 Michael Snyder <msnyder@redhat.com>
9767 * remote-rdp.c (remote_rdp_can_run): Remove.
9769 2002-05-09 Tom Tromey <tromey@redhat.com>
9771 * jv-valprint.c (java_val_print): Handle `char' as a special case
9774 2002-05-09 Michael Snyder <msnyder@redhat.com>
9776 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9777 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9778 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9779 str r(0123),[sp,#nn].
9780 (arm_skip_prologue): Ditto. Also make disassembly
9781 order-independent by placing it in a loop.
9783 2002-05-06 Michael Snyder <msnyder@redhat.com>
9785 * stabsread.c (read_type): Add recognition for new attribute:
9786 "@V;" means that an array type is actually a vector.
9787 This is analogous to the vector flag that's been added to dwarf2.
9789 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9791 * i386-tdep.h (i386_abi): New enum.
9792 (struct gdbarch_tdep): Replace os_ident member with abi.
9793 (i386_gdbarch_register_os_abi): New prototype.
9794 * i386-tdep.c (i386_abi_names): New array.
9795 (process_note_abi_tag_sections): Removed.
9796 (process_note_sections): New function.
9797 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9798 (struct i386_abi_handler): New struct.
9799 (i386_abi_handler_list): New variable.
9800 (i386_gdbarch_register_os_abi): New function.
9801 (i386_gdbarch_init): Adapt for the changes given above.
9803 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9805 * gregset.h: Say "GNU/Linux".
9807 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9809 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9810 (build_gdbtypes): Build builtin_type_v2_float.
9811 (_initialize_gdbtypes): Register new builtin type.
9813 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9815 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9816 (clear_gdbarch_swap): New function.
9817 (initialize_non_multiarch): Call.
9818 (gdbarch_update_p): Before calling init(), swap out and clear the
9819 existing architecture.
9820 * gdbarch.c: Regenerate.
9822 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9824 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9827 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9829 * sh-nbsd-nat.c: Rename to...
9830 * shnbsd-nat.c: ...this.
9831 * sh-nbsd-tdep.c: Rename to...
9832 * shnbsd-tdep.c: ...this.
9833 * sh-nbsd-tdep.h: Rename to...
9834 * shnbsd-tdep.h: ...this.
9835 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9836 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9838 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9840 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9841 concatenation for command help messages.
9843 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9845 * NEWS: Note new sh*-*-netbsdelf* configuration.
9846 * configure.host: Set gdb_host_cpu to sh for all sh*.
9847 (sh*-*-netbsdelf*): New host.
9848 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9849 (sh*-*-netbsdelf*): New target.
9850 * sh-nbsd-nat.c: New file.
9851 * sh-nbsd-tdep.c: New file.
9852 * sh-nbsd-tdep.h: New file.
9853 * config/sh/nbsd.mh: New file.
9854 * config/sh/nbsd.mt: New file.
9855 * config/sh/nm-nbsd.h: New file.
9856 * config/sh/tm-nbsd.h: New file.
9858 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9860 * sh-tdep.c (sh_osabi_names): Declare.
9861 (process_note_abi_tag_sections): New function.
9862 (get_elfosabi): Ditto.
9863 (sh_gdbarch_register_os_abi): Ditto.
9864 (sh_dump_tdep): Ditto.
9865 _initialize_sh_tdep): Use gdbarch_register to register
9866 sh_gdbarch_init and sh_dump_tdep.
9867 * config/sh/tm-sh.h (sh_osabi): Declare.
9868 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9870 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9872 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9873 (thumb_scan_prologue): Ditto.
9874 (arm_find_callers_reg): Ditto.
9875 (arm_frame_chain): Ditto.
9876 (arm_init_extra_frame_info): Ditto.
9877 (arm_frame_saved_pc): Ditto.
9878 (arm_pop_frame): Ditto.
9879 (arm_push_return_address): New function.
9880 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9881 call_dummy_location, call_dummy_breakpoint_offset_p,
9882 call_dummy_breakpoint_offset, call_dummy_p,
9883 call_dummy_stack_adjust_p, call_dummy_words,
9884 sizeof_call_dummy_words, call_dummy_start_offset,
9885 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9886 call_dummy_address, push_return_address and push_dummy_frame for
9887 generic dummy frames.
9889 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9891 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9892 size computation for alloca.
9893 (sh_fp_frame_init_saved_regs): Likewise.
9895 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9897 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9898 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9899 * arm-tdep.c (arm_store_return_value): Use them.
9900 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9901 * remote-rdp.c (remote_rdp_fetch_register): Use
9902 ARM_MAX_REGISTER_RAW_SIZE.
9903 (remote_rdp_store_register): Likewise.
9905 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9907 * dwarf2cfi.c: Code cleanup, removed unused variables,
9908 added default labels to switch {} statements.
9909 * x86-64-tdep.c: Ditto.
9910 * x86-64-linux-nat.c: Ditto.
9912 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9914 * solib.h: Protect against multiple inclusion.
9916 2002-05-06 Jim Blandy <jimb@redhat.com>
9918 Add first preprocessor macro-expansion files.
9919 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9920 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9921 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9922 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9923 (COMMON_OBS): Add macrotab.o, macroexp.o.
9924 (macroexp.o, macrotab.o): New rules.
9926 Separate the job of reading the line number info statement program
9927 header (...expialidocious) out into its own function.
9928 * dwarf2read.c (struct line_head, struct filenames, struct
9929 directories): Replace with...
9930 (struct line_header): New structure, containing the full
9931 contents of the statement program header, including the
9932 include directory and file name tables.
9933 (read_file_scope): If we have line number info, instead of just
9934 calling dwarf_decode_lines to do all the work, call
9935 dwarf_decode_line_header first to get a `struct line_header'
9936 containing the data in the statement program header, and then
9937 pass that to dwarf_decode_lines, which will pick up where that
9938 left off. Be sure to clean up the `struct line_header' object.
9939 (dwarf_decode_line_header, free_line_header, add_include_dir,
9940 add_file_name): New functions.
9941 (dwarf_decode_lines): Move all the code to read the statement
9942 program header into dwarf_decode_line_header. Take the line
9943 header it built as the first argument, instead of the offset to
9944 the compilation unit's line number info. Use the new `struct
9945 line_header' type instead of the old structures. No need to do
9946 cleanups here now, since we don't allocate anything.
9947 (dwarf2_statement_list_fits_in_line_number_section,
9948 dwarf2_line_header_too_long): New complaints.
9950 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9952 * gdbtypes.c (init_vector_type): New function.
9953 (build_builtin_type_vec128): Simplify the representation of SIMD
9955 (build_gdbtypes): Initialize new builtin vector types.
9956 (_initialize_gdbtypes): Register new vector types with gdbarch.
9957 (builtin_type_v4_float, builtin_type_v4_int32,
9958 builtin_type_v8_int16, builtin_type_v16_int8,
9959 builtin_type_v2_int32, builtin_type_v4_int16,
9960 builtin_type_v8_int8): New (renamed) SIMD types.
9962 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9964 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9965 (i387_fill_fxsave): Likewise.
9967 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9969 * alpha-tdep.c (alpha_extract_return_value): Don't use
9970 non-constant array size in prototype.
9972 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9974 From Brian Taylor <briant at model dot com>:
9975 * ui-out.c (ui_out_field_core_addr): Use the function
9976 longest_local_hex_string_custom'to format addresses > 32 bits
9979 * ui-out.c (ui_out_field_core_addr): Update comment.
9981 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9983 * stack.c (select_and_print_frame): Make static. Delete the
9985 (func_command): Update call.
9986 (select_frame_command): Delete code computing the frame level.
9987 * frame.h (select_and_print_frame): Delete declaration.
9989 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9991 * sparc-tdep.c (sparc_get_saved_register): Comment why
9992 get_prev_frame call is safe.
9994 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9996 * frame.h (select_frame): Delete level parameter.
9997 * stack.c (select_frame): Update. Use frame_relative_level to
9998 obtain the frame's level.
9999 (select_and_print_frame): Update call.
10000 (select_frame_command): Ditto.
10001 (up_silently_base): Ditto.
10002 (down_silently_base): Ditto.
10003 * ocd.c (ocd_start_remote): Ditto.
10004 * remote-rdp.c (remote_rdp_open): Ditto.
10005 * remote-mips.c (mips_initialize): Ditto.
10006 (common_open): Ditto.
10007 * remote-e7000.c (e7000_start_remote): Ditto.
10008 * m3-nat.c (select_thread): Ditto.
10009 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10010 (child_get_current_exception_event): Ditto.
10011 * varobj.c (varobj_create): Ditto.
10012 (varobj_update): Ditto.
10013 (c_value_of_root): Ditto.
10014 * tracepoint.c (finish_tfind_command): Ditto.
10015 * corelow.c (core_open): Ditto.
10016 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10017 * thread.c (info_threads_command): Ditto.
10018 (switch_to_thread): Ditto.
10019 * infrun.c (normal_stop): Ditto.
10020 (restore_selected_frame): Ditto.
10021 (restore_inferior_status): Ditto.
10022 * breakpoint.c (insert_breakpoints): Ditto.
10023 (watchpoint_check): Ditto.
10024 (bpstat_stop_status): Ditto.
10025 (do_enable_breakpoint): Ditto.
10026 * blockframe.c (flush_cached_frames): Ditto.
10027 (reinit_frame_cache): Ditto.
10029 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10031 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10034 2002-05-04 Jim Blandy <jimb@redhat.com>
10036 * gdbtypes.c (replace_type): Doc fix.
10038 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10040 * valprint.c (strcat_longest): Delete commented out function.
10043 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10045 * MAINTAINERS: Mark a29k as deleted.
10046 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10047 Move new configurations to the top.
10048 * configure.tgt: Remove a29k.
10049 * config/a29k/tm-vx29k.h: Delete.
10050 * config/a29k/vx29k.mt: Delete.
10051 * config/a29k/tm-a29k.h: Delete.
10052 * config/a29k/a29k-udi.mt: Delete.
10053 * config/a29k/a29k.mt: Delete.
10054 * a29k-tdep.c: Delete.
10055 * remote-udi.c: Delete.
10056 * remote-mm.c: Delete.
10057 * remote-eb.c: Delete.
10058 * remote-adapt.c: Delete.
10059 * Makefile.in: Remove obsolete code.
10060 * config/s390/s390x.mt: Ditto.
10061 * config/s390/s390.mt: Ditto.
10062 * config/sparc/sparclynx.mh: Ditto.
10063 * config/sparc/linux.mh: Ditto.
10064 * config/pa/hppaosf.mh: Ditto.
10065 * config/pa/hppabsd.mh: Ditto.
10066 * config/ns32k/nbsd.mt: Ditto.
10067 * config/mips/vr5000.mt: Ditto.
10068 * config/m68k/sun3os4.mh: Ditto.
10069 * config/m68k/nbsd.mt: Ditto.
10070 * config/m68k/m68klynx.mh: Ditto.
10071 * config/m32r/m32r.mt: Ditto.
10072 * config/i386/x86-64linux.mt: Ditto.
10073 * config/i386/nbsdelf.mt: Ditto.
10074 * config/i386/nbsd.mt: Ditto.
10075 * config/i386/i386lynx.mh: Ditto.
10077 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10079 * target.c (debug_print_register): New function. Handle oversize
10081 (debug_to_fetch_registers): Call.
10082 (debug_to_store_registers): Call.
10084 2002-05-03 Jim Blandy <jimb@redhat.com>
10086 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10087 (read_type): Doc fix.
10088 * gdbtypes.c (replace_type): Doc fix.
10090 * stabsread.c (multiply_defined_struct): New complaint.
10091 (read_struct_type): If the type we were passed isn't empty, or
10092 incomplete, don't read the new struct type into it; complain,
10093 and return the original type unchanged. Take a new `type_code'
10094 argument, which is the type code for the new type.
10095 (read_type): Rather than storing the type's type code here, pass
10096 it as an argument to read_struct_type, and let that take care of
10097 storing it. That way, we don't overwrite the original type code,
10098 so read_struct_type can use it to decide whether we're overwriting
10099 something we shouldn't.
10100 (complain_about_struct_wipeout): New function.
10102 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10104 * gdbarch.sh: Assert that gdbarch is non-NULL.
10105 * gdbarch.c: Regenerate.
10107 2002-05-03 Jason Merrill <jason@redhat.com>
10109 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10112 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10114 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10115 (x86_64_dwarf2gdb_regno_map_length),
10116 (x86_64_dwarf2_reg_to_regnum): Added.
10117 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10118 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10119 (_initialize_x86_64_tdep): Synced with the change above.
10120 (x86_64_skip_prologue): Reformulated message.
10122 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10124 * f-exp.y: Also use new prev_lexptr variable
10125 to improve error reporting. Based on Michael Snyder
10126 2002-04-24 dated patch to c-exp.y.
10127 * jv-exp.y: Likewise.
10128 * m2-exp.y: Likewise.
10130 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10132 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10133 we are dealing with vectors.
10135 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10137 * config/m68k/tm-nbsd.h: Obvious fix,
10138 correct machine name.
10140 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10142 * p-typeprint.c (pascal_type_print_base): Add support
10143 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10145 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10147 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10148 for fondamental pascal 'char' type.
10150 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10152 * p-lang.h (is_pascal_string_type): Declaration changed,
10153 new sixth argument of type char ** added.
10154 * p-lang.c (is_pascal_string_type): Implementation
10155 changed. Args length_pos, length_size, string_pos, char_size
10156 can now be NULL. New argument arrayname set to the field
10157 name of the char array. Return value set to char array
10158 field index plus one.
10159 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10160 is_pascal_string_type function.
10162 2002-05-02 Andrew Cagney <cagney@redhat.com>
10164 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10165 <cagney@redhat.com> change.
10166 * gdbarch.c: Regenerate.
10168 2002-05-02 Andrew Cagney <cagney@redhat.com>
10170 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10171 before probing for a new one. Detect errorenous gdbarch_init
10173 * gdbarch.c: Regenerate.
10175 2002-05-01 Andrew Cagney <cagney@redhat.com>
10177 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10178 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10179 * config/v850/tm-v850.h: Ditto. Update copyright.
10181 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10183 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10186 2002-04-30 Michael Snyder <msnyder@redhat.com>
10188 * arm-tdep.c: Whitespace clean-ups.
10189 (arm_skip_prologue): Fix thinko; two lines
10190 should have been removed as part of 4/24 change.
10192 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10194 * rs6000-tdep.c: Added comment describing how fpscr register
10195 numbers were chosen.
10197 2002-04-30 Michael Snyder <msnyder@redhat.com>
10199 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10201 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10203 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10204 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10205 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10207 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10209 From Louis Hamilton <hamilton@redhat.com>:
10210 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10211 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10212 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10213 not bfd-private xcoff data, to determine wordsize.
10214 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10216 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10218 GDB 5.2 released from 5.2 branch.
10220 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10222 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10223 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10224 (x86_64_register_info_table): Added comments with register numbers.
10226 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10228 * rs6000-tdep.c (rs6000_extract_return_value,
10229 rs6000_store_return_value): Handle returning vectors.
10230 (rs6000_gdbarch_init): Use
10231 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10232 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10234 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10236 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10237 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10239 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10241 * hpread.c (hpread_psymtab_to_symtab_1,
10242 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10243 with fprintf_unfiltered (gdb_stderr,...).
10245 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10247 * remote-array.c (printf_monitor, write_monitor,
10248 array_insert_breakpoint, array_remove_breakpoint ):
10249 Replace fprintf (stderr,...
10250 with fprintf_unfiltered (gdb_stderr,....
10251 * remote-es.c: Likewise.
10252 * remote-os9k.c: Likewise.
10253 * remote-st.c: Likewise.
10255 2002-04-28 Andreas Schwab <schwab@suse.de>
10257 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10258 linux-proc.o and gcore.o.
10260 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10262 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10263 code without frame pointers.
10265 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10267 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10268 ON_STACK is needed.
10270 2002-04-26 Ben Elliston <bje@redhat.com>
10272 * target.c (do_xfer_memory): Correct reference to the new option
10273 "trust-readonly-sections".
10275 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10277 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10278 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10279 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10281 (read_array_type): Record the fact that this array type is really a
10282 vector (i.e. are passed in by value).
10284 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10286 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10287 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10288 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10289 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10290 * alpha-linux-tdep.c: Include frame.h.
10291 (alpha_linux_sigcontext_addr): New function.
10292 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10293 alpha_linux_sigcontext_addr.
10294 * alpha-osf1-tdep.c: Include gdbcore.h.
10295 (alpha_osf1_sigcontext_addr): New function.
10296 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10297 alpha_osf1_sigcontext_addr.
10298 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10299 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10301 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10303 * stack.c (selected_frame_level):
10304 (select_frame): Do not set selected_frame_level.
10305 * frame.h (selected_frame_level): Delete declaration.
10307 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10309 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10310 convert_from_func_ptr-addr when AIX / PowerOpen.
10312 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10314 * valops.c (hand_function_call): Call
10315 generic_save_call_dummy_addr.
10316 * frame.h (generic_save_call_dummy_addr): Declare.
10317 * blockframe.c (struct dummy_frame): Add fields call_lo and
10319 (generic_find_dummy_frame): Check for PC in range call_lo to
10320 call_hi instead of entry_point_address.
10321 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10322 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10323 (generic_save_call_dummy_addr): New function.
10325 2002-04-24 David S. Miller <davem@redhat.com>
10327 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10328 sparc_skip_prologue.
10329 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10330 information to find prologue when possible.
10331 (sparc_prologue_frameless_p): Call examine_prologue directly.
10332 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10333 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10335 (SKIP_PROLOGUE): Likewise.
10337 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10339 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10340 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10341 indicate that the condition it was testing is always true.
10342 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10343 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10344 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10346 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10348 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10349 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10350 tdep->jb_pc and tdep->jb_elt_size.
10351 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10352 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10353 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10354 * alpha-nat.c (get_longjmp_target): Remove.
10355 (JB_ELEMENT_SIZE): Ditto.
10357 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10358 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10359 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10360 to alpha_get_longjmp_target.
10361 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10362 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10363 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10365 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10367 * README: Update to GDB 5.2.
10369 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10371 * gdbarch.sh (LC_ALL): Set to `c'.
10373 2002-04-25 Theodore A. Roth <troth@verinet.com>
10375 * avr-tdep.c: Ran through gdb_indent.sh.
10377 2002-04-25 Theodore A. Roth <troth@verinet.com>
10379 * MAINTAINERS: Add myself as AVR maintainer.
10380 * NEWS: Note new target avr.
10382 2002-04-25 Theodore A. Roth <troth@verinet.com>
10384 * Makefile.in: Add support for AVR target.
10385 * configure.tgt: Add support for AVR target.
10386 * avr-tdep.c: New file
10387 * config/avr/avr.mt: New file.
10389 2002-04-25 Theodore A. Roth <troth@verinet.com>
10391 * MAINTAINERS: Add myself to write-after-approval.
10393 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10395 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10396 with fprintf_unfiltered (gdb_stderr,....
10398 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10401 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10403 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10405 * p-exp.y: Also use new prev_lexptr variable
10406 to improve error reporting. Based on Michael Snyder
10407 2002-04-24 dated patch to c-exp.y.
10409 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10411 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10412 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10413 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10415 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10417 (FUNCTION_START_OFFSET): Remove.
10418 (BREAKPOINT): Ditto.
10420 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10422 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10425 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10427 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10428 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10429 alpha_linux_pc_in_sigtramp.
10430 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10431 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10432 alpha_osf1_pc_in_sigtramp.
10433 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10434 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10435 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10436 alphafbsd_pc_in_sigtramp.
10437 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10438 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10439 alphanbsd_pc_in_sigtramp.
10440 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10441 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10443 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10445 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10447 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10449 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10451 (alphanbsd-nat.o): New dependency list.
10452 (alphanbsd-tdep.o): Ditto.
10453 * NEWS: Note new native NetBSD/alpha configuration.
10454 * alphanbsd-nat.c: New file.
10455 * alphanbsd-tdep.c: Ditto.
10456 * configure.host (alpha*-*-netbsd*): New host.
10457 * configure.tgt (alpha*-*-netbsd*): New target.
10458 * config/alpha/nbsd.mh: New file.
10459 * config/alpha/nbsd.mt: Ditto.
10460 * config/alpha/nm-nbsd.h: Ditto.
10461 * config/alpha/tm-nbsd.h: Ditto.
10463 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10465 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10466 (alpha-osf1-tdep.o): New dependency list.
10467 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10468 and skip_sigtramp_frame members.
10469 * alpha-linux-tdep.c: Include gdbcore.h.
10470 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10471 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10472 * alpha-osf1-tdep.c: New file.
10473 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10475 (alpha_frame_past_sigtramp_frame): New function.
10476 (alpha_dynamic_sigtramp_offset): Ditto.
10477 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10478 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10479 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10480 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10481 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10482 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10483 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10484 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10485 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10486 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10487 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10488 to find_solib_trampoline_target.
10489 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10490 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10491 (SKIP_TRAMPOLINE_CODE): Remove.
10492 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10493 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10494 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10495 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10496 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10497 (PROC_SIGTRAMP_MAGIC): Ditto.
10498 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10499 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10500 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10501 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10502 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10504 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10506 * NEWS: Note that Alpha targets are now multi-arch.
10508 2002-04-24 Michael Snyder <msnyder@redhat.com>
10510 * parser-defs.h (prev_lexptr): New external variable.
10511 * parse.c (parse_exp_1): Set prev_lexptr to null before
10512 calling the language-specific parser.
10513 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10514 (yyerror): Use prev_lexptr in error reporting.
10516 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10518 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10519 * gregset.h: If FILL_FPXREGSET is defined, provide
10520 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10521 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10522 is defined, call fill_fpxregset.
10524 2002-04-24 Roland McGrath <roland@frob.com>
10526 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10527 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10528 (supply_gregset, supply_fpregset): New functions.
10530 * gnu-nat.c (gnu_find_memory_regions): New function.
10531 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10532 (gnu_xfer_memory): Add a cast.
10534 2002-04-24 Michael Snyder <msnyder@redhat.com>
10536 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10537 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10538 of argument regs ("str r(0123), [r11, #-nn"]).
10539 (arm_skip_prologue): Better handling for frameless functions.
10540 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10541 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10543 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10545 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10546 NUM_PSEUDO_REGS can be used.
10548 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10550 * arch-utils.h: Update copyright.
10552 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10553 * gdbarch.h, gdbarch.c: Re-generate.
10555 * inferior.h (IN_SIGTRAMP): Delete definition.
10556 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10557 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10559 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10560 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10561 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10562 (find_proc_framesize): Ditto.
10563 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10564 (alpha_init_extra_frame_info): Ditto.
10565 * infrun.c (handle_inferior_event): Ditto.
10566 (handle_inferior_event): Ditto.
10567 (check_sigtramp2): Ditto.
10568 * blockframe.c (create_new_frame): Ditto.
10569 (get_prev_frame): Ditto.
10570 * ppc-linux-tdep.c: Update comments.
10571 * i386-linux-tdep.c: Update comments.
10572 * breakpoint.c (bpstat_what): Update comment.
10574 2002-04-24 David S. Miller <davem@redhat.com>
10576 * i960-tdep.c (register_in_window_p): New function.
10577 (i960_find_saved_register): Use it instead of
10578 REGISTER_IN_WINDOW_P.
10579 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10581 * symtab.h (find_stab_function_addr): Kill extern.
10582 * minsyms.c (find_stab_function_addr): Remove from here...
10583 * dbxread.c: ... to here, and mark it static.
10585 2002-04-20 David S. Miller <davem@redhat.com>
10587 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10588 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10590 2002-04-21 David S. Miller <davem@redhat.com>
10592 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10593 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10594 (vx_write_register): Likewise.
10596 2002-04-23 J. Brobecker <brobecker@gnat.com>
10598 * source.c (is_regular_file): New function.
10599 (openp): Check wether file to open is a regular file
10600 to avoid opening directories.
10602 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10604 * findvar.c (extract_signed_integer): Cast printf argument
10605 to suppress format warning.
10606 (extract_unsigned_integer): Likewise.
10607 * infcmd.c (registers_info): Likewise.
10608 * top.c (get_prompt_1): Likewise.
10609 * valops.c (value_assign): Likewise.
10610 * valprint.c (print_decimal): Likewise.
10612 2002-04-22 H.J. Lu (hjl@gnu.org)
10614 * c-exp.y (typebase): Support
10616 [long|long long|short] [signed|unsigned] [int|]
10620 signed [long|long long|short] int
10622 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10624 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10626 * vax-tdep.h: New file.
10627 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10628 Make several routines static.
10629 (vax_get_saved_register): New function.
10630 (vax_gdbarch_init): New function.
10631 (_initialize_vax_tdep): Register vax_gdbarch_init.
10632 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10633 Remove macros now under the control of gdbarch.
10635 2002-04-22 Michael Snyder <msnyder@redhat.com>
10637 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10638 Some whitespace and coding standards tweaks.
10640 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10642 * vax-tdep.c: Include regcache.h.
10643 (vax_call_dummy_words): New.
10644 (sizeof_vax_call_dummy_words): New.
10645 (vax_fix_call_dummy): New function.
10646 (vax_saved_pc_after_call): Ditto.
10647 * config/vax/tm-vax.h: Don't include regcache.h.
10648 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10649 (CALL_DUMMY): Remove.
10650 (CALL_DUMMY_WORDS): Define.
10651 (SIZEOF_CALL_DUMMY_WORDS): Define.
10652 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10654 2002-04-18 Michael Snyder <msnyder@redhat.com>
10656 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10658 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10660 * vax-tdep.c (vax_frame_chain): New function.
10661 (vax_push_dummy_frame): Ditto.
10662 (vax_pop_frame): Ditto.
10663 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10664 (FRAMELESS_FUNCTION_INVOCATION): Use
10665 generic_frameless_function_invocation_not.
10666 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10667 (POP_FRAME): Use vax_pop_frame.
10669 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10671 * vax-tdep.c (vax_store_struct_return): New function.
10672 (vax_extract_return_value): Ditto.
10673 (vax_store_return_value): Ditto.
10674 (vax_extract_struct_value_address): Ditto.
10675 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10676 vax_store_struct_return.
10677 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10678 (STORE_RETURN_VALUE): Use vax_store_return_value.
10679 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10681 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10683 * vax-tdep.c (vax_frame_saved_pc): New function.
10684 (vax_frame_args_address_correct): Ditto.
10685 (vax_frame_args_address): Ditto.
10686 (vax_frame_locals_address): Ditto.
10687 (vax_frame_num_args): Move code to be in proximity to
10688 other frame-related functions.
10689 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10690 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10691 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10692 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10693 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10695 2002-04-22 H.J. Lu (hjl@gnu.org)
10697 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10700 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10702 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10703 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10704 (FRAME_INIT_SAVED_REGS): New macro.
10706 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10708 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10710 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10712 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10714 (fetch_osf_core_registers): Likewise.
10715 (supply_gregset): Likewise.
10717 2002-04-22 J. Brobecker <brobecker@gnat.com>
10719 * symfile.h (get_section_index): Define.
10720 * symfile.c (get_section_index): New function.
10721 * mdebugread.c (SC_IS_SBSS): New macro.
10722 (SC_IS_BSS): Return true for the scBss storage class only, as
10723 the scSBss storage class refers to the .sbss section.
10724 (parse_partial_symbols): Discard the symbols which associated
10725 section does not exist.
10726 Make sure to use the .sbss section index for symbols which
10727 storage class is scBss, rather than using the .bss section index.
10729 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10731 * vax-tdep.c: Update copyright years.
10732 (vax_register_name): New function.
10733 (vax_register_byte): Ditto.
10734 (vax_register_raw_size): Ditto.
10735 (vax_register_virtual_size): Ditto.
10736 (vax_register_virtual_type): Ditto.
10737 * config/vax/tm-vax.h: Update copyright years.
10738 (REGISTER_NAMES): Remove.
10739 (REGISTER_NAME): Define.
10740 (REGISTER_BYTE): Use vax_register_byte.
10741 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10742 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10743 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10745 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10747 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10749 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10751 2002-04-21 David S. Miller <davem@redhat.com>
10753 * arch-utils.c (generic_prologue_frameless_p): Kill
10754 SKIP_PROLOGUE_FRAMELESS_P code.
10755 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10757 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10758 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10759 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10761 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10762 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10763 (sparc_gdbarch_init): Pass it to
10764 set_gdbarch_prologue_frameless_p.
10766 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10768 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10769 (alphabsd-nat.o): New dependency list.
10771 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10773 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10775 (alpha-linux-tdep.o): New dependency list.
10776 (alphafbsd-tdep.o): Likewise.
10778 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10780 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10782 * alpha-tdep.c: ...from here.
10783 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10785 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10787 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10788 prototype from here...
10789 * alpha-tdep.h: ...to here.
10791 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10793 * frame.h (selected_frame_level): Document as deprecated.
10794 (frame_relative_level): Declare.
10795 * stack.c (frame_relative_level): New function.
10796 (selected_frame_level): Document as deprecated.
10797 (select_frame): Do not set the selected_frame_level.
10799 * stack.c (frame_info, record_selected_frame): Update.
10800 (frame_command, current_frame_command): Update.
10801 (up_silently_base, up_command, down_silently_base): Update.
10802 (down_command): Update.
10803 * inflow.c (kill_command): Update.
10804 * tracepoint.c (finish_tfind_command): Update.
10805 * corelow.c (core_open): Update.
10806 * thread.c (info_threads_command): Update.
10807 (do_captured_thread_select): Update.
10808 * infcmd.c (finish_command): Update.
10809 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10811 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10813 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10815 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10817 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10820 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10822 * alphafbsd-tdep.c: Update copyright years. Include
10824 (alphafbsd_use_struct_convention): Make static.
10825 (alphafbsd_init_abi): New function.
10826 (_initialize_alphafbsd_tdep): New function.
10827 * config/alpha/tm-fbsd.h: Update copyright years.
10828 (USE_STRUCT_CONVENTION): Remove.
10830 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10832 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10833 an Alpha ABI variant.
10834 (alpha_abi_handler_list): Declare.
10835 (alpha_gdbarch_register_os_abi): New function.
10836 (alpha_gdbarch_init): Give registered ABI variant handlers a
10837 chance to tweak the gdbarch once we have set up defaults.
10838 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10840 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10842 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10843 to standard_coerce_float_to_double.
10844 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10846 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10848 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10849 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10850 from gdbarch_tdep rather than a constant.
10851 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10852 the default text address for all Alpha Unix ABIs.
10853 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10854 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10856 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10858 * alpha-tdep.h: New file. Includes several Alpha target constants
10860 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10861 let gdbarch deal with.
10862 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10863 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10864 to dependency list.
10865 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10866 Alpha target register names.
10867 * alphabsd-nat.c: Likewise.
10868 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10869 Alpha target register names. Make serveral routines static.
10870 (alpha_get_saved_register): New function.
10871 (alpha_abi_names): New.
10872 (process_note_abi_tag_sections): New function.
10873 (get_elfosabi): New function.
10874 (alpha_gdbarch_init): New function.
10875 (alpha_dump_tdep): New function.
10876 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10878 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10880 * frame.c (find_saved_register): Delete #ifdef
10881 HAVE_REGISTER_WINDOWS code.
10882 * config/sparc/tm-sparc.h: Update comments.
10883 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10885 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10887 * i960-tdep.c (i960_find_saved_register): New function.
10888 (i960_get_saved_register): New function.
10889 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10890 (i960_get_saved_register): Declare.
10891 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10893 2002-04-20 David S. Miller <davem@redhat.com>
10895 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10897 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10899 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10900 instead of NUM_PSEUDO_REGS.
10902 2002-04-20 David S. Miller <davem@redhat.com>
10904 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10905 GDB_MULTI_ARCH_PARTIAL
10906 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10907 define, let tm-sp64.h do it.
10909 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10911 * frame.c (find_saved_register): Avoid a NULL pointer
10912 dereference and actually walk the frame list.
10914 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10916 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10917 sorted in most most-recent-used order. Document.
10918 * gdbarch.h, gdbarch.c: Regenerate.
10920 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10922 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10924 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10925 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10926 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10929 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10932 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10933 (build_builtin_type_vec128): Ditto.
10934 (append_composite_type_field): Fix calculation of type length in
10937 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10939 * config/djgpp/README: Update.
10941 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10944 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10946 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10947 (alpha_setup_arbitrary_frame): ...to this.
10948 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10949 for alpha_setup_arbitrary_frame.
10951 2002-04-18 Andrew Cagney <cagney@redhat.com>
10953 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10954 * gdbarch.h, gdbarch.c: Regenerate.
10956 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10957 * target.h (memory_breakpoint_from_pc): Update declaration.
10958 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10960 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10961 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10962 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10963 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10964 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10965 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10966 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10967 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10968 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10969 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10970 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10971 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10973 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10975 * monitor.c (monitor_insert_breakpoint): Ditto.
10976 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10978 * config/mcore/tm-mcore.h: Update copyright.
10979 * mem-break.c: Ditto.
10980 * xstormy16-tdep.c: Ditto.
10982 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10984 * p-exp.y: Add precedence rule for '^' token.
10985 This removes the shift/reduce conflicts.
10986 Remove the comment concerning these shift/reduce conflicts.
10988 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10990 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10991 (registers_powerpc_nofp): New register set for processors
10992 without floating point unit.
10994 2002-04-18 David S. Miller <davem@redhat.com>
10996 * MAINTAINERS: Add myself to write-after-approval.
10998 2002-04-17 Michael Snyder <msnyder@redhat.com>
11000 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11002 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11004 * rs6000-tdep.c (frame_initial_stack_address): Use
11005 frame_register_read to read the alloca_reg.
11007 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11009 * frame.c (find_saved_register): Find saved registers in the next
11013 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11015 * gdbarch.sh (LANG): Set to ``c''.
11017 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11019 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11021 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11023 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11026 * hpread.c (hpread_get_lntt): Add declaration.
11027 Also fix PR gdb/391.
11029 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11031 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11032 * aclocal.m4, configure: Re-generate.
11035 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11037 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11038 instead of tm_print_insn.
11040 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11042 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11044 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11046 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11047 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11048 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11050 2002-04-12 Don Howard <dhoward@redhat.com>
11052 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11053 max_user_call_depth.
11054 (init_cmd_lists): Initialize the new value;
11055 * cli/cli-script.c (execute_user_command): Limit the call depth of
11056 user defined commands. This avoids a core-dump when user commands
11057 are infinitly recursive.
11059 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11061 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11062 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11063 from tdep struct instead of DEFAULT_LR_SAVE.
11064 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11065 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11066 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11068 2002-04-12 Michael Snyder <msnyder@redhat.com>
11070 * Remote.c: Spelling fix.
11071 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11072 If no symbol found for "sbrk", try "_sbrk".
11073 (make_output_phdrs): Use bfd_section_name.
11074 (gcore_copy_callback): Use bfd_section_name.
11075 * eval.c: Indentation fix-ups.
11076 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11077 in case it gets applied to an address that is already
11078 in the instruction space.
11079 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11080 * symfile.c: Fix indentation, long lines.
11081 * source.c: White space fix-up.
11083 2002-04-12 Andrew Cagney <cagney@redhat.com>
11085 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11086 * frame.c (frame_register_read): New function. Return non-zero on
11088 (read_relative_register_raw_bytes_for_frame): Delete.
11089 (read_relative_register_raw_bytes): Delete.
11090 * frame.h (frame_register_read): Declare.
11091 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11092 * sh-tdep.c: Ditto.
11093 * infcmd.c (do_registers_info): Ditto.
11094 * hppa-tdep.c: Ditto.
11095 * rs6000-tdep.c: Ditto.
11096 * h8500-tdep.c: Ditto.
11097 * mips-tdep.c: Ditto.
11098 * h8300-tdep.c: Ditto.
11099 * z8k-tdep.c: Ditto.
11101 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11103 From Jimi X <jimix@watson.ibm.com>:
11104 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11107 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11109 From Jimi X <jimix@watson.ibm.com>:
11110 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11113 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11115 From Jimi X <jimix@watson.ibm.com>:
11116 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11117 register sets for these processor variants.
11119 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11121 * regformats/reg-ppc.dat: Support FPSCR.
11123 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11125 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11126 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11127 Add fpscr as an invalid/unfetchable register.
11128 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11129 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11130 (fill_fpregset): Add support for register fpscr.
11131 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11132 (fill_gregset): Account for the fact that register ``mq'' might
11134 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11135 (registers_power): Add fpscr to register set at slot 71.
11136 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11137 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11139 2002-04-11 Michael Snyder <msnyder@redhat.com>
11141 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11142 * configure: Regenerate.
11143 * config.in: Regenerate.
11144 * acconfig.h: Add define for _SYSCALL32.
11145 * core-sol2.c: Remove #define _SYSCALL32.
11146 * solib-legacy.c: Remove #define _SYSCALL32.
11148 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11150 * stack.c (select_frame): Cleanup internal error message, do not
11153 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11155 * stack.c (select_frame): Check that selected_frame and the
11156 specified level are as expected.
11157 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11159 * frame.h (struct frame_info): Add field `level'. Update
11161 Work-in-progress PR gdb/464.
11163 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11165 * maint.c (maint_print_section_info): Rename print_section_info.
11166 (print_bfd_section_info, print_objfile_section_info): Update.
11167 * inferior.h (struct gdbarch): Add opaque declaration.
11168 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11169 * gdbarch.h: Regenerate.
11171 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11173 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11174 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11175 (kernel_u_size): Added.
11176 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11177 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11179 2002-04-04 Jim Ingham <jingham@apple.com>
11181 * valarith.c (find_size_for_pointer_math): New function, either returns
11182 the size for a pointer's target, returns 1 for void *, or errors for
11184 (value_add, value_sub): use find_size_for_pointer_math.
11186 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11188 * linux-low.c (linux_look_up_symbols): New hook.
11189 (linux_target_ops): Add linux_look_up_symbols.
11190 * remote-utils.c (decode_address): New function.
11191 (look_up_one_symbol): New function.
11192 * server.c (handle_query): Call target look_up_symbols hook.
11193 * server.h (look_up_one_symbol): Add prototype.
11194 * target.h (struct target_ops): Add look_up_symbols hook.
11196 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11198 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11199 override FP_REGNUM with frame->fp. Update copyright.
11200 * parse.c (num_std_regs, std_regs): Delete.
11201 (target_map_name_to_register): Do not search std_regs. Update
11202 function description.
11203 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11204 declarations. Update copyright.
11207 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11209 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11210 after the last symbol in a block.
11212 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11214 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11215 is non zero as a found symbol.
11217 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11219 * findvar.c: Include "builtin-regs.h".
11220 (value_of_register): Call value_of_builtin_reg when applicable.
11221 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11222 (target_map_name_to_register): Call
11223 builtin_reg_map_name_to_regnum.
11224 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11225 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11226 (builtin_regs_h): Define.
11227 (builtin-regs.o): New target.
11228 (findvar.o): Add $(builtin_regs_h).
11229 * builtin-regs.c, builtin-regs.h: New files.
11230 * std-regs.c: New file.
11231 Partial fix for PR gdb/251.
11233 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11235 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11236 it's no longer required.
11238 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11240 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11242 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11244 From Jimi X <jimix@watson.ibm.com>:
11245 * rs6000-tdep.c (rs6000_software_single_step): Use
11246 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11247 and size. Use target_insert_breakpoint() and
11248 target_remove_breakpoint() to insert and remove breakpoints
11249 instead of explicit memory reads and writes.
11251 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11253 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11254 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11255 ELF_OBJECT_FORMAT ifdef.
11257 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11259 From Jimi X <jimix@watson.ibm.com>:
11260 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11262 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11264 From Jimi X <jimix@watson.ibm.com>:
11265 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11266 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11268 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11270 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11271 s/asprintf/xasprintf/.
11272 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11274 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11276 I believe Jeff Law denies responsability for this one:
11277 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11278 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11279 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11280 Work-around for PR gdb/366.
11282 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11284 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11285 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11286 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11288 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11290 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11291 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11294 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11296 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11299 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11301 * README (Reporting Bugs in GDB): Document the bug web page as the
11302 prefered way of submitting bugs.
11305 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11307 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11308 -1. Update comment.
11309 * gdbarch.h, gdbarch.c: Re-generate.
11311 2002-04-07 Andreas Schwab <schwab@suse.de>
11313 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11314 buffer to regcache_collect.
11316 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11318 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11319 * gdbarch.c, gdbarch.h: Re-generate.
11321 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11323 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11324 declaration. Fix -Werror.
11326 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11328 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11329 * gdbarch.c: Regenerate.
11331 2002-04-05 Michael Snyder <msnyder@redhat.com>
11333 * breakpoint.c (clear_command): Rewrite middle section to
11334 combine two loops with identical control conditions.
11335 Add a cleanup to eliminate a memory leak.
11336 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11338 2002-04-05 H.J. Lu (hjl@gnu.org)
11340 * solib-svr4.c (bkpt_names): Add "__start".
11342 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11344 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11345 as test for 64 bit target.
11347 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11349 * h8500-tdep.c (h8500_write_fp): Delete function.
11350 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11351 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11352 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11354 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11355 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11357 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11358 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11359 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11360 (d10v_write_fp): Delete function.
11361 * inferior.h (write_fp, generic_target_write_fp): Delete
11363 * regcache.c (generic_target_write_fp): Delete function.
11364 (write_fp): Delete function.
11365 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11366 * gdbarch.h, gdbarch.c: Regenerate.
11367 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11368 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11369 (sparc64_write_fp): Delete declaration.
11370 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11371 (h8500_write_fp): Delete declaration.
11373 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11375 * sparc-tdep.c (sparc64_write_fp): Delete.
11376 (sparc_push_dummy_frame): Replace write_fp call with code to store
11378 (sparc_gdbarch_init): Do not initialize write_fp.
11380 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11382 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11385 2002-03-29 Jim Blandy <jimb@redhat.com>
11387 * stack.c (get_selected_block): Add new argument `addr_in_block',
11388 used to return the exact code address we used to select the block,
11389 not just the block.
11390 * blockframe.c (get_frame_block, get_current_block): Same.
11391 * frame.h (get_frame_block, get_current_block,
11392 get_selected_block): Update declarations.
11393 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11394 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11396 2002-04-05 Michael Snyder <msnyder@redhat.com>
11398 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11401 2002-04-05 J. Brobecker <brobecker@gnat.com>
11403 * utils.c (xfullpath): New function.
11404 * defs.h (xfullpath): Add declaration.
11405 * source.c (openp): Use xfullpath in place of gdb_realpath to
11406 avoid resolving the basename part of filenames when the
11407 associated file is a symbolic link. This fixes a potential
11408 inconsistency between the filenames known to GDB and the
11409 filenames it prints in the annotations.
11410 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11411 to be able to match a filename with either the real filename, or
11412 the name of any symbolic link to this file.
11413 (lookup_partial_symtab): Ditto.
11415 2002-04-04 Michael Snyder <msnyder@redhat.com>
11417 * breakpoint.c: Add support for hardware breakpoints in overlays.
11418 (overlay_events_enabled): New state variable.
11419 (insert_breakpoints): Use overlay_events_enabled to decide
11420 whether to attempt to set a breakpoint at the overlay load addr.
11421 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11422 (remove_breakpoint): Use overlay_events_enabled to decide
11423 whether breakpoints need to be removed from overlay load addr.
11424 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11425 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11426 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11427 disable_overlay_breakpoints): Update overlay_events_enabled.
11429 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11431 * dwarf2read.c (struct function_range): New.
11432 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11433 (check_cu_functions): New.
11434 (read_file_scope): Initialize global function lists.
11435 Call dwarf_decode_line after processing children.
11436 (read_func_scope): Add to global function list.
11437 (dwarf_decode_lines): Call check_cu_functions everywhere
11438 record_line is called. Call record_line with a linenumber
11439 of 0 to mark sequence ends.
11441 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11443 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11444 change sync with glibc.
11446 2002-04-03 Jim Blandy <jimb@redhat.com>
11448 * configure.in: Call AC_C_INLINE.
11449 * configure: Regenerated.
11451 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11453 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11454 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11456 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11458 * NEWS: Mention gcore support on FreeBSD/i386.
11460 * fbsd-proc.c: New file.
11461 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11462 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11464 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11467 2002-03-29 Jim Blandy <jimb@redhat.com>
11469 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11470 unescaped newlines in string literals, but newer ones don't. So
11473 2002-03-26 Michael Snyder <msnyder@redhat.com>
11474 Andrew Cagney <cagney@redhat.com>
11476 * cli/cli-dump.c: New file. Dump memory to file,
11477 restore file to memory.
11478 * cli/cli-dump.h: New file.
11479 * Makefile.in: Add rules, dependencies for cli-dump.o.
11480 * NEWS: Mention new commands.
11482 2002-03-28 Michael Snyder <msnyder@redhat.com>
11484 * symfile.c (symbol_file_add): Move test for null symbols to later.
11486 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11488 From veksler at il.ibm.com:
11489 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11490 the xstrduped original path.
11493 2002-03-27 Michael Snyder <msnyder@redhat.com>
11495 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11496 * infcmd.c (_initialize_infcmd): Ditto.
11497 * language.c (_initialize_language): Ditto.
11498 * symfile.c (_initialize_symfile): Ditto.
11499 * top.c (_init_main): Ditto.
11500 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11502 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11504 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11505 vector registers handling.
11506 (skip_prologue): Handle new AltiVec instructions. Fill in new
11507 fields of frame data.
11508 (frame_get_saved_regs): Fill in information for AltiVec registers.
11510 2002-03-27 Jim Blandy <jimb@redhat.com>
11512 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11513 a function; leave this macro here to invoke that function.
11514 (symbol_init_mangled_name): Declaration for that function.
11515 * symtab.c (symbol_init_mangled_name): New function.
11517 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11519 * valarith.c: Replace strerror with safe_strerror.
11520 * tracepoint.c: Ditto.
11521 * lin-lwp.c: Ditto.
11522 * go32-nat.c: Ditto.
11524 * gnu-nat.c: Ditto.
11526 2002-03-27 Andreas Schwab <schwab@suse.de>
11528 * event-top.c (command_line_handler): Remove useless if.
11530 2002-03-27 Andreas Jaeger <aj@suse.de>
11532 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11535 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11537 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11538 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11539 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11540 (x86_64_linux_dr_get_status, supply_gregset),
11541 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11542 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11543 (x86_64_register_info_table): Add.
11544 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11545 (x86_64_register_raw_size, x86_64_register_virtual_type),
11546 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11547 general x86_64_register_info_table.
11548 (i386_gdbarch_init): gdbarch_register_bytes is now set
11549 dynamicaly during initialization.
11550 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11551 * gdbserver/linux-x86-64-low.c: Ditto.
11553 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11555 * gdbserver/server.c (main): Call target_signal_to_host_p
11556 and target_signal_to_host on signals received from the remote.
11557 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11558 target_signal_from_host on signals sent to the remote.
11559 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11560 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11562 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11564 * signals/signals.c: Include "server.h" in gdbserver build.
11565 (target_signal_from_name): Don't use STREQ.
11566 (_initialize_signals): Likewise. Don't include function in
11569 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11571 * signals.c: Moved to...
11572 * signals/signals.c: Here.
11573 * Makefile (signals.o): Update.
11575 2002-03-26 Jeff Law (law@redhat.com)
11577 * somread.c (som_symtab_read): Remove some commented out code and
11578 updated related comments. Do not set the minimal symbol table to
11579 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11580 in a dynamic executable.
11581 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11582 where we are unable to find the minimal symbol for the given
11585 2002-03-25 Jeff Law (law@redhat.com)
11587 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11589 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11591 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11593 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11595 * command.h: Update copyright.
11596 (struct cmd_list_element): Replace definition with opaque
11598 (enum cmd_types): Document that it will eventually be moved to
11600 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11601 (MALLOCED_REPLACEMENT): Delete macro.
11602 * Makefile.in (cli_decode_h): Add $(command_h).
11603 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11604 * top.c: Include "cli/cli-decode.h".
11605 * completer.c: Include "cli/cli-decode.h".
11606 * maint.c: Include "cli/cli-decode.h".
11607 * cli/cli-decode.h: Include "command.h".
11608 (enum command_class): Delete.
11609 (enum cmd_types): Comment out.
11610 (enum cmd_auto_boolean): Delete.
11611 (enum var_types): Delete.
11613 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11615 * cli/cli-decode.c: Include "gdb_assert.h".
11616 (add_set_or_show_cmd): New static function.
11617 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11618 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11619 all fields, such as func, from the set command.
11621 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11623 * MAINTAINERS (sh-elf): Change warning flag to -w.
11625 2002-03-23 Andrew Cagney <cagney@redhat.com>
11627 * defs.h (error): Add printf format attribute.
11628 * thread-db.c (thread_from_lwp): Fix error format string.
11629 * stack.c (parse_frame_specification): Ditto.
11630 * cli/cli-decode.c (undef_cmd_error): Ditto.
11631 * scm-lang.c (scm_lookup_name): Ditto.
11632 * tracepoint.c (trace_error): Ditto.
11633 * remote-utils.c (usage): Ditto.
11634 * remote.c (compare_sections_command): Ditto.
11637 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11639 * gdbtypes.c (append_composite_type_field): New function.
11640 (init_composite_type): New function.
11641 * gdbtypes.h (append_composite_type_field): Declare.
11642 (init_composite_type): Ditto.
11644 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11646 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11648 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11649 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11650 structure returning convention for SYSV ABI case, but not
11651 for GNU/Linux, FreeBSD, or NetBSD.
11653 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11655 * symtab.h (lookup_block_symbol): Add mangled_name argument
11658 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11659 with new mangled_name argument.
11660 * linespec.c (decode_line_1): Likewise.
11661 * valops (value_of_this): Likewise.
11662 * symtab.c (lookup_transparent_type): Likewise.
11663 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11664 (lookup_symbol): If we are given a mangled name, pass it down
11665 to lookup_symbol_aux.
11666 (lookup_block_symbol): If we are given a mangled name to check
11667 against, only return symbols which match it.
11669 2002-03-22 Christopher Faylor <cgf@redhat.com>
11671 * win32-nat.c (child_create_inferior): Check for proper shell to use
11672 here, in case the user changes it on the fly.
11673 (_initialize_inftarg): Remove shell path considerations.
11675 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11677 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11678 for gdbarch_max_register_raw_size and max_register_virtual_size.
11679 Adjust copyright year.
11681 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11683 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11684 in a function to cover the entire beginning of the function
11685 as well if it does not already.
11687 2002-03-21 Tom Rix <trix@redhat.com>
11689 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11690 (rs6000_ptrace64): Renamed from ptrace64.
11692 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11694 * gdbserver/remote-utils.c (remote_open): Don't call
11695 getprotobyname, we're all using TCP here so just use
11697 * gdbserver/gdbreplay.c (remote_open): Ditto.
11699 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11701 * regcache.c (_initialize_regcache): No need to call
11702 build_regcache() at this time; it gets called whenever
11703 the gdbarch changes.
11705 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11707 * sparc-nat.c: Include sys/param.h where possible.
11709 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11712 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11713 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11714 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11716 * stabsread.c (rs6000_builtin_type): Likewise.
11717 (read_sun_floating_type): Likewise.
11719 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11721 * stabsread.c (read_member_functions): Remove skip code for duplicate
11722 constructor/destructor methods. Use standard parsing for these
11723 methods and just do not chain them to the list of methods after
11726 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11728 * coffread.c: Remove redundant static declarations. Replace
11729 occurrences of `PTR' with `void *'.
11730 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11731 * top.h (quit_cover): Likewise.
11732 * defs.h (catch_errors): Likewise.
11734 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11736 * defs.h (XMALLOC): Define.
11737 * gdb-events.sh (XMALLOC): Delete macro.
11738 * gdb-events.c, gdb-events.h: Regenerate.
11739 * gdbarch.sh (XMALLOC): Delete macro.
11740 * gdbarch.c: Regenerate.
11741 * serial.c (XMALLOC): Delete macro.
11742 * ui-file.c (XMALLOC): Ditto.
11743 * ser-unix.h (XMALLOC): Ditto.
11744 * sh-tdep.c (XMALLOC): Ditto.
11745 * ui-out.c (XMALLOC): Ditto.
11746 * utils.c (XMALLOC): Ditto.
11747 * i386-tdep.c (XMALLOC): Ditto.
11748 * gdb-events.c (XMALLOC): Ditto.
11749 * d10v-tdep.c (XMALLOC): Ditto.
11750 * cli-out.c (XMALLOC): Ditto.
11752 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11753 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11754 * ui-file.c, ui-out.c: Ditto.
11756 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11758 * command.h (struct cmd_list_element): Add field context.
11759 (set_cmd_context, get_cmd_context): Declare.
11760 * cli/cli-decode.h: Ditto.
11761 * cli/cli-decode.c (get_cmd_context): New function.
11762 (set_cmd_context): New function.
11763 (add_cmd): Initialize context.
11764 Part of fixing PR gdb/145 and PR gdb/146.
11766 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11768 * cli/cli-decode.c (cmd_type): New function.
11769 * command.h (cmd_type): Declare.
11770 * infrun.c (set_schedlock_func): Call function cmd_type.
11771 * kod.c (kod_set_os): Call cmd_type.
11772 * cris-tdep.c (cris_version_update): Use function cmd_type.
11773 (cris_mode_update, cris_abi_update): Ditto.
11775 * command.h: (execute_cmd_post_hook): Declare.
11776 (execute_cmd_pre_hook): Declare.
11777 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11778 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11779 functions. Execute pre/post hook while ensuring that afterwords
11780 hook_in is cleared.
11781 * top.c (execute_command): Use execute_cmd_post_hook, and
11782 execute_cmd_pre_hook to execute pre/post commands.
11783 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11785 (hook_stop_stub): Call execute_cmd_pre_hook.
11787 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11789 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11790 set'' and this leads to a core dump. Move xstrdup of
11791 operating_system to after check that it is not NULL.
11793 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11795 * kod.c (kod_set_os): Remove unnecessary check that
11796 ``command->type'' is set_cmd.
11798 * valprint.c (set_input_radix): Use input_radix.
11799 (set_output_radix): Use output_radix.
11800 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11803 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11805 * value.h (struct value): Delete field ``substring_addr''. Change
11806 aligner fields to force_doublest_align, force_longest_align,
11807 force_core_addr_align and force_pointer_aligh.
11809 * value.h (struct value): Fix typo in above change.
11811 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11813 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11814 to fix internal_error from ``maintenance print architecture''.
11816 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11818 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11819 for gcc versions after gcc-2.8.1.
11821 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11823 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11824 for method resolution. Restore adjustment of ``this'' pointer after
11825 calling value_struct_elt, which was accidentally removed during the
11828 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11830 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11832 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11833 get_saved_register.
11834 * value.h (value_of_register): Update.
11836 2002-03-14 Richard Henderson <rth@redhat.com>
11838 * configure.in: Detect declaration for canonicalize_file_name.
11839 * utils.c (canonicalize_file_name): Declare, if needed.
11840 (gdb_realpath): Prefer realpath if available and usable.
11841 * config.in, configure: Rebuild.
11843 2002-03-14 Richard Henderson <rth@redhat.com>
11845 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11846 a constant array bound.
11848 * MAINTAINERS: Add myself to write-after-approval.
11850 2002-03-14 Michael Snyder <msnyder@redhat.com>
11852 * symfile.c (syms_from_objfile): Return immediately if no syms.
11853 (symbol_file_add): Return immediately if no syms.
11854 (find_sym_fns): Return immediately if no syms.
11856 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11858 * gdbserver/remote-util.c (remote_open): Print remote-side's
11859 IP address when remote debugging over the network.
11861 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11863 * config/sparc/fbsd.mh: Fix copyright.
11864 * config/sparc/fbsd.mt: Likewise.
11866 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11868 * MAINTAINERS: Fix typo in name of gdb warnings option.
11869 (x86-64): Fix formating so that this can be parsed by awk.
11871 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11873 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11874 * defs.h: Include "gdb/signals.h".
11875 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11877 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11879 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11880 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11883 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11884 Don Howard <dhoward@redhat.com>
11886 * mips-tdep.c (ST0_FR): Define.
11887 (mips2_fp_compat): New function, temporarily disabled.
11888 (mips_read_fp_register_single): New function.
11889 (mips_read_fp_register_double): New function.
11890 (mips_print_register): Use them.
11891 (do_fp_register_row): Likewise.
11893 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11895 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11898 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11900 * stabsread.c (read_member_functions): Fix is_stub test for
11901 static member functions, improve comment.
11903 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11905 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11906 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11907 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11908 commands that set boolean values.
11909 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11910 (arm_rdi_resume): Always initialize PC.
11911 (arm_rdi_open): Don't use rslt as a boolean.
11912 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11913 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11914 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11915 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11917 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11919 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11920 * configure: Rebuilt.
11922 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11924 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11925 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11927 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11929 * cli/cli-decode.c (set_cmd_completer): New function.
11930 * command.h (set_cmd_completer): Declare.
11931 * cli/cli-decode.h (set_cmd_completer): Ditto.
11933 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11934 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11935 * win32-nat.c (_initialize_inftarg): Ditto.
11936 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11937 * proc-api.c (_initialize_proc_api): Ditto.
11938 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11939 * source.c (_initialize_source): Ditto.
11940 * exec.c (_initialize_exec): Ditto.
11941 * solib.c (_initialize_solib): Ditto.
11942 * top.c (init_main): Ditto.
11943 * tracepoint.c (_initialize_tracepoint): Ditto.
11944 * symfile.c (_initialize_symfile): Ditto.
11945 * printcmd.c (_initialize_printcmd): Ditto.
11946 * infcmd.c (_initialize_infcmd): Ditto.
11947 * corefile.c (_initialize_core): Ditto.
11949 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11951 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11953 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11955 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11957 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11959 * NEWS: Update headings, 5.2 has branched.
11961 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11963 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11964 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11965 (register_addr, REGISTER_RAW_SIZE): Likewise.
11966 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11967 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11969 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11971 * MAINTAINERS (x86-64): Add myself.
11972 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11973 changed value_ptr -> struct value *
11975 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11977 * configure.host (sparc64-*-freebsd): Add.
11978 * configure.tgt: Likewise.
11979 * config/sparc/fbsd.mh: New file.
11980 * config/sparc/fbsd.mt: Likewise.
11981 * config/sparc/nm-fbsd.h: Likewise.
11982 * config/sparc/tm-fbsd.h: Likewise.
11984 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11986 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11987 regformats/reg-s390x.dat.
11989 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11991 * utils.c: Add FIXME explaining true/false problem.
11993 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11995 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11997 2002-02-28 Michael Chastain <mec@shout.net>
11999 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12001 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12003 * gdbserver/linux-s390-low.c: New file.
12004 * regformats/reg-s390.dat: New file.
12005 * regformats/reg-s390x.dat: New file.
12006 * gdbserver/configure.srv: Add S/390.
12007 * gdbserver/Makefile.in: Add S/390.
12008 * configure.tgt: Enable gdbserver for S/390.
12010 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12012 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12013 first line of the doc string for "info dos", except at the end of
12014 the sentence, since the short help stops at the first period.
12016 2002-02-28 Jason Merrill <jason@redhat.com>
12018 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12020 2002-02-27 Fred Fish <fnf@redhat.com>
12022 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12023 comment (dumy -> dummy).
12025 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12027 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12029 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12031 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12033 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12035 * gdbserver/acconfig.h: New file.
12036 * gdbserver/i387-fp.c: New file.
12037 * gdbserver/i387-fp.h: New file.
12038 * gdbserver/linux-x86-64.c: New file.
12039 * regformats/reg-x86-64.dat: New file.
12040 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12041 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12042 * gdbserver/configure.in: Add support for regsets.
12043 * gdbserver/config.in: Regenerate.
12044 * gdbserver/configure: Regenerate.
12045 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12046 * gdbserver/linux-low.h: New file.
12047 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12049 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12050 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12051 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12052 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12053 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12054 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12055 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12056 "i387-fp.h". Add PTRACE_GETREGS and friends.
12057 * gdbserver/regcache.c (supply_register): New function.
12058 (supply_register_by_name): New function.
12059 (collect_register): New function.
12060 (collect_register_by_name): New function.
12062 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12064 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12065 (config.status): Add configure.srv dependency.
12066 (server_h): Add config.h dependency.
12068 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12070 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12071 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12072 * gdbserver/configure.srv: Change i386-*-linux* to use
12075 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12077 * x86-64-tdep.c: Re-indent. Update copyright date.
12079 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12081 From Michal Ludvig <mludvig@suse.cz>:
12082 * x86-64-tdep.c (value.h): Delete.
12083 (gdb_assert.h): Include.
12084 (x86_64_register_convert_to_virtual,
12085 x86_64_register_convert_to_raw ): Add check which lets only
12086 floating-point values to be converted.
12087 (value_push): Delete.
12088 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12089 (i386_gdbarch_init): Number of register_bytes fixed.
12091 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12093 * MAINTAINERS: Add x86-64 target.
12095 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12097 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12098 * osfsolib.c (solib_map_sections): Ditto.
12099 * irix5-nat.c (solib_map_sections): Ditto.
12100 * corelow.c (gdb_check_format): Ditto.
12101 * symfile.c (symfile_bfd_open): Ditto.
12102 * solib.c (solib_map_sections): Ditto.
12105 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12107 * remote.c (_initialize_remote): By default, disable ``e'' and
12108 ``E'' step out-of-range packets.
12110 2002-02-26 Andreas Schwab <schwab@suse.de>
12112 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12113 m68k_linux_frame_saved_pc.
12114 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12116 (SIGCONTEXT_PC_OFFSET): Remove.
12117 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12118 m68k_linux_sigtramp_saved_pc): New functions.
12119 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12120 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12121 (UCONTEXT_PC_OFFSET): Define.
12122 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12123 non-RT and RT signal trampolines.
12125 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12127 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12128 (TARGET_NBPG, STACK_END_ADDR): Delete
12129 (VARIABLES_INSIDE_BLOCK): Delete.
12131 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12133 * utils.c (perror_with_name): Make string parameter constant.
12134 (print_sys_errmsg): Ditto.
12136 * defs.h (perror_with_name): Update.
12137 (print_sys_errmsg): Update.
12140 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12142 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12143 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12145 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12147 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12148 if it already matches the current architecture from the exec file.
12149 Include arch-utils.h for gdbarch_info_init prototype.
12150 * Makefile.in (rs6000-nat.o): Update dependencies.
12152 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12154 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12155 list of exported variables.
12157 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12159 * gdbserver/configure.srv: New file.
12160 * gdbserver/configure.in: Use configure.srv instead
12161 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12163 * gdbserver/configure: Regenerated.
12164 * gdbserver/terminal.h: New file.
12165 * gdbserver/Makefile.in: Update for configure changes. Remove
12166 more unneeded include paths.
12168 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12170 From wiz at danbala:
12171 * config/sparc/tm-sp64.h: Fix grammar and typos.
12174 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12176 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12177 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12178 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12179 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12180 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12181 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12182 * s390-tdep.c: Ditto.
12183 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12184 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12185 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12186 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12187 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12188 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12189 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12190 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12191 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12192 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12195 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12197 * lin-thread.c: Delete file.
12198 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12199 to gdb_proc_service.h.
12200 * configure: Re-generate.
12202 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12203 * serial.c (serial_open): Delete check for "ocd".
12206 * Makefile.in (linux-thread.o): Delete target.
12207 * linux-thread.c: Delete file.
12209 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12210 renamed SH files to be consistent.
12212 * symtab.c (sort_search_symbols): Use xfree.
12214 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12216 * arm-linux-tdep.c (arm_linux_init_abi): Register
12217 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12218 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12219 definition with undef, since we don't want the sysvr4 definition.
12220 (SKIP_TRAMPOLINE_CODE): Likewise.
12222 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12224 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12226 * configure.in: (AC_CHECK_FUNCS) Added test for
12227 canonicalize_file_name Regenerated.
12228 * config.in, configure: Regenerated.
12229 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12230 defined use canonicalize_file_name.
12232 2002-02-23 Michael Chastain <mec@shout.net>
12234 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12236 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12238 * README: Remove references to cygnus.com.
12239 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12240 dot com'' form. Remove references to cygnus.com and sourceware.
12242 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12244 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12245 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12246 1003.1-2001 no longer allows "head -1".
12247 * gdb/Makefile.in (version.c): Likewise.
12248 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12249 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12250 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12252 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12254 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12255 * command.h (cmd_cfunc_eq): Declare.
12256 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12258 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12259 ``struct cmd_list_element *''.
12260 * cli/cli-cmds.c (is_complete_command): Update. Use
12262 * top.c (execute_command): Pass the command to
12263 is_complete_command.
12264 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12266 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12268 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12269 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12270 architecture defines.
12271 * s390-tdep.c (s390_gdbarch_init): Likewise.
12273 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12275 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12276 (arm_linux_push_arguments): Likewise.
12277 (arm_linux_init_abi): Register them. Also register linux-specific
12279 (find_minsym_and_objfile): Use strcmp, not STREQ.
12280 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12281 (arm_linux_call_dummy_words): Delete declaration.
12282 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12283 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12285 (LOWEST_PC): Delete.
12287 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12289 * maint.c (print_section_info): Do not prepend `0x' to filepos
12290 output, it will be handled by local_hex_string_custom.
12292 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12294 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12295 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12296 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12298 2002-02-22 Jim Blandy <jimb@redhat.com>
12300 Indicate that the bcache functions don't change the strings
12302 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12303 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12305 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12307 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12309 2002-02-21 Christopher Faylor <cgf@redhat.com>
12311 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12312 find the complete path to a loaded DLL.
12314 2002-02-21 Fred Fish <fnf@redhat.com>
12316 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12317 that marks the end of the range of a function, enter a line number
12318 entry that has a line number of zero and a PC offset that matches
12319 the end of the function. This starts a range of PC's for which no
12320 line number information is known.
12321 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12322 PC's for which no line number info is found (line number is zero)
12323 then we didn't find any valid line information.
12324 * symtab.h: Document use of zero line number entry.
12326 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12328 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12329 (have_ptrace_getvrregs): Define for run time checks.
12330 (gdb_vrregset_t): New type for Altivec register handling.
12331 (fetch_register, store_register): Fetch/store altivec register
12333 (fetch_altivec_register, store_altivec_register): New functions.
12334 (supply_vrregset, fill_vrregset): New functions.
12335 (fetch_altivec_registers, store_altivec_registers): New functions.
12336 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12339 2002-02-21 Jiri Smid <smid@suse.cz>
12341 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12343 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12345 * Makefile.in (armnbsd-nat.o): Update dependencies.
12346 * armnbsd-nat.c (supply_gregset): New function. Common code to
12347 supply the integer register set.
12348 (supply_fparegset): New function. Similar for FPA registers.
12349 (fetch_regs, fetch_fp_regs): Use them.
12350 (fetch_core_registers): Likewise.
12351 (fetch_elfcore_registers): New function.
12352 (arm_netbsd_elfcore_fns): New core-file type specification.
12353 (_initialize_arm_netbsd_nat): Register it.
12355 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12357 * armnbsd-nat.c: Include gdbcore.h.
12358 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12359 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12360 'void' to declaration, to shut up ARI.
12361 (fetch_core_registers): Make static. Rewrite using supply_register.
12362 (arm_netbsd_core_fns): New core-file type specification.
12363 (_initialize_arm_netbsd_nat): New function.
12365 2002-02-21 Christopher Faylor <cgf@redhat.com>
12367 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12370 2002-02-20 Christopher Faylor <cgf@redhat.com>
12372 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12375 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12377 * jv-exp.y (parse_number): Change type of implicit longs
12378 to builtin_type_uint64.
12380 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12382 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12383 to be an integer instead of a `union wait'.
12385 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12387 * mips-linux-nat.c: Call the operating system GNU/Linux.
12388 * mips-linux-tdep.c: Likewise.
12389 * mips-tdep.c: Likewise.
12391 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12394 * jv-exp.y (parse_number): Handle 64-bit integers.
12396 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12398 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12399 AC_STDC_HEADERS to AC_HEADER_STDC.
12400 * gdbserver/configure: Regenerated.
12402 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12404 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12406 * sparc-tdep.c (get_longjmp_target): Likewise.
12408 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12410 * News: Add news about ARM and Multi-arch. Mention the new target
12413 2002-02-19 Jim Blandy <jimb@redhat.com>
12415 * stabsread.c (error_type_complaint): Improve error message.
12417 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12419 * gdbserver/README: Update documentation.
12420 * gdbserver/configure.in: Update configury to match documentation.
12421 * gdbserver/Makefile.in: Likewise.
12422 * gdbserver/configure: Regenerated.
12423 * gdbserver/aclocal.m4: New file, generated by aclocal.
12424 * gdbserver/config.in: New file, generated by autoheader.
12426 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12428 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12431 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12433 * arm-tdep.h (enum arm_float_model): New enum.
12434 (struct gdbarch_tdep): Add fp_model.
12435 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12436 up floating-point conversions until we know the floating-point model
12437 in use by the inferior. Don't complain about being unable to
12438 determine the ABI of the inferior when we don't have one.
12439 (arm_extract_return_value): Support different floating-point models.
12440 (arm_store_return_value): Likewise.
12441 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12443 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12445 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12447 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12448 of ``current_gdbarch''.
12450 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12452 * armnbsd-nat.c : ANSIfy all function declarations.
12453 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12454 (fetch_inferior_registers): Re-implement in terms of above.
12455 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12456 (store_inferior_registers): Re-implement in terms of above.
12458 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12460 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12462 * arm-linux-tdep.c: Likewise.
12463 * config/arm/tm-linux.h: Likewise.
12465 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12467 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12468 * config/arm/nbsd.mt (TM_FILE): Delete.
12469 * config/arm/tm-nbsd.h: Delete.
12471 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12473 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12474 Initialize CALL_DUMMY_LENGTH.
12476 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12478 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12480 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12481 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12482 defines one thing and that is incorrect for this port.
12483 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12485 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12487 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12489 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12491 * win32-nat.c (display_selector): New function. Displays information
12492 about the information returned by GetThreadSelectorEntry API function.
12493 (display_selectors): New function. Displays the infomation of
12494 the selector given as argument, or of CS, DS ans FS selectors
12495 if no argument is given.
12496 ( _initialize_inftarg): Add "w32" as info prefix command.
12497 Add "info w32 selector" as command calling display_selectors.
12499 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12501 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12502 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12505 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12507 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12509 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12511 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12512 (arm_fix_call_dummy): Call it.
12513 (arm_call_dummy_breakpoint_offset): Delete.
12514 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12515 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12517 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12519 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12520 Default to func_frame_chain_valid.
12521 * gdbarch.h, gdbarch.c: Re-generate.
12522 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12524 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12526 * ppc-linux-nat.c: Update copyright.
12527 (fetch_register, store_register): Add tid parameter, don't compute
12529 (fetch_ppc_registers, store_ppc_registers): Add tid
12530 parameter. Pass it along to callees.
12531 (fetch_inferior_registers, store_inferior_registers): Compute tid
12532 here, and pass it to calleed functions.
12533 (fill_gregset, supply_fpregset): Clean up formatting.
12535 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12537 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12538 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12540 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12542 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12543 * gdbarch.c gdbarch.h: Regenerate.
12544 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12546 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12547 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12548 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12550 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12551 * arm-tdep.c (arm_get_longjmp_target): New function.
12552 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12553 this to a positive value register arm_get_longjmp_target as the
12555 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12556 (arm_linux_init_abi): Set up longjmp description in tdep.
12557 * armnbsd-nat.c (get_longjmp_target): Delete.
12558 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12559 description in tdep.
12560 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12561 (get_longjmp_target): Delete declaration.
12562 (GET_LONGJMP_TARGET): Delete.
12563 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12564 (GET_LONGJMP_TARGET): Delete.
12566 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12568 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12569 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12570 of ``current_gdbarch''.
12572 2002-02-17 Tom Tromey <tromey@redhat.com>
12574 * cli/cli-cmds.c (compare_strings): New function.
12575 (complete_command): Only print each unique item once.
12576 * completer.h (complete_line): Declare.
12577 * completer.c (complete_line): New function.
12578 (line_completion_function): Use it.
12580 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12582 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12583 * gdbarch.h, gdbarch.c: Re-generate.
12585 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12587 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12589 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12591 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12592 * valops.c (value_arg_coerce): Don't take the address of a reference
12593 to convert an argument to a reference.
12595 2002-02-15 Christopher Faylor <cgf@redhat.com>
12597 * win32-nat.c (get_image_name): New function.
12598 (handle_load_dll): Use get_image_name function.
12599 (get_child_debug_event): Avoid registering debug events until possibly
12600 execed process is started.
12601 (child_create_inferior): Allow invocation via shell so that command
12602 line redirection, etc. works ok.
12603 (_initialize_inftarg): Add new command: "set shell" to control whether
12604 a shell is used to start a process.
12606 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12608 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12609 instead of find_register_by_number.
12610 (cannot_store_register): Likewise.
12612 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12614 * dwarf2read.c: Replace fprintf (stderr, ...) by
12615 fprintf_unfiltered (gdb_stderr, ...).
12617 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12619 * gdbserver/gdbserver.1: Document --attach.
12621 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12623 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12625 * arm-tdep.c (arm_default_arm_le_breakpoint)
12626 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12627 (arm_default_thumb_be_breakpoint): New. Initialize them from
12628 traditional breakpoint defines.
12629 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12630 (arm_gdbarch_init): Initialize new breakpoint variables.
12631 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12632 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12633 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12634 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12636 (arm_netbsd_init_abi_common): ... here; new function.
12637 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12638 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12639 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12640 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12642 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12644 * arm-tdep.h (enum arm_abi): New enum.
12645 (struct gdbarch_tdep): New structure.
12646 (LOWEST_PC): Provide a default.
12647 (arm_gdbarch_register_os_abi): Declare new function.
12648 * arm-tdep.c (arm_abi_names): New array.
12649 (process_note_abi_tag_sections): New function.
12650 (get_elfosabi): New function.
12651 (arm_gdbarch_register_os_abi): New function.
12652 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12653 support for that ABI has been built in, then call the appropriate
12654 configuration routine. Use gdbarch_num_regs() to get the number
12656 (arm_dump_tdep): New function.
12657 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12658 place-holder functions.
12659 (_initialize_arm_tdep): Register them.
12660 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12662 * armnbsd-tdep.c: New file.
12663 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12664 * config/arm/nbsd.mt (TDEPFILES): Add it.
12665 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12667 * armnbsd-nat.c: Include regcache.h.
12668 * Makefile.in (armnbsd-nat.o): Update dependency list.
12670 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12672 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12674 * gdbserver/Makefile.in: Fix typos in target rules.
12676 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12678 Fix part of PR gdb/267.
12679 * linespec.c (find_methods): Handle constructors specially for now.
12681 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12683 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12685 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12686 standard_coerce_float_to_double().
12688 2002-02-14 Christopher Faylor <cgf@redhat.com>
12690 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12693 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12695 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12696 find_variant_by_name, because it confuses the multiarch
12697 framework. Return NULL if there isn't an architecture with the
12698 user supplied name, instead of forcing a different one without
12699 recording the change with the multiarch machinery.
12700 (find_variant_by_name): Delete.
12702 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12704 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12705 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12707 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12709 * stack.c (print_frame_info_base): When calling
12710 print_frame_info_listing_hook, set current_source_symtab.
12712 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12714 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12715 and remove unused $(INCLUDE_DIR).
12716 Add regcache.c to OBS.
12717 Add generated register protocol files to clean target.
12718 Update dependencies for new objects, obsolete old target code.
12720 * gdbserver/linux-low.c: Remove all platform-specific code to
12721 new files. Remove various dead code. Update to use regcache
12723 * gdbserver/remote-utils.c (fromhex): Add return statement
12725 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12727 (input_interrupt): Add integer parameter to match prototype
12728 of a signal handler.
12729 (outreg): Use register_data ().
12730 (prepare_resume_reply): Use gdbserver_expedite_regs.
12731 * gdbserver/server.c (main): Dynamically allocate own_buf because
12732 PBUFSIZ is no longer constant. Use registers_to_string () and
12733 registers_from_string ().
12734 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12735 for error (), fatal (), and warning (). Update definition of
12736 PBUFSIZ to use regcache functionality. Add include guard.
12737 * gdbserver/utils.c (fatal): Add missing ``const''.
12738 (warning): New function.
12740 * regformats/regdat.sh: Include "regcache.h" in generated files.
12741 Provide init_registers () function.
12742 * regformats/regdef.h: Add prototype for set_register_cache ().
12745 * gdbserver/linux-arm-low.c: New file.
12746 * gdbserver/linux-i386-low.c: New file.
12747 * gdbserver/linux-ia64-low.c: New file.
12748 * gdbserver/linux-m68k-low.c: New file.
12749 * gdbserver/linux-mips-low.c: New file.
12750 * gdbserver/linux-ppc-low.c: New file.
12751 * gdbserver/linux-sh-low.c: New file.
12753 * gdbserver/regcache.c: New file.
12754 * gdbserver/regcache.h: New file.
12756 * gdbserver/low-linux.c: Removed obsolete file.
12758 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12760 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12761 * config/i386/linux.mt: Likewise.
12762 * config/ia64/linux.mt: Likewise.
12763 * config/m68k/linux.mh: Likewise.
12764 * config/powerpc/linux.mh: Likewise.
12765 * config/mips/linux.mt: Likewise.
12767 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12769 * config/i386/i386lynx.mh: Mark gdbserver variables
12770 as (currently) obsolete for this target.
12771 * config/i386/nbsd.mt: Likewise.
12772 * config/i386/nbsdelf.mt: Likewise.
12773 * config/m32r/m32r.mt: Likewise.
12774 * config/m68k/m68klynx.mh: Likewise.
12775 * config/m68k/nbsd.mt: Likewise.
12776 * config/m68k/sun3os4.mh: Likewise.
12777 * config/mips/vr5000.mt: Likewise.
12778 * config/ns32k/nbsd.mt: Likewise.
12779 * config/pa/hppabsd.mh: Likewise.
12780 * config/pa/hppaosf.mh: Likewise.
12781 * config/powerpc/nbsd.mt: Likewise.
12782 * config/rs6000/rs6000lynx.mh: Likewise.
12783 * config/s390/s390.mt: Likewise.
12784 * config/s390/s390x.mt: Likewise.
12785 * config/sparc/sparclynx.mh: Likewise.
12786 * config/sparc/sun4os4.mh: Likewise.
12787 * config/i386/x86-64linux.mt: Likewise.
12788 * config/sparc/linux.mh: Likewise.
12790 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12792 * configure.tgt: Configure gdbserver only for known working
12793 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12794 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12795 SUBDIRS if it is configured. Update comment for ${nativefile}.
12796 * configure: Regenerated.
12798 2002-02-13 Michael Snyder <msnyder@redhat.com>
12800 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12802 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12803 (default_gcore_mach): Just return 0, work around a problem in bfd.
12804 (default_gcore_target): OK to return NULL if exec_bfd is null.
12805 (make_mem_sec): Use a cast, avoid a warning.
12807 * procfs.c (find_memory_regions_callback): Use a cast instead of
12808 calling host_pointer_to_address (which complains if
12809 sizeof (host pointer) != sizeof (target pointer)).
12810 (procfs_make_note_section): Avoid overflow in psargs string.
12812 * procfs.c (procfs_make_note_section): Make the default
12813 implementation return an error.
12815 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12817 * procfs.c (procfs_make_note_section): Provide a default definition
12818 (for alpha-dec-osf4.0f). Fix typos.
12820 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12822 * linux-proc.c: Add include of regcache.h.
12823 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12825 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12827 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12828 * memattr.c (create_mem_region): Disallow useless empty region.
12829 Regions are half-open intervals, so allow [A..B) [B..C) as
12832 2002-02-13 Michael Chastain <mec@shout.net>
12834 * defs.h: Kill CONST_PTR.
12835 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12836 * c-lang.c (c_builtin_types): Likewise.
12837 * ch-lang.c (ch_builtin_types): Likewise.
12838 * f-lang.c (f_builtin_types): Likewise.
12839 * language.c (unknown_builtin_types): Likewise.
12840 * m2-lang.c (m2_builtin_types): Likewise.
12841 * p-lang.c (pascal_builtin_types): Likewise.
12842 * scm-lang.c (c_builtin_types): Likewise.
12844 2002-02-13 Keith Seitz <keiths@redhat.com>
12846 * arm-tdep.h (arm_get_next_pc): Add declaration.
12848 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12850 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12851 with other related struct-returning functions.
12852 (arm_extract_struct_value_address): New function.
12853 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12854 initialize float_format, double_format and long_double_format as
12855 appropriate to the endianness of the target.
12856 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12857 (arm_use_struct_convention): Delete declaration.
12858 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12860 2002-02-13 Keith Seitz <keiths@redhat.com>
12862 * defs.h (core_addr_to_string_nz): New function.
12864 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12866 Apply missing bits of 2002-01-15 patch.
12867 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12868 (fill_fpregset): Use i387_fill_fsave.
12870 2002-02-12 Keith Seitz <keiths@redhat.com>
12872 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12873 (core_addr_to_string_nz): New function.
12875 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12877 * arm-linux-nat.c: Really include arm-tdep.h.
12878 * config/arm/tm-linux.h (struct type, struct value): Declare.
12880 2002-02-11 Michael Snyder <msnyder@redhat.com>
12882 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12883 (gcore section): Ifdef for Solaris and Unixware only.
12884 (procfs_do_thread_registers): Unixware needs one lwpstatus
12885 per thread (not one prstatus or pstatus).
12886 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12887 not over all gdb threads. For unixware, call elfcore_write_pstatus
12888 once before iterating over threads.
12890 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12892 * arm-tdep.h: New file.
12893 * arm-tdep.c: Include arm-tdep.h.
12894 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12895 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12896 (arm_print_float_info, arm_register_type, convert_to_extended)
12897 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12898 (arm_extract_return_value, arm_register_name): Make static.
12899 (arm_software_single_step): Similarly. Fix types in declaration.
12900 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12901 (arm_store_return_value, arm_store_struct_return): New functions.
12902 (arm_gdbarch_init): Register the above functions. Also register
12903 call_dummy_start_offset, sizeof_call_dummy_words,
12904 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12905 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12906 max_register_virtual_size, register_size. Set up
12907 prologue_cache.saved_regs here, rather than ...
12908 (_initialize_arm_tdep): ... here.
12909 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12911 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12912 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12913 (arm_print_float_info, arm_register_type, convert_to_extended)
12914 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12915 (arm_extract_return_value, arm_register_name): Delete declarations.
12916 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12917 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12918 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12919 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12920 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12921 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12922 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12923 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12924 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12925 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12926 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12927 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12929 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12930 * remote-rdi.c remote-rdp.c: Likewise.
12931 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12932 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12933 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12936 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12937 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12938 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12939 from non-ARM_ prefixed definitions.
12940 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12942 * remote-rdi.c remote-rdp.c: Likewise.
12943 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12945 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12947 * arm-tdep.c (arm_frameless_function_invocation)
12948 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12949 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12950 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12951 (arm_pop_frame, arm_get_next_pc): Make static.
12952 (arm_gdbarch_init): Register above in gdbarch structure.
12953 (arm_read_fp): Renamed from arm_target_read_fp.
12954 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12955 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12956 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12957 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12958 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12959 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12960 (arm_pc_is_thumb_dummy): Delete declarations.
12961 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12962 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12963 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12964 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12966 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12968 * symtab.c (compare_search_syms): New function.
12969 (sort_search_symbols): New function.
12970 (search_symbols): Sort symbols after searching rather than
12973 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12975 * NEWS: Linux -> GNU/Linux.
12977 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12979 * gdbarch.sh: For for level one methods, disallow a definition
12980 when partially multi-arched. Add comments explaining rationale.
12981 * gdbarch.h: Re-generate.
12983 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12985 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12986 multi-arch partial.
12988 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12990 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12991 field. Use diff -u.
12992 * gdbarch.c: Re-generate.
12994 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12996 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12997 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13000 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13002 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13003 multi-arch partial.
13004 (PUSH_ARGUMENTS): Switch to using predefault.
13005 * gdbarch.c: Regenerate.
13007 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13009 * valops.c (PUSH_ARGUMENTS): Delete definition.
13010 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13011 partial. Default to default_push_arguments.
13012 * gdbarch.h, gdbarch.c: Regenerate.
13014 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13016 * defs.h (throw_exception): Rename return_to_top_level. Update
13018 * utils.c (error_stream, internal_verror, quit): Ditto.
13019 * top.c (throw_exception, catcher): Ditto.
13020 * sparclet-rom.c (sparclet_load): Ditto.
13021 * remote.c (interrupt_query, minitelnet): Ditto.
13022 * remote-sds.c (interrupt_query): Ditto.
13023 * remote-mips.c (mips_error, mips_kill): Ditto.
13024 * ocd.c (interrupt_query): Ditto.
13025 * monitor.c (monitor_interrupt_query): Ditto.
13026 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13027 * target.h: Update comment.
13029 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13031 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13033 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13034 default_double_format.
13035 * gdbarch.h, gdbarch.c: Re-generate.
13036 * findvar.c (floatformat_unknown): Delete variable definition.
13037 * doublest.h (floatformat_unknown): Delete variable declaration.
13039 2002-02-09 Jim Blandy <jimb@redhat.com>
13041 * stabsread.c (read_type): Add code to parse Sun's syntax for
13042 prototyped function types.
13044 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13046 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13047 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13049 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13051 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13052 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13053 now _initialize_xcoffsolib gets called again and overrides the
13054 commands from solib.c in a native configuration.
13056 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13058 * doublest.c (store_typed_floating): Don't try to return a value.
13061 2002-02-08 Jim Blandy <jimb@redhat.com>
13063 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13064 is prototyped and has no arguments, print its argument list as
13067 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13069 * MAINTAINERS (write-after-approval): Add myself.
13070 (paper-trail): I've escaped!
13072 2002-02-08 Christopher Faylor <cgf@redhat.com>
13074 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13076 (_initialize_check_for_gdb_ini): Ditto.
13078 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13080 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13081 xaprintf -> xasprintf.
13083 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13085 * win32-nat.c: Remove use of printf and sprintf functions.
13087 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13089 * arm-tdep.c (arm_frame_chain_valid): Make static.
13090 (arm_push_arguments): Likewise.
13091 (arm_gdbarch_init): New function.
13092 (_initialize_arm_tdep): Call it.
13093 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13094 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13095 (FRAME_CHAIN_VALID): Delete.
13096 (arm_frame_chain_valid): Delete declaration.
13097 (PUSH_ARGUMENTS): Delete.
13098 (arm_push_arguments): Delete declaration.
13099 (CALL_DUMMY_P): Delete.
13101 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13102 Corinna Vinschen <vinschen@redhat.com>
13104 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13105 on builtin float types.
13107 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13109 * utils.c: Include <curses.h> before "bfd.h".
13110 * tui/tui-hooks.c: Likewise.
13111 * tui/tui.c: Likewise.
13112 * tui/tuiCommand.c: Likewise.
13113 * tui/tuiData.c: Likewise.
13114 * tui/tuiDataWin.c: Likewise.
13115 * tui/tuiDisassem.c: Likewise.
13116 * tui/tuiGeneralWin.c: Likewise.
13117 * tui/tuiIO.c: Likewise.
13118 * tui/tuiLayout.c: Likewise.
13119 * tui/tuiRegs.c: Likewise.
13120 * tui/tuiSource.c: Likewise.
13121 * tui/tuiSourceWin.c: Likewise.
13122 * tui/tuiStack.c: Likewise.
13123 * tui/tuiWin.c: Likewise.
13125 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13127 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13128 to include space for pseudoregs as well. Update loops accordingly.
13129 (sh_fp_frame_init_saved_regs): Ditto.
13130 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13132 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13134 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13135 Add Richard Earnshaw to Arm maintainers.
13137 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13139 * defs.h (warning_begin): Delete declaration.
13141 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13144 2002-02-07 Michael Snyder <msnyder@redhat.com>
13146 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13147 Logic bug, remove misplaced else.
13149 2002-02-07 Klee Dienes <klee@apple.com>
13151 * fork-inferior.c (fork_inferior): Add '!' to the list of
13152 characters that need to be quoted when building a string for the
13153 shell. Quote '!' specifically with a backslash, since CSH chokes
13154 when trying to evaluate "str!str".
13156 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13158 * rdi-share/host.h: Only provide a typedef for bool if it is not
13161 2002-02-04 Michael Snyder <msnyder@redhat.com>
13163 * breakpoint.h (enum bptype): Add new overlay event bp type.
13164 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13166 * breakpoint.c (create_internal_breakpoint): New function.
13167 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13168 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13169 (create_thread_event_breakpoint): Ditto.
13170 (create_solib_event_breakpoint): Ditto.
13171 (create_overlay_event_breakpoint): New function.
13172 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13173 (update_breakpoints_after_exec): Delete and re-initialize
13174 overlay event breakpoints after an exec. Add FIXME comment
13175 about longjmp breakpoint.
13176 (print_it_typical): Ignore overlay event breakpoints.
13177 (print_one_breakpoint): Ditto.
13179 (bpstat_what): Do not stop for overlay event breakpoints.
13180 (delete_breakpoint): Don't delete overlay event breakpoints.
13181 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13182 (breakpoint_re_set): Re-create overlay event breakpoint.
13184 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13185 (overlay_manual_command): Disable overlay breakpoints.
13186 (overlay_off_command): Disable overlay breakpoints.
13188 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13190 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13191 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13192 to here from config/tm-arm.h.
13193 (coff_sym_is_thumb): Make static.
13194 (arm_elf_make_msymbol_special): New function.
13195 (arm_coff_make_msymbol_special): New function.
13196 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13197 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13198 (coff_sym_is_thumb): Delete declaration.
13199 (arm_elf_make_msymbol_special): Declare.
13200 (arm_coff_make_msymbol_special): Declare.
13201 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13202 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13204 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13206 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13208 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13210 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13211 * gdbarch.c gdbarch.h: Regenerate.
13212 * arch-utils.c (default_print_float_info): New function.
13213 * arch-utils.h (default_print_float_info): Prototype it.
13214 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13215 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13216 (PRINT_FLOAT_INFO): Document it.
13218 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13219 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13220 (PRINT_FLOAT_INFO): Define.
13222 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13224 * win32-nat.c (_initialize_check_for_gdb_ini):
13225 Add typecast to sprintf argument to suppress a warning.
13227 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13229 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13230 to allow easier handling of pass state.
13231 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13232 that gives exception name and address.
13233 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13234 and set last_sig value to ourstatus->value.sig. Some missing
13236 (child_continue): Correctly report continue_status.
13237 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13238 TARGET_SIGNAL_0 (new default value).
13239 (child_resume): consider sig argument passed to decide if
13240 the exception should be passed to debuggee or not.
13242 2002-02-05 Michael Snyder <msnyder@redhat.com>
13244 * regcache.c (fetch_register): Call target_fetch_register
13245 only if we don't call FETCH_PSEUDO_REGISTER.
13246 (store_register): Call target_store_register only if we
13247 don't call STORE_PSEUDO_REGISTER.
13249 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13251 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13252 ELF_MAKE_MSYMBOL_SPECIAL.
13253 * gdbarch.c, gdbarch.h: Regenerate.
13254 * arch-utils.c (default_make_msymbol_special): New function.
13255 * arch-utils.h (default_make_msymbol_special): Export.
13256 * elfread.c (elf_symtab_read): Compile use of
13257 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13259 * coffread.c (coff_symtab_read): Ditto, for
13260 COFF_MAKE_MSYMBOL_SPECIAL.
13262 2002-02-05 Jim Blandy <jimb@redhat.com>
13264 * solib-svr4.c (svr4_truncate_ptr): New function.
13265 (svr4_relocate_section_addresses): Do the address arithmetic with
13266 the appropriate truncation for target addresses, even when
13267 CORE_ADDR is larger than a target address.
13269 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13271 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13274 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13276 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13279 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13281 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13283 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13285 * gdbserver/linux-low.c: Remove unused include files.
13287 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13289 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13290 (read_inferior_memory): Use it.
13291 (write_inferior_memory): Likewise.
13293 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13295 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13296 grubbing through sys_errlist.
13298 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13300 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13302 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13303 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13305 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13307 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13308 (do_sfunc, set_cmd_sfunc): New functions.
13310 * command.h (struct cmd_list_element): Add field func.
13311 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13312 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13313 * cli/cli-decode.h: Ditto.
13315 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13316 (help_all, help_cmd_list): Ditto.
13317 (find_cmd, complete_on_cmdlist): Ditto.
13318 * top.c (execute_command): Ditto.
13320 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13323 * infcmd.c (notice_args_read): Fix function signature.
13325 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13326 * cli/cli-decode.c (add_set_cmd): Ditto.
13327 * utils.c (initialize_utils): Ditto.
13328 * maint.c (_initialize_maint_cmds): Ditto.
13329 * infrun.c (_initialize_infrun): Ditto.
13330 * demangle.c (_initialize_demangler): Ditto.
13331 * remote.c (add_packet_config_cmd): Ditto.
13332 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13333 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13334 * proc-api.c (_initialize_proc_api): Ditto.
13335 * kod.c (_initialize_kod): Ditto.
13336 * valprint.c (_initialize_valprint): Ditto.
13337 * top.c (init_main): Ditto.
13338 * infcmd.c (_initialize_infcmd): Ditto.
13339 * corefile.c (_initialize_core): Ditto.
13340 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13341 * arch-utils.c (initialize_current_architecture): Ditto.
13342 (_initialize_gdbarch_utils): Ditto.
13343 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13345 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13346 * wince.c (_initialize_inftarg): Ditto.
13347 * symfile.c (_initialize_symfile): Ditto.
13348 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13349 * language.c (_initialize_language): Ditto.
13350 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13352 2002-02-04 Michael Snyder <msnyder@redhat.com>
13354 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13356 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13358 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13359 Add rules for building the register data files.
13361 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13363 * regformats/regdat.sh: Add braces to the definition of
13364 expedite_regs_${arch}.
13366 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13368 * regformats/regdef.h (struct reg): Add comment describing the
13369 requirements for offset and size fields.
13371 2002-02-04 Andreas Schwab <schwab@suse.de>
13373 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13374 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13376 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13378 * gdbarch.sh (copyright): Update years in generated header.
13379 (SMASH_TEXT_ADDRESS): Add rule.
13380 * gdbarch.h, gdbarch.c: Re-generate.
13381 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13382 * dbxread.c: Likewise.
13383 * dwarfread.c: Likewise.
13384 * elfread.c: Likewise.
13385 * somread.c: Likewise.
13387 * arm-tdep.c (arm_smash_text_address): New function.
13388 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13390 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13392 Add support for hardware watchpoints on win32 native.
13393 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13394 CONTEXT_DEBUG_REGISTERS.
13395 (dr variable): New variable. Static array containing a local copy
13396 of debug registers.
13397 (debug_registers_changed): New variable. Reflects when debug registers
13398 are changed and need to be written to inferior.
13399 (debug_registers_used): New variable. Reflects when any debug register
13400 was set, used when new threads are created.
13401 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13403 (thread_rec): Set dr array if id is the thread of current_event .
13404 (child_continue, child_resume): Change the debug registers for all
13405 threads if debug_registers_changed.
13406 (child_add_thread): Change the debug registers if debug_registers_used.
13407 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13408 Link nm.h to new nm-cygwin.h file.
13409 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13410 of hardware registers.
13412 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13414 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13415 Restore behavour broken by 2002-01-20 Andrew Cagney
13416 <ac131313@redhat.com> IEEE_FLOAT removal.
13418 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13420 * c-valprint.c (c_val_print): Pass a proper valaddr to
13421 cp_print_class_method.
13422 * valops.c (search_struct_method): If there is only one method
13423 and args is NULL, return that method.
13425 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13427 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13428 accessing tag_name directly.
13430 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13432 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13433 of accessing tag_name directly.
13435 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13438 * gdbtypes.c (replace_type): New function.
13439 * gdbtypes.h (replace_type): Add prototype.
13440 * stabsread.c (read_type): Use replace_type.
13442 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13444 * Makefile.in (memattr.o): Add missing dependencies rule.
13446 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13448 * breakpoint.c (break_at_finish_command): Really export.
13449 (break_at_finish_at_depth_command): Ditto.
13450 (tbreak_at_finish_command): Ditto.
13451 * hppa-tdep.c: Include completer.h.
13452 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13453 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13455 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13457 * utils.c (do_write): New function.
13458 (error_stream): Rewrite combining the code from error_begin and
13460 (verror): Rewrite using error_stream.
13461 (error_begin): Delete function.
13463 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13465 * utils.c (error_begin): Make static.
13466 * defs.h (error_begin): Delete declaration.
13468 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13469 (decode_line_1): Use cplusplus_error instead of error_begin,
13470 cplusplus_hint and return_to_top_level.
13471 * coffread.c (coff_symfile_read): Use error instead of error_begin
13472 and return_to_top_level.
13473 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13475 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13477 * language.h (type_error, range_error): Make string parameter
13479 * language.c (warning_pre_print): Delete extern declaration.
13480 * dwarfread.c (warning_pre_print): Ditto.
13481 * language.c (type_error, range_error): Rewrite to use verror and
13482 vwarning instead of warning_begin.
13484 2002-02-01 Michael Snyder <msnyder@redhat.com>
13486 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13487 (set_ignore_count): Move misplaced comment back where it belongs.
13489 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13491 * command.h (NO_FUNCTION): Delete macro.
13492 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13493 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13494 * tracepoint.c (_initialize_tracepoint): Ditto.
13495 * cli/cli-decode.c (add_set_cmd): Ditto.
13496 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13498 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13500 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13501 Update ``this'' pointer when calling virtual functions.
13503 2002-02-01 Michael Snyder <msnyder@redhat.com>
13505 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13506 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13508 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13510 * regformats/reg-arm.dat: New file.
13511 * regformats/reg-i386.dat: New file.
13512 * regformats/reg-ia64.dat: New file.
13513 * regformats/reg-m68k.dat: New file.
13514 * regformats/reg-mips.dat: New file.
13515 * regformats/reg-ppc.dat: New file.
13516 * regformats/reg-sh.dat: New file.
13517 * regformats/regdef.h: New file.
13518 * regformats/regdat.sh: New file.
13520 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13522 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13523 (arm_frame_args_address, arm_frame_locals_address): New functions.
13524 (arm_frame_num_args): New function.
13525 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13526 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13527 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13529 2002-01-31 Michael Snyder <msnyder@redhat.com>
13531 * breakpoint.c (break_at_finish_command): Export.
13532 (break_at_finish_at_depth_command): Export.
13533 (tbreak_at_finish_command): Export.
13534 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13535 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13536 "txbreak" commands, which are HPPA specific.
13538 * printcmd.c (disassemble_command): Remove an ancient
13539 artifact of an old merge.
13541 * symfile.h (enum overlay_debugging_state):
13542 Define enum constant values for overlay mode.
13543 * symfile.c (overlay_debugging): Use enums instead of literals.
13544 (overlay_is_mapped, overlay_auto_command,
13545 overlay_manual_command): Ditto.
13547 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13548 breakpoint_here_p, breakpoint_inserted_here_p,
13549 breakpoint_thread_match, bpstat_stop_status,
13550 describe_other_breakpoints, check_duplicates, clear_command):
13551 Coding standard fixes.
13553 * target.c (target_xfer_memory): Add spaces, coding standard.
13554 (do_xfer_memory): Add missing line to trust-readonly
13555 code: check bfd SEC_READONLY flag for section.
13557 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13559 * PROBLEMS: Fix typo, 5.1->5.1.1.
13561 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13563 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13564 data symbols, since we search based on textlow and texthigh.
13565 (find_pc_sect_symtab): Likewise.
13567 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13569 * defs.h (vwarning): Declare.
13570 * utils.c (vwarning): New function.
13571 (warning): Call vwarning.
13572 (warning_begin): Delete function.
13574 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13575 the warning message.
13576 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13579 2002-01-30 Michael Snyder <msnyder@redhat.com>
13581 * NEWS: Mention "set trust-readonly-sections" command.
13582 Mention generate-core-file command.
13584 2002-01-15 Michael Snyder <msnyder@redhat.com>
13586 * target.c: New command, "set trust-readonly-sections on".
13587 (do_xfer_memory): Honor the suggestion to trust readonly sections
13588 by reading them from the object file instead of from the target.
13589 (initialize_targets): Register command "set trust-readonly-sections".
13591 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13593 * parse.c (target_map_name_to_register): Simplify, search regs and
13594 pseudo-regs using a single loop.
13596 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13598 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13600 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13602 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13603 * config/i386/i386v42mp.mh: Add i387-nat.o .
13604 * i386v4-nat.c: Include i387-nat.h.
13605 (supply_fpregset): Use i387_supply_fsave.
13606 (fill_fpregset): Use i387_fill_fsave.
13608 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13610 * arm-tdep.c (arm_call_dummy_words): Define.
13611 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13612 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13613 (CALL_DUMMY_WORDS): Define.
13614 (arm_call_dummy_words): Declare.
13615 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13616 (arm_linux_call_dummy_words): Declare.
13618 2002-01-30 Andreas Schwab <schwab@suse.de>
13620 * m68klinux-nat.c: Fix last change to use regcache_collect
13621 instead of referencing registers[] directly.
13623 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13625 * parse.c (target_map_name_to_register): Delete code wrapped in
13626 #ifdef REGISTER_NAME_ALIAS_HOOK.
13628 2002-01-28 Michael Snyder <msnyder@redhat.com>
13630 * regcache.c (legacy_read_register_gen): Need to be able to
13631 read pseudo-register as well as real register.
13632 (legacy_write_register_gen): Ditto.
13634 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13636 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13637 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13638 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13639 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13640 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13641 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13642 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13643 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13644 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13645 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13646 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13647 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13648 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13649 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13650 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13651 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13652 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13653 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13654 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13655 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13657 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13659 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13660 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13661 (initialize_current_architecture): Update target_byte_order using
13662 information from BFD.
13663 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13664 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13666 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13668 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13669 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13671 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13672 #ifdef INVALID_FLOAT.
13673 * infcmd.c (do_registers_info): Ditto.
13674 * values.c (unpack_double): Ditto. Add comment.
13676 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13677 already commented out.
13679 2002-01-26 Andreas Schwab <schwab@suse.de>
13681 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13682 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13683 registers and add support for PTRACE_GETREGS.
13685 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13687 GDB 5.1.1 released from 5.1 branch.
13688 * NEWS: Add 5.1.1 news.
13689 * README: Sync with 5.1 branch.
13691 2002-01-23 Fred Fish <fnf@redhat.com>
13693 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13694 stabstring on initial malloc. Reallocing will copy it for us,
13697 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13699 * Makefile.in (hpread_h): Delete.
13700 (HFILES_NO_SRCDIR): Remove hpread.h.
13701 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13702 (hpread.o): Update dependencies.
13703 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13705 * hp-psymtab-read.c: Remove file.
13706 * hp-symtab-read.c: Remove file.
13707 * hpread.h: Remove file.
13709 * hpread.c: Merge all contents of hp-psymtab-read.c,
13710 hp-symtab-read.c and hpread.h into this file, as it was prior to
13713 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13714 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13715 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13716 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13718 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13720 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13721 fill_gregset): Call gdbarch_tdep() just once, assign result to
13722 variable and use that, instead of calling the function several
13725 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13727 * configure.host: Accept sparcv9 as alias for sparc64.
13728 * configure.tgt: Likewise.
13730 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13732 * solib-aix5.c (build_so_list_from_mapfile)
13733 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13734 arguments is not reversed.
13735 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13736 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13738 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13740 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13741 modified version of obsolete sh_fetch_pseudo_register.
13742 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13743 (sh4_register_read): New function.
13744 (sh_pseudo_register_write): New function. Renamed and modified
13745 version of obsolete sh_store_pseudo_register.
13746 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13747 (sh4_register_write): New function.
13748 (sh_gdbarch_init): Remove setting of gdbarch function
13749 fetch_pseudo_register and store_pseudo_register. Remove setting of
13750 register_convert_to_raw, register_convert_to_virtual,
13751 register_convertible.
13752 (sh_sh4_register_convertible): Delete. No longer needed. All is
13753 taken care by architecture specific functions
13754 register_read/register_write.
13755 (sh_sh4_register_convert_to_virtual): Make static.
13756 (sh_sh4_register_convert_to_raw): Ditto.
13758 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13760 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13761 (floatformat_is_nan, floatformat_mantissa): Ditto.
13763 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13764 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13765 builtin_type_ieee_double_little,
13766 builtin_type_ieee_double_littlebyte_bigword,
13767 builtin_type_m68881_ext, builtin_type_i960_ext,
13768 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13769 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13770 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13771 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13773 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13775 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13776 parameter. Set frameless flag if it exists and depended of
13777 whether the scanned function is frameless or not.
13778 (xstormy16_skip_prologue): If function is frameless, return
13779 result of xstormy16_scan_prologue().
13780 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13783 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13785 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13786 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13787 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13788 sh_sh4_register_byte, sh_sh4_register_raw_size,
13789 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13790 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13791 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13792 sh_store_pseudo_register, sh_do_pseudo_register): Call
13793 gdbarch_tdep() just once, assign result to variable and use that,
13794 instead of calling the function several times.
13796 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13798 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13799 macros instead of LAST_FPU_CTRL_REGNUM.
13800 (store_register): Likewise.
13802 2002-01-21 Jim Blandy <jimb@redhat.com>
13804 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13805 is up-to-date before running the program, not just when a program
13808 2002-01-21 Fred Fish <fnf@redhat.com>
13810 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13811 when we have found all instructions we are looking for.
13813 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13815 * arm-tdep.c (arm_register_name): New function.
13816 (arm_registers_names): Make static.
13817 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13818 (arm_register_name): Declare.
13819 (REGISTER_NAME): Use it.
13821 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13822 Kevin Buettner <kevinb@redhat.com>
13824 Convert arm targets to new FRAME interface.
13825 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13826 (arm_frame_find_save_regs): Delete.
13827 (arm_frame_init_saved_regs): New.
13828 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13829 Allocate extra_info as required. Convert all uses of fsr.regs
13830 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13832 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13833 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13834 (check_prologue_cache, save_prologue_cache): Likewise.
13835 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13836 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13837 (FRAME_FIND_SAVED_REGS): Delete.
13838 (arm_frame_find_saved_regs): Delete prototype.
13839 (arm_frame_init_saved_regs): New prototype.
13840 (FRAME_INIT_SAVED_REGS): Define.
13842 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13844 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13846 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13848 From Jeff Law <law@redhat.com>:
13849 * infttrace.c: Include <sys/pstat.h>.
13850 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13851 exec file if the ttrace equivalent fails.
13853 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13855 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13856 (closeLogFile): Ditto.
13858 2002-01-20 Michael Chastain <mec@shout.net>
13860 * top.c (print_gdb_version): Bump copyright year to 2002.
13862 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13864 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13865 Zannoni and Eli Zaretskii.
13867 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13869 * buildsym.c: Update copyright years.
13870 * c-typeprint.c: Likewise.
13871 * dwarf2read.c: Likewise.
13872 * f-typeprint.c: Likewise.
13873 * gdbtypes.c: Likewise.
13874 * gdbtypes.h: Likewise.
13875 * hp-symtab-read.c: Likewise.
13876 * hpread.c: Likewise.
13877 * mdebugread.c: Likewise.
13878 * p-typeprint.c: Likewise.
13880 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13882 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13883 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13884 byte-order selectable.
13885 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13886 * arch-utils.c: Ditto.
13887 (set_endian): Ditto.
13888 (set_endian_from_file): Ditto.
13889 * gdbserver/low-sim.c (create_inferior): Ditto.
13890 * gdbarch.sh: Ditto.
13891 * gdbarch.h: Re-generate.
13892 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13893 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13894 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13895 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13896 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13897 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13898 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13899 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13901 * config/mips/tm-wince.h: Remove #undef of macro
13902 TARGET_BYTE_ORDER_SELECTABLE.
13903 * config/sh/tm-wince.h: Ditto.
13905 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13907 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13908 member function fields. Add accessor macro
13909 TYPE_FN_FIELD_ARTIFICIAL.
13910 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13911 * c-typeprint.c (c_type_print_base): Skip artificial member
13914 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13916 * f-typeprint.c: Delete unused function f_type_print_args.
13917 * p-typeprint.c: Delete unused function pascal_type_print_args.
13919 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13921 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13922 comment. Add ``artificial'' to ``union field_location''.
13924 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13926 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13927 * mdebugread.c (parse_symbol): Likewise.
13928 * stabsread.c (define_symbol): Likewise.
13929 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13930 initializing TYPE_FIELD_BITPOS to n (obsolete).
13931 (hpread_doc_function_type): Likewise.
13932 * hpread.c (hpread_function_type): Likewise.
13934 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13936 * configure.in (host_makefile_frag): Only require a host makefile
13937 fragment when a native build.
13938 * configure: Re-generate.
13940 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13942 * doublest.h (floatformat_from_type): Declare.
13943 * doublest.c (floatformat_from_type): New function.
13944 (convert_typed_floating): Use.
13946 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13947 call to function floatformat_from_type.
13949 * gdbarch.sh (IEEE_FLOAT): Delete.
13950 * gdbarch.h, gdbarch.c: Re-generate.
13951 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13952 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13953 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13954 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13955 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13956 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13957 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13958 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13959 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13960 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13961 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13962 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13964 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13965 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13966 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13967 * sh-tdep.c (sh_gdbarch_init): Ditto.
13968 * mips-tdep.c (mips_gdbarch_init): Ditto.
13969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13970 * cris-tdep.c (cris_gdbarch_init): Ditto.
13972 2002-01-20 Jiri Smid <smid@suse.cz>
13974 * configure.host, configure.tgt: Support x86-64.
13975 * NEWS: Note new target x86-64.
13977 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13978 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13979 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13980 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13981 x86-64-linux-nat.o): Fix dependencies.
13983 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13985 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13986 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13987 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13988 * config/sparc/xm-sun4os4.h: Delete file.
13989 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13991 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13993 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13994 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13995 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13996 * config/i386/i386lynx.mh (XM_FILE): Delete.
13997 * config/rs6000/xm-rs6000ly.h: Delete file.
13998 * config/sparc/xm-sparclynx.h: Delete file.
13999 * config/m68k/xm-m68klynx.h: Delete file.
14000 * config/i386/xm-i386lynx.h: Delete file.
14001 * config/xm-lynx.h: Delete file.
14002 * config/djgpp/fnchange.lst: Update.
14004 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14006 * alpha-tdep.c (alpha_register_byte): New function.
14007 (alpha_register_raw_size): Ditto.
14008 (alpha_register_virtual_size): Ditto.
14009 (alpha_skip_prologue_internal): Renamed from
14010 alpha_skip_prologue.
14011 (alpha_skip_prologue): New version that calls
14012 alpha_skip_prologue_internal.
14013 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14014 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14015 second argument from alpha_skip_prologue.
14016 (REGISTER_BYTE): Use alpha_register_byte.
14017 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14018 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14019 (FRAMELESS_FUNCTION_INVOCATION): Use
14020 generic_frameless_function_invocation_not.
14021 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14022 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14024 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14026 * config/mips/xm-news-mips.h: Delete file.
14027 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14029 * config/m88k/xm-m88k.h: Delete file.
14030 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14031 * config/m88k/xm-delta88v4.h: Ditto.
14032 * config/m88k/xm-delta88.h: Ditto.
14034 * config/alpha/xm-fbsd.h: Delete file.
14035 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14037 * config/sparc/xm-sparc.h: Delete file.
14038 * Makefile.in (xm-sun4os4.h): Delete dependency.
14039 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14040 * config/sparc/xm-sun4os4.h: Ditto.
14041 * config/sparc/xm-linux.h: Ditto.
14043 * config/i386/xm-windows.h: Delete file.
14045 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14047 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14048 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14050 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14052 * alpha-tdep.c (alpha_call_dummy_words): New.
14053 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14054 (CALL_DUMMY_P): Define.
14055 (CALL_DUMMY_WORDS): Define.
14056 (SIZEOF_CALL_DUMMY_WORDS): Define.
14058 2002-01-19 Per Bothner <per@bothner.com>
14060 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14061 isn't NULL, which can happen with some gcj-3.x-produced code.
14063 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14065 * alpha-tdep.c (alpha_register_virtual_type): New function.
14066 (alpha_init_frame_pc_first): Ditto.
14067 (alpha_fix_call_dummy): Ditto.
14068 (alpha_store_struct_return): Ditto.
14069 (alpha_extract_struct_value_address): Ditto.
14070 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14071 alpha_register_virtual_type.
14072 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14073 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14074 alpha_extract_struct_value_address.
14075 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14076 (INIT_FRAME_PC): Use init_frame_pc_noop.
14077 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14079 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14081 * i386gnu-nat.c: Include "i386-tdep.h".
14082 (fetch_fpregs): Simplify code dealing with uninitialized floating
14083 point states such that it doesn't require FP7_REGNUM.
14085 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14087 * alpha-tdep.c (frame_extra_info): New.
14088 (alpha_find_saved_regs): Make static. Use
14090 (alpha_frame_init_saved_regs): New function.
14091 (alpha_frame_saved_pc): Use frame->extra_info.
14092 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14093 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14094 (init_extra_frame_info): Rename to...
14095 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14096 (alpha_print_extra_frame_info): New function.
14097 (alpha_frame_locals_address): Ditto.
14098 (alpha_frame_args_address): Ditto.
14099 (alpha_pop_frame): Use frame->extra_info.
14100 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14101 alpha_frame_args_address.
14102 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14103 (alpha_find_saved_regs): Remove prototype.
14104 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14105 (EXTRA_FRAME_INFO): Remove.
14106 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14107 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14109 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14111 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14112 (alpha_cannot_fetch_register): Ditto.
14113 (alpha_cannot_store_register): Ditto.
14114 (alpha_register_convertible): Ditto.
14115 (alpha_use_struct_convention): Ditto.
14116 * config/alpha/tm-alpha.h: Update copyright years.
14117 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14118 (INNER_THAN): Use core_addr_lessthan.
14119 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14120 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14121 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14122 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14123 (FRAME_CHAIN): Remove unnecessary cast.
14125 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14127 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14130 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14132 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14133 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14134 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14135 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14136 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14137 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14138 * x86-64-linux-nat.c: Ditto.
14140 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14142 * alpha-tdep.c (alpha_register_name): New function.
14143 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14144 (REGISTER_NAME): Define.
14146 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14148 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14150 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14152 * alpha-tdep.c: Update copyright years.
14153 (alpha_next_pc): New function.
14154 (alpha_software_single_step): Ditto.
14155 * config/alpha/tm-alpha.h: Add prototype for
14156 alpha_software_single_step.
14158 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14160 * alphabsd-nat.c: Update copyright years.
14161 (fill_gregset): Use regcache_collect.
14162 (fill_fpregset): Likewise.
14163 (fetch_inferior_registers): Only fetch integer registers
14164 if requested to do so.
14165 (store_inferior_registers): Only store integer registers
14166 if requested to do so.
14168 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14170 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14171 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14172 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14173 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14174 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14175 * config/arm/linux.mh (XDEPFILES): Delete.
14176 * config/arm/nbsd.mh (XDEPFILES): Delete.
14177 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14178 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14179 * config/i386/i386m3.mh (XDEPFILES): Delete.
14180 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14181 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14182 * config/i386/fbsd.mh (XDEPFILES): Delete.
14183 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14184 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14185 * config/i386/i386v4.mh (XDEPFILES): Delete.
14186 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14187 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14188 * config/i386/i386aix.mh (XDEPFILES): Delete.
14189 * config/i386/go32.mh (XDEPFILES): Delete.
14190 * config/i386/cygwin.mh (XDEPFILES): Delete.
14191 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14192 * config/i386/i386mach.mh (XDEPFILES): Delete.
14193 * config/i386/i386v32.mh (XDEPFILES): Delete.
14194 * config/i386/linux.mh (XDEPFILES): Delete.
14195 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14196 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14197 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14198 * config/i386/i386sco.mh (XDEPFILES): Delete.
14199 * config/i386/i386v.mh (XDEPFILES): Delete.
14200 * config/i386/nbsd.mh (XDEPFILES): Delete.
14201 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14202 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14203 * config/i386/symmetry.mh (XDEPFILES): Delete.
14204 * config/i386/obsd.mh (XDEPFILES): Delete.
14205 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14206 * config/ia64/linux.mh (XDEPFILES): Delete.
14207 * config/ia64/aix.mh (XDEPFILES): Delete.
14208 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14209 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14210 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14211 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14212 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14213 * config/m68k/linux.mh (XDEPFILES): Delete.
14214 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14215 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14216 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14217 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14218 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14219 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14220 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14221 * config/m88k/delta88.mh (XDEPFILES): Delete.
14222 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14223 * config/m88k/m88k.mh (XDEPFILES): Delete.
14224 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14225 * config/mips/linux.mh (XDEPFILES): Delete.
14226 * config/mips/irix6.mh (XDEPFILES): Delete.
14227 * config/mips/irix5.mh (XDEPFILES): Delete.
14228 * config/mips/irix4.mh (XDEPFILES): Delete.
14229 * config/mips/irix3.mh (XDEPFILES): Delete.
14230 * config/mips/decstation.mh (XDEPFILES): Delete.
14231 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14232 (NATDEPFILES): Move core-aout.o to here.
14233 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14234 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14235 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14236 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14237 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14238 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14239 * config/pa/hpux11.mh (XDEPFILES): Delete.
14240 * config/powerpc/aix.mh (XDEPFILES): Delete.
14241 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14242 * config/powerpc/linux.mh (XDEPFILES): Delete.
14243 * config/romp/rtbsd.mh: Rename XDEPFILES.
14244 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14245 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14246 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14247 * config/s390/s390.mh (XDEPFILES): Delete.
14248 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14249 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14250 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14251 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14252 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14253 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14254 * config/sparc/linux.mh (XDEPFILES): Delete.
14255 * config/vax/vaxult.mh (XDEPFILES): Delete.
14256 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14257 * Makefile.in (DEPFILES): Remove XDEPFILES.
14259 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14261 * utils.c (internal_verror): Fix comments, default is yes not no.
14262 Update queries to match. Default to quit and dump core.
14264 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14266 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14268 * defs.h, event-top.c, gdbcmd.h: Ditto.
14269 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14270 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14271 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14272 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14273 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14274 * mi/mi-main.c:Ditto.
14276 * stack.c, symfile.c: Update copyright.
14278 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14280 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14281 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14282 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14283 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14285 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14287 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14288 * gdbserver/low-lynx.c (myattach): Likewise.
14289 * gdbserver/low-nbsd.c (myattach): Likewise.
14290 * gdbserver/low-sim.c (myattach): Likewise.
14291 * gdbserver/low-sparc.c (myattach): Likewise.
14292 * gdbserver/low-sun3.c (myattach): Likewise.
14294 * gdbserver/low-linux.c (myattach): New function.
14296 * gdbserver/server.c (attach_inferior): New function.
14297 (main): Handle "--attach".
14299 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14301 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14304 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14306 * c-typeprint.c (is_type_conversion_operator): Add additional
14307 check for non-conversion operators.
14309 2002-01-15 Michael Snyder <msnyder@redhat.com>
14311 * linux-proc.c: Add "info proc" command, a la procfs.c.
14312 (read_mapping): New function, abstract and re-use code.
14313 (linux_find_memory_regions): Use new func read_mapping.
14314 (linux_info_proc_cmd): New function, implement "info proc".
14315 (_initialize_linux_proc): Add new command "info proc".
14317 2002-01-15 Michael Snyder <msnyder@redhat.com>
14319 * symfile.c (generic_load): Use bfd_map_over_sections method
14320 instead of manipulating bfd structure members directly.
14321 (add_section_size_callback): New function, bfd sections callback
14322 used by generic_load.
14323 (load_sections_callback): New function, bfd sections callback
14324 used by generic_load.
14326 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14328 [Based on work by Jim Blandy]
14329 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14330 (builtin_type_vec128): Export.
14331 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14333 (builtin_type_vec128): New builtin type for 128 bit vector
14335 (build_gdbtypes): Initialize builtin_type_v16qi and
14336 builtin_type_v8hi. Create the vec128 register builtin type
14338 (build_builtin_type_vec128): New function.
14339 (_initialize_gdbtypes): Register builtin_type_v16qi and
14340 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14341 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14342 AltiVec register to new builtin type.
14344 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14346 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14349 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14351 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14352 CLEAN_UP_REGISTER_VALUE.
14353 * regcache.c (supply_register): Update only call.
14355 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14357 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14358 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14359 a29k-*-vxworks* targets as obsolete.
14361 2002-01-14 Michael Snyder <msnyder@redhat.com>
14363 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14364 until we can resolve portability issues.
14365 * gregset.h: Remove references to fpxregs.
14366 * gcore.c (gcore_command): Initialize note_sec to NULL.
14368 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14370 * signals.c (target_signal_to_name): Rewrite. Only use
14371 signals[].name when in bounds and non-NULL.
14373 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14375 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14376 * signals.c (target_signal_to_name): Verify that SIG is within the
14377 bounds of the signals array.
14379 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14381 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14383 2002-01-13 Keith Seitz <keiths@redhat.com>
14385 * stack.c (print_frame_info_base): Print the frame's pc
14386 only if when print_frame_info_listing_hook is not defined.
14388 2002-01-13 Keith Seitz <keiths@redhat.com>
14390 * varobj.c (varobj_set_value): Make sure that there were no
14391 errors evaluating the object before attempting to set its
14393 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14394 so this offset adjustment is no longer necessary.
14395 (create_child): Don't set the error flag if the child is
14396 a CPLUS_FAKE_CHILD.
14397 (value_of_child): If value_fetch_lazy fails, return NULL
14398 so that callers will be notified that an error occurred.
14399 (c_value_of_variable): Delay check of variable's validity
14400 until later. We actually want all structs and unions to have
14402 Do not return "???" for variables which could not be evaluated.
14403 This error condition must be returned to the caller so that it
14404 can get the error condition from gdb.
14405 (cplus_name_of_child): Adjust index for vptr before figuring
14406 out the name of the child.
14407 (cplus_value_of_child): If a child's (real) parent is not valid,
14408 don't even bother trying to give a value for it. Just return
14409 an error. Change all instances in this function.
14410 (cplus_type_of_child): If our parent is one of the "fake"
14411 parents, we need to get at the type of the real parent, and
14412 derive the child's true type using this information.
14414 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14416 From 2002-01-09 John Marshall <johnm@falch.net>:
14417 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14418 sources.redhat.com, and tweak some related URLs which had
14419 suffered from linkrot.
14421 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14424 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14425 structures passed in registers.
14427 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14429 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14430 white space which prevented compilation. Reported by DSK
14431 <dsk@student.unsw.edu.au>.
14433 2002-01-11 Michael Snyder <msnyder@redhat.com>
14435 * symfile.c (build_section_addr_info_from_section_tab):
14436 Use bfd access method instead of manipulating bfd directly.
14437 (syms_from_objfile): Ditto.
14438 (simple_overlay_update_1): Ditto.
14439 (simple_overlay_update): Ditto.
14440 (generic_load): Ditto.
14441 (overlay_unmapped_address): FIXME comment, bfd access methods.
14442 (sections_overlap): FIXME comment, bfd access methods.
14443 (pc_in_mapped_range): FIXME comment, bfd access methods.
14444 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14445 (section_is_mapped): FIXME comment, bfd access methods.
14446 (section_is_overlay): FIXME comment, bfd access methods.
14448 * symfile.c (generic_load): Whitespace and long line cleanups.
14449 Remove duplicate variable, change several local variables to
14450 more appropriate data types.
14451 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14453 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14455 From Peter Schauer:
14456 * language.c (longest_local_hex_string_custom): Use phex_nz to
14457 convert NUM to a hex string.
14459 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14461 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14463 Update Copyright year.
14465 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14467 * language.c (longest_raw_hex_string): Delete unused function.
14469 2002-01-11 Petr Sorfa <petrs@caldera.com>
14471 * MAINTAINERS (write-after-approval): Add myself.
14472 * dwarf2read.c (read_tag_string_type): Handling of
14474 (read_tag_string_type): FORTRAN fix to prevent propagation of
14476 (set_cu_language): Handling of DW_LANG_Fortran95
14478 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14480 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14481 GETPID(inferior_ptid).
14482 (store_inferior_registers): Likewise.
14484 2002-01-10 Jason Merrill <jason@redhat.com>
14486 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14489 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14491 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14492 and bfd/elf32-sh-nbsd.c.
14494 2002-01-10 Michael Snyder <msnyder@redhat.com>
14496 * NEWS: Mention --pid and corefile/proc-id behavior change.
14498 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14499 * gcore.c: Include cli/cli-decode.h instead of command.h.
14501 * main.c (captured_main): Add new command line option "--pid".
14502 If the second command line argument (following the symbol-file)
14503 begins with a digit, try to attach to it before trying to open
14505 (print_gdb_help): Document the "--pid" argument.
14507 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14509 * completer.c (command_completer): New function.
14511 * completer.h <command_completer>: Add prototype.
14513 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14514 completer for the "help" command.
14516 2002-01-09 Jason Merrill <jason@redhat.com>
14518 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14520 2002-01-09 Michael Snyder <msnyder@redhat.com>
14522 * i386-linux-nat.c (fill_fpxregset): Make global.
14523 (store_fpxregset): Ditto.
14525 * gregset.h (gdb_fpxregset_t): Define.
14526 (supply_fpxregset): Prototype.
14527 (fill_fpxregset): Prototype.
14529 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14531 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14533 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14534 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14535 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14537 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14539 * MAINTAINERS: Update target maintainer rules so that any
14540 Maintainer can approve a tested patch for a maintenance-only
14543 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14545 * MAINTAINERS (write-after-approval): Add myself.
14547 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14550 2002-01-08 Michael Snyder <msnyder@redhat.com>
14552 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14553 real name of the executable, rather than the /proc name.
14555 2002-01-03 Michael Snyder <msnyder@redhat.com>
14557 Implement a "generate-core-file" command in gdb, save target state.
14558 * gcore.c: New file. Implement new command 'generate-core-file'.
14559 Save a corefile image of the current state of the inferior.
14560 * linux-proc.c: Add linux-specific code for saving corefiles.
14561 * target.h (struct target_ops): Add new target vectors for saving
14562 corefiles; to_find_memory_regions and to_make_corefile_notes.
14563 (target_find_memory_regions): New macro.
14564 (target_make_corefile_notes): New macro.
14565 * target.c (update_current_target): Inherit new target methods.
14566 (dummy_find_memory_regions): New place-holder method.
14567 (dummy_make_corefile_notes): New place-holder method.
14568 (init_dummy_target): Initialize new dummy target vectors.
14569 * exec.c (exec_set_find_memory_regions): New function.
14570 Allow the exec_ops vector for memory regions to be taken over.
14571 (exec_make_note_section): New function, target vector method.
14572 * defs.h (exec_set_find_memory_regions): Export prototype.
14573 * procfs.c (proc_find_memory_regions): New function, corefile method.
14574 (procfs_make_note_section): New function, corefile method.
14575 (init_procfs_ops): Set new target vector pointers.
14576 (find_memory_regions_callback): New function.
14577 (procfs_do_thread_registers): New function.
14578 (procfs_corefile_thread_callback): New function.
14579 * sol-thread.c (sol_find_memory_regions): New function.
14580 (sol_make_note_section): New function.
14581 (init_sol_thread_ops): Initialize new target vectors.
14582 * inftarg.c (inftarg_set_find_memory_regions): New function.
14583 Allow to_find_memory_regions vector to be taken over.
14584 (inftarg_set_make_corefile_notes): New function.
14585 Allow to_make_corefile_notes vector to be taken over.
14586 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14587 interface layer if not target_has_execution (may be a corefile).
14588 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14589 * config/sparc/sun4sol2.mh: Ditto.
14590 * config/alpha/alpha-linux.mh: Ditto.
14591 * config/arm/linux.mh: Ditto.
14592 * config/i386/x86-64linux.mh: Ditto.
14593 * config/ia64/linux.mh: Ditto.
14594 * config/m68k/linux.mh: Ditto.
14595 * config/mips/linux.mh: Ditto.
14596 * config/powerpc/linux.mh: Ditto.
14597 * config/sparc/linux.mh: Ditto.
14599 2002-01-07 Michael Snyder <msnyder@redhat.com>
14601 * arm-linux-nat.c: Remove references to regcache.c internal data
14602 (registers[] and register_valid[]).
14604 2002-01-07 Michael Snyder <msnyder@redhat.com>
14606 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14607 so that attaching to a pid will automatically read the process's
14608 symbol file and shlibs.
14609 * Makefile.in: Add rule for linux-proc.o.
14610 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14611 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14612 * config/arm/linux.mh: Ditto.
14613 * config/i386/linux.mh: Ditto.
14614 * config/i386/x86-64linux.mh: Ditto.
14615 * config/ia64/linux.mh: Ditto.
14616 * config/m68k/linux.mh: Ditto.
14617 * config/mips/linux.mh: Ditto.
14618 * config/powerpc/linux.mh: Ditto.
14619 * config/sparc/linux.mh: Ditto.
14621 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14623 * win32-nat.c: Add i386-tdep.h dependency.
14625 2002-01-07 Michael Snyder <msnyder@redhat.com>
14627 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14628 instead of bfd_get_arch_size. Don't bail out just because
14629 there's no exec_bfd.
14631 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14632 * p-valprint.c (pascal_object_print_value): Ditto.
14633 * somread.c (som_symtab_read): Ditto.
14634 * symfile.c (simple_free_overlay_region_table): Ditto.
14635 * valops.c (value_assign): Ditto.
14637 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14638 use tilde_expand and strerror for opening save-tracepoints file.
14640 * thread-db.c (thread_db_new_objfile): Indendation fix.
14642 * infptrace.c (GDB_MAX_ALLOCA): New define.
14643 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14644 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14645 can be overridden with whatever value is appropriate to the host).
14646 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14647 alloca to allocate potentially large buffer.
14648 * rs6000-nat.c (child_xfer_memory): Ditto.
14649 * symm-nat.c (child_xfer_memory): Ditto.
14650 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14652 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14654 From Nick Clifton <nickc@redhat.com>
14655 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14657 2002-01-07 Michael Snyder <msnyder@redhat.com>
14659 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14660 Don't use exec_bfd if it's NULL.
14662 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14664 * valops.c (value_arg_coerce): Fix formatting.
14666 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14668 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14669 * gnu-nat.c: Ditto.
14671 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14673 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14674 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14675 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14676 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14677 z8k-coff have not been multi-arched. Update z8k-coff build
14680 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14682 * MAINTAINERS: Mark a29k target as obsolete.
14683 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14684 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14686 * NEWS: Note that a29k targets are obsolete.
14687 * a29k-tdep.c: Mark as obsolete.
14688 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14689 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14690 a29k-*-vxworks* targets as obsolete.
14691 * remote-adapt.c: Obsolete.
14692 * remote-eb.c: Obsolete.
14693 * remote-mm.c: Obsolete.
14694 * remote-udi.c: Obsolete.
14695 * config/a29k/a29k-udi.mt: Obsolete.
14696 * config/a29k/a29k.mt: Obsolete.
14697 * config/a29k/tm-a29k.h: Obsolete.
14698 * config/a29k/tm-vx29k.h: Obsolete.
14699 * config/a29k/vx29k.mt: Obsolete.
14701 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14703 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14704 with BFD_ENDIAN_BIG.
14706 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14708 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14709 * configure, config.in: Re-generate.
14710 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14711 * defs.h: Do not include <endian.h>.
14713 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14715 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14716 * config.in: Regenerate.
14717 * configure.in: Update copyright years.
14718 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14719 * configure: Regenerate.
14720 * i386bsd-nat.c: Update copyright years.
14721 (fill_gregset): Use regcache_collect.
14722 (fetch_inferior_registers): Only fetch integer registers
14723 if requested to do so. Add support for XMM registers
14724 using PT_GETXMMREGS.
14725 (store_inferior_registers): Only store integer registers
14726 if requested to do so. Add support for XMM registers
14727 using PT_SETXMMREGS.
14728 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14729 (store_inferior_registers): Remove.
14730 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14731 (fetch_elfcore_registers): New function.
14732 (i386nbsd_elfcore_fns): New.
14733 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14734 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14736 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14737 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14738 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14739 * config/i386/tm-nbsd.h: Update copyright years.
14740 (HAVE_SSE_REGS): Define.
14741 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14742 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14743 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14744 (SIGCONTEXT_PC_OFFSET): Remove.
14745 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14747 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14749 * configure.tgt: Remove powerpc-*-macos* target.
14750 * config/m68k/xm-mpw.h: Delete file.
14751 * config/xm-mpw.h: Delete file.
14752 * ser-mac.c: Delete file.
14753 * mpw-make.sed: Delete file.
14754 * mpw-config.in: Delete file.
14755 * mac-xdep.c: Delete file.
14756 * mac-gdb.r: Delete file.
14757 * mac-defs.h: Delete file.
14758 * mac-nat.c: Delete file.
14759 * config/powerpc/macos.mh: Delete file.
14760 * config/powerpc/macos.mt: Delete file.
14761 * config/powerpc/nm-macos.h: Delete file.
14762 * config/powerpc/tm-macos.h: Delete file.
14763 * source.c (openp, open_source_file): Remove obsolete code.
14764 * top.c (gdb_readline): Ditto.
14765 * utils.c (query): Ditto.
14766 * event-top.c (display_gdb_prompt): Ditto.
14767 * Makefile.in (ser-mac.o): Delete obsolete target.
14770 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14772 * defs.h (BIG_ENDIAN): Delete macro definition.
14773 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14774 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14775 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14776 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14777 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14778 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14779 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14780 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14781 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14782 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14783 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14784 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14785 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14786 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14787 * gdbarch.c: Re-generate.
14789 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14791 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14794 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14796 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14798 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14800 * value.h (value_ptr): Delete typedef.
14802 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14804 * i386nbsd-nat.c: Update copyright years.
14805 Include i386-tdep.h.
14807 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14809 * stabsread.c: Update copyright years.
14811 From Debashis Mahata <debashis.mahata@wipro.com>:
14812 (read_struct_fields): Deal with Sun C compiler erroneous stab
14813 output for structs and unions.
14816 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14818 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14821 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14823 * cp-abi.c: Fix whitespace.
14824 (baseclass_offset): New wrapper function.
14825 * cp-abi.h (baseclass_offset): Add prototype.
14826 (struct cp_abi_ops): Add baseclass_offset pointer.
14828 * valops.c (vb_match): Move to...
14829 * gnu-v2-abi.c (vb_match): here.
14830 * valops.c (baseclass_offset): Move to...
14831 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14833 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14835 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14836 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14837 * hpacc-abi.c (init_hpacc_ops): Likewise.
14839 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14841 * valops.c (find_overload_match): Accept obj as a
14842 reference parameter. Update it before returning.
14843 * value.h (find_overload_match): Update prototype.
14844 * eval.c (evaluate_subexp_standard): Pass object to
14845 find_overload_match by reference.
14847 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14849 * valarith.c: Replace value_ptr with struct value pointer. Remove
14850 register attribute from value declarations.
14853 * scm-lang.c (scm_lookup_name): Ditto.
14855 2002-01-03 Michael Snyder <msnyder@redhat.com>
14857 Abstract the functionality of iterating over mapped memory
14858 regions into a general purpose iterator function.
14859 * procfs.c (iterate_over_mappings): New function, general purpose
14860 iterator for memory sections.
14861 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14862 (solib_mappings_callback): New function, callback for above.
14863 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14864 (info_mappings_callback): New function, callback for above.
14866 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14868 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14870 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14871 * i386-tdep.c: Include "elf-bfd.h".
14872 (process_note_abi_tag_sections): New function.
14873 (i386_gdbarch_init): Add code to recognize various OS/ABI
14876 * maint.c (_initialize_maint_cmds): Add missing \ in
14879 For older changes see ChangeLog-2001
14885 version-control: never